Groups | Blog | Home
all groups > flash actionscript > february 2004 >

flash actionscript : Newbie horizontal rows.


Paul Anthony
2/15/2004 7:14:01 PM
Hi everyone Im a bit of nube when it comes to actionscripting..but I know
the concepts pretty well. What I wish to achieve is a system that fades in
photos contained inside an xml file. I think Id prob be ok parsing xml - I
just cant get the duplicate movie clips to work. I want rows and columns but
am unsure how to decide when to take a new line....any ideas. Anyone who has
worked with Tom Mucks horizontal looper will know what I want to achieve. So
far I have pulled bits of code from other peoples flas...and have the code
below...which doesn't work

MOVIECLIP1 MOVIECLIP2 MOVIECLIP3
MOVIECLIP4 MOVIECLIP5 MOVIECLIP6


for (i=0; i<10; i++) {
trace(i);
_root.duplicateMovieClip("empty", "empty"+i, i);
m = eval("empty"+i);
m._x += i*100;
}

Paul Anthony
2/15/2004 7:24:07 PM
I now have this....which works to a certain degree...however. I am loading
from an XML file as stated. So how can I determine how many rows I need etc.
Also how do I create a delay between the images loading in so that they dont
all appear at once and instead are staggered?

aantal = 1;
for (a=1; a<=5; a++) {
for (b=1; b<=3; b++) {
duplicateMovieClip (placeholder, aantal, aantal);
setProperty (aantal, _x, a * 70);
setProperty (aantal, _y, b * 70);
aantal = aantal+1;
}
}

AddThis Social Bookmark Button