A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: multiple actions for mc's ???

  1. #1
    Senior Member
    Join Date
    Sep 2000
    Posts
    339
    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??

  2. #2
    Senior Member
    Join Date
    Jun 2000
    Posts
    911
    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.

  3. #3
    Stick In The Mud
    Join Date
    Oct 2000
    Posts
    752
    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

  4. #4
    Senior Member
    Join Date
    Jun 2000
    Posts
    911
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center