Login or Sign up Help | Site Map
Connecting Tech Pros Worldwide

flashvars???

Question posted by: colinod (Member) on July 9th, 2008 09:56 AM
I have a flash file setup to play an mp3, just a simple player at the moment.
the followinf code tells it what the file to play is

s = new Sound();
s.loadSound("test.mp3",true);
gotoAndPlay("Playing");

what i want to do is pass the name of the mp3 file from the param tag in the html page

i have tried the following

<param name="Flashvars" value="&amp;mp3file=test.mp3">

but cant figure out how to get this variable in the actionscript

can anyone help??
Would you like to answer this question?
Sign up for a free account, or Login (if you're already a member).
Reply
Not the answer you were looking for? Post your question . . .
183,813 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
Top Flash / Actionscript Forum Contributors