Thursday, April 06, 2006


Now that i've finished presentations for the beginning of the year, i can continue my struggles with action script.

The first thing i encountered was not being able to add a click event to a movie clip (or button) inside of another movie clip that also had a click event.

originally, clicking the arrow moved it in and out, but when i did that the button inside (child) wouldn't accept events. I later learned this was called propogation (which flash doesn't support). To get around it i took the event off the arrow and placed only on the tip so that the embedded button movie clip could perform.

UPDATE: The button was generating multiple text boxes if you clicked on it more than once, so i had to start it off with an

if(!button) {
//do this}
else { //do this};

for a clean finish.


Pablo said...

i wish you were online right now; i have to do some last minute tweaks to some flash animation, timeline stuff. I have no idea how to do timeline stuff. all I want to do is make a line grow longer. arrrghh

killy said...

a line grow longer? add a keyframe a few frames away and then resize that new keyframe line to the size you want it to grow to. then, depending on what it is (graphic or mc) got back to the original keyframe and add a shape/motion tween to it.

should work like a charm.

killy said...

you can always email me at:

Pablo said...

join me here