Adam,
Your button works with your assets . . . if you change all of the graphic 
elements from 'movie clips' on your _up, _over and _down frames to 'graphic' 
Type - both in the library and above the instance name in the properties panel 
when selected on stage. Grouping is all right, but no mc can be in any of the 
frames. With Flash 8 many gurus saw little need for the 'graphic' type, and 
everything, even graphics, became a movie clip. Now it seems that the lowly 
'graphic' type has it's place in a much stricter Actionscript 3.

My only query is . . . for the over state, now I cannot design a whiz-bang 
graphic tween - since it would need to be held in a movie clip container 
instead of a graphic container?

http://jimbo.us/lab/FinalAssets.fla
http://jimbo.us/lab/FinalAssets.swf


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
>_______________________________________________
>[email protected]
>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



_______________________________________________
[email protected]
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