logo-dw

Go Back   Dreamweaver Club Forums > Graphic Design > Flash
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 04-07-2011, 02:43 AM   #1
joshdesign
 
Join Date: Mar 2011
Posts: 13
Default How to Load an Swf File into a movie clip and then Unload

Hi im trying to load an Swf file into a movie clip and then when you click on a button it has to go to another page.

i wrote the code and it works perfectly , when i click the button it goes to the other page ... put the problem is that the Swf video ( with sound) . is still playing .. i can tell that because the sound is playing... Can you guys help me.. .....

another thing if it possible to help me also to make a code that says .. when the video is over go to the other page...


Mycode............................................ ...........................



stop();


var swfLoader:Loader = new Loader();
video.addChild(swfLoader);
var bgURL:URLRequest = new URLRequest("Child.swf");
swfLoader.contentLoaderInfo.addEventListener(Event .COMPLETE, loadProdComplete);
swfLoader.load(bgURL);
function loadProdComplete(e:Event) {

}


home.addEventListener(MouseEvent.CLICK, homeclick);

function homeclick(evtobj:MouseEvent):void{

gotoAndStop(evtobj.target.name);

}



End OF Code.............................................. .............................
joshdesign is offline   Reply With Quote
Reply


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. The time now is 10:29 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com