Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Extensions and Plugins > JSFL - Extending Flash

Reply
 
Thread Tools Rate Thread Display Modes
Old 07-28-2005, 04:31 PM   #1
khamstra
Registered User
 
Join Date: Jul 2001
Posts: 90
Default Apply Stroke

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
khamstra is offline   Reply With Quote
Old 07-29-2005, 11:22 AM   #2
hangalot
lala
 
hangalot's Avatar
 
Join Date: Feb 2002
Location: on the road
Posts: 2,859
Default

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
__________________
oi poloi
http://www.memorphic.com/news/
hangalot is offline   Reply With Quote
Old 07-29-2005, 01:33 PM   #3
khamstra
Registered User
 
Join Date: Jul 2001
Posts: 90
Default

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
khamstra is offline   Reply With Quote
Old 07-29-2005, 02:20 PM   #4
Sunny13
Senior Member
 
Sunny13's Avatar
 
Join Date: Jul 2005
Location: India
Posts: 1,021
Default

try this ... select all the objects on the stage... i.e. all lines drawn on the stage and apply this jsfl ....
ActionScript Code:
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 );
..............
__________________
I like such scripting....
Sunny13 is offline   Reply With Quote
Old 07-29-2005, 02:24 PM   #5
khamstra
Registered User
 
Join Date: Jul 2001
Posts: 90
Default

The problem is none of the objects have a stroke... I'm trying to add one.
khamstra is offline   Reply With Quote
Old 08-03-2005, 03:46 AM   #6
tdoublea
Registered User
 
Join Date: Nov 2003
Posts: 189
Default

hello khamstra.
this might help you out:
http://www.flashextensibility.com/fo...opic.php?t=200
tdoublea is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:55 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.