0

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

2 Answers 2

1

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

0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.