AS2 help: manipulate properties of multiple items

Ask a Question related to Macromedia Flash Actionscript, Design and Development.

  1. #1

    Default AS2 help: manipulate properties of multiple items

    The mission: create multiple MCs (see the attachment) of a library item (a
    ball) that is linked with a class. At runtime, if user presses "q", ALL
    INSTANCES of that ball get bigger; instances get smaller, if user presses "a"

    How did i try to solve it: with a for loop i cycle through all the instances
    and call an instance method to scale the balls

    The question: is there any way of doing this without the loop?? What can i do
    to make this process less CPU consuming? Too bad, flash doesen't let (static)
    class methods to acces instance properties

    Need help!!
    Thank you



    marko_as Guest

  2. Similar Questions and Discussions

    1. #40402 [Opn->Bgs]: manipulate private and protected properties
      ID: 40402 Updated by: tony2001@php.net Reported By: jpieper at intergenia dot de -Status: Open +Status: ...
    2. #40402 [NEW]: manipulate private and protected properties
      From: jpieper at intergenia dot de Operating system: Irrelevant PHP version: 5.2.1RC4 PHP Bug Type: Class/Object related Bug...
    3. add multiple items to cart
      hi all, my detail pg consists of ingredients to a recipe. a repeat region behaviour is added to my table of ingredients. i need to add all the...
    4. Delete Multiple items with checkboxes
      Hello all, I'm sorry for posting this because you probably answered this question a million times, but i didn't got my script to run yet. I'm...
    5. changing attributes on multiple items at once
      I know MX11 has changed a bunch of stuff...I haven't been using it much lately, but now want to draw some illustrations. I'm finding that I can't...
  3. #2

    Default Re: AS2 help: manipulate properties of multiple items

    once all your objects are instantiated flash will need to manipulate each one
    individually which is cpu intensive. if your objects are not instantiated,
    then you can do manipulation and have that reflected in each instance without
    repeated manipulations

    kglad Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139