Skip to main content
Multoman
Inspiring
Mar 21, 2023 12:41 PM UTC
Answered

Is it possible to save vector drawing data of any shape using JSFL?

For example, I have a vector drawing:

 


Is it possible to write its data (vector points, contour color, line color, contour thickness) in a string or XML format, or any other to simply save data about this figure and build the same after a long time based on previously saved data.

I need to transfer a vector shape to a SWF file for my plugin

This topic is closed to new replies. Start a new post to keep the conversation going.
Charlie Bickett
Charlie BickettCorrect answer
Inspiring
Mar 22, 2023 7:30 AM UTC

Hi! It's technically possible, but for anything more than simple shapes I wouldn't go the shape > data route. Instead, export symbols as seperate .SWF/.SWC files, and dynamically load those into your SWF panel, this is how Keyframe Caddy does it.
Here's a page showing how this works using both AS2 & AS3, should be a handy place to start!

4 replies

Charlie Bickett
Charlie BickettCorrect answer
Inspiring
Mar 22, 2023 7:30 AM UTC

Hi! It's technically possible, but for anything more than simple shapes I wouldn't go the shape > data route. Instead, export symbols as seperate .SWF/.SWC files, and dynamically load those into your SWF panel, this is how Keyframe Caddy does it.
Here's a page showing how this works using both AS2 & AS3, should be a handy place to start!

Translate
kglad
Community Expert
Community Expert
Mar 21, 2023 1:09 PM UTC

open your history panel and check the steps used to create those shapes.  do you see any red x's?  (ie, that polystar/pentagon is likely problematic.)

Translate
Multoman
MultomanAuthor
Inspiring
Mar 21, 2023 1:16 PM UTC

This is similar to what KeyframeCaddy does. It loads drawings into itself. My plugin should do the same. I'm not trying to recreate KeyframeCaddy, I just need to understand how it works

Translate
kglad
Community Expert
Community Expert
Mar 21, 2023 1:21 PM UTC

your first post seemed clear enough, but your 2nd, i do not understand.

Translate