Hello Ben,
Let's break your questions down shall we...
How to create an empty movie clip inside an empty movie clip?
Are you using ActionScript 2.0 or 3.0? Regardless, the technique is rather simple.
In AS 2.0
Code:
this.createEmptyMovieClip("outside", this.getNextHighestDepth());
outside.createEmptyMovieClip("inside", outside.getNextHighestDepth());
This creates two movieclips -- outside on the main stage and inside within it.
In AS3.0, it's even simpler:
Code:
var outside:Movieclip = new Movieclip;
var inside:Movieclip = new Movieclip;
addchild(outside);
outside.addChild(inside);
You could even do away with the var inside:Movieclip line and use an instance of the same class for both movieclips depending on your implementation.
Do any one know how to create tic tac toe game using actionscript 2.0?
See if this helps you. If not, post back.
Bookmarks