Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

55 users online



making child mc a button probs..

making child mc a button probs..

Currently viewing this thread: 1 (0 members and 1 guests)


reregistered

reregistered

Neverside Newbie
Status: Offline!

making child mc a button probs..

_root.createEmptyMovieClip("base", 1);

_root.base.createEmptyMovieClip("button", 2);
with (_root.base) {
_x = 100;
_y = 0;
beginFill(0xcccccc, 100);
moveTo(0, 0);
lineTo(0, 45);
lineTo(70, 45);
lineTo(70, 0);
endFill();
}

_root.base.button.onRollOver = function() {
this._alpha = 0;
};
_root.base.button.onRollOut = function() {
this._alpha = 100;
};

I can't seem to target the mc if there is more than one parent mc.
I mean I can do:
_root.1mc.doStuff()
but not:
_root.1mc.2mc.doStuff()

etcher

etcher

Status: Offline!

Change "with (_root.base)" to "with (_root.base.button)"

reregistered

reregistered

Neverside Newbie
Status: Offline!

oh yeah. how stoopid of me!

Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0064 seconds.