Oh I forgot to actually return any value from my console bridge object
    override function makeObjectLink (rep:String, id, attrs=null):String {
      trace(' console bridge makeObjectLink', rep, id, attrs);
       this.window.makeObjectLink(rep,id,attrs);
    }



On Wed, Sep 17, 2008 at 5:53 PM, Henry Minsky <[EMAIL PROTECTED]>wrote:

> I typed 'canvas' into the window debugger in swf9, and I get a blank line
> echoed back,. I put the following
> tracing into LzDebugMessage.toArray, and it shows the string going in, but
> empty string and undefined coming out
> of the calls to "toHTML", which are being called on strings. Maybe the
> 'toHTML' method does not work on
> these strings that are the output of substring()?
>
>
>   function toArray (linkMaker=null):Array {
>     if (linkMaker == null) {
>       linkMaker = function (rep, id) {return Debug.ObjectForID(id);}
>     }
>     var msg = this.message;
>     var base = 0;
>     var limit = msg.length;
>     var start = 0;
>     var end = 0;
>     var objs = this.objects;
>     var id;
>     var array = [];
>     var len = objs.length;
>     for (var i = 0; i < len; i++) {
>       var annot = objs[i];
>       start = annot.start;
>       end = annot.end;
>       id = annot.id;
>       trace('[1] toArray calling  linkMaker ', (msg.substring(base,end)));
>       array.push(msg.substring(base, start)['toHTML']());
>       trace('[1.1] len ', array.length, '=', array[0]);
>       trace('[2] toArray calling  linkMaker ', (msg.substring(start,end)));
>       array.push(linkMaker((msg.substring(start,end))['toHTML'](), id));
>       trace('[2.1]', array.length, '=', array[1]);
>       base = end;
>     }
>     array.push(msg.substring(base, limit)['toHTML']());
>     return array;
>   }
>
>
>
> [trace]  addText Ç<canvas>#0| This is the canvasÈ
> [trace] [1] toArray calling  linkMaker  Ç<canvas>#0| This is the canvasÈ
> [trace] [1.1] len  1 =
> [trace] [2] toArray calling  linkMaker  Ç<canvas>#0| This is the canvasÈ
> [trace]  makeObjectLink Ç&lt;canvas&gt;#0| This is the canvasÈ
> [trace] [2.1] 2 = undefined
> [trace]  addText
>
> --
> Henry Minsky
> Software Architect
> [EMAIL PROTECTED]
>
>
>


-- 
Henry Minsky
Software Architect
[EMAIL PROTECTED]

Reply via email to