- If you are using the examples to base your derived classes from, don't forget to modify lines such as:
import org.puremvc.as3.utilities.flex.config.interfaces.IConfigVO;
toimport org.puremvc.as3.multicore.utilities.flex.config.interfaces.IConfigVO;
- I had to modify the code in the MyAppConfigProxy.as to have a contructor that accepts a parameter, and then calls it's parent constructor:
public class MyAppConfigProxy extends ConfigProxy
{
public function MyAppConfigProxy( configURL:String ){
super (configURL)
}
override protected function constructVO():IConfigVO
{
return new MyAppConfigVO();
}
}
I did this because the constructor for ConfigProxy requires a parameter, and I was getting and error if I tried to create my child class without passing a parameter when I was creating it.
Finally, in my StartupCommand class, I create my derived configProxy by passing it the url of my config file:
var configProxy:AppConfigProxy = new AppConfigProxy("config/config.xml");
Thanks again Cliff for you help!
~Josh.