# ?accesing bitmap properties in a MC in a 2D Matrix?

**URL:** <https://forum.kirupa.com/t/accesing-bitmap-properties-in-a-mc-in-a-2d-matrix/288869>\
**Category:** flash\
**Created:** [May 22, 2009, 3:06am UTC](https://forum.kirupa.com/t/accesing-bitmap-properties-in-a-mc-in-a-2d-matrix/288869 "2009-05-22T03:06:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shaedo](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@Shaedo](https://forum.kirupa.com/u/Shaedo)\
**Post date:** [May 22, 2009, 3:06am UTC](https://forum.kirupa.com/t/accesing-bitmap-properties-in-a-mc-in-a-2d-matrix/288869/1 "2009-05-22T03:06:12Z")

</div>

I have loaded an external .jpg (so its now bitmap object)  
this has been added as a child to a MC.  
The MC is in a 2D matrix (array in a array)

How can I access the bitmap/loaded .jpg to, say, change its width ?

**Thanks For taking the time to consider my query!!**

so I want to:

_Array1[0][2]. **childAt0**.width = 333;_

…but what do I change the _childAt0_ to ?

To put it another way, the structure is like this:

_Array1[0] = Array2_  
_Array2[0] = containerMC_  
_containerMC ‘child at 0’ = myLoadedBitmapObject._

The pertinant code is below but its out of a very large file so It might not make much sense in the isolated context :

```auto
function loadKanaImages():void
 {
  var image_url = kanaImages[imageCount].@IMAGE;;
  var image_loader = new Loader();
  [COLOR=red]image_loader.load(new URLRequest(image_url));[/COLOR]
  imageCount +=1;
  [COLOR=red]image_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, **imageLoaded** [/COLOR]);
 }
 function **[COLOR=red]imageLoaded(e[/COLOR]**:Event):void
 {
    var tempArray:Array = new Array;
    totalArray.push(tempArray);
    **[COLOR=red]var tempMC:MovieClip = new MovieClip;[/COLOR]**
    tempMC.buttonMode = true;
    e.target.loader.content.width = 55;
    e.target.loader.content.height = 55;
    **[COLOR=red]tempMC.addChild(e.target.loader.content);[/COLOR]**
    totalArray[totalArray.length-1][0] = totalArray.length-1;
    totalArray[totalArray.length-1][1] = kanaImages[totalArray.length- 1].@PRONUNCIATION;
    **[COLOR=red]totalArray[totalArray.length-1][2] = tempMC.[/COLOR]**// e.target.loader.content;
    totalArray[totalArray.length-1][3] = kanaImages[totalArray.length-1].@ROW;
    totalArray[totalArray.length-1][4] = kanaImages[totalArray.length-1].@COLUMN;
 
  if(totalArray.length == kanaLength)
  {
     displayArray(totalArray);
  }
  else
  {
     loadKanaImages();
  }
 }

```
