Hi
I want to have a movie loaded on another, over some buttons, but I don´t want the buttons to work when the new movie is on them. I was told to use a mask, but I don´t know where to put it.
Please help
Printable View
Hi
I want to have a movie loaded on another, over some buttons, but I don´t want the buttons to work when the new movie is on them. I was told to use a mask, but I don´t know where to put it.
Please help
Anyone? :confused:
You make your Mask layer. There are two layers: the first/top layer, which is the actual mask and the second/bottom layer, where your content goes. In the top layer create an object (circle, square, etc.). Whatever is underneath the object, in the second layer, will be all that is visible. Place your buttons in that second layer and the movie in a third layer on top of the Mask layers.
- wizard34
Yes, but this movie appear with the LoadMovie script. I want to put "B.swf" on "A.swf". But A.swf has some buttons which I want to cover with B.swf. My problem is that when this happens, the buttons in A.swf still work. So, I don´t know where to put the masl there, in which of both movies.
why dont you post an fla (plz not pro) of what you have so far
Ok, here´s what I have. This only a part of the site but it´s the one I´m working on to do this thing of the mask. As you can see, the fla "ca02servicios" would be the main movie. The fla "catrabajo02" is the movie that appears on the buttons. What I want is that when this movie loads, it covers the square buttons so that they don´t work anymore.
I added a "_visible=false" for each button to the onPress... then set it back to true on the close button of your other mc... not sure if that's the best way, or even the right way... but it worked.
I'm sure someone else can give you the 'real' answer tho!
good luck!
Thanks for the help ShaNaeNae. :D
Still, I have problems with this, because that "_visible=false" script, makes all the buttons movie dissapear, thereby making invisible the Menu on the left. The only thing I want is to cover the buttons, not to make everything dissapear.
I havent looked at the fla but try this.
Give the buttons an instance name like butt1, butt2 so on and so on.
On the buttons that loads the .swf , put this.
on (release){butt1.enabled=false;
butt2.enabled=false;
butt1.usehandcursor=false;
butt2.usehandcursor=false;
}
Then to make them active again just change the the false to true.
:)
This worked excellent RhameJ, thanks a lot. When the swf loads, the script with the "false" command works excellent, but then, the swf loads and it has a Close Button which unloads it. Where do I have to put the script with the "true" command written so that the buttons work again?
on the close button
what he said :D
The close button is on the swf. I´ll try again what you say, but I tried it and didn´t work. Maybe I did something wrong.
If the close button is on the .swf, and the main buttons are on the main stage, you will need to add this AS to the close button to make them active again.
on (release){
_root.butt1.enabled=true;
_root.butt2.enabled=true;
_root.butt1.usehandcursor=true;
_root.butt2.usehandcursor=true;
}
With out the "_root" , the close button is looking for those buttons on the .swf, and since they are not there, its not going to do anything.
:)
Thanks man, but maybe I should take some classes of ActionScript. What you gave me seems to be the solution but it still doesn´t work. I think I´m gonna solve it the easy way and make the buttons an swf. Besides, the movie where the swf loads isn´t the main stage.
Thanks a lot anyway. :)
I know, why don´t you enter the site and see it for yourself? Choose English, Services and there you´ll see what I say. You find the buttons below. Click on the first one and you´ll see my problem without using the solutions you gave to me. So, if I put the enable=false to the buttons, they effectively stop workin. But when I put the enable=true to the close button on the swf, the swf closes but the buttons never work again.
I know, why don´t you enter the site and see it for yourself? The url is www.conexionapice.com.ar. Choose English, Services and there you´ll see what I say. You find the buttons below. Click on the first one and you´ll see my problem without using the solutions you gave to me. So, if I put the enable=false to the buttons, they effectively stop workin. But when I put the enable=true to the close button on the swf, the swf closes but the buttons never work again.
there's probably a quicker, easier way to do it, but... this works.
Umm, Im confused now. You want the buttons on the main nav to quit working? Were is the close button you talk about. Right now I dont see a need to have the main buttons quit working? Evrything loads below the main nav so whats the problem?
Try to be percise as possible plz and Ill do my best to help
:)
ahhhh, I got ya now. Gimmie a second;)