SWF disappears after refresh (ie 6 & 7)

161 views
Skip to first unread message

saion

unread,
Oct 31, 2008, 6:18:21 AM10/31/08
to SWFObject
Hello!

Im embedding a SWF with SWFObject 2.1, using the method embedSWF().
When i have emptied the browsers cache the SWF shows up when im
entering the page, so far so good.
When i try to refresh the page or enter it again, the SWF shows up and
then just disappears after about 10 milliseconds.
If i empty my cache and reload the page, the SWF shows up normally
again. Anyone with a solution?

Another problem i´ve got is that Explorer 6 & 7 shows a error message
with the description "Object doesn't support this property or method",
or something like that. I don't know if this has to do with SWFObject,
but if there is anyone out there that might have a solution for this,
i would be very thankful

I've been fighting these problems now for a while and would love to
conquer them :).

Thanks // Max Nylin

Aran Rhee

unread,
Nov 1, 2008, 6:46:19 AM11/1/08
to swfo...@googlegroups.com
So are you loading content within the swf or just the swf itself? (is the
content driven my XML etc). I haven't heard of the parent swf disappearing,
but it is a common issue for XML files to be mis-cached by IE.

Aran

saion

unread,
Nov 8, 2008, 5:20:32 AM11/8/08
to SWFObject
No, most of the content is embedded in the swf from start. The second
source of data is a mySQL-db.
I'm loading the data to a movies-page on the site
http://www.dataton.com/index.php?nav=movies from a XML-file though.
But that should crash the site, or make it disappear, right?

Aran Rhee

unread,
Nov 9, 2008, 2:53:19 AM11/9/08
to swfo...@googlegroups.com
No, XML loading shouldn't make the whole swf disappear, but some people get
confused when their images etc don't load (if the BG of the flash and page
are both white then it looks like the whole swf isn't there if there is no
other artwork on stage of the swf)

Can you supply a link to your page (if you haven't already - sorry, reading
on an iphone and don't have the thread)


Cheers,
Aran

saion

unread,
Nov 9, 2008, 4:23:10 AM11/9/08
to SWFObject

Aran Rhee

unread,
Nov 9, 2008, 4:59:30 AM11/9/08
to swfo...@googlegroups.com
For me in IE7, the whole swf does not disappear on refresh, it is only the
background image which doesn't load again. As you said, if that is the image
which loads via XML, try adding a random number onto the end of the server
call to get the XML - "http://some.com/somepage.aspx?r=" + new
Date.getTime();


The nav still appears, but if I try to click, then I get a flash debug
player error:

TypeError: Error #1009: Cannot access a property or method of a null object
reference.
at se.yodesign::Homepage/switchMainPage()
at se.yodesign::Homepage/NavigationButtonClicked()
at se.yodesign::NavigationMenu/SetButtonSelected()
at MethodInfo-1546()


Which again, leads me to think that it is an XML cache / load error (with
IE).


FF3 / Safari etc are fine on the refresh.


BTW - your swf (511KB) and background image (252kb) are very large for what
they are. You have no preloader on your main swf from what can see, nor on
the BG image load. I think you 1) want to look at why your files are so big,
and 2) add a preloader.

Also, your SWFObject <script> block should be the within the <head> tag.

Hope this all helps.

Aran

-----Original Message-----
From: swfo...@googlegroups.com [mailto:swfo...@googlegroups.com] On
Behalf Of saion

Sent: Sunday, 9 November 2008 8:23 PM
To: SWFObject
Subject: Re: SWF disappears after refresh (ie 6 & 7)


The site is http://www.dataton.com


saion

unread,
Nov 11, 2008, 3:26:51 AM11/11/08
to SWFObject
Oh, so it behaves differently on your computer than on mine.
On mine, when i refresh the page or enters it without restarting ie,
the SWF-movie shows up and then dissapears, as i described in the
original post.

The XML-file only contains data for the meny on the
http://www.dataton.com/index.php?nav=movies page, so its not
containing any url for the bg-image.

Okay, so when you have enetered the site once and then refreshes it,
it shows up as normal, without the background image? That'´s weird.
Can you please confirm this once? I guess that you get a warning
triangle in the left bottom of the browser aswell, i think the
description for the error is something like "Object doesn't support
this property or method", do you have any ideas of a solution for
this, or what it is that can be causing it? Could it be SWFObject that
is causing the problem? Maybe ExternalInterface?

About the size of the site, i did not plan it very well from the
start, and it got big after a while. Now it is to complicated to break
it into pieces and load each and one of the pages separately as need
them.

The thing about the preloader is that i have checked the "Export on
first frame" option for every movieclip in the library. So when i try
placing a preloader on the first frame as usual, it shows up after all
of the sites content has been loaded. Is there any smart way of making
a preloader.
A while ago i made a preloader that was depending on the browsers
cache. I made a separate flash-movie the loaded the homepage into a
Loader-instance, when it was ready, i redirected to the main-page. The
thing about this was that safari didn´t cache the swf, to it loaded it
twice.
I made a script for checking what browser the visitor uses, if it
wasn't Safari i placed the loader into the div, else i placed the main
site.
After a while i removed the loader, thinking i could make a loader in
javascript, but i have no skills at all there so i skipped it.
Do you have any ideas of how i can make this work?


Thanks for your help!

// Max

X.Smalbil

unread,
Nov 11, 2008, 3:42:56 AM11/11/08
to swfo...@googlegroups.com
SWFObject and AC_RunActiveContent have got the same problem.

Aran Rhee

unread,
Nov 11, 2008, 6:48:29 PM11/11/08
to swfo...@googlegroups.com
Confirmation of behaviour in IE - yes it did, but now that you have changed
content since last time, I can now see the disappearing as you describe.

Warning triangle / script error - yes I do.

As you don't have any ExternalInterface methods trying to be called straight
away, I don't think this is the issue (unless you are trying to call a
swfadress method from within Flash?)

I am thinking it must be something specific to your Flash file. Have you
tried another swf in place of your current one? Try using the test.swf which
cones in the swfobject download.


Export on first frame / preloader - There are articles which can help you
with this. We try to keeo this forum specific to swfobejct, andnthis is
definitely out of scope:

Try this as a 101 on preloading
http://www.gskinner.com/blog/archives/2004/08/internal_preloa.html

Or Google " flash preloader export on first frame"


Aran


-----Original Message-----
From: swfo...@googlegroups.com [mailto:swfo...@googlegroups.com] On
Behalf Of saion
Sent: Tuesday, 11 November 2008 7:27 PM
To: SWFObject
Subject: Re: SWF disappears after refresh (ie 6 & 7)


neuston

unread,
Dec 17, 2008, 3:53:11 AM12/17/08
to SWFObject
I got the exactly SAME problem with saion

i.e.
Im embedding a SWF with SWFObject 2.1, using the method embedSWF().
When i have emptied the browsers cache the SWF shows up when im
entering the page, so far so good.
When i try to refresh the page or enter it again, the SWF shows up
and
then just disappears after about 10 milliseconds.
If i empty my cache and reload the page, the SWF shows up normally
again.

no this problem in Firefox

any known solution? Thanks


neuston






On Nov 12, 7:48 am, "Aran Rhee" <aran.r...@gmail.com> wrote:
> Confirmation of behaviour in IE - yes it did, but now that you have changed
> content since last time, I can now see the disappearing as you describe.
>
> Warning triangle / script error - yes I do.
>
> As you don't have any ExternalInterface methods trying to be called straight
> away, I don't think this is the issue (unless you are trying to call a
> swfadress method from within Flash?)
>
> I am thinking it must be something specific to your Flash file. Have you
> tried another swf in place of your current one? Try using the test.swf which
> cones in the swfobject download.
>
> Export on first frame / preloader - There are articles which can help you
> with this. We try to keeo this forum specific to swfobejct, andnthis is
> definitely out of scope:
>
> Try this as a 101 on preloadinghttp://www.gskinner.com/blog/archives/2004/08/internal_preloa.html
>
> Or Google " flash preloader export on first frame"
>
> Aran
>
> -----Original Message-----
> From: swfo...@googlegroups.com [mailto:swfo...@googlegroups.com] On
>
> Behalf Of saion
> Sent: Tuesday, 11 November 2008 7:27 PM
> To: SWFObject
> Subject: Re: SWF disappears afterrefresh(ie 6 & 7)
>
> Oh, so it behaves differently on your computer than on mine.
> On mine, when irefreshthe page or enters it without restarting ie,
> the SWF-movie shows up and then dissapears, as i described in the
> original post.
>
> The XML-file only contains data for the meny on thehttp://www.dataton.com/index.php?nav=moviespage, so its not

neuston

unread,
Dec 17, 2008, 4:21:54 AM12/17/08
to SWFObject
found solution, sorry for duplicating known problem here:

solution: http://code.google.com/p/swfobject/issues/detail?id=3

it is NOT related to swfobject but the stupid IE


neuston


On Dec 17, 4:53 pm, neuston <adamhui...@gmail.com> wrote:
> I got the exactly SAME problem with saion
>
> i.e.
> Im embedding a SWF with SWFObject 2.1, using the method embedSWF().
> When i have emptied the browsers cache the SWF shows up when im
> entering the page, so far so good.
> When i try torefreshthe page or enter it again, the SWF shows up
Reply all
Reply to author
Forward
0 new messages