A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Some newbie actionscript help.

  1. #1
    Junior Member
    Join Date
    Apr 2004
    Posts
    8

    Some newbie actionscript help.

    I'm using This tutorial. It says to put This code in my movieclip
    Code:
    onClipEvent (mouseMove) {
     xmousepos1 = _xmouse;
     ymousepos1 = _ymouse;
     if (xmousepos1>xmousepos2 && ymousepos1>-98 && ymousepos1<-33) {
     _root.scrollclip.nextFrame();
     }
     if (xmousepos1-98 && ymousepos1<-33) {
     _root.scrollclip.prevFrame();
     }
     if (ymousepos1<-98 || ymousepos1>-33) {
     play ();
     }
     xmousepos2 = _xmouse;
     ymousepos2 = _ymouse;
    }

    On the last page of the tutorial, it goes into those 2 numbers, and that I will have to change them based on my creation. So... I left them alone and tried it out, it's not working. I checked the comments on it as well, but they don't say anything about those numbers. What do they mean? How can I get mine to work? I'm using images as well, but my canvas is differnt size.. I think that may be the problem. My canvas is 2645 x 170 px.


    Any help will be GREATLY apprecitated. Thank you very much,
    Matt

  2. #2
    Senior Member
    Join Date
    Apr 2001
    Posts
    316
    on line 7 of your code you forgot to add the '>'
    it reads

    if (xmousepos1-98 && ymousepos1<-33) {

    between xmousepos1 and -98 there should be a symbol

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