Creative COW SIGN IN :: SPONSORS :: ADVERTISING :: ABOUT US :: CONTACT US
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

fix

COW Forums : Adobe Flash

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


eamon whitefix
by on May 4, 2012 at 3:38:56 pm

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);
IM TRYING TO FIGURE OUT HOW TO FIX THE GLICTH IN THE CODE! HOW DO U GET RID OF THE OLD swfs'audio when the new swfs is playing?


}

function btnClick2(event:Event):void
{

SoundMixer.stopAll();
removeChild(swfLoader1);


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

}


Posts Index
Reply   Like  
Share on Facebook


Current Message Thread:
  • fix by eamon white on May 4, 2012 at 3:38:56 pm




LOGIN TO REPLY



FORUMSTUTORIALSFEATURESVIDEOSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

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

[Top]