Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Loading swf files from other location

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,

can anyone help me with this question:
I made a flashmovie but it's over 200kilos. It includes few movieclips inside of it. I thought that one way make my Flashmovie load faster is save those movieclips in their own swf files and place empty movieclips in mainmovie. Then those empty movieclips makes the main movie load swf files into itself.

Sounds simple, but I still don't get it =( So how can I call other swf files open in one flash movie?

Thanks for advice =)
 
200kb ain't that big, in the first place!
Do you want to load all your other movies before the first one starts to play?
If so, have a look at this:


... hit the red dot and decide how much of the movie you want to download before screening it.
Then you can have a look at the tutorial here:


s-) "If nothing else, I can always serve as a bad example!”
 
on (release) {
gotoAndPlay ("Scene#", 1);
loadMovie ("your_SWF_file_here.swf", "Holder");
setProperty ("holder", _x, "111.8");
setProperty ("holder", _y, "105.7");
}
where "holder" is the instance name of the box drawn on the stage that the SWF will be imported to(i Suggest that you delete the fill color and bring the alpha level down to make your "holder" invisible) I think the rest is self explanitory.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top