Ask a Question related to Macromedia Director Lingo, Design and Development.
-
Chip_Ster webforumsuser@macromedia.com #1
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 can be clicked at random to access different topics. The problem I have is that I need to enable the enduser to click on the buttons in any random order, and have those buttons that have been clicked be grayed out and become inactive. Once ALL of the buttons have been clicked and the content displayed, the playhead needs to continue on to the next section. One of the areas where I need this is in a simple game. Once the game has been played I need to be able to reset the buttons if they choose to "Play Again".
Does anyone have a solution for this? If you need more clarification let me know.
Thanks
Chip_Ster 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 -----... -
Print a selection with a button?
I would like to print a section of a page with a button. Meaning I'd like the user to see a "Print" button on a table, click that button, then the... -
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... -
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. ... -
Button Selection
Hi Troy , It seems that IE assumes the button to be the default button. When you presss "Enter", the page will be sumbitted by this button. If... -
Andrew Kennedy #2
Re: Random Button Selection
Hey there,
is this what you mean:
[url]http://www.lingoprogrammer.co.uk/source_code/download/doClick.zip[/url]
Andy K
[url]http://www.lingoprogrammer.co.uk[/url]
"Chip_Ster" <webforumsuser@macromedia.com> wrote in message
news:blhmcc$jmv$1@forums.macromedia.com...This presentation has a couple of sections that have a number of buttons> I am creating a CDROM presentation using Director MX (Mac/PC delivery).
that can be clicked at random to access different topics. The problem I have
is that I need to enable the enduser to click on the buttons in any random
order, and have those buttons that have been clicked be grayed out and
become inactive. Once ALL of the buttons have been clicked and the content
displayed, the playhead needs to continue on to the next section. One of the
areas where I need this is in a simple game. Once the game has been played I
need to be able to reset the buttons if they choose to "Play Again".me know.>
> Does anyone have a solution for this? If you need more clarification let>
> Thanks
>
>
Andrew Kennedy Guest
-
hairybobby webforumsuser@macromedia.com #3
Re: Random Button Selection
well you could try this
property spn,counta
on exitframe me
spn=me.spritenum
counta=0
end
on mouseup me
counta=counta+1
if counta<2 then
--do what you want here
end if
end
and for the greying out you may add this
property spn,counta
on exitframe me
spn=me.spritenum
counta=0
end
on mouseup me
counta=counta+1
if counta<2 then
--do what you want here
else
sprite(spn).color=rgb(111,111,111)
end if
end
but thats totally untested code though
HAIRYBOBBY - why didn't I choose a really cool name like the vulcanpimp
[url]http://www.geocities.com/hairybobby2000[/url]
new vector shape behaviors here
[url]http://www.geocities.com/hairybobby2000/vertexhome.html[/url]
hairybobby webforumsuser@macromedia.com Guest
-
Chip_Ster webforumsuser@macromedia.com #4
Re: Random Button Selection
Thanks to both of you for your responses. I have not had time yet to try these scripts, although I have taken the time to download and save them. I will let you know when I get to them and if they work for me.
Thanks again
Chet P
Chip_Ster webforumsuser@macromedia.com Guest



Reply With Quote

