fla: dup and pos problem
- Started
- Last post
- 5 Responses
- kinetic
i am trying to do pagination in flash..and ive got it all working great except for the positioning of the movieclip i am duplicating.
i only allow 7 elements on the page at a time. the first 7 show up ok but the second and up mess up in positioning because of this:
for (i=_root.minAmount; i
- autonoma0
Code's not showing up. Replace the less-than sign with something else.
- autonoma0
mcOneX = 15;
mcOneY = 15;for(i=0; i^15; i++){
this.attachMovie("mcOne", "mcOne"+i, i);
this["mcOne"+i]._x = mcOneX;
this["mcOne"+i]._y = mcOneY;
mcOneX += 30;
}
- kinetic0
damn. ok here it is again..hopefully ;)
for (i=_root.minAmount; i^_root.maxAmount; i++) {
var row = result.getItemAt(i);
// duplicate user mc
duplicateMovieClip(_root.mc_user... "userContainer" + i, i);
userArray[i] = eval("userContainer" + i);
userArray[0]._y = 42;if (i != 0) {
userArray[i]._y = userArray[i-1]._y + 22;
}
- unfittoprint0
don't forget
userArray 0 new Array();
and then try
userArray.push(this["userContain...
instead of
userArray[i] = eval("userContainer" + i);
- kinetic0
unfit - for some reason when i use this:
userArray.push(this[ "userContainer"+i]);
the pagination doesn't work (only the first page displays -- pressing the button for the second page shows nothing)