A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Images move across not up and down

  1. #1
    Member
    Join Date
    Jan 2004
    Posts
    51

    Images move across not up and down

    Here is my actionscript below the .fla can be found at this link:www.geocities.com/edwickes/flashscrollbar1.fla
    The porblem is that the images scroll accross and not up and down.
    Thanks a lot for any help

    onClipEvent (load) {
    movespeed = 5;
    }
    onClipEvent (enterFrame) {
    if (Key.isDown(Key.RIGHT)) {
    this._x -= movespeed;
    if (this._x<=-521.4) {
    setProperty("_root.scroll", _x, -521.4);
    }
    } else if (Key.isDown(Key.LEFT)) {
    this._x += movespeed;
    if (this._x>=97) {
    setProperty("_root.scroll", _x, 97);
    }
    }
    }

  2. #2
    Senior Member
    Join Date
    Oct 2003
    Posts
    901
    change all _x to _y

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