|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Parent Child scripting problem
ok, I'm experienced with flash but there are certain scripts that I can't seem to grasp.
Here is my Dilema - I am writing an interactive CDRom. In seen 1 (the interface) I have 2 Layers - Buttons and interface. I have the buttons converted to a movie symbol. The child to that is of the buttons scrolling down from the top of the interface. My problem is that when editing the child I want to be able to navagate back to the start of the Parent (interface) when I have clicked one of the buttons in the child state. I hope that all makes sence! Could someone help me with a basic script please? I'm sure it's something easy I have overlooked but I seemed to have tried everything. Thanks. |
|
#2
|
|||
|
|||
|
Hi, if I think I understood you right this should do:
Code:
on(release)
{
_parent.gotoAndStop(1);
}
That goes on the button itself. Dont click the frame, left click the button and open the AS window. Sorry, just in case you didnt know... if you want to play the parent from the start and not stop at the start use: Code:
on(release)
{
_parent.gotoAndPlay(1);
}
|
|
#3
|
|||
|
|||
|
Thanks for that - I see it's going to work but I neglected to mention that there was a scene before the interface (the intro) and when using your script and pressing the button it plays that scene instead of the interface scene.
Any ideas? |
|
#4
|
|||
|
|||
|
Hi, you could try labelling the frame you want to jump to.
Code:
on(release)
{
_parent.gotoAndPlay("myStarter");
}
You can label them under frame properties. |
|
#5
|
|||
|
|||
|
unfortunately that doesn't work either. It still goes back and plays the first scene instead of the second scene.
|
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > Parent Child scripting problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|