PDA

View Full Version : Flash and the HTML anchor


masada
01-15-2007, 03:25 PM
I have a link on a page that takes you to a particular spot on another page-in other words the link is anchored. It takes you to a section of the page that has a flash movie. Simple enough.

However, this flash movie has a preloader in it and whenever I click the link the preloader won't work properly, if at all. I was assuming it was my actionscript or how I created the movie but I've tested this thing inside out and had no problems until I uploaded it.

Then I noticed something: since the link is anchored I decided to navigate to the page without the anchor (i.e. take off the #anchor section of the web address) and wouldn't you know it, the preloader works like a charm.

The questions are this: how could a simple anchored page affect a swf? Is it possible that the anchor is forcing the page to skip some of the flash embedding code when parsing? Has anyone even heard of this and if so, have you heard of any solutions?

If you'd like to view what I'm babbling about:
*page in question here (http://www.exhibitoronline.com/gravityfree/posteranim.asp#downabit).
*to test the page both ways remember to clear your cache after the first view

Please note this issue is not dealing with creating anchors within Flash using the "Flash with named anchor" feature when publishing it in HTML. The anchor is completly seperate from the movie.

Any help or insight to this problem would be appreciated!

sophistikat
01-16-2007, 02:31 PM
is the "Flash with named anchor feature when publishing it in HTML." needed? have you tried just publishing the SWF on its own?

masada
01-16-2007, 03:44 PM
Here's the thing; it really has nothing to do with the swf at all. For some reason a link (on an HTML page) to an anchored point (on an HTML page) will mess up the way a Flash movie is loaded on it.
If you click the above link you'll see what I mean. Then take off the anchor tag on the address and try it again (clean your cache first), you'll see that it works fine without it.

It doesn't make any sense to me. I just wanted to know if anyone has experienced this, let alone heard of it before.