AXISHK
asked on
Relative path for a music file in Flash CS5 Actionscript
Any idea how to refer a music file in Actionscript if the referenced music file is one lever lower than flash file ? I'm using Adobe Flash CS5.
In myFlash.fla
------------------
song=new URLRequest("music01")
eg. \myFlash.fla
\music\music01
Thanks
In myFlash.fla
------------------
song=new URLRequest("music01")
eg. \myFlash.fla
\music\music01
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Then that should do it. Is this a standalone project or are you going to embed your file on a html file? If so, remember to set your path relative to the html file
The song path will be like this:
var songPath:String = new URLRequest("music/music01.
Hope this helps.
Warm Regards
Deepanjan Das
http://deepanjandas.wordpress.com