PDA

View Full Version : [FMX] Load Movie



mawo
July 30th, 2003, 08:59 AM
hello everyone.

i created a flash movie with several swf files that
would be loaded in other levels. i was wondering if
it would be possible to "alpha" level0 when a swf file in level1
is loaded and to "un-alpha" it when level1 is unloaded?
i hope u understand what i mean.

thank you for your replies.

mawo

_____________________
official flash noob

kode
July 30th, 2003, 10:16 AM
A level is like a MovieClip, it has all the properties and handlers, you can do pretty much anything you want with them. :P
_level0.onEnterFrame = function() {
this._visible = !_level1;
};
That should do...

Although it would be much better if you set its _visible property to true/false when you load/unload the level instead of the onEnterFrame handler. :)

mawo
July 30th, 2003, 12:10 PM
well i really dont know
where i have to pu this peace of code.
my button that loads the swf file contains the
following code:

on (release) {
loadMovieNum("abot.swf", 1);

}

so where do i have to put your code to "alpha" (for example 50%)
level0?

and for the button that unloads level1 i have the following code:

on (release) {
unloadMovieNum(1);

}

how do i undo the "alpha effect" of level0 in here?

thank you for your replies.

mawo

_______________
official flash noob

kode
July 30th, 2003, 12:13 PM
on (release) {
loadMovieNum("abot.swf", 1);
_level0._alpha = 50;
}
//
on (release) {
unloadMovieNum(1);
_level0._alpha = 100;
}
I thought you wanted to make it completely invisible, that's why I used the _visible property. :P

mawo
July 30th, 2003, 12:17 PM
oh man fast as lightning!

thank you very much!
i hope some day i will be able to help.

mawo

___________________
official flash noob

kode
July 30th, 2003, 12:19 PM
You're welcome. ;)

... And yeah, I hope so too. :P