Creative COW SIGN IN :: SPONSORS :: ADVERTISING :: ABOUT US :: CONTACT US :: FAQ
Creative COW's LinkedIn GroupCreative COW's Facebook PageCreative COW on TwitterCreative COW's Google+ PageCreative COW on YouTube
ADOBE FLASH:HomeFlash ForumFlash TutorialsFlash Video TutorialsWeb Streaming ForumAdobe FlashPodcast

demetri tashie can u fix this

COW Forums : Adobe Flash

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Share on Facebook
Respond to this post   •   Return to posts index   •   Read entire thread


eamon whitedemetri tashie can u fix this
by on May 4, 2012 at 3:47:30 pm

what is the statement to get rid of the event listner for button i tried what you posted two years ago and i cant seem to get it to work

var firstRequest:URLRequest=new URLRequest("test_externalSWF.swf");
var secondRequest:URLRequest=new URLRequest("test_externalSWF2.swf");
var swfLoader1:Loader=new Loader();

swfLoader1.load(firstRequest);
addChild(swfLoader1);

btn1.addEventListener(MouseEvent.CLICK, btnClick1);
btn2.addEventListener(MouseEvent.CLICK, btnClick2);


function btnClick1(event:Event):void
{SoundMixer.stopAll();
removeChild(swfLoader1);

swfLoader1.load(firstRequest);
addChild(swfLoader1);



}

function btnClick2(event:Event):void
{

SoundMixer.stopAll();
removeChild(swfLoader1);


swfLoader1.load(secondRequest);
addChild(swfLoader1);

}


Posts IndexRead Thread
Reply   Like  
Share on Facebook


Current Message Thread:




LOGIN TO REPLY



FORUMSTUTORIALSFEATURESVIDEOSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

Creative COW LinkedIn Group Creative COW Facebook Page Creative COW on Twitter
© 2014 CreativeCOW.net All rights are reserved. - Privacy Policy

[Top]