Postby tmillhouse@gmail.com » Sat Jul 05, 2008 5:59 pm
Well I know that it is instantiating the hwnd to some extent since it is not null after calling FPC_CreateWindow;however, why would there be an error afterwards? It leads me to believe that there is still something wrong with the initialization of the hwnd.
When I call loadMovie, there is no error code, but I'm certain that it is not loading properly b/c of the .swf's initialization code. When the .swf loads, it should call my AIR file. Here is my .swf file code:
import flash.external.*;
// prepare the sending connection ---
_sendConn = new LocalConnection();
_sendConn.allowDomain('*');
_sendConn.send('connA', 'methodToCalll', 'this is a test message to test initialization');
ExternalInterface.addCallback("sendURL", this, sendURL);
function sendURL(url:String):void{
_sendConn.send('connA', 'processUrl', url);
}
As you can see, upon initialization, the .swf should execute the _sendConn.send('connA', 'methodToCalll', 'this is a test message to test initialization');