A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Actions problem

  1. #1
    Junior Member
    Join Date
    Mar 2003

    Actions problem

    I'm looking for a simple solution to a problem I've encountered.

    I need the ability to have two "press, release" actions in the same scene with different results. The first one would open a new window with a new picture, the second one would resume "play" on the movie in the original window.

    Is this possible?

    Thanks much in advance!


  2. #2
    The Nutty Me
    Join Date
    Nov 2002
    Yes u can have one or more action on click of a button

  3. #3
    Senior Member catbert303's Avatar
    Join Date
    Aug 2001
    this would toggle the buttons actions between opening a new window and playing the movie,

    on (release) {
    ++count; // add 1 to a variable,
    if (count % 2) { // check if the variable is odd or even, if it is odd,
    _root.stop(); // stop the movie and open a window
    getURL("javascript:window.open('filename.html','ne wWin','width=400,height=400');void(0);");
    } else { // otherwise it must be even, resume playing the movie

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