Fumio,
Can you explain using' InteractiveObject.mouseEnabled' to allow a mc inside a 
mc acting as a button a little more? I have a mc called button_play, with the 
three frames (_up, _over, and _down), in the over frame, instead of a graphic, 
I placed a mc, gave it instance name over_mc, and on the main timeline, put:

btn_play.over_mc.mouseEnabled = false;

I got this error:
TypeError: Error #1009: Cannot access a property or method of a null object 
reference.
        at FinalAssets2_fla::MainTimeline/FinalAssets2_fla::frame1()

What code to I need to allow a mc to be on one of the frames?

http://jimbo.us/lab/FinalAssets2.fla


jimbo

*********** REPLY SEPARATOR  ***********

On 6/28/2007 at 9:33 AM Fumio Nonaka wrote:

>This works in ActionScript 3.0, too.
>
>You should use Graphic instances for your button's states.  Otherwise,
>set the InteractiveObject.mouseEnabled properties of MovieClips for each
>state to false.
>_____
>Adam Pasztory wrote:
>> 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.
>
>Good luck,
>--
>Fumio Nonaka
>mailto:[EMAIL PROTECTED]
>http://www.FumioNonaka.com/
>My books<http://www.FumioNonaka.com/Books/index.html>
>Flash community<http://F-site.org/>
>_______________________________________________
>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



_______________________________________________
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