DH Templates

I would like flash to only play once throughout the site?

Conditions: Its a "banner" that can be static and animated. I only want the animation to play when the user first enters the site, after that it remains static for all the other pages. The flash is in a web template. All pages have the flash movie. Situation is whenever a new page loads, flash is reloaded. Would like to stay away from frames.

Public Comments

  1. you have to Copy this banner dude, make the first one attached to your index page, and the second one for the other pages but with another name , that's all. You can't code this flash banner to play only at the first page and stopd!! only if the whole website is in flash... good luck. http://templates4all.blogspot.com Free Flash Templates Free html and dhtml Templates Free Blogger Templates Free Webmasters Tutorials Ways to earn money and other things... http://templates4all.blogspot.com
  2. Your answer lies within FlashVars. You will need to set up a variable in the root timeline, something like: var whereis:Number =0; if (_root.whereis == 1){ gotoAndPlay(1); } else if(_root.whereis ==2){ gotoAndStop(2); } This is assuming frame 1 is the start and frame 2 is the end. You of course can use frame labels as well. The above code is standard AS2, so if you are using AS3 you will need to alter to remove _root and follow AS3 code rules. But it is very similar. Then follow flashvars instructions: http://www.mediacollege.com/adobe/flash/actionscript/flashvars.html and pass whereis ==1 or whereis ==2 from the pages on the site to the swf. Good Luck! More: http://blog.circlecube.com/2008/05/22/flashvar-tutorial/ http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16417
Powered by Yahoo! Answers