PDA

View Full Version : clip controll {MX}



geedogg
September 5th, 2003, 09:25 AM
Hi
Ive got me a problem :)

Here it is:

In scene 1 i have a movie clip(1), and inside that clip, i have another clip (2)

The thing is, i want to push clip 2, and when i do that i want to go to a diffrent frame in clip 1.
The thing is i cant seem to control clip 1 with clip 2.
I think its probably because i have to tell clip 2 that its clip 1 its commanding and not the root in scene 1 or something.

Anyone know what i can do?

cosine
September 5th, 2003, 09:27 AM
did you try _parent. ?

Take a look at THIS (http://www.kirupa.com/developer/actionscript/tricks/root_parent_this.htm)

Hoepfully that helps a bit.

geedogg
September 5th, 2003, 09:42 AM
It worked fine, but now i ran into a diffrent problem, like always:smirk:

Inside clip 2 theres an animation and some actions.

on (rollOver) {
play();
}
on (rollOut) {
stop();
}

These actions dont work now, is there any way to put the
controll code inside clip 2 (instead of on it) and still controll clip 1?

cosine
September 5th, 2003, 09:46 AM
For the code inside try _parent._parent but that doesn't seem right to me.

If that doesn't work use Absolute addressing:

_root.mc1 for movie clip 1

geedogg
September 5th, 2003, 09:53 AM
COOOOOOOOOL :)

Now it works smooooothly!!!!!
And i learned a little somtin somtin !! :)

Thanks man!

cosine
September 5th, 2003, 10:18 AM
No problem, I'm trying to get this all down myself!

Which of the two suggestions worked btw?
double parent or absolute addressing?

geedogg
September 5th, 2003, 10:29 AM
tried absolute addressing cus it seemd the best:)

This solved my hole site! Now i wont have to hit my computer for at least 5 min ;)

Yeah this hole AS world is kinda hard i think. But ill get it in 20-30 years, so its aiiiit

cosine
September 5th, 2003, 10:35 AM
Tack on some time to that one, because AS 2.0 is right around the corner and I'm told it is a bit different in the syntax methods...

geedogg
September 5th, 2003, 10:39 AM
It wont matter to me cus i have no idea what syntax methods is ;)

Im still finding loading and gotoand playing a big challenge :P

grandsp5
September 5th, 2003, 02:28 PM
theres nothing wrong with_parent._parent. It is a lot more useful at time than absolute addressing because you can load movies into each other and change paths as much as you want but relative addressing will always work.