Architecturally speaking, that's a bad idea. There's probably a strongly typed solution to what you're doing. Can you provide detail about what you need to accomplish so we can help you figure out a better solution?


On 6/7/2010 3:40 AM, Jim Andrews 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
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to