Advertisement

07.15.2008 at 07:42AM PDT, ID: 23566237 | Points: 500
[x]
Attachment Details

How to load Movieclips into an array?

Asked by Iszard in ActionScript, Macromedia Flash, Scripting Languages

Tags: Macromedia, Adobe Flash CS3

Ello Developers,

I am trying to create an array of movieclips, I have seen this work before but when I went to recreate and change the function is doesn't work. So I have made a small example of what I am trying to do and have attached the code.

I want to duplicate an existing Movieclip adding it to an array so i can manipulate the new Movieclips with ease.
Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
var numFeather = 5;
	i = 0;
	while (i<numFeather) {
		duplicateMovieClip(line_mc0, "line"+i, i-99);
		++i;
	}
	line1._height -= 5;
	line2._height -= 10;
	line3._height -= 15;
	line4._height -= 20;
	line5._height -= 25;
 
	line1._width -= 5;
	line2._width -= 10;
	line3._width -= 15;
	line4._width -= 20;
	line5._width -= 25;
[+][-]07.15.2008 at 08:03AM PDT, ID: 22007704

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.15.2008 at 12:56PM PDT, ID: 22010442

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.15.2008 at 11:02PM PDT, ID: 22013523

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.21.2008 at 07:54PM PDT, ID: 22056160

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628