Hey,
I am having a gird issue that I can't seem to find or fix.
I think it is a modulus problem, but would love to hear
some positive responses. If you can look at it and know the
solution I don't need a coded answer. Just tell me what it
looks like.
Thanks
Paul.
the grid looks like this:
* * * * * * * * *
* * * * * * * * *
* * * * * * * * *
* * * * * * * * *
* * * * * * * * *
* * * * * * * * *
* * * * * * * * *
* * * * * * * * *
* * * * * * * * *
* * * * * * * * *
* * * * * * * * *
* * * * * * * * *
* * * * * * * * *
* * * * * * * * *
So it is broke at some point. I am still working on it, but
finally decided to ask for someone else to straighten out
the prob. Sorry I know it is a pain in the ass to read code
but I canm't reduce it further really, but I will try.
Here is the code:
//function attaches movie clip 126 versions of clip instance
named grid1-grid126
function loadSquares() {
for (i=1; i<127; i++) {
attachMovie("grid", "grid"+i, 10+i);
gridTemp = eval("grid"+i);
placeSquares(gridTemp, i); // passes to copy of the
instance , and the current number of i
}
}
// function places grid instances. modulus checks for
column complete - total columns 14 rows 9.
function placeSquares(square, num) {
if (num%14 == 0) {
xPlus += 86; // width between coloumn placements.
yNum += 14; // multiplier for Y placement. initial
value set to (nil) 0
}
yPlus = ((num-yNum)*(36));
square._x = 42+xPlus; // initial value away
from edge + column width increment. (every 14 objects
square._y = 31+yPlus; // initial value away
from edge + row height increment.
square._alpha = 100;
}
_______________________________________________
Flashnewbie chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashnewb
ie
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.c
om
|