This content has been marked as final. Show 3 replies
Well, for one,
isn't correct syntax - should be
this._parent.createEmptyMovieClip ("mcc" + i, this.getNextHighestDepth ());
Without looking deep into your other code, this may fix it or not, but I'm sure it's a big reason.
yes it fixed it thankyou and I added this_parent.next.....
I am a little confused about making dynamic objects like movie clip using this_parent.createEmptyMovieClip or this.createEmptyMovieClip or just createEmptyMovieClip. I want the clip to be accessed anywhere in the main timeline.
I want the clip to be accessed anywhere in the main timeline.
use _root.createEmptyMovieClip then
You can also simply use this.createEmptyMovieClip (unless you have the code withing a function or a button - because then you would be scoping the function or button, respectively). When you are writing action script, it's always a good idea to check your syntax. I can't imagine you NOT getting an error in the output panel when you published your incorrect syntax.
In your action script panel, there is a series of 7 icons above the area where you would be typing your script. Icons 4 and 5 will help you with syntax and scripting alignment.
If you notice when you are scripting in your action scripts panel, certain words should have different colors to them (according to how you have those settings), you can highlight the code "this" and then hit F1 for more info on it. This works with all script (well most).