PDA

View Full Version : for in Loop Question / Recursive Function


acolyte
07-07-2005, 10:17 PM
Hello all,

im trying to place dublicates of a Prototype Movieclip to specific Frames within a for in Loop by dublicating to specific Frames in the Timeline.

could anybody tell me if this is possible

i was googling around for Decades now and cant find any reference material anywhere :confused:

For Example in my XML File there are:

<FolderNodes>
<SubFolderNodes>
<LinkNodes>


placeClips = function (timeline)
{
for (var a = 0; a<TheNode.length; a++)
{

_root.dublicateMovieClip("dynamic", "newClipName", 10, {_global.anchor = this.obj});


placeClips(_remote.timeline[currentFrame +1]);
}
}
}
placeClips(this);


to show you exactly what im trying to do :www.mat3d.com/treemenu/index.html

the Function Forward Backward is actually running on the first two subfolders @ the First Branch .But i want it to be simply Administrable with the xml Files
so the whole Tree should be configurable over the xmlfile without any Flash knowledge.So we need this recursive function

could anybody point me to a good tutorial or Hint

Help would be greatly appreciated !

thnx Mat