A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Any thoughts?

  1. #1
    Junior Member
    Join Date
    Aug 2008
    Posts
    10

    Any thoughts?

    Hello Everyone!

    Here is what I plan on working with...

    I will have an 8 week e-learning course, and it will have a total of 8 frames. (a page for each week.) What I want to do is limit how far a student can navigate through the swf.
    So for example...
    Week 1 they can view only frame 1. Week 2, they can view both frame 1 and 2. Week 3 they can view frames 1 through 3, and so on..

    Any thoughts or ideas how i might execute something like this? Thanks a lot for the help in advance!

    some possible ideas...

    - providing student with a link each week, and when visited, it somehow updates viewing privileges.
    - Break swf into 8 separate files and uploading a new version each week

  2. #2
    Ryan Thomson EvolveDesigns's Avatar
    Join Date
    Oct 2001
    Location
    British Columbia
    Posts
    3,338
    Here I wrote you a little code using the date function.

    PHP Code:
    var theDate:Date = new Date();
    var 
    monthsArray:Array = new Array("january","february","march","april","may","june","july","august","september","october","november","december");
    var 
    month:String monthsArray[theDate.getMonth()];
    var 
    day:Number theDate.getDate();
    trace(month " " day);

    if(
    month == "november" && day <= 20){
        
    //do something

    I added the if statement to the end to give you an idea of how to use it. If it's earlier than November 20th do something. In your case you could disable a button depending on date to control what the user can access! Just a thought..

    good luck and enjoy!
    Evolve Designs Interactive Media
    the natural selection

  3. #3
    Junior Member
    Join Date
    Aug 2008
    Posts
    10
    Hey Ryan thanks a lot for the help man! I'm gonna give this a shot!

  4. #4
    Junior Member
    Join Date
    Aug 2008
    Posts
    10
    If anyone else happens to have any suggestions or potential methods on how they might possibly go about something like this, i would greatly appreciate any of your comments! Thanks again!

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