Skip to main content
Inspiring
September 8, 2010
Answered

Programmatically read Shape fill & stroke color?

  • September 8, 2010
  • 1 reply
  • 1824 views

Somehow, I've been unable to figure out exactly how to do this, even though I suspect it should be dead simple!

All I want to do is read the colors of the fills & strokes on some objects I've imported from Adobe Illustrator. They have very specific colors applied to them, such that I can parse them (hopefully!) and know what to do with the objects based on their unique color.

Any help/sample code appreciated!

This topic has been closed for replies.
Correct answer kglad

that's not simple and from your description can't even be done.

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
September 8, 2010

that's not simple and from your description can't even be done.

Inspiring
September 8, 2010

Okie dokie. Thanks for the info.

Kind of mind boggling, but there it is!

kglad
Community Expert
Community Expert
September 8, 2010

you have to, at least, have flash objects.  ie, something that can be assigned a reference or instance name or you have no way of using actionscript to reference the object.