th03pson
09-11-2009, 05:31 PM
Hi,
I have an event handler for mouse clicks which I'd like to only process the event if the target is a specific type of class. For this, I'm executing flash.utils.getQualifiedClassName on the event target.
For some reason though, flash.utils.getQualifiedClassName always evaluates to an error (No such variable: getQualifiedClassName). There's no compile-time error and in run-time the error is interpreted to false.
What am I missing?!
private function mouseClicked(e:Event):void
{
// if the mouse was double clicked on a TextBox component
if ((flash.utils.getQualifiedClassName(e.target)) == "com.ernrg.data::TextBox")
{
// process mouse click
// etc....
}
}
Thanks!
I have an event handler for mouse clicks which I'd like to only process the event if the target is a specific type of class. For this, I'm executing flash.utils.getQualifiedClassName on the event target.
For some reason though, flash.utils.getQualifiedClassName always evaluates to an error (No such variable: getQualifiedClassName). There's no compile-time error and in run-time the error is interpreted to false.
What am I missing?!
private function mouseClicked(e:Event):void
{
// if the mouse was double clicked on a TextBox component
if ((flash.utils.getQualifiedClassName(e.target)) == "com.ernrg.data::TextBox")
{
// process mouse click
// etc....
}
}
Thanks!