Hi all,
I need some help about using external classes to the framework:
I have a helper class that I use to connect to the database with amfphp 1.9. I need to retrieve a proxy property within that class. I import the following classes:
import org.puremvc.as3.interfaces.IProxy;
import org.puremvc.as3.patterns.proxy.Proxy;
import org.puremvc.as3.patterns.facade.*;
import com.xyz.project.ApplicationFacade;
import com.xyz.project.model.ConfProxy;
and within the class I call the proxy:
private var _confProxy:ConfProxy;
public function amfWrapper():void {
_confProxy = facade.retrieveProxy( ConfProxy.NAME ) as ConfProxy;
gatewayURL = _confProxy.amfphp_gateway;
}
As the helper class is not a proxy, the facade is not implemented and I have the following error:
1120: Access of undefined property facade
What is the right way to retrieve proxy or mediator properties within an external class?
Many thanks for your help...