You're right. Unfortunately, there are precious few examples in the flash docs 
for simple designer-type actionscript  - it's all Flex type class structure.


jimbo
*********** REPLY SEPARATOR  ***********

On 6/27/2007 at 9:22 AM Adam Pasztory 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

i

_______________________________________________
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