This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > May 2005 > newbie question - disabling animation after 1st run





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author newbie question - disabling animation after 1st run
Litron

2005-05-25, 4:29 am

Hi all, thanks in advance for the readthrough.

I have created an animation that I hope to use as the header for my PHP
web-site template - I've included the "stop();" function in the final frame
of my Actions Layer. The problem that I have is that each time I click a
button link on the web-page (current page is refreshed with the new content)
the animation (logically) resets itself and plays through - is there a way
to disable the animation from playing with each button-click or page refresh
as this becomes tedious after awhile? Ultimately I would like to create
code to define and check a session variable that allows the animation to
play only the 1st time the page is loaded, then freeze the playhead on the
final frame of the animation until the web-page is closed. Then the
variable should reset and allow the animation to play the next time the page
is accessed then, again, freeze on the final frame of the animation until
the page is closed.

I haven't had much success with my google searches on this and am still
somewhat new to actionscript.

Any help would be appreciated.

Litron.


Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews