Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help With Actionscript

Status
Not open for further replies.

thecynicality

Technical User
Dec 29, 2004
48
US
Hey, im kind of a noob with flash, im just getting into it. So heres my problem.

I have a small flash movie, and there are 2 main frames i have. The first has a play button, and the second has a gif animation, and a stop button that returns to the first frame.

Is there a way that i can attatch a sound clip to the second frame, and make it go back to the first after the sound is done?
 
Yep, you could use a soundObject with an onSoundComplete function handler that would returm the timeline to the fisrt frame, or simply add some "stream" sound in a movie clip, and at the ending frame of the sound mc, have the playhead go back to the first frame...

stopAllSounds();
_level0.gotoAndStop(1);

Regards. Affiliate Program - Web Hosting - Web Design
 
How do i make the gif loop, until sound stops or i press the stop button?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top