Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Flex FXG graphics
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


BikrantSingh
FXG graphics
1 Answer(s)      4 years and a month ago
Posted in : Flex


Hi....

What is FXG in flex4? can you give me the explanation about it..

Thanks


Advertisement
View Answers

October 29, 2010 at 6:03 PM


Ans:

FXG:

FXG is a declarative syntax for defining static graphics. You typically use a graphics tool such as Adobe Illustrator to export an FXG document, and then use the FXG document as an optimized component in your application.

For example:

FXG component:

<?xml version="1.0" encoding="utf-8"?>
<Graphic xmlns="http://ns.adobe.com/fxg/2008" version="2">    
    <Path data="
         M 0 0 L 50 50 L 100 0 L 100 100 L 50 50 L 0 100 L 0 0 Z">
         <stroke>
              <SolidColorStroke color="#AAAAAA" weight="1"/>
         </stroke>
         <fill>
              <RadialGradient>
                   <GradientEntry color="#000000" alpha="1.0"/>
                   <GradientEntry color="#AA0000" alpha="0.5"/>
              </RadialGradient>
         </fill>
    </Path>
    <Path data="
         M 0 0 L 50 50 L 0 100 L 100 100 L 50 50 L 100 0 L 0 0 Z">
         <stroke>
              <SolidColorStroke color="#AAAAAA" weight="1"/>
         </stroke>
         <fill>
              <RadialGradient>
                   <GradientEntry color="#000000" alpha="1.0"/>
                   <GradientEntry color="#00AA00" alpha="0.5"/>
              </RadialGradient>
         </fill>
    </Path>
</Graphic>

main application:

<?xml version="1.0" encoding="utf-8"?>
<s:Application 
xmlns:fx="http://ns.adobe.com/mxml/2009" 
xmlns:mx="library://ns.adobe.com/flex/mx" 
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:comps="FXG.*">
<mx:Panel title="Path FXG Example"
  height="179" width="202" layout="horizontal"
  paddingTop="10" paddingBottom="10" paddingLeft="10" paddingRight="10">
<s:HGroup>
<comps:path/>             
</s:HGroup>
</mx:Panel>
</s:Application>


Related Tutorials/Questions & Answers:
FXG graphics
FXG graphics  Hi.... What is FXG in flex4? can you give me the explanation about it.. Thanks   Ans: FXG: FXG is a declarative syntax for defining static graphics. You typically use a graphics tool such as Adobe
Flex4 FXG and Image
Flex4 FXG and Image  Hi.... Flex4 skin in FXG or image which is more efficient? please tell me about that... Thanks   Ans: Is your app going to be scaled? If not use bitmaps or vectors cached as bitmaps. if you
Advertisements
graphics program
graphics program  i want a program that implements merge sort algorithm in graphics
iPhone Graphics
iPhone Graphics  Hi, How to create iPhone Graphics? I am learning to crate UI Design for iPhone and iPad. Thanks
Graphics class in flex
Graphics class in flex  Hi.... What does clear() do in graphics class? please tell me about that.... Thanks   Ans: Clears the graphics that were drawn to this Graphics object, and resets fill and line style settings
graphics - Java Beginners
graphics  In java-graphics.. I want to draw a rectangle and resize that rectangle(small,big) ..by using mouse cursors
Java Graphics Programming
Java Graphics Programming  Hi<BR> I am newbie to java and I...;BR> public void paint(Graphics g)<BR> {<BR> g.setColor... Graphics class. import javax.swing.*; import java.awt.*; public class
What is Web Graphics
What is Web Graphics Web graphics.... An excellent designed graphics can give better and creative ideas to customer of what they are looking for. Web graphics helps designers to enhance
java 2d graphics - Java Beginners
java 2d graphics  Hello All I need to use 2d graphics in java to build up a map from the given geographic coordinates. What i am not getting is how to scale down these geographic coordinates to device coordinates. I would
Graphics 2D
Graphics 2D      ... be an image, graphics, picture, photograph, video or any illustration. We....    Noise Image in Graphics This Java
How to draw in jPanel? swing/graphics Java
How to draw in jPanel? swing/graphics Java  How to draw in jPanel? (swing/graphics Java
java code along wid graphics design
java code along wid graphics design  actually i want to design nd make an apllication to solve a rubics cube of 3*3.. i have an algos wid me bt jus need ur guidance..plzz hlp out or if u have ny other ideas do suggest
Create Human Face using Graphics
Create Human Face using Graphics In this section, you will learn how to create human face using Graphics. A Graphics provides contexts that allow... off-screen images. The Graphics class provides several methods through which we
Show Graphics on full Screen
.style1 { margin-right: 140px; } Show Graphics...; This section illustrates you how to show graphics on full screen. To display the graphics, we have used the class DisplayMode which provides the bit depth
Noise Image in Graphics
Noise Image in Graphics      ... of graphics in Java. For this we have to import awt and swing package in our Java code. In this tutorial you will learn how to create a noise image in graphics. Now
Add RenderingHints to a Graphics
Add RenderingHints to a Graphics   ... to a graphics on the frame. The rendering hints uses the Graphics2D and creates... that extends the Graphics class to provide  KEY_ANTIALIASING:  
Java get Graphics
Java get Graphics     ... image.getGraphics() returns the Graphics object. The method...(400,400,BufferedImage.TYPE_INT_ARGB);   Graphics graphics=image.getGraphics
Noise Image in Graphics
Noise Image in Graphics     ... of graphics in Java. For this we have to import awt and swing package in our Java code. In this tutorial you will learn how to create a noise image in graphics. Now
How To Connect MS ACCESS 2003 Database in C Program with Graphics.
How To Connect MS ACCESS 2003 Database in C Program with Graphics.  How To Connect MS ACCESS 2003 Database in C Program with Graphics
how to draw lines,circles, rectangles on JSP (using Java Graphics)
how to draw lines,circles, rectangles on JSP (using Java Graphics)  how to draw lines,circles, rectangles on JSP (using Java Graphics)   ... context Graphics g = image.getGraphics(); // Fill background g.setColor(Color.white
Eclipse Plunging-Graphics
Eclipse Plunging-Graphics       QuickImage-Graphics  The QuickImage... simultaneously.   Image Export-Graphics An Eclipse plug in to to simplify
Draw An Arc in Graphics
Draw An Arc in Graphics       In this section, you will learn how to draw an arc in Graphics. An arc of a circle is a segment of the circumference of the circle. To draw an arc
Graphics Designer Jobs
Graphics Designer Jobs       Position Vacant: Web Graphics Designer Company Name: Rose India Company Profile: Based in Delhi, RoseIndia is one of the fastest growing companies
Graphics MIDlet Example
Graphics MIDlet Example     ... of graphics in J2ME we use MIDlet's. In the example we have created PacerCanvas class that extends the canvas class  to draw this graphics. Please find
Draw Polygon in Graphics
Draw Polygon in Graphics       In this section, you will learn how to draw a polygon in Graphics. A polygon is a closed path or circuit which is made by joining line
Advertisements
 

 

 

DMCA.com