# Problems with BitmapData Online

**URL:** <https://forum.kirupa.com/t/problems-with-bitmapdata-online/327203>\
**Category:** flash\
**Created:** [February 12, 2012, 9:41pm UTC](https://forum.kirupa.com/t/problems-with-bitmapdata-online/327203 "2012-02-12T21:41:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kocinski](https://avatars.discourse-cdn.com/v4/letter/k/45deac/32.png) [@Kocinski](https://forum.kirupa.com/u/Kocinski)\
**Post date:** [February 12, 2012, 9:41pm UTC](https://forum.kirupa.com/t/problems-with-bitmapdata-online/327203/1 "2012-02-12T21:41:36Z")

</div>

Hello!

I just published my new web site. Everything works fine, but one thing… In one swf, that loads on the page, I have a problem with these few lines:

[COLOR=#000000][FONT=verdana]for (var u:int = 0; u \< photoArray.length;u++) {[/FONT][/COLOR]

[COLOR=#000000][FONT=verdana]var rawImage:BitmapData = Bitmap(photoArray[u]).bitmapData;[/FONT][/COLOR]  
[COLOR=#000000][FONT=verdana]imageArray.push(rawImage);[/FONT][/COLOR]

[COLOR=#000000][FONT=verdana]}

while everything works fine locally, on the server these few lines cause the problem and everything stops… I have all the photos from photoArray loaded entirely (eventListeners), do I need also an eventListener to change bitmap into bitmapData, beacuse this could be the issue? Did anyone had similar problems?

Please help!  
[/FONT][/COLOR]
