|
-
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
-
Ryan Thomson
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!
-
Hey Ryan thanks a lot for the help man! I'm gonna give this a shot!
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|