A Flash Developer Resource Site

Results 1 to 18 of 18

Thread: custom trace class ??

Threaded View

  1. #13
    Crazy Guy delfick's Avatar
    Join Date
    Feb 2004
    Location
    Best side of the best country (Western Australia)
    Posts
    165
    hmmm, it still doesn't want to connect to each other

    I have
    code:
    function mytrace (text)
    {
    var lc = new LocalConnection ();
    lc.send ('tracelog', 'text', text);
    }
    for (i = 0; i < 30; i++)
    {
    mytrace (i);
    }


    in the client.fla

    and
    code:

    this.createTextField("theText", 9, 10, 10, Stage.width-20, Stage.height-20);
    theText.border = true
    function mytrace (txt)
    {
    this.theText.text += txt + '\n';
    this.theText.text.scroll = this.thetext.text.maxscroll;
    }
    receiver = new LocalConnection ();
    receiver.text = function (txt)
    {
    mytrace (txt);
    };
    receiver.connect ('tracelog');



    in the reciever.fla

    .... and nothing ever happens...
    Last edited by delfick; 08-26-2007 at 08:59 PM.
    if you find some of my ideas weird, look at my avatar for the reason

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center