Hi,
I have a method that can set a variable to various types of class depending on the outcome of a if statement.
But as its an unknown what class the variable will be set to before running the method I dont know what type I could set the variable too?
This is my code....
Actionscript Code:
private var displayRender
private function setdisplayRender() {
if (recievedAddData.type == "swf") {
displayRender = new swfDisplay(null, troot, ssModel);
}else if (recievedAddData.type == "img") {
displayRender = new imgDisplay(null, troot, ssModel);
}else if (recievedAddData.type == "flv") {
displayRender = new videoDisplay(null, troot, ssModel);
}
}
Basically what variable type Could I set displayRender to?
Thanks
Aidan