I want to do somthing like this:
function createObject(evt:Event):void
{
var myMaskingObject:evt.target = new evt.target;
}
This of course throws an errror 1046: Type was not found or was not a compile-time constant: target.
I want to use this in a class that creates masks of shapes.
I think a possible solution might be in getting the evt.target as a string and then initialising an object from that…
Absolutely any suggestions are welcome!
Thanks.