Welcome to TalkGraphics.com
Results 1 to 3 of 3

Thread: Script Help

  1. #1
    Join Date
    Aug 2000
    Location
    Dallas, TX USA
    Posts
    282

    Default

    I have this script which basically is this:

    if (getProperty (_parent, _currentframe)==1) {
    gotoAndStop(1);
    }

    But I want to have it check the variable(which could be any frame)-15 frames instead of check to see if it's at frame 1

    so I tried to put:
    if (getProperty (_parent, _currentframe)==current-15) {
    gotoAndStop(1);
    }

    However this doesn't work. I don't know if I'm getting the syntax right. The variable is "current"
    IP

  2. #2
    Join Date
    Aug 2000
    Location
    Dallas, TX USA
    Posts
    282

    Default

    I have this script which basically is this:

    if (getProperty (_parent, _currentframe)==1) {
    gotoAndStop(1);
    }

    But I want to have it check the variable(which could be any frame)-15 frames instead of check to see if it's at frame 1

    so I tried to put:
    if (getProperty (_parent, _currentframe)==current-15) {
    gotoAndStop(1);
    }

    However this doesn't work. I don't know if I'm getting the syntax right. The variable is "current"
    IP

  3. #3
    Join Date
    Aug 2000
    Location
    Toronto, Ontario, Canada
    Posts
    432

    Default

    have you made sure that the variable current is actually an integer? try doing a trace on the value of current and seeing that it's something valid.
    hth,
    Deep (just a guy)
    --
    Pradeep Kumar Nair, B.Math
    CTO
    9 Story Entertainment
    http://www.9story.com
    IP

 

 

Bookmarks

Posting Permissions

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