A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Require visiting certain frames before moving forward?

  1. #1
    Member
    Join Date
    Mar 2006
    Posts
    66

    Require visiting certain frames before moving forward?

    I have a site where I want to restrict the user from moving forward unless they have visited certain pages. So if you visit page 1, 2, & 3, then a button appears that lets you move forward. I have this working using buttons.

    See Example:
    boolean.zip

    However what I need to have happen, is instead of having it check to see if you visited the page by clicking a button, I would like it to check if you visited a frame just be going to that frame. I am not sure how to do that. Does anyone have any ideas?

    Please help!

  2. #2
    Member
    Join Date
    Mar 2006
    Posts
    66
    Anyone have any ideas on how to do this?

  3. #3
    Ө_ө sleepy mod
    Join Date
    Mar 2003
    Location
    Oregon, USA
    Posts
    2,441
    You can set the booleans directly in your frames rather than in the onClick, then check call checkFramesVisited from wherever. If you want to go there directly - you can just have checkFramesVisited call the goto when all three conditions are true.

    So to get rid of the buttons you might use code in your frames something like this:

    PHP Code:
    f1 true;
    gotoAndStop(1);
    checkFramesVisited(); 
    Please use [php] or [code] tags, and mark your threads resolved 8)

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