|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Parent/Child Problem.
Ok another problem -
I have 3 scenes in my swf. The first scene is the intro and the second is the interface. In the interface I have a child movie which I want to direct back to the 6th frame of the parent in the interface. I use the following code but what seems to happen is that it directs the swf. back to the 6th fram of the intro. _root.gotoAndPlay(6); Can anyone help please? Tann? |
|
#2
|
|||
|
|||
|
Hi, don't know if I said this already but when using scenes you have to remember that when published they are all blended into one big scene. Try using frame labels instead of frame numbers. So name keyframe 6, i.e. "player" and use:
_root.gotoAndPlay("player"); or: _parent.gotoAndPlay("player"); Hope that helps |
|
#3
|
|||
|
|||
|
Thanks Tann,
It worked. Hopefully that should keep me troubleshooting free for a while. Then again who know's what's around the corner! |
|
#4
|
|||
|
|||
|
Hi guys,
I am having a similar problem and have tried the fix Tann suggested but it didn't work. I have a dropdown menu mc nested under the menu header mc. My code is: _root.submenu2.button2.onRelease = function() { _parent.gotoAndStop("Profile"); }; But the click doesn't work. (It's not that it goes to the wrong place, it doesn't do ANYTHING). If it helps you can download the fla from URL to see what's going on. I promised the client I would have this done yesterday, so any help is GREATLY appreciated. THANKS. |
|
#5
|
|||
|
|||
|
Hi, the link doesnt work. I've been playing with methods like this quite a lot recently. Sometimes I would experience similar problems when the parent clip has a similar handler. I think I had the problem with the .onRollOver event. I had to change the way my application worked to circumvent this. Does the submenu2 movie also have a onRelease() function?
|
|
#6
|
|||
|
|||
|
Hi Tann,
I figured it out. I was having my action scripts in the parent level instead of the movieclip level. It was disgustingly simple and I'm a little embarrassed. Thanks for coming to the rescue. It's great to know I'm not alone in this world. Peace, Love & Prosperity, David URL |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > Parent/Child Problem. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|