register the click listener to top MC and make it capture phase
true.. and keep checking the event.currentTarget.
hope this help.

On Fri, Jul 24, 2009 at 12:22 PM, Schnurgle Schnurgle
<schnur...@yahoo.com>wrote:

> I'm migrating an AS2 project to AS3. I'm not sure how to approach this part
> of the migration. I have a  MovieClip called "us_states_mc". It contains 50
> MovieClips, one of each US state.  "us_states_mc"  has this code inside it:
>
> for (var item in this)
> {
>    this[item].id = item.toString();
>    this[item].onRelease = function ()
>    {
>        _root.zoomToState(this.id);
>    };
> };
>
> How can I recreate this functionality in AS3?
>
>
>
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to