PDA

View Full Version : Apply Stroke


khamstra
07-28-2005, 04:31 PM
I have shapes that are on the stage.... each shape is in a group (by itself). They currently do not have a stroke applied. I would like to apply a stroke to all selected items or items in a specified frame and layer. Any ideas???


Thanks

hangalot
07-29-2005, 11:22 AM
well the use of the selection object would be a good start. i havn't worked with strokes as yet so can't give any info on that :(

khamstra
07-29-2005, 01:33 PM
Well... I've managed to be able to select all the object and change there color (not what I was trying to do) but adding the stroke is the problem.

setStroke is used to change the existing stroke of an element, it is not used to add a stroke.

I need to figure out if there is a way to add the stroke.

Thanks

Sunny13
07-29-2005, 02:20 PM
try this ... select all the objects on the stage... i.e. all lines drawn on the stage and apply this jsfl ....
var myStroke = fl.getDocumentDOM().getCustomStroke();
myStroke.style = "stipple";
myStroke.dotSpace= 3;
myStroke.variation = "random sizes";
myStroke.density = "sparse";
myStroke.color = '#000000';
fl.getDocumentDOM().setCustomStroke( myStroke );
..............:)

khamstra
07-29-2005, 02:24 PM
The problem is none of the objects have a stroke... I'm trying to add one.

tdoublea
08-03-2005, 03:46 AM
hello khamstra.
this might help you out:
http://www.flashextensibility.com/forums/viewtopic.php?t=200