hi,
I'm trying to create a simple sample thumbnail panel with movieclips, which
i'll later modify, but there seems to be something wrong in the code
code:
//
for (var i:Number = 0; i<10; i++) {
var t = attachMovie("box", "box"+i, i+1);
var Xspacing:Number = 20;
var Xreset:Number = 0;
var Yspacing:Number = 20;
var counter:Number = 1;
t._x += (t._width+Xspacing)*i;
if (t._x>400) {
//counter++;
t._y = (t._height+Yspacing);
t._x = Xreset;
t._x += (t._width+Xspacing)*(counter);
} else {
//counter++;
}
}
//end code
I'm trying to create several rows, but seem to be failing to do so, is this
a conditional logic error?
thanks for any help
Ben
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com