  | |  | Extending only certain MC class instances with params | Extending only certain MC class instances with params 2004-02-26 - By Mendelsohn, Michael
Back Hi list...
How does one go about extending a MC class to only certain MCs, with specific parameters for each?
There are 9 MCs within "theWorld", and they should each get these events below, but the onRelease event is different for all of them. Is there a way to do this?
Thanks, Michael M.
theWorld.the1.onRollOver = function () { if (gObj.pZoomState == "out") { gObj.mColorChange ("rollOver", this); } }; theWorld.the1.onRollOut = function () { if (gObj.pZoomState == "out") { gObj.mColorChange ("rollOut", this); } }; theWorld.the1.onPress = function () { if (gObj.pZoomState == "out") { gObj.mColorChange ("press", this); } }; theWorld.the1.onRelease = function () { if (gObj.pZoomState == "out") { gObj.mColorChange ("release", this); gObj.mZoomIn (-366, -834, 340, 1, "in"); } }; theWorld.the1.onReleaseOutside = function () { if (gObj.pZoomState == "out") { gObj.mColorChange ("releaseOutside", this); } };
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Supported by Fig Leaf Software =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Be sure to check the archives and the wiki: http://chattyfig.figleaf.com/ =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:105357 =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe send a blank e-mail to: Normal Mode: flashcoders-unsubscribe@(protected) Digest Mode: flashcoders-digest-unsubscrive@(protected)
Earn $52 per hosting referral at Lunarpages.
|
|
 |