Ask a Question related to Macromedia Director Basics, Design and Development.
-
Kibson webforumsuser@macromedia.com #1
Random frame selection?
I have just started using Director, so this is probably a simple/stupid question.
Anyway, I am doing a short story in which the user can interact at some points, and choose what will happen next from a few alternatives.
At one point, I want the next part to be chosen, randomly, from two or three different alternatives. I have created the story up to that part, and the two possible continuations which also have been marked/named. But I cant figure out how I should do to make the random part. It could be done either through the user clicking on a button, or preferably by itself.
Any help is appreciated!
Kibson webforumsuser@macromedia.com Guest
-
Random selection
Hi You can use "select distinct names from table_name order by rand() limit 3". Hope this helps and let me know. cheers Binay -----... -
Random frame jump
Hi I'd like the user to be able to click on a button and be taken to a random frame. There is a similar question on this notice board, but I can't... -
Random Button Selection
I am creating a CDROM presentation using Director MX (Mac/PC delivery). This presentation has a couple of sections that have a number of buttons that... -
go to random frame?
Something like this should work: Place this script in the button member script on mouseup aFrameList = -- Put all of your... -
Disconected Recordset & Random Selection
Hello All, How would I go about using a disconnect recordset and select (x) records from it, x being the number of records to be selected. ... -
JB #2
Re: Random frame selection?
Here's the code to go to one of a list of marker names
on randonEnd
optionalMarkers = ["happyEnd", SadEnd", "CliffHanger"]
go to optionalMarkers[random( count(optionalMarkers))]
end
JB Guest



Reply With Quote

