HELP problem with accessing movieclip (using target)

dear all,
I have problem with ‘target’ in my flash movie.
I have flash that show my data from database, into text n images. when i put the text n blank movieclip (container for images) into “main stage” no problem to show the data. i show data for many record, so it must be looping.

this is my code :

[COLOR=navy][COLOR=gray]// depth[/COLOR]
depth = -1;[/COLOR]
[COLOR=navy]
[COLOR=gray]// hide the origional clips[/COLOR]
ImgSmall._visible = 0;
VillaName._visible = 0;
VillaDesc._visible = 0;[/COLOR]
[COLOR=navy]
[COLOR=gray]// split up the array by looking for the commas (from asp files)[/COLOR]
[/COLOR][COLOR=navy]ImgSmall_array = ImgSmall_output.split("#");
VillaName_array = VillaName_output.split("#");
VillaDesc_array = VillaDesc_output.split("#");[/COLOR]
[COLOR=navy]
[COLOR=gray]// get the length of the array[/COLOR]

ImgSmall_length = ImgSmall_array.length;
VillaName_length = VillaName_array.length;
VillaDesc_length = VillaDesc_array.length;

[COLOR=gray]// set the start y position (x position depends on where you put it on the screen)[/COLOR]
yposition =30;

[COLOR=gray]// looping everything[/COLOR]
for (i=0; i<ImgSmall_length; i++) {

[COLOR=gray]//put the images to empty movieclip “ImgSmall”[/COLOR]
duplicateMovieClip(ImgSmall, “ImgSmall” add i, depth);
setProperty(“ImgSmall” add i, _y, yposition);
loadMovie(""+ ImgSmall_array* +"",“ImgSmall” add i);
set(“ImgSmall” add i , ImgSmall_array*);
depth–;

[COLOR=gray]// put the villa name desc into text VillaName[/COLOR]
duplicateMovieClip(VillaName, “VillaName” add i, depth);
setProperty(“VillaName” add i, _y, yposition+10);
VillaName.VillaName = VillaName_array[1];
set(“VillaName” add i add “.var_VillaName”, VillaName_array*);
depth–;

[COLOR=#808080]// put the villa desc into text VillaDsc[/COLOR]
duplicateMovieClip(VillaDesc, “VillaDesc” add i, depth);
setProperty(“VillaDesc” add i, _y, yposition+30);
VillaDesc.VillaDesc = VillaDesc_array[1];
set(“VillaDesc” add i add “.var_VillaDesc”, VillaDesc_array*);
depth–;

[COLOR=gray]// Set the y position plus 30
[/COLOR]yposition = yposition+120;
}[/COLOR]

the code aboved are WORKS fine! :party: in my main stage. it;s mean in the _root.

then, i want create new movie clip that contain all this data, it’s name “listVilla”, and the instance for the main stage is “listVilla”.
but it;s geeting error, no data displayed in my flash movie :frowning:

so i think in this case the problem is define the target

this is the structure (that i know) :
[COLOR=blue]_root[/COLOR] = main stage
[COLOR=blue]…listVilla[/COLOR] = movieclip n instance name for the all data
[COLOR=blue]…ImgSmall[/COLOR] = empty movieclip for images from database
[COLOR=blue]…VillaName[/COLOR] = textfield for villa name
[COLOR=blue]…VillaDec[/COLOR] = textfield for villa desc

i’ve try this code

[COLOR=navy][COLOR=gray]// depth[/COLOR]
depth = -1;[/COLOR]
[COLOR=navy]
[COLOR=gray]// hide the origional clips[/COLOR]
ImgSmall._visible = 0;
VillaName._visible = 0;
VillaDesc._visible = 0;[/COLOR]
[COLOR=navy]
[COLOR=gray]// split up the array by looking for the commas (from asp files)[/COLOR]
[/COLOR][COLOR=navy]ImgSmall_array = ImgSmall_output.split("#");
VillaName_array = VillaName_output.split("#");
VillaDesc_array = VillaDesc_output.split("#");[/COLOR]
[COLOR=navy]
[COLOR=gray]// get the length of the array[/COLOR]

ImgSmall_length = ImgSmall_array.length;
VillaName_length = VillaName_array.length;
VillaDesc_length = VillaDesc_array.length;

[COLOR=gray]// set the start y position (x position depends on where you put it on the screen)[/COLOR]
yposition =30;

[COLOR=gray]// looping everything[/COLOR]
for (i=0; i<ImgSmall_length; i++) {

[COLOR=gray]//put the images to empty movieclip “ImgSmall”[/COLOR]
duplicateMovieClip(ImgSmall, “ImgSmall” add i, depth);
setProperty[COLOR=blue]("_root.listVilla.[/COLOR]ImgSmall" add i, _y, yposition);
loadMovie(""+ ImgSmall_array* +"","[COLOR=#0000ff]_root.listVilla.[/COLOR]ImgSmall" add i);
set("[COLOR=#0000ff]_root.listVilla.[/COLOR]ImgSmall" add i , ImgSmall_array*);
depth–;

[COLOR=gray]// put the villa name desc into text VillaName[/COLOR]
duplicateMovieClip(VillaName, “VillaName” add i, depth);
setProperty("[COLOR=#0000ff]_root.listVilla.[/COLOR]VillaName" add i, _y, yposition+10);
[COLOR=#0000ff]_root.listVilla.[/COLOR]VillaName.VillaName = VillaName_array[1];
set("[COLOR=#0000ff]_root.listVilla.[/COLOR]VillaName" add i add “.var_VillaName”, VillaName_array*);
depth–;

[COLOR=#808080]// put the villa desc into text VillaDsc[/COLOR]
duplicateMovieClip(VillaDesc, “VillaDesc” add i, depth);
setProperty("[COLOR=#0000ff]_root.listVilla.[/COLOR]VillaDesc" add i, _y, yposition+30);
[COLOR=#0000ff]_root.listVilla.[/COLOR]VillaDesc.VillaDesc = VillaDesc_array[1];
set("[COLOR=#0000ff]_root.listVilla.[/COLOR]VillaDesc" add i add “.var_VillaDesc”, VillaDesc_array*);
depth–;

[COLOR=gray]// Set the y position plus 30
[/COLOR]yposition = yposition+120;
}[/COLOR]

but it’s no data display in my movie???:q:
any body can HELP me… please…:love: .because i get a very hard deadline for this job. :frowning: thanks for your help.

best,
ika nursila
indonesia