|
|
Search Tutorials
Here are some code examples:
//create empty movie clips and don't worry about the depth
_root.easyCreateEmptyMovieClip("line1_mc");
line1_mc.moveTo(100, 100);
line1_mc.lineStyle(1, 0x000000, 100);
line1_mc.lineTo(200, 50);
//second clip
_root.easyCreateEmptyMovieClip("line2_mc");
line2_mc.moveTo(200, 200);
line2_mc.lineStyle(1, 0xff0000, 100);
line2_mc.lineTo(200, 50);
//third clip
_root.easyCreateEmptyMovieClip("line3_mc");
line3_mc.moveTo(300, 300);
line3_mc.lineStyle(1, 0xffff00, 100);
line3_mc.lineTo(200, 50);
//create a textfield and don't worry about the depth of the previous mc's
_root.easyCreateTextField("message_txt", 200, 200, 200, 50);
message_txt.border = true;
message_txt.text = "hi";
//same for attachMovie without providing the depth
_root.easyAttachMovie("circle", "circle1_mc");
_root.easyAttachMovie("circle", "circle2_mc");
circle2_mc._x = 200;
Please download the source .fla code and study the provided example code.
|
||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||
|