have i ever said that i hate the flash IDE? Well.. i do
Ive read that the Flash IDE crashes in debug mode when using traces in FOR
IN loops where the object is empty.
Leif, do first a check WHAT is comming in when your not using tt().
nc.onResult = function(objIn) {
if (objIn==undefined) trace("object is empty");
trace("the type is: "+typeof(objIn));
//CRASH RIGHT HERE WITH objIn
for(var i in objIn){
trace(i+" = "+objIn[i]);
}
//
}
hope that helps
On Thu, 08 Jun 2006 22:41:29 +0200, Leif Wells <[EMAIL PROTECTED]>
wrote:
> Thanks, Jake, for your quick response.
>
> As you can see from my simple client-side code below, the crash occurs
> whenever I try looking at the returned object.
>
> I am either doing something wrong in setting up my Red5 application or I
> there is some configuration in Flash I am missing. Or I am trying to use
> features that are not implemented. This is my first attempt at creating a
> Red5 application, so I am trying anything to get it to work.
>
> Leif
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> //CLIENT-SIDE CODE
> nc = new NetConnection();
> nc.connect("rtmp://localhost/lecture");
> nc.onStatus = function(obj){
> trace(obj.code);
> }
> nc.onResult = function(objIn) {
> //CRASH RIGHT HERE WITH objIn
> for(var i in objIn){
> trace(i+" = "+objIn[i]);
> }
> //
> }
> nc.call("getTeachers", nc, "blah", "blah");
>
> stop();
>
>
>
>>
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org