here's the code from another app:
// when the app initializes, instantiate the result object, then create the pointer:
responseObj = {};
// as2
responseObj. deviceHandler);
// as3
responseObj. // I believe this would work
private function deviceHandler(data:Array):Void
{
// returned array
}
I'll try it later tonight after the kids are asleep, but let me know if this worked
On 11/8/06, Dan Rossi
<[EMAIL PROTECTED]> wrote:
Interesting, thats awesome.
im assuming you did this for the netconnect aswell ?
SharedObject.defaultObjectEncoding = ObjectEncoding.AMF0;
I posted ages ago a helper class for netconnect which may be helpful dont know.
John Kirby wrote:I am almost done with a Flex 2 version of oflademo. I looked at the flash version (AS2) and I'm stuck on how to invoke the demoService getListOfAvailableFLVs to return the array?
This is what I'm trying with not result?
private function fetchVideos():void{
//res = new Responder(listResponder);
aResult = new Array();
trace("Making call");
SharedObject.defaultObjectEncoding = ObjectEncoding.AMF0;
/*
trace ("URI: " + nc.uri);
soVideoList = SharedObject.getRemote( "demoService.getListOfAvailableFLVs", nc.uri);
soVideoList.addEventListener( NetStatusEvent.NET_STATUS, netStatusHandler );
soVideoList.addEventListener( AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler );
soVideoList.addEventListener( SyncEvent.SYNC, sharedObjectSyncHandler );
soVideoList.client = this;
soVideoList.connect( nc );
soVideoList.send(aResult);
*/
nc.call("demoService.getListOfAvailableFLVs", null, aResult);
trace ("RESPONSE2: " + aResult.length);
}
As soon as this works I'll post. I 'm adding a proxy server configuration as well as a "auto sizing" video display to show wide HD format (does it automatically).
Thanks.
.j
--
Whether you think that you can, or that you can't, you are usually right.
- Henry Ford
_______________________________________________
Red5 mailing list
[email protected] http://osflash.org/mailman/listinfo/red5_osflash.org
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org
--
[ JPG ]
_______________________________________________ Red5 mailing list [email protected] http://osflash.org/mailman/listinfo/red5_osflash.org
