A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Select more than one mc??

  1. #1
    Senior Member
    Join Date
    Sep 2000
    Posts
    339
    I an using the setProperty action for some MC's ..how do I out more than one in?? ie. movie1.movie2.movie3 do I use periods? or ; or , pls help

  2. #2
    President, save the
    New Zealand dollar foundation

    Join Date
    Jun 2000
    Posts
    1,743
    using dots means setting a target path, flash will assume movie 3 is nested in movie 2 which is nested in movie 1
    use a seperate line/action. (there must be a shortcut for this, maybe define a function and use that?)

  3. #3
    Senior Member
    Join Date
    Sep 2000
    Posts
    339
    well.. this is what I have now..
    Code:
    setProperty ("alieng", _visible, "0");
    setProperty ("alienb", _visible, "0");
    setProperty ("alienr", _visible, "0");
    setProperty ("alieno", _visible, "0");
    setProperty ("aliendb", _visible, "0");
    isnt there a way to make this just one long line? not a seperate action for each one??

  4. #4
    President, save the
    New Zealand dollar foundation

    Join Date
    Jun 2000
    Posts
    1,743
    yeah there's gotta be, have you tried:

    setProperty ("alieng", "alienb", "alienr", "alieno", "aliendb", _visible, "0");

    ??


  5. #5
    Senior Member
    Join Date
    Sep 2000
    Posts
    339
    I couldnt get that one to work?!?

  6. #6
    Senior Member
    Join Date
    Jun 2000
    Posts
    911

    Yep...

    Yall should start to use the new Flash 5 syntax. Not only is it easier to write but it makes things look less clumsy and more legible. And this will work:

    Code:
    alieng._visible = alienb._visible = alienr._visible = alieno._visible = aliendb._visible = 0;
    Much easier eh?

    Good luck.

  7. #7
    President, save the
    New Zealand dollar foundation

    Join Date
    Jun 2000
    Posts
    1,743
    I knew there would be a way, only had it for a week, what a remarkable upgrade (read quantum leap)
    Cheers ahab

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