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

loading vector graphics at runtime

Guest
Oct 20, 2009 Oct 20, 2009

Hi,

I'd like to know if there is any way or any vector graphic file format that i can load dynamically at runtime on a web-based flash application.

I have some files in pdf that i want to load in and i can convert them to jpgs at runtime and load the jpgs but then i lose vector graphics so when i zoom in and out they become pixelated.

I had a look a look at flashpaper to convert pdf to swf and load them in but i can't see anywhere in the documentation about converting the pdf's at runtime rather than manually dragging and dropping them in.

So far i've looked at pdf, svg and .ai but none of these can be loaded at run time just imported into the .FLA

So can this be done? Or alternatively is there an application that can do the pdf -> swf conversion from the commandline then i could trigger php to do the conversion at runtime.

thanks in advance.

Greg

TOPICS
ActionScript
2.3K
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
LEGEND ,
Oct 20, 2009 Oct 20, 2009

You were not clear on the reasons you would want to do that.

If you have full control over graphics and are trying to make your main swf more portable and load vector graphics at runtime - you can host several swfs containing these vector graphics or groups of graphics and load them at runtime - use applicationDomain to extract graphics from loaded swf. Graphics saved in swfs are more portable.

Is it what you need or there is another user case why you would want pdf - not swfs - to be loaded?

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
Engaged ,
Oct 20, 2009 Oct 20, 2009
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
New Here ,
Nov 18, 2010 Nov 18, 2010
LATEST

Hi All,

I have a task to save running SWF file to be saved as vector graphics file format and get the same back in the Flex application. Request you to tell me what can be the vector graphics file extension and help me out how to achieve this task.

Thanks & Regards

Santosh Kumar G

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