i’ve got a script of a newspage with php and mySQL
(within flash ofcourse)
This script got 1 dynamic text field.
Now i like to create it different. Every title and body message must be together in 1 MC.
So i think the best is to use the duplicateMovieClip statement.
I found this code in a book of mine and changed it a bit for where i know. But I still have two problems.
FIrst of all:
All the movieclips will be placed at _x. 0 and _y. 0
And for every record (ID) i need to automaticly create a new MC.
I got this code for static adding Mc’s but it must be dynamicly loaded and the second mc must come after the first one.
i got this actionscript so far:
[AS]
depth = 0;
for (copy = 0; copy < 10; copy++)
{
duplicateMovieClip (_root.loadNieuws.nieuwsItem, “nieuws” + copy, depth);
_root.loadNieuws[“nieuws” + copy]._x = 0;
_root.loadNieuws[“nieuws” + copy]._y = “nieuws” + 5;
depth++;
}
[/AS]
this code ofcourse creates 10 Movieclips with the instancename “nieuws0” to “nieuws9”
do i need to place it in an onClipEvent() ?
for now i placed it in the first frame.
The original code i found got a random placement. and ofcourse i changed that.
If someone can help me out, i would be gratefull.
And ofcourse when someone needs more information: i’ll be there.
Already thanks for helping
kind regards Jos