View Full Version : empty movie clip
ben862000
07-08-2008, 01:14 PM
How to create an empty movie clip inside an empty movie clip?
Do any one know how to create tic tac toe game using actionscript 2.0?:confused:
Medyman
07-08-2008, 07:15 PM
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
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:
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 (http://www.actionscript.org/showMovie.php?id=1432) helps you. If not, post back.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.