Advertisement

07.15.2008 at 01:33PM PDT, ID: 23567550 | Points: 500
[x]
Attachment Details

Can you name a shape your are creating with moveTo()?

Asked by Iszard in ActionScript, Macromedia Flash, Scripting Languages

Tags: Macromedia, Adobe Flash CS3

Hello Developers,

I have created a small app that lets you move some dots around distorting a circle.

The circle is drawn in a movieClip called.

line_mc0

I want to be able to call the shape itself. Is there a way to name is such as...

line_mc0.aShape

??Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
this.line_mc0.clear();
	this.line_mc0.lineStyle(1,0,50);
	this.line_mc0.beginFill(0xFF0000);
	this.line_mc0.moveTo(pointArray[0].bez.x,pointArray[0].bez.y);
	i = 1;
	while (i<numPoints) {
		this.line_mc0.curveTo(pointArray[i]._x,pointArray[i]._y,pointArray[i].bez.x,pointArray[i].bez.y);
		++i;
	}
	this.line_mc0.curveTo(pointArray[0]._x,pointArray[0]._y,pointArray[0].bez.x,pointArray[0].bez.y);
	this.line_mc0.endFill();
 
 
[+][-]07.15.2008 at 11:36PM PDT, ID: 22013651

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.16.2008 at 07:08AM PDT, ID: 22016049

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