removing picture in gallery
Hello,
I wanted to remove the pictures that I loaded before moving to another frame.
I have a movieclip that when click call function moveW()
The function work if I didn't add the command to change frame, but when I add command to change frame the function move to different frame before removing the pics. Does anyone know how I can fix this?
Thanks,
this is the function:
function moveW(event:MouseEvent)
{
var i:int = 0;
for (i=0; i<=count; i++)
{
scene.removeChild(arr);
}
arr=[];
count=0;
gotoAndStop(2);
}