Copy link to clipboard
Copied
I am trying to import a svg, but don't want it to be embedded as a vector element - i need it to be a linked asset (placed in the image folder after publishing). Does anyone have any suggestions? Is this possible? —Max
The Canvas library, CreateJS, does not directly support rendering SVGs. I suppose you could read in the SVG file and manually render it at runtime using the drawing commands, but that would be a rather advanced undertaking. Perhaps there's a more direct method of rendering SVG onto a canvas element in modern browsers, but it would have to be supported by all of them.
Copy link to clipboard
Copied
Have you tried importing your assets from the library?
Work with the libraries in Animate CC
Doesn't exactly work the way linked assets do, but is the closest that I can think of. You may also hear from experts here just in case my assumptions are incorrect.
Thanks,
Preran
Copy link to clipboard
Copied
Thanks - Check that link now.
Copy link to clipboard
Copied
AS3 or Canvas?
Copy link to clipboard
Copied
Animate CC 2018
Copy link to clipboard
Copied
maxp40317390 wrote
Animate CC 2018
. . .
(deep breath)
Yes, I know you're working in Animate. When you created the document you're working on now, did you click the "HTML5 Canvas" button, or the "ActionScript 3.0" button?
Copy link to clipboard
Copied
HTML5 Canvas
Copy link to clipboard
Copied
The Canvas library, CreateJS, does not directly support rendering SVGs. I suppose you could read in the SVG file and manually render it at runtime using the drawing commands, but that would be a rather advanced undertaking. Perhaps there's a more direct method of rendering SVG onto a canvas element in modern browsers, but it would have to be supported by all of them.
Copy link to clipboard
Copied
After reading through as much links on Animate - all vector imported supports are placed and are not link as a external file. The image is placed into the library. But not packaged into the "image" folder once published.
The SVG, SWF & EPS images are the sharpest and smallest size (my SVG files are down to 2-3kb).
I am creating a series of HTML5 banners and need to switch headlines and offers on the fly.
ever looking for a solution.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now