|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
controling other movie clips or loaded movies
Hi, I don't really know how to search for this answer, but I know it must have already been asked.
How can I address a certain movie.clip or loaded movie from inside another movie clip? By assigning names to every movie I want to control? The situation is: I have a movie with lots of movieclips (most of them fading in/out), then I load an external swf by clicking a button (this button fades out). Then in this newly loaded movie I have a button that let me go back (unloading the swf). But I also need to right a code so that the previouslly faded out button fades in again. The problem is that it is outside the external swf and worst... the fading sequence is inside a movie clip. I know there are countless ways of doing what I'm doing without having to control a clip from inside another clip. But I wanted to learn how to do it (if it is possible at all!) |
|
#2
|
|||
|
|||
|
if your inside a mc and you want to control another mc ..
just call to its level .. example Code:
myBtn.onRelease=function(){
_root.otherMc.gotoAndPlay("whatever");
};
as fo the fade in on the other btn. when the new btn appears and when that is clicked have it fade the other btn on be _visible. Code:
myBtn.onRelease=function(){
_root.otherMC.gotoAndPlay("whatever");
myhiddenBtn.visible=true;
};
this should work i havent tested it as i usally do .but if you run into problems ill check back ! cheers m8 .. ![]() |
|
#3
|
|||
|
|||
|
thanks!
I didn't do exactly what you told me but it worked! Yesterday I was not being able to use the instance name to address a button or MC because I was not telling whether it was _root or _parent or whatsoever. ![]() |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > controling other movie clips or loaded movies |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|