Link to home
Start Free TrialLog in
Avatar of AXISHK
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
Avatar of deepanjandas
deepanjandas
Flag of India image

Hi,
The song path will be like this:

var songPath:String = new URLRequest("music/music01.mp3");

Hope this helps.

Warm Regards
Deepanjan Das
http://deepanjandas.wordpress.com
ASKER CERTIFIED SOLUTION
Avatar of ayanaculis
ayanaculis

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ayanaculis
ayanaculis

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