Hello there,
i was fiddling with the AS3 script the other day and must say it was a new way of coding. really having a tough time. what im trying to do is having one music load on the first frame:
var myLoader:Loader = new Loader();
var url:URLRequest = new URLRequest(“music1.swf”);
myLoader.load(url);
But when i click on a button i want the music to change and load another tune but seems it clash. i do not know wat to type to unload the movie. my code is here:
stop();
myButton.addEventListener(MouseEvent.CLICK, buttonClick);
function buttonClick(event:MouseEvent):void{
var myLoader:Loader = new Loader();
var url:URLRequest = new URLRequest(“music2.swf”);
myLoader.load(url);
gotoAndPlay(108);
};
Anyone can solve this problem :P?
Thanks in advance guys…