Mailing List
Home
Forum Home
Flash Pro
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
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.