Adam,
Please, it sees the archive in the URL:

www.leandroamano.com.br/files/button_as3.fla

best regards

On 6/27/07, Adam Pasztory <[EMAIL PROTECTED]> wrote:

Jim,

The problem seems to be that each of my button states is a MovieClip.  In
your version, the buttons states are just raw graphics and text the
timeline
of the button.  Do a "convert to symbol" on your graphics, and change each
button state into a MovieClip.  The hit areas will no longer work.

This works in AS2, but not AS3, so I'm thinking it's a bug in Flash.

On 6/27/07, Jim Berkey <[EMAIL PROTECTED]> wrote:
>
> funny, mine does . . . your setup looks the same?
>
> http://jimbo.us/lab/buttonAs3.fla
> http://jimbo.us/lab/buttonAs3.swf
>
> *********** REPLY SEPARATOR  ***********
>
> On 6/27/2007 at 8:39 AM Adam Pasztory wrote:
>
> >Didn't work.  I posted the FLA in case anyone is bored and feels like
> >taking
> >a look:
> >http://www.pasz.com/xfer/FinalAssets.zip
> >
> >On 6/27/07, Jim Berkey <[EMAIL PROTECTED]> wrote:
> >>
> >> Hah, yes, it does work, just need to addChild:
> >>
> >> my_btn.addEventListener(MouseEvent.CLICK, myFunction);
> >> my_btn.buttonMode = true;
> >> function myFunction(event:MouseEvent):void {
> >>         //do something
> >> }
> >> addChild(my_btn);
> >>
> >> jimbo
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




--
--
Leandro Amano
Digital Bug
Chief Creative Officer
Adobe Certified Expert
Adobe Certified Instructor
Adobe User Group Leader
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to