shotsy247
07-22-2008, 05:44 PM
Hi All,
How do I create a class that will accept a variable if I do not know the type?
For example, my class will perform some alterations to a Sprite or MovieClip, perhaps even a Shape. How can I write the class to accept these types such as:
public class MyClass{
public function MyClass(obj:???){
//Do stuff
}
}
Thanks.
_t
How do I create a class that will accept a variable if I do not know the type?
For example, my class will perform some alterations to a Sprite or MovieClip, perhaps even a Shape. How can I write the class to accept these types such as:
public class MyClass{
public function MyClass(obj:???){
//Do stuff
}
}
Thanks.
_t