maase
08-15-2005, 12:46 PM
Hello.
I'm having problems running this simple script in Flashplayer v.7.
Is there anyone who can tell me why??
All feedback is appreciated!
Thanx,
Marie
Here is the code:
xMax = 6;
yMax = 6;
xDist = 30;
yDist = 30;
xCenter = Stage.width/5;
yCenter = Stage.height/5;
for (y=0; y<yMax; y++) {
for (x=0; x<xMax; x++) {
clip = attachMovie("box", "b"+i, i++);
clip._x = (x-(xMax-1)/2)*xDist+xCenter;
clip._y = (y-(yMax-1)/2)*yDist+yCenter;
//assign additional properties here
clip._rotation = x*10;
clip._rotation = y*10;
clip._rotation = i*10;
}
}
I'm having problems running this simple script in Flashplayer v.7.
Is there anyone who can tell me why??
All feedback is appreciated!
Thanx,
Marie
Here is the code:
xMax = 6;
yMax = 6;
xDist = 30;
yDist = 30;
xCenter = Stage.width/5;
yCenter = Stage.height/5;
for (y=0; y<yMax; y++) {
for (x=0; x<xMax; x++) {
clip = attachMovie("box", "b"+i, i++);
clip._x = (x-(xMax-1)/2)*xDist+xCenter;
clip._y = (y-(yMax-1)/2)*yDist+yCenter;
//assign additional properties here
clip._rotation = x*10;
clip._rotation = y*10;
clip._rotation = i*10;
}
}