Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7679459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:52:56+00:00 2026-05-31T17:52:56+00:00

I am trying to use http://code.google.com/p/as3svgrendererlib/ in my flash cs 5.5 project to import

  • 0

I am trying to use http://code.google.com/p/as3svgrendererlib/ in my flash cs 5.5 project to import and load svg files.

I downloaded the swc file from http://code.google.com/p/as3svgrendererlib/downloads/list and linked it in actionscript settings.

I tried compiling the project using the following code:

package { 
    import flash.display.Sprite; 
    import flash.display.DisplayObject; 
    import flash.events.Event; 

    public class Main extends Sprite { 
        import flash.net.URLLoader; 
        import flash.net.URLRequest; 
        //ProcessExecutor.instance.initialize(stage);

        public function Main():void { 
            if (stage) init(); 
            else addEventListener(Event.ADDED_TO_STAGE, init); 
        } 

        private function init(e:Event = null):void { 
            removeEventListener(Event.ADDED_TO_STAGE, init); 
            // entry point 
            var myLoader:URLLoader = new URLLoader(); 
            myLoader.dataFormat = "text"; 
            myLoader.addEventListener(Event.COMPLETE, xmlComplete, false, 0, true); 
            myLoader.load( new URLRequest("assets/spring_tree_final.svg")); 
        } 


        public function xmlComplete(e:Event):void { 
            trace("it's finished loading"); 
            var svg:SVGDocument = new SVGDocument();
            svg.parse(e.target.data);
            addChild(svg); 
            stage.addChild(svg); 
        } 

    } 

}

But I kept getting the following error:

  • C:\Users\xx\Desktop\load_svg\Main.as, Line 33 1046: Type was not
    found or was not a compile-time constant: SVGDocument.
  • C:\Users\xx\Desktop\load_svg\Main.as, Line 33 1180: Call to a
    possibly undefined method SVGDocument.

So i checked out the source from http://code.google.com/p/as3svgrendererlib/source/checkout and tried importing it using the following line:

import com.lorentz.SVG.*;

right below the ‘import flash.events.Event’ line.

But I continue to receive the same errors as before.

What am I missing?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T17:52:57+00:00Added an answer on May 31, 2026 at 5:52 pm

    You need this import statement:

     import com.lorentz.SVG.display.SVGDocument;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to use http://code.google.com/p/amazon-s3-php-class/ to force-dowload files from AWS S3. I have
Im trying to use this http://code.google.com/p/pywhois/ along with the socket.gethostbyaddr . import socket import
I'm trying to use this library http://code.google.com/p/svg-android/ to get SVGs into android. Here's my
I have been trying to use the hibernate dialect for SQLite from http://code.google.com/p/hibernate-sqlite/ in
I am trying to use the jQuery CSV plugin, as documented here: http://code.google.com/p/js-tables/wiki/CSV According
so I'm trying to use this plugin: http://code.google.com/p/zeroclipboard/wiki/Instructions which basically allows you to set
I am trying to use the gtm-oauth kit (http://code.google.com/p/gtm-oauth/wiki/GTMOAuthIntroduction) for OAuth2. As instructed by
I am trying to use the ImageLoader class from libs-for-android (http://code.google.com/p/libs-for-android/), and am getting
I am trying to use SecuritySwitch (http://code.google.com/p/securityswitch/) on an asp.net website. On secure pages
I'm trying to build x64 version of http://code.google.com/p/quickfast/ That's how build scripts use %BOOST_ROOT%:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.