# I've problems about flash sketchpad

**URL:** <https://forum.kirupa.com/t/ive-problems-about-flash-sketchpad/263849>\
**Category:** Uncategorized\
**Created:** [June 19, 2008, 5:51pm UTC](https://forum.kirupa.com/t/ive-problems-about-flash-sketchpad/263849 "2008-06-19T17:51:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![watachign](https://avatars.discourse-cdn.com/v4/letter/w/8e8cbc/32.png) [@watachign](https://forum.kirupa.com/u/watachign)\
**Post date:** [June 19, 2008, 5:51pm UTC](https://forum.kirupa.com/t/ive-problems-about-flash-sketchpad/263849/1 "2008-06-19T17:51:11Z")

</div>

I’m just start to do flash sketchpad and I’ve problems about store data in array.:crying:

in head script I’m coding.

* * *

## var pixelData:Array=new Array();

and store data in function

\_root.onMouseMove=function(){  
pixelData.push({lineThickness:lineThickness,lineColor:selectedColor,x1:x1,y1:y1});  
}

* * *

and when click replay button I need to replay everthing I draw,but data in array is clear away and I don’t know why? ☹

* * *

and if I’ve data in array,can I replay it by code below? :ponder:

createEmptyMovieClip(“Line”,1);  
for(i=0;i\<pixelData.length;i++)  
{  
lineThickness=pixelData\*.lineThickness;  
selectedColor=pixelData\*.lineColor;  
x1=pixelData\*.x1;  
y1=pixelData\*.y1;  
Line.getNextHighestDepth();  
Line.lineStyle(lineThickness,selectedColor);  
Line.moveTo(x1,y1);  
Line.lineTo(x1,y1);  
}  
-------------------------------------[I use AS2]-------------------------------------

please tell me 😏 , thanks for you advance.
