Go Back   kirupaForum > Flash > Flash CS4

Reply
 
Thread Tools Display Modes
Old 11-21-2009, 12:59 AM   #1
kratos2010
Registered User
CS4 AS3 how can I load and unload swf w/ flv w/out stacking?

I want to load and unload EXTERNAL SWF that contains FLV on mouse click. Loading and unloading the swf is NOT the issue. The problem is how do i get the external swf which contains an flv to stop playing and stacking up on each other.

Please please help!

I can load and unload the swf's as long as I pause the videos before I click on another thumbnail, but if I click on another thumbnail while the external swf is playing it's flv, the previous flv keeps playing and stack up under the newly loaded swf.

The audio and video keep stacking up! Craziness leading to madness if I don't figure this out! Please help!




here is the code I have:

//---start code ----//
stop();


// Container
var imageLoader:Loader = new Loader();

// Url Requests
var imageRequest:URLRequest = new URLRequest("pepsi_vid1.swf");
var imageRequest_2:URLRequest = new URLRequest("pepsi_vid2.swf");



// Intial Page Loaded
imageLoader.load(imageRequest);
addChild(imageLoader);

// Button Functions
function goHome1 (e:MouseEvent):void{

imageLoader.load(imageRequest);
addChild(imageLoader);
}


// Button Functions
function goHome2 (e:MouseEvent):void{

imageLoader.load(imageRequest_2);
addChild(imageLoader);
}

thumb1_btn.addEventListener(MouseEvent.CLICK, goHome1);
thumb2_btn.addEventListener(MouseEvent.CLICK, goHome2);



//----stop code ----//

Thanks!
kratos2010 is offline   Reply With Quote

Sponsored Links (Guests Only) - Register | Need Help?
 

Old 12-10-2009, 06:29 PM   #2
noonoo11
Registered User
Struggling with the same issue... desperate for some help... :/

Anyone please?
noonoo11 is offline   Reply With Quote
Old 12-10-2009, 06:31 PM   #3
noonoo11
Registered User
Btw:
in regards to your sound issue:
give this a try:

SoundMixer.stopAll();
noonoo11 is offline   Reply With Quote
Old 12-10-2009, 06:34 PM   #4
noonoo11
Registered User
Btw:
in regards to your sound issue:
give this a try:

SoundMixer.stopAll();
noonoo11 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:33 PM.

SUPPORTERS:

kirupa.com's fast and reliable hosting provided by Media Temple. flash components
Creative web apps. Make your own free flash banners and photo slideshows.
Check out the great, high-quality flash extensions. Buy or sell stock flash, video, audio and fonts for as little as 50 cents at FlashDen.

Flash Transition Effects

Flash Effect Tutorials

Digicrafts Components
Flash effects. Art without coding. Upload, publish, deliver. Secure hosting for your professional or academic video, presentations & more. Screencast.com
Streamsolutions Content Delivery Networks Flipping Book - page flip flash component.
Flash-Gallery.com - Get your flash photo gallery (flash component or swf gallery Learn how to advertise on kirupa.com
 

cdn
content delivery network (cdn)

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd. Copyright 2010 - kirupa.com Copyright 2010 - kirupa.com