|
-
Senior Member
There are two different kinds of effects that come with SWfx. The green highlighted ones are the Flash 4 effects and they take advantage of some of the more advanced capabilities that came with Flash 4. These need to be used with the load movie command and can be loaded into a level, an empty movie clip, or a Smart Clip.
The non-highlighted ones are the Flash 3 effects and can be imported directly into the Flash authoring environment. I like to import them into their own movie clip for maximum flexibility and control rather than importing them into the main timeline or a level. The following technique can be used with either the Flash 3 or the Flash 4 effects generated by SWfx to load a movie into an empty movie clip.
Loading a Flash 3 or 4 Effect Into an Empty Movie Clip
From your main movie, create a new symbol and don't put anything in it. Go back to the main timeline and drag an instance of the empty movie clip onto the stage. Name this instance in the Instance Docker Panel (empty1, or whatever). Use either an object or frame action to loadMovie and use the name of the .swf file as the url. Below that, where it says "level" and has a default zero next to it, pull down the menu and choose "target". In the box where the zero was type "_root.empty1" or use the target editor to choose the intended movie clip. Remember that only movie clips that have instance names will show up in the target editor. The code in the script window would look something like:
on (release) {
loadMovie ("movietobeloaded1.swf", "_root.empty clip 1");
}
The movie can be unloaded in the same fashion. Some points of interest........when you employ this method, the upper left-hand corner of the movie that is being loaded will line up with the center of wherever you placed the instance of the empty movie clip (the cross hairs). This method is argueably preferable to using levels due to having much greater control over the loaded movie. As a movie clip, it can be scaled, tweened.....anything you can do to any other symbol. It can also be put on it's own layer and moved wherever you want within your main movie. For example....behind an interface screen.
One way to preload these movies is to place all of the content of the loaded movies on the second frame and place a stop action in the first frame. This will keep the movie loaded, but invisible until you put an action that targets the second frame of the movie clip and tells it to play. You can also load them with the visibility property set to false, them target the clip and set the property to true when you want the movie to be visible, though this works best with a static symbol or a non-animated movie clip.
-
Senior Member
-
Hi - can you please explain this again?
Hi - I'm having trouble making this happen... eg in the action script box, can you please explain it again?
thanks..
From your main movie, create a new symbol and don't put anything in it. Go back to the main
timeline and drag an instance of the empty movie clip onto the stage. Name this instance in the
Instance Docker Panel (empty1, or whatever). Use either an object or frame action to loadMovie and
use the name of the .swf file as the url. Below that, where it says "level" and has a default zero
next to it, pull down the menu and choose "target". In the box where the zero was type
"_root.empty1" or use the target editor to choose the intended movie clip. Remember that only movie
clips that have instance names will show up in the target editor. The code in the script window
would look something like:
on (release) {
loadMovie ("movietobeloaded1.swf", "_root.empty clip 1");
}
-
Senior Member
Maybe you could explain exactly where you are having trouble. Are you relatively familiar with using actions in Flash, or is this something you are just getting started in?
-
Linking several movies
How can I take this to the next step, and chain a number of different movies together, making sure that each one has played through in its entirety before unloading it, and loading the next?
There is a tutorial for this from SWFX's site, but it appears to have errors in it.
Many thanks,
Ben
-
Senior Member
Have you looked into the Banner Ad Engine Smart Clip? Or is that the one you are talking about? This is what Wildform uses on their site to rotate their banners, and it seems to work pretty well. Which specific tutorial are you referring to?
-
Tute
The tutorial I referred to is called "Flash 5 Load, Unload and Chain SWfX Effects"
by FR Elkins
Step number 6 is where I get good and lost. I will try the ad banner smart clip though.
Thanks for the tip.
Ben
-
please help me
i did the steps one by one but i dont know why it is not work with me
1 after i had saved my swfx in for example (majed.swf )
2 open flash ->insert->new symbol->movi clip
3 then back to the secne and drag the empty movi to it
4 right click on the movi ->panels -> instace -> name: ex(nono)
5 choose fame 1 ->action ->load movi -> in url put majed.swf ,change level to target ,then what i do to the zero value
please is this steps are ok ?????????????????????????
-
Senior Member
Download the zipped file from the following link and check it out. Let me know if you still have questions. 
http://www.rushvision.com/flashkit/m...mpty_clips.zip
-
-
Senior Member
Glad I could help. 
-
Senior Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|