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

Re: 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


Pieter HelsenRe: demetri tashie can u fix this
by on May 4, 2012 at 4:58:51 pm

Firstly, next time, could you please provide a clear title... If the title is descriptive, rather than begging for help, you'll be far more likely to get a fitting response.

Secondly, this is definitely not the best way to unload a SWF... basically, what you are doing is removing the SWF container from the stage, rather than destroying the actual SWF.

Really, you are just hiding the SWF, rather than removing/destroying it.

What you want to do is this:


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


function btnClick1(event:Event):void {
swfloader1.unload();
swfLoader1.load(firstRequest);
}

function btnClick2(event:Event):void {
swfloader1.unload();
swfLoader1.load(secondRequest);
}


Best regards,
Pieter


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
© 2013 CreativeCOW.net All rights are reserved. - Privacy Policy

[Top]