public function x(y:Object):void { }
or public function x(y:*):void { } hth jc On Mon, Jun 7, 2010 at 12:40 PM, Jim Andrews <j...@vispo.com> wrote: > i want to write a method x which takes an argument y. i cannot anticipate > what type the argument is going to be until run-time. it might be a number > or a string or an array or who knows what? > > but i am not sure how to do this in actionscript because it is strongly > typed. normally what is done is > > public function x(y:String):void > { > > } > > but this won't do because y is limited to being of type String, whereas in > the method i want to write, the type of y is not known until run-time. > > how do i do this in actionscript? > > ja? > http://vispo.com > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders