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

loop in a flash file

Status
Not open for further replies.

stvchez123

Programmer
Joined
Apr 18, 2002
Messages
59
Location
US
I have a soundloop in my flash file, actually that is all the file is, one sound loop in flash.

Currently, I have Playback: loop checked, so obviously it loops over and over. Instead of that, is it possible to pass a variable, which then tells it to loop once, twice, and so on?
 
If it's a soundObject, there shouldn't be any problem. Just use a variable in...

start(0, my_var);
 
i'm back on this project and needing to send a loop parameter for a sound loop that I have. I got a msg from oldnewbie, which gave one line of actionscript:

start(0, loopparam); // i put this in frame 1

// here is the html flash code
<PARAM NAME=movie VALUE=&quot;FS9.swf&quot;>
<param name=&quot;loopparam&quot; value=1> // i want it to loop once
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>

Currently it loops continuously so, I think I missed something. if someone could point me in the right direction, i'd appreciate it
 
Try...

// here is the html flash code
<PARAM NAME=movie VALUE=&quot;FS9.swf?loopparam=1&quot;>
//<param name=&quot;loopparam&quot; value=1>
// i want it to loop once
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>

Don't forget to do ther same in the embed tag.

 
thanks alot. this is exactly what I have in my html page:

<PARAM NAME=movie VALUE=&quot;FS9.swf?loopparam=2&quot;>
<PARAM NAME=loopparam VALUE=2>
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src=&quot;FS9.swf?loopparam=2&quot;

in my flash file in frame 1 action:
start(0, loopparam);

currently, it is looping over and over (more than the desired 2 times). I'm just wondering if there was anything else. thanks alot
 
Are you using a soundObject? Or is your sound on the timeline and just set to loop?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top