Flash XML Graphics (FXG) is an XML-based file format for sharing bitmap and vector graphic assets between the range of Adobe products.
Questions tagged [fxg]
31 questions
0
votes
1 answer
eliminate the difference between captured bitmap data and filled FXG Paths?
I am trying to find a way to avoid using FXG in one of my applications but run into a problem where the captured bitmap is not exactly the same as the original filled FXG paths. Originally, let's say I have a 3 shapes that are adjacent to each…

Matt Sun
- 1
0
votes
2 answers
How to import FXG to a Shape?
I can import FXG files as Sprites as follows:
import graphics.mypic; // graphics/mypic.fxg
var mysprite:Sprite = new mypic();
I don't always need the fancy things that come with Sprites. How can I import them to Shapes?

Andy
- 95
- 1
- 7
0
votes
1 answer
using FXG with FlashBuilder 4.5 on ActionScript Mobile project
I've been successfully building AS3 projects that import FXG graphics using FlashBuilder 4 for web.
I'm now upgrading to FlashBuilder4.5 so I can build mobile apps but I'm getting an error when I try and using FXGs
The error is
The definition of…

Kevin
- 169
- 6
0
votes
1 answer
How to add an FXG image to an AS3 FlashDevelop project?
I've got an ActionScript 3 project in FlashDevelop. How can I embed an FXG file and use it? I've tried to import the file directly (import graphics.Filename) and instantiating it, but doesn't draw anything.

Andy
- 95
- 1
- 7
0
votes
1 answer
Does the graphics class or the FXG Path element support the lift pen command?
Does the DisplayObject.graphics draw vector support the lift command? I think that SVG path element has a command to lift the pen and then move it to another location. I'm wondering if the Path element in FXG, which is built on top of the…

1.21 gigawatts
- 16,517
- 32
- 123
- 231
0
votes
1 answer
What do the X and Y in topLeftRadiusX and topLeftRadiusY on a border do?
In some graphics programs there are corner radius values that are cornerRadiusX and cornerRadiusY. I have even seen topLeftRadiusX and topLeftRadiusY plus six more properties; 2 properties per corner .
For example there is this FXG / SVG code,
…

1.21 gigawatts
- 16,517
- 32
- 123
- 231
0
votes
1 answer
Is it possible to embed an image in a FXG file?
I need to be able to create an Illustrator file with a text field with one single text field and sometimes, if possible, an image in it as well.
It looks like the AI file is binary and I'm not sure how to write that. I can more easily write a text…

1.21 gigawatts
- 16,517
- 32
- 123
- 231
0
votes
1 answer
FXG ScaleGrid on BitmapImage not working
Does anyone encounter this? FXG ScaleGrid seem to be not working on BitmapImage. Below are my code:

Joel T.
- 402
- 3
- 15
0
votes
1 answer
How to dynamically change FXG file?
I load my fxg and it's fine. But I want to change my fxg file in runtime, then i want to refresh my browser page and see my changes. Is it possible to do in flex?

Boris Mitioglov
- 1,092
- 4
- 16
- 32
0
votes
2 answers
How do I create s:Path.data, polygon coords?
I have a PNG image, the image features a shape surrounded by a transparent area:
I want to recreate this image as a path in flex mxml, something like this:
How can I export the path data so…

Drahcir
- 11,772
- 24
- 86
- 128
0
votes
1 answer
Coordinates don't change dragging scaled fxg graphics
I'm using FlashDevelop, actionscript 3 and fxg graphics build with Illustrator (exported as fxg 2.0).
I import a fxg rectangle build with Illustrator, then I set it draggable when you clik on it, so its coordinates change. This works if the…

AntonioG
- 1
- 1
0
votes
1 answer
FXG asset is visible despite alpha set to 0
I have a FXG graphic asset in a Group container. It is invisible by default. When I try to fade in it works and fades in and fades out great the first time but the second time and 90% of the time after that it will show up immediately (not fade in)…

1.21 gigawatts
- 16,517
- 32
- 123
- 231
0
votes
1 answer
how to parse xml file and grab text values
The following is just a snipplet of code from a large fxg file, which is basically just a xml file:

thindery
- 1,164
- 4
- 23
- 40
0
votes
2 answers
Mouse events only on visible parts
How can I make Flex dispatch mouse events only when I interact with visible parts of a component? In this case I want event to be dispatched only when hovering the line.

Timofei Davydik
- 7,244
- 7
- 33
- 59
0
votes
2 answers
Select an FXG file at the runtime - by its name
I have a test case demonstrating my problem.
It runs instantly, when you add the following 4 short files into a new Flex Mobile project in Flash Builder 4.6:
src/TestFXG.mxml:

Alexander Farber
- 21,519
- 75
- 241
- 416