This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Flash Site Design > January 2005 > Load External SWF Into Emtpy Movie Clip
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Load External SWF Into Emtpy Movie Clip
|
|
| StargrrlGrafx 2005-01-20, 7:20 pm |
| I'm using Flash movies to display photography. The photos are displayed
according to x, y coordinates using actionscript when the corresponding
thumnail is clicked. What I'd like to do is put the full size photos in their
own individual swf's and then call them into my main movie using an empty movie
clip placeholder. Three Questions 1. Will this help minimize my file size?
2. Where do I find tutorial on how to do this? 3. What would be the searchable
term for what I want to do so I can search google? TIA Amelia
| |
| topgun21 2005-01-22, 11:14 pm |
| First export each photo as indiviual swf file, then place them in the same
directory you main movie (the one calling the photos) will be in. Then in your
main movie create a new symbol, make it a movie clip, and drag it on stage.
Give it an instance name. Let's call it photoloader_MC. Then create a button
that will trigger the load. Attach the following code to the button: on
(release){ this.photoloader_MC.loadMovie('photo1.swf'); } Your path to the
blank movie clip (photo_MC) may be different, based on how you have your movie
setup. I suggest using your target tool in the actionscipt pallet, to find the
proper path to your empty movie clip. Because your loading a movie clip into
another blank clip where ever that movie clip is positioned is where your photo
will show up. And yes, this technique will make your main movie much smaller,
because your only loading what you need, when you need it. Hope this helps,
Steve
| |
| StargrrlGrafx 2005-01-23, 11:16 pm |
| HI Steve, Thank you for replying. I've got my movies set up now and they are
working great! My files sizes went from 200-300kb to literally 22kb! I'm pretty
excited about that. The only thing I'm noticing now, it takes a fraction of a
second to show up in the window the first time a button is clicked. I went
ahead and added preloaders to the movies that are being called into the window
but I don't see the preloaders and it still takes that fraction of a second. Is
this just something that happens when your usig the loadmovie funcion? I'm
wondering if I can add a preloader to the main movie instead of the movies
being called to avoid that split second delay. Thanks! Amelia
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|