public function x(y:* = null):void { }
-----Original Message----- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Jim Andrews Sent: maandag 7 juni 2010 12:41 To: Flash Coders List Subject: [Flashcoders] problem with strongly typed actionscript 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 Geen virus gevonden in het binnenkomende-bericht. Gecontroleerd door AVG - www.avg.com Versie: 9.0.829 / Virusdatabase: 271.1.1/2922 - datum van uitgifte: 06/06/10 20:35:00 _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders