A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Need a NextFrame Stop

  1. #1
    Junior Member
    Join Date
    Feb 2007
    Posts
    4

    Need a NextFrame Stop

    I am utilizing a "prevFrameAndStop()" & a "nextFrameAndStop()" with a Forward & Back Button.

    I need a way to prevent the "on (press)" forward and backward button from:

    A. Going past the final frame

    B. Prevent the frame from being loaded again, once it has been loaded.

    As the example is,

    if you are at the final frame,
    if you hit the forward button,
    the nextframe sends it back to the previous frame,
    This action reinitiates that frame after it is already loaded,

    This looks slopply and messes up the function of going back to the first subject.

    Ideas:

    1. If else statement
    2. value statement

    I have uploaded a "SimpleNextFrameExample" that includes the problem situation.

    Also, I have uploaded a file called "PossibleSolution".

    Note: The problem with this solution is that I could not get Swishmax to see the "value" variable when I included the script in the forward & back button. It is probably a simple oversight on my part!

    If you could integrate the "PossibleSolution" into my "SimpleNextFrameExample", that would solve my issue.

    Or: if you have a differant idea, I am really interested in solving this issue in a way that gives me simple functionality

    ThanKs for Your Help,

    Fred
    Attached Files Attached Files

  2. #2
    Swisher Of The Year 2006
    Join Date
    May 2007
    Posts
    6
    you could use the if statement and stop(); function
    its nice to be important, but it is more important to be nice.

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