">'); win.document.writeln(''); win.document.writeln(''); }
 

The Indefinite Article.

Thursday, April 06, 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.

4 Comments:

  • 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

    By Blogger pablo, at 12:04 PM  

  • 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.

    By Blogger Killy, at 12:17 PM  

  • you can always email me at:

    adolfo.chavez@di.mdacc.tmc.edu

    By Blogger Killy, at 12:18 PM  

  • join me here

    http://odacrem.campfirenow.com/de386

    By Blogger pablo, at 12:28 PM  

Post a Comment

<< Home