FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Need help loading an external .swf into an empty movieclip

 


hsadmin
Alright, so, right now, I'm making a website using Flash Pro 8. I have windows that open inside the flash site, and I have just about everything done. Now, what I want to do, is insert an external .swf video.

This is the video: http://chrisburandt.com/video/video1.swf

I want that to go into a blank movieclip. The instance of the video is loader_mc, and the name of it in the library is called Empty Clip. Please help. I need to get this website done. I think all I need is an ActionScript code.
brokenadvice
Putting the following in a button will place the video player in a movie clip called "loader_mc" that is already on the timeline.

Code:
on(press){
   _root.loader_mc.loadMovie("http://chrisburandt.com/video/video1.swf", 1);
}


This button code will take a clip from the library called "empty clip" and place it on the stage (named "loader_mc" ) and then load the movie player into it.

Code:


on(press){
         _root.attachMovie("Empty Clip", "loader_mc", 10);
   _root.loader_mc.loadMovie("http://chrisburandt.com/video/video1.swf", 1);
}


Hope this helps.
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.