A Flash Developer Resource Site

Results 1 to 12 of 12

Thread: Why this code doesn't work

Threaded View

  1. #1
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244

    Why this code doesn't work

    I have the following in the first frame of a simple movie

    on ClipEvent (load) {
    this.createTextField("coords_txt", this.getNextHighestDepth(), 0, 0, 100, 22);
    coords_txt.autoSize = true;
    coords_txt.selectable = false;
    }
    on ClipEvent (mouseMove) {
    coords_txt.text = "X:"+_root._xmouse+",Y:"+_root._ymouse;
    }

    It doesn't work, I tired moving it to a second frame just in case that was the issue but it still doesn't work.

    I cannot get any on ClipEvents to work however I can if I assing them as functions

    This works:

    this.onLoad=function(){
    txt1.text="testing";
    }

    This Does not
    on ClipEvent(Load){
    txt1.text="Testing"
    }
    Last edited by blanius; 09-15-2005 at 09:48 AM.

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