Search

Archive for April 27th, 2007

Dynamic Casting and * in ActionScript 3

Posted by Nate Chatellier on April 27th, 2007

This discussion is necessary in order to continue with our network programming lessons.
Casting (converting one variable type to another) in ActionScript 3 is very easy. The following code casts a uint as a String:
PLAIN TEXT
Actionscript:

var  nNum:uint = 5;

var  sNum:String = String(nNum);

But what if you don't know what the variable should be cast as? For [...]