|
-
How can i put this :
Code:
setProperty ("alieng", _visible, "0");
setProperty ("alienb", _visible, "0");
setProperty ("alienr", _visible, "0");
setProperty ("alieno", _visible, "0");
setProperty ("aliendb", _visible, "0");
all into one line??
-
Something like this:
Code:
alieng._visible = alienb._visible = alienr._visible = alieno._visible = aliendb._visible = 0;
Ive never tried that (Ive never had to) but it should work.
Good luck.
-
You could have a string array eg. end(g,b,r,o,db)
then a loop with i=0-4
setProperty("alien"+end(i),_visible,"0");
it wouldn't be one line but it would look nicer 
-
SubKloda,
What is wrong with the line I posted? I know that it works and it is only one line.
[Edited by ahab on 10-23-2000 at 08:59 PM]
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
|