Can anyone suggest why a condition would be false for a test on a movie
clip using instanceof MovieClip?

I have a function that includes the line:

if (graphicClip.highlighting instanceof MovieClip)
graphicClip.highlighting._visible = false;

If I precede the line with trace(typeof graphicClip.highlighting) I get
"movieclip" in the Output panel. Nevertheless, the instanceof condition
refuses to report correctly.

Obs: I realize that there are at least three additional ways to perform
the same check, but I'm just curious. I've never seen this happen before.


-
pixelTwiddler, a.k.a. Jason


_______________________________________________
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