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

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

Contributor ,
Mar 21, 2023 Mar 21, 2023

For example, I have a vector drawing:

Multoman_0-1679402463233.pngexpand image

 


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
310
Translate
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!

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

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

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

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

Translate
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
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!

Translate
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