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 7574923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T16:33:26+00:00 2026-05-30T16:33:26+00:00

I have flex sdk 4.6 installed and I want to compile AS3 class that

  • 0

I have flex sdk 4.6 installed and I want to compile AS3 class that uses FXG file for simple graphics.

I have and fxg file called Speaker.fxg and I tried to import it like a package

import Speaker;

But when compiling it returns

Error: null

Also tried this

[Embed(source='Speaker.fxg')]
private var Speaker:Class;
private var sp:Sprite = new Speaker();

and this

[Embed(source='Speaker.fxg')]
private var Speaker:Class;
private var sp:Speaker = new Speaker();

and keep getting this error

Error: no transcoder registered for mimeType 'text/fxg'

    [Embed(source='Speaker.fxg')]
 ^

 /FXG/FXGSpeaker.as(11): col: 3: Error: Unable to transcode Speaker.fxg.

what do I do wrong?

or maybe is something with the fxg itself, here is the xml code

 <?xml version="1.0" encoding="utf-8" ?>
<Graphic version="2.0" viewHeight="200" viewWidth="200" xmlns="http://ns.adobe.com/fxg/2008" xmlns:fxg="http://ns.adobe.com/fxg/2008" xmlns:d="http://ns.adobe.com/fxg/2008/dt">
<Library/>
 <Group id="speaker_mc">
  // internal graphic part
</Group>
</Graphic>

I used the fxgeditor air app from here http://fxgeditor.7jigen.net/

I also tried using A. Ilustrator exported fxg file and it compiles but the swf is blank

  • 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-30T16:33:27+00:00Added an answer on May 30, 2026 at 4:33 pm

    I never tried to do it in a pure AS3 project, only MXML. Here are some things I found:

    1. You need to use FXG in some Spark container, that is specifically known to the compiler as a suitable target.
    2. You can spoof that Spark container with your own class such as to reduce dependencies.
    3. Spoofing might not always work, especially if related to texts, as it looks like it’s trying to use TLF to render text, which is another overweight monster…

    I’ve uploaded an example project: http://www.filedropper.com/frameworklessfxg it should explain it better, I hope.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written a game in Flash (AS3/Flex SDK/MXMLC) that streams music and sound
I have created an API in AS3 that uses Flex bindings. The API is
I have a a few Flex Builder 3 projects (SDK 3.2/3.5) that I imported
I have a portlet. Inside of this portlet I have Flex application that displays
I have a flex application with an iframe layered on top. I want to
I have Flexbuilder installed, with SDK 3.2. I wanted to try upgrade my SDK
I'm working on Flash Builder with latest flex SDK. I have a problem getting
I have a Flex 4.5.1 application which loads another swf file (as a module
I have a Flex Builder 3.0.2. It was shipped with Flex SDK 2.0.1 and
I have a Flex application (SDK 4.5.1) which runs on iPad... I need to

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.