This content has been marked as final. Show 5 replies
I havent tested this but give it a try.
Thank you for the reply....i tried that but unfortunatley it doesnt appear to work, i have looked into the problem further.....and i have found that if i trace '_root.hexSeven_mc' it comes up with the output....'_level0.hexSeven_mc' however if i trace '_root.colorSeven_mc' the output is undefined..........so i think the problem lies with the duplicate movie clip, but i dont know where or how it could have gone wrong?!?!?
many thanks for your help!!
i assume that trace(_root.colorSeven_mc) statement does not immediately follow your duplicateMovieClip() statements so you're probably assigning something else to depth 1 in the _root timeline.
Thanks for your reply, i have adapted my code slightly since this post, and it now states:
var name7:String = "colorSeven_mc";
as a result of this the trace is returning what it should be: "_level0.colorSeven_mc"
So this part of the code is obviously working.
The next problem i have is that once the code is executed and the new movie clip is displayed as white, the script moves onto the next frame. the code in the next frame makes the newly created movie clips invisible this all works fine. However the script then moves back to the previous frame, (Where the orignial duplicate clip script is) however as a result the duplicated movie clips are not visible? I tried coding it so that they were but this still doesnt work?!
Sorry if its a bit complicated. any ideas??
I greatly appreciate your help
if you return to the frame that contains your duplicateMovieClip() code, you're going to remove the movieclip that was created when you previously were in that frame, and create a new movieclip with the same instance name and depth.