all groups > flash actionscript > june 2005 >
You're in the

flash actionscript

group:

anchors


anchors yertari
6/20/2005 9:15:06 PM
flash actionscript:
HI,

Could someone please tell me how to correctly use named anchors? on my
timeline where each of my pages are, i have placed an anchor marker, thinking
that when the user presses back in the browser, it would take them back to the
previous page, however i just tested my movie and they dont work at all?

Anyone help please

Steve
Re: anchors Offroader
6/20/2005 9:47:43 PM
Named frames are used in gotoAndPlay or gotoAndStop functions. Though I have
never found much use for them, the idea is that it is better not to use a Magic
number such as gotoAndPlay(5) just incase you insert a frame. I remember that
this does not work perfectly for me but I do not remember why.

Your real question however is how to make the browser history buttons work.

In brief:
This can be done with ASP PHP or other script.
Basically you have two frames, one flash one hidden.
Every time your swf file goes to a new page you use fsCommand to load a new
page in the hidden frame
eg. hiddenpage.asp?Page=5
Every time the hiddenpage is loaded it tells flash to make sure that it is on
page 5, if it is it does nothing if not, it goes to page 5

Hope this is clear enough
Re: anchors yertari
6/20/2005 11:27:46 PM
Hi,

Yeah, i used the anchors template. When i tested the site, i noticed that i
could use the browsers buttons to flicl forward and back, but i noticed that
some of the information that should have been displayed wasnt, whilst other
sections of my page were.
I am a little worried.. if i cannot enable the user to use his back and
forward buttons, they may be put off my site... is ther a get around? I kinda
understand the comment earlier about using a script language, but i would be
greatful if someone could elaborate on this
Re: anchors Jeckyl
6/21/2005 12:00:00 AM
did you follow the instructions in the help and use the correct html
template? if not, it won't work.

BTW: it doesn't really work anyway UNLESS your movie is linear (playing from
start to end with no jumping backwards at all). If you jump backwards in
the movie at all (at scene level), then the history gets stuffed up. BE
WARNED!!
--
Jeckyl

AddThis Social Bookmark Button