Ben,
One problem I see with the code right away is this. You are only going to
run your second level thumb nails though that if statement when the previous
thumb>_x is > 400 That means after placing the first thumb on the second
row, your if(){ code } doesn't get read. I would have a look at that.
Maybe put in a mini if(t._x>400) { levelCount +=1;}; And then use your
t._y var with a multiplier using levelCount.
Understand. I am taking a five minute break. I will come back and try to
write some of that idea out for you.
Vdst.
----- Original Message -----
From: "ben deroo" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <[email protected]>
Sent: Monday, June 04, 2007 7:38 PM
Subject: [Flashcoders] thumbnail panel
> 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
>
>
_______________________________________________
[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