Flash tease - having a button take the user to a random page

Post all technical issues and questions here. We'll gladly help you wherever we can.
Post Reply
eteased
Explorer At Heart
Explorer At Heart
Posts: 171
Joined: Sat May 26, 2007 4:09 pm
Contact:

Flash tease - having a button take the user to a random page

Post by eteased »

Question for those of you who are good at writing scripts for the flash-based teases... Is it possible to make a button go to a random page? For example, suppose I wanted to show the user 2 buttons:
A -> Takes the user to a random page between page2 and page7
B -> Takes the user to page8

I'd like to do something like:
buttons(range(2,7,'page'), "A", page8#, "B")

but I tested that and it didn't work. I suppose I could make the A button go to a fixed page (e.g., page9) and then have that page automatically jump to a random page, but I'd prefer to avoid that approach.

Any help would be appreciated. Sorry if this info has been posted elsewhere. I searched a bit and didn't find anything, though.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests