• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

Contributor ,
Mar 21, 2023 Mar 21, 2023

Copy link to clipboard

Copied

For example, I have a vector drawing:

Multoman_0-1679402463233.png

 


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

TOPICS
Exchange extensions

Views

249

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Mar 22, 2023 Mar 22, 2023

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!

Votes

Translate

Translate
Community Expert ,
Mar 21, 2023 Mar 21, 2023

Copy link to clipboard

Copied

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.)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Mar 21, 2023 Mar 21, 2023

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 21, 2023 Mar 21, 2023

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 22, 2023 Mar 22, 2023

Copy link to clipboard

Copied

LATEST

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!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines