A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Add time before window opens?

  1. #1
    Junior Member
    Join Date
    Aug 2002
    Location
    Phoenix, AZ
    Posts
    13

    Add time before window opens?

    I'm trying to figure out how to add a small pause between the press command and actually opening up a new window. There is a small animation that plays on press and it's always getting interupted by the new window. Any suggestions? Here's my script so far:


    on (press) {gotoAndPlay(62);}
    on (release) { getURL("http://www.xx.com", _blank");
    }

  2. #2
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,488
    Go to frame 62 on press. Put the getURL line at the last frame of the animation clip.

  3. #3
    Senior Member green_eye's Avatar
    Join Date
    Apr 2004
    Location
    Sarasota, Florida
    Posts
    1,496
    on (release) {
    gotoAndPlay(62);
    if(_currentframe==100) {
    getURL("wheretogo","_blank");
    }
    }

  4. #4
    Junior Member
    Join Date
    Aug 2002
    Location
    Phoenix, AZ
    Posts
    13
    Thanks! That works.

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