Alex
Alex

Reputation: 1839

Change lines thickness/color for Sprite/MovieClip in ActionScript?

I want to be able to change lines thickness/color for sprites/movieclips created in Flash CS in ActionScript code. Is it possible to achieve this kind of functionality?

Best Regards, Aleksey

Upvotes: 0

Views: 890

Answers (2)

Bosworth99
Bosworth99

Reputation: 4234

You may, alternatively, draw simple objects with the flash.display.graphics api. Its not appropriate for complex objects - but great for simple forms, that you then have total control over.

var obj:Shape = new Shape();
with(obj){
   graphics.beginFill(0x00ff00,.2);
   graphics.drawRect(0,0,100,200);
   graphics.endFill();
}

This depends very much on the shape you wish to manipulate.

Upvotes: 0

jhocking
jhocking

Reputation: 5577

Unfortunately you cannot change the existing vectors in code. The technical term for what you're asking about is "stroke"; if you search that term then you can find information like this:

Changing fill color of MovieClip Actionscript 3

Upvotes: 1

Related Questions