PDA

View Full Version : new Sound();


joeri
08-16-2002, 03:24 PM
Hi folks!

I tried the following actionscript :

//script

eval("mySound"+id) = new Sound();

//

but Flash says that the left side of the assignment should be a variable. I thought that it is! How can I solve this?

thanx, Joeri

Jesse
08-17-2002, 06:19 AM
this["mySound"+id] = new Sound(); See the Advanced Pathing tutorial.

joeri
08-17-2002, 07:54 PM
thanx!

When I create a second new sound object with the same name but another mp3, the old one just stops. So creating objects with different names is not necessary anymore!

Joeri

farafiro
08-18-2002, 09:49 AM
u just can create one new Sound() and make it call all your mp3's