OZONE Asylum
Forums
Multimedia/Animation
flaxh mx prob
This page's ID:
11341
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
in flash mx, there is a new function called loadSound, which basiclly plays a sound. syntax: instance.loadSound(song name, stream); I created the following code: randomSound = new Array(); randomSound[0] = "first song"; randomSound[1] = "second song"; randomSound[2] = "third song"; randomSound[3] = "fourth song"; randomSound[4] = "fifth song"; num = Math.round(Math.random()*5); cool = new Sound(); cool.loadSound(randomSound[num]+".mp3", true); this randomly chooses a song and plays it when the swf is opened and works great. However, loadVariables("playlist.txt", ""); soundToPlay = new Sound(); soundToPlay.loadSound(song1, true); playList.txt: &song1=set it off.mp3& This works only if soundToPlay.loadSound(song1, true); is activated by n event like on(release). So what I am asjking is why the array swf plays, but the player cannot load inthe playlist and play the songs, and is there any way to fix this. I hope this make sense, thanks for yourthelp.
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »