most of my controls have a property $typeof which is accessable by using the instance._typeof property call. however; i am curious if i can change the actual return value of typeof()
so instead of typeof(obj) == "movieclip" it would be typeof(obj)=="com.echo.something";
also, is there any programatic way of asking a MC what it's "Export Indentifier" is? if i could to that then the $typeof property could update itself, that would be nice.
-E
There's nothing that will automatically do that for you. You would have to store that as a property of your classes (which is how the V2 component architecture handles it)
yes, that's what i am doing already. i was just thinking/hoping there was some hidden feature (like ASSetPropFlag) that isn't documented but there for the using.
thanks
-E
~Bump
~Bump
typeof is an operator so you can't change what it returns as far as I know. Look into the instanceof operator.
no, instance of will only give me back the classConstructor which means i would have to ask it spacific object types.
i was really hoping for something that would tell me exactly what the class line says
e.g.
class Com.Controls.ComboBox extends MovieClip {...}
trace(linkid(d)); // Com.Controls.ComboBox
Challenging Books For A 14 Year Old?
First guitar : acoustic or electric?
|