to change all, use repeat
repeat with x = 2 to 20
sprite (x).visible = false
end repeat
-----Urspr�ngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im
Auftrag von Brian Farmer
Gesendet: Donnerstag, 28. Dezember 2000 17:20
An: [EMAIL PROTECTED]
Betreff: <lingo-l> Help with changing castmember
Hello list!
I am working on a project that the end user can choose several options.
(Doors) I was wondering how I can swap the current castmember for the one
they choose. Also, what if they want to change that castmember for another
one. I am confused!
On a slightly different problem....I have small alias images for several
buttons within my interface. What I am doing at this point is turning the
alias's on and off based on the button that is clicked. Great so far. But I
am wondering if there is a simpler way of doing it. Here is the code I am
using: sprite(1).visible = false
sprite(2).visible = false
sprite(3).visible = false
sprite(4).visible = false
sprite(5).visible = false
sprite(6).visible = false
sprite(7).visible = false
sprite(8).visible = false
sprite(9).visible = false
sprite(10).visible = false
sprite(11).visible = false
sprite(12).visible = false
sprite(13).visible = false
sprite(14).visible = false
sprite(15).visible = false
sprite(16).visible = false
sprite(17).visible = false
sprite(18).visible = false
sprite(19).visible = false
sprite(20).visible = false
Then I turn them on if the end user clicks on the button for that catagory.
If I do this: sprite(2,3,4,5,6,7,8,9,10).visible = false it will not work.
What am I doing wrong? Thanks everyone for all your help!
p.s. I am developing on a mac. This will be a shockwave piece.
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]