When the statement you put is processed the play head in the btn_play
instance is in the first frame, in which the over_mc instance does not
exist. This is what the error tells you. Therefore
InteractiveObject.mouseEnabled for over_mc cannot be set.
trace(btn_play.over_mc); // Output: null
The statement should be placed in the second frame of the btn_play, or
inside the over_mc itself.
_____
Jim Berkey wrote:
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()
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/>
_______________________________________________
[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