I suggest you read a book about Flash or Actionscript, that will get you started. Or you can read some more of the tutorials on this site. And you would be suprised of what you can learn from reading this forum…
Yes, you can load several swfs into one main swf. This is also a good practice, cuz it minimizes the amount of time the user has to wait until the files get downloaded.
Yes, you can load several swfs into one main swf. This is also a good practice, cuz it minimizes the amount of time the user has to wait until the files get downloaded.[/QUOTE]
good great!
Well then i have a question for you!
Wich AS do i use to open another .swf
Lets say the first thing to happen on my page is :
A heading fades inn
then i push the heading :
and then thress buttons fades inn (without the heading disappearing)
then i push lets say “showcase” :
A set of numbers from 1-20 fades in (20 buttons so to say) (without the heading or three button disappearing)
then i push whatever number and a pictures fades in or i use a transiton.
Yes you guessed it (without the heading,buttons or numbers disappearing;)
So far its a .swf with the heading
.swf with 3 buttons
.swf with numbers
and loads of .swf`s with movieclips with a picture within
Does this make any sense?
Got any tips for what kind of AS i should assign for my buttons.
Well you can use levels to load the swfs in…
So for example you load the file: buttons.swf in through this code:
[AS]
on(release) {
loadMovie(“buttons.swf”, 10);
}
[/AS]
this loads the swf in on level 10
use different levels for different movies (preferably with steps of for example 10, so you can put movies in between them later).
you can also load a swf movie into a movieClip, but in your case it better to use levels, but I’m just giving you this to be complete:
[AS]
on(release) {
loadMovie(“buttons.swf”, “movieclipname”);
}
[/AS]
sintax, quick question. Does the swf files get replaced by the other swf file with a higher level. If so what can I do so that they stay in the mainswf
They only get replaced if you load them in on the same level. So if you have one loaded on level 10, and you then load another one into level 10, then the first one gets kicked out.
If you use different levels for each swf, then they just get stacked on top of eachother, just as you would use layers.
Creating engaging and entertaining content for designers and developers since 1998.