>>I ran into a particular situation where i had a function that >>took an Object as a parameter. I needed that Object to be an >>actual Object i.e. dynamic because the function was going to >>add properties to it. >>But since everything in ActionScript is an Object I had >>trouble enforcing this. >> >>Is there a way to check to see if an Object is dynamic? Or is >>there a way to enforce something as an Object rather than a >>subclass of in Object (which is everthing else)?
Why not have the object required to be an instance of a custom class instead of a generic object? You typecast the argument to be your custom class. i.e. import MyCustomClass; class myClass { private function myFunction (myCustomClass:MyCustomClass):void { } } Would that do what you want? Jason Merrill Bank of America GT&O L&LD Solutions Design & Development eTools & Multimedia Bank of America Flash Platform Developer Community _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders