Sunday, December 18, 2011

Working answer...


So after much thought I built a stupid answer... I still want to thank everyone who tried to help my brain farting ideas.


package otherlib.eventsystem {
import otherlib.core.*;
import otherlib.data.*;

public class classreturn {

public static function creturn(cst:String):Object {
var Definition;
if(cst == "GameData") {
Definition = GameData;
}
else if(cst == "GameQuest") {
Definition = GameQuests;
}
else {
Definition = null;
}
return Definition;
}
}
}

I hope that makes sense to everyone by doing it as a class I can re-use the code for the replacement system and the event system.

Daisy

No comments:

Post a Comment