What is this objects name in the array?!

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

  1. #1

    Default What is this objects name in the array?!

    I have this code sniplet..

    function dragalong() {
    this.startDrag();
    }

    function dropper() {
    this.stopDrag();
    }

    combo.onRollOver = function() {
    myCombo = attachMovie("Circle", "Circle"+i, i);
    trace ("Name = " + combo.name(1));
    addArray();
    myCombo._x = this._x;
    myCombo._y = this._y;
    myCombo.onPress = dragalong;
    myCombo.onRelease = dropper;
    i++;
    };combo.onRollOver = function() {

    Basically, from my understanding... This allows me to duplicate and drag the duplicated object.

    My question is, how can i later manipulate the parameters of the duplicate? or of duplicateX?

    I have tried refering to it as:
    myCombo.name
    Circle.name
    combo.name

    etc..

    What is the name of duplicateX?

    Thanks to all those who help.




    equinox007 webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. Array out of Objects
      Back in the old days of Flash, I was able to walk through all of the objects on the stage, and filter them by the type of object. I could then...
    2. How to search into an array of objects?
      Hi, Is there a way to find an item into a array of object without parse each object? Ex: var : myArray : Array = new Array( {label : "cup",...
    3. Array of objects copy
      I have an array of objects, lets call it 'myArrayofObjects' I need to copy the information from this array onto another array because it seems that...
    4. Custom objects in an array
      I have tried to store instances of a custom class in an array. When I retrieve the object actionScript seems to have forgotten what type of object...
    5. array of objects
      I currently have a number of buttons, which have image icons and when clicked, will display th associated image in a large viewing fram I would...
  3. #2

    Default Re: What is this objects name in the array?!

    Here i am answering my own question...

    after much research.... it is simply written as:

    Object._name <-- This is for retrieving the name

    To name it correctly, you need to alter the Symbols linkage to match the desired object name, and then you can write:

    myCombo = attachMovie("Combo", "Combo"+i, i);

    Where the text "Combo" is the name given to the symbols linkage..

    Hope this helps someone else next time...


    equinox007 webforumsuser@macromedia.com 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