load sound dynamically in as2 having problem
问题 I want to load sound placed in sounds folder. Code is var my_sound = new Sound(); my_sound.loadSound("sounds/sound1.mp3"); my_sound.onLoad = function(success:boolean){ if(success){ my_sound.start(); } } This plays sound when flash is open and pressing CTRL+ENTER(Test Movie). but when we plays the swf it won't play sound. for this problem i found one solution. i made off onLoad function. and the Test Movie. Now the opposite things happend. It dosen't play when press CTRL+ENTER (TestMovie); but