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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

my flash document loops but I want the sound to play only once

Status
Not open for further replies.

yomata

Technical User
Mar 19, 2005
9
US
my flash document is on a loop.
I want a sound to play only once when the .swf loads the first time, not every time the document loops

Will someone help on this?

Using Flash MX

I imported the sound to the stage

in properties

sync: event,repeat,0
 
You're on MX but MX2004.

Unexpected file format! Can't open your .fla.
You'd have a better chance of getting an answer if your .fla was in a MX only format, and zipped up.

You would have to save a copy of your MX2004 .fla, (using Save as...) and changing the Document type to MX only in the Save as... window.


Regards. Affiliate Program - Web Hosting - Web Design
After 25,000 posts, banned on FK, but proud not to have bowed down to them!
 
As I posted earlier...

Delete all frames but the first one on your sound layer.
Select the first frame, and press SHIFT-F5 until there only one frame left.
Another actions only layer.
On the last frame (30) press F6 to insert a keyframe.
Right-click the keyframe and select Actions.
Type:
gotoAndPlay(2);

Your animation will loop, but the sound won't repeat, since it's looping to frame 2.

Regards. Affiliate Program - Web Hosting - Web Design
After 25,000 posts, banned on FK, but proud not to have bowed down to them!
 
I don't see where you posted this earlier, but I got it now.

thanks for your help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top