Thursday, April 6, 2006

Flashing

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.

No comments:

Post a Comment