Jagged graphics worked as fxg in flash builder

Hello,
I have a question, I created my skins buttons in flash player and exported them to fxg files, the I used the fxg files in Flash Builder, but when the application runs, the graphics seems jagged.
I am looking for an answer about setting up the anti-aliasing, but I always find that it is only for text and that graphics in flash player never lose quality.
Please if anyone knows about it please let me know.
Thanks!

In general, try to avoid using strokes in your FXG. If you have rounded corners, then try using a Path with a hole cut out of it. In general, Illustrator and Fireworks do a decent job of exporting the FXG.
You can also emulate a rectangle with a stroke and fill by creating two Rects with fills. The "fill" Rect should sit on top of the "border" Rect and be inset by the border thickness.
The spark.skins.mobile240.assets folder has a bunch of examples of FXG used by the framework. These should provide some good guidelines.
Also, make sure you have setup your scaleGrid properties on the Graphics tag.

Similar Messages

  • Problem with inline FXG in Flash Builder

    Hello,
    True newbie to Flex and Flash Builder.
    I am trying to use FXG code out of Illustrator CS4 and PASTE in in a skin.mxml file.
    I thought that Flash Builder would automatically convert the <Graphic> tag to a Spark <s:Graphic> tag after I pasted in the SHOW CODE segment from Illustrator Save function.
    The same for all the other tags.
    It does not. Flash Builder just gives me an error when I save the Skin.mxml file.
    I don't want to just import the .FXG file as a component because it contains text in the layout I want to dynamically change in an <s:List.>
    Sample code:
    <s:Skin
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:mx="library://ns.adobe.com/flex/halo"
        xmlns:ai="http://ns.adobe.com/ai/2008"
        xmlns:d="http://ns.adobe.com/fxg/2008/dt"
        xmlns:graphics="assets.graphics.*">
        <fx:Metadata>[HostComponent("spark.components.List")]</fx:Metadata>
        <s:states>
            <s:State name="normal"/>
            <s:State name="disabled"/>
        </s:states>
        <s:Rect
            height="457"
            ai:objID="4ee65600"
            d:userLabel="pageContentArea"
            width="921"
            x="0.5"
            y="1.5">
            <s:stroke>
                <s:SolidColorStroke caps="none" color="0x002581" joints="miter" miterLimit="4" scaleMode="normal" weight="1" color.normal="#3993d2"/>
            </s:stroke>
        </s:Rect>
        <Graphic version="1.0" viewHeight="2000" viewWidth="2000" ai:appVersion="14.0.0.367" d:id="1" >
                <Library>
                    <Definition name="sym3d_Pyramid_Rainbow" d:userLabel="3d Pyramid Rainbow">
                        <Group>
                            <Group x="-7.52246" y="-24.9131">
                                <Group ai:knockout="0">
                                    <Path winding="nonZero" ai:knockout="0" data="M0.358887 9.48828L7.5249 12.5605 7.521 0.279297 0.358887 9.48828Z" >
                                        <fill>
                                            <LinearGradient x="2.04785" y="11.2568" scaleX="11.5761" rotation="-45">
                                                <GradientEntry color="#ed2324" ratio="0"/>
                                                <GradientEntry color="#ed2224" ratio="0.617977"/>
                                                <GradientEntry color="#ed2324" ratio="0.629213"/>
                                                <GradientEntry color="#ed2024" ratio="0.983146"/>
                                            </LinearGradient>
    How do get this to work? What am I doing wrong?
    Thanks,
    bernie393

    Hey Peter, Again I REALLY appreciate your help....
    So, Are you saying if follow the below process steps it will work?
    1. Copy of code from AI Save as FXG dialog box using the Show Code button.
    2. Open the Skin or ItemRenderer in Flash Builder Beta 2. (which one should I use to be able to BIND data, skin or itemrenderer)
    3. Paste the code in AT THE BOTTOM (after the Skin or ItemRenderer) (tags will still be in <Graphic> format NOT <s:Graphic> format)
    4. Move the Library tags to the top of pasted code.
    5. Save the file in Flash Builder that it will convert the tags to (s:xxxxxxx) type tags>
    IF this is wrong, please explain..I apologize, trying to pick this up as fast as I can...Solving this problem would allow me to move very quickly in creating the pages I have to.
    Not knowing Flex 4 well enough, it would take considerably more time if I had to save each individual OBJECT from AI and export as png or jpg or gif.
    I also would have to recreate the layout from scratch which would also be difficult at my current knowledge level.....
    Also, a learning point for me: In Flex 4 when I do this in Flash Catalyst (I have over 30 pages to build and probably 45 states and when work in Flash Catalyst it will crash if I move to many times in and out of editting components so I have to save often so I cannot do the whole in Catalyst and I need a repeatable process to get all  the different page graphics out of AI and into Flash Builder), Catalyst creates a List component in the main MXML file, a skin.mxml file, and a item renderer.mxml file. I am use to coding in Smalltalk, Javascript, and Java. What parts are considered the Model, View, and Controller in a MVC architecture?
    Thank you again Peter......
    Bernie393

  • Flex components not working after upgrade to Flash Builder 4

    I just purchased Flash Builder 4 and imported my project from Flex Builder 3. Everything worked except my Flex components that were created in Flash Professional using the Flex Compoent Kit are not showing up at all in my Flex app. The components were created in Flash CS3 and published to an SWC. I even tried upgrading to Flash Professional CS5 and re-publishing but that didn't help. These components work fine in Flex Builder 3 with Flex SDK 3.2. Does anyone know why they aren't showing up in Flash Builder 4 using Flex SDK 4.1 and AIR 2.5 SDK? I need this to work with AIR SDK 2.5 so I can compile for Android. Thanks, Ryan.

    P.S. when I say they aren't showing up I mean they aren't visible in the running application. Flash Builder is finding them in the SWC though because I instantiate the components in my mxml file and it compiles without errors. - Ryan

  • Not Working - PMD 1.1, Flash Builder 4, Flash Project

    I have a Flash Actionscript project on Flash Builder 4 and after installing PMD and setting command line tools in preferences. I right clicked on src selected FlexPMD -> Run FlexPMD, Flex PMD View opens immediatelly, but nothing is there, just an empty window.
    Is it even supposed to work with non Flex projects?

    Hi
    make sure to read this thread http://forums.adobe.com/thread/537410?tstart=30
    Basically if there's a white space on the path of your FlexPMD installation, workspace or project the plugin will fail.
    This has been fixed in the trunk version and will be released very soon
    Cheers
    Xavi

  • Flash Builder 4.5 newbie help

    Hey guys,
    Thank you for taking the time to read my post and help me out.  I am currently just learning actionscript 3 and I have been using flash professional in order to program most of my first flash programs,  I would like to take one of my ideas and create it to work on the blackberry playbook, so I downloaded flash builder 4.5 and have set up my whole environment.
    The problem im running into is that with flash professional creating movie clips and frames was as easy as adding objects to the library and then setting up the linkage so it could be used by your AS3 coding, frames and layers were added through the UI...well with flash builder I have no idea how to do this as there is no graphical interface, I am just wondering if somebody could explain to me how to create and link movie clips and work with frames using flash builder 4.5....I know this is probably a dumb question but I simply just don;t know
    Thanks in advanced for any help

    Hi nateatkins, Flash Builder is a software to develop flex and/or as3 applications. Do do things with Flash Builder, you need to code it in .as or .mxml files. Flash gives you the ability to make graphical element, add them to a library, animate them using the software interface and commands, and publish them right out of the box, but it is not the purpose of Flash Builder. You can use Flash to make a library of graphical elements, configure those elements to be available as Actionscript classes, then export your library as an SWC to use them in a Flash Builder project code. Or you can choose in Flash to code your actionscript using external .as files, and use flash builder to write them. Flash Builder is intended to make life easier when you work on object oriented coded projects using as3, and let you code faster. Flash have it's limitations to assist you when it's time to code, Flash Builder is here to enhance your development workflow when needed.

  • CS6 Master Suite install issue- An incompatible Flash Builder 4.6 has to be unloaded

    But it does not exist???
    On installing Master Suite CS6 "flash builder" cannot be activated to be installed. 
    When placing the curser over it the following message is displayed:
    A conflict or pre release version of Adobe Flash Builder 4.6 exists on this compluter.  The conflicting version must be removed before installing from the current media.
    Problem - There is no version 4.6 on this computer to be unistalled!
    Any suggestions on what to do next?
    Cheers,
    Michael

    1.Use the Adobe Creative suites Cleaner tool to remove any trace left of Flash builder
    http://www.adobe.com/support/contact/cscleanertool.html
    2.Restart machine, Try installing again
    Ensure you have complete administrator privileges and right click on the exe and choose "Run as Administrator" while installing, ensure the directory you are writing to has write access for your user.
    if it still does not work
    3. Uninstall Flash Builder 4.6 using Creative Suites uninstaller
    4. Repeat Step 1 and restart machine, download the Standalone installer at
    https://www.adobe.com/cfusion/tdrc/index.cfm?product=flash_builder
    and install, this should install it, and would take the Serial number from Creative Suites automatically.
    Vikas Chandran
    Adobe Systems Incorporated

  • Flash builder 4 install issue

    Hi
    I have downloaded the trial of Flash Builder 4 only to get the following message when I try to extract the files.
    A problem occurred while extracting some files.Check available space on your computer and the write priviliges on the destination folder.
    So far I have tried the following
    Run as administrator
    download using , firefox, opera and chrome
    use a different machine - my main system has Win7 64bit the other system has Win7 32bit
    extract to a directory which is not the default one
    None of the above are working.
    Anyone got any ideas how to fix this?
    Cheers

    1.Use the Adobe Creative suites Cleaner tool to remove any trace left of Flash builder
    http://www.adobe.com/support/contact/cscleanertool.html
    2.Restart machine, Try installing again
    Ensure you have complete administrator privileges and right click on the exe and choose "Run as Administrator" while installing, ensure the directory you are writing to has write access for your user.
    if it still does not work
    3. Uninstall Flash Builder 4.6 using Creative Suites uninstaller
    4. Repeat Step 1 and restart machine, download the Standalone installer at
    https://www.adobe.com/cfusion/tdrc/index.cfm?product=flash_builder
    and install, this should install it, and would take the Serial number from Creative Suites automatically.
    Vikas Chandran
    Adobe Systems Incorporated

  • Round trip between Flash Builder and Catalyst?

    Is it, or will it, be possible to go back to Flash Catalyst once a project as been brought into Flash Builder?
    I have imported the .fxp project into Flash Builder, made some code changes, then exported a .fxp project out again.  I want to be able to edit this in Catalyst so I can make design changes, but when I try to open the project Catalyst says it cannot be opened becuase it has been edited outside of the application.  Is there something I am missing or has this simply not been implemented yet?
    It would be a shame to not be able to "round trip" from Catalyst to Builder.
    Thanks for your time and the product looks very exciting.

    Hi Watern,
    For the first version of Catalyst, we're focusing on the one-way workflow from Catalyst to Builder (start in Catalyst, finish in Builder). We realize this is a big limitation and hope to address soon after the first release.
    There are a number of partial solutions for this problem, which you can find by searching around the forum. Most of them involve dividing the work between Catalyst and Flash Builder as cleanly as possible, which is surprisingly easy to do given the new skinning architecture. Here's an excerpt from a post I wrote that seems to have been lost:
    "If you are iterating between Catalyst and Builder on a custom component, you may find it is worth splitting the custom component out in that fashion. I'm planning to write an article explaining this, but here's a preview:
      In Builder, create a new subclass of SkinnableComponent. Put the component logic in there.
      If you need to add visual logic like "now move the konfabulator 10px to the left", you should make konfabulator a skin part, using the metadata (see Scrollbar.as, in the Flex 4 SDK, for an example).
      If your component has states, declare them with the metadata.
      In Catalyst, make sure that your custom component has those parts and states.
      Then import the custom component into Builder.
      In the MXML file for the custom component, change the root tag <Group> to <Skin>. It's now a skin (not a custom component).
      In the MXML file for the skin, add the [HostComponent("com.me.MyComponent")] metadata (see HScrollbarSkin.mxml, in the Flex 4 SDK, for an example).
      Wherever you are creating the instance, change the code <MyComponent/> to <MySkinnableComponent skinClass="MyComponent"/>. Now you're creating an instance of your skinnable component and assigning it the skin created in Catalyst.
    Done! If you make more changes in Catalyst, you'll have to repeat steps 5-7 again (for now!)."
    -Adam

  • Flash Builder 4.6 has stopped all advanced editing features

    Yesterday Flash Builder 4.6 was working fine. Then something that I did late yesterday has rendered the Flash Builder editor "brain dead".  It is little more that a type writer.  It does not go to the definition of variables when f3 is press.  Hightlighting a variable does not hightlight all occurances of that variable. The Outline view is empty.  It does not provide a combo box of possible functions when the period (.) is pressed.  As I said it is little more than a typewriter.  I have uninstalled it along with eclipse, rebooted and re-installed both Eclipse and Flash Builder and still the same.  I have a co-worker who just installed Flash Builder for the first time yesterday and she is experiencing the very same thing.  What is going on and how do I/we fix it?
    Thanks,
    Spence

    Yesterday Flash Builder 4.6 was working fine. Then something that I did late yesterday has rendered the Flash Builder editor "brain dead".  It is little more that a type writer.  It does not go to the definition of variables when f3 is press.  Hightlighting a variable does not hightlight all occurances of that variable. The Outline view is empty.  It does not provide a combo box of possible functions when the period (.) is pressed.  As I said it is little more than a typewriter.  I have uninstalled it along with eclipse, rebooted and re-installed both Eclipse and Flash Builder and still the same.  I have a co-worker who just installed Flash Builder for the first time yesterday and she is experiencing the very same thing.  What is going on and how do I/we fix it?
    Thanks,
    Spence

  • Flash Builder can't Test or Debug

    Recently I've not been able to test or debug my Actionscript projects. Everytime I try I get the following error screen.
    I tried reinstalling Flash and the individual debuggers (do I need to use them to replace a file?)
    Current specs are:
    > Adobe Flash Builder 4
    > Adobe Flash Player:

    Here's an update...
    I've looked for every Flash Player and Debugger I could find in the Adobe Flash CS5, Flash Builder 4 and seperate Flash Player folder and deleted them from my computer. Then I reinstalled Flash Player and installed the following debugger:
    After that I tried Flash Builder again and was able to test my project, though it opened Flash CS5 instead of Flash Player, very strange.
    So I continued with the debugger and that also started the Flash CS5 player instead of the standalone player and also started loading in Flash Builder:
    Up till the point where Flash Builder showed me this error:
    The current problem is now the error above and the fact that I can't seem to be able to see any traces of debugging code in my console (Flash Builder) or Output screen (Flash Pro CS5).
    Has anyone got an idea?
    UPDATE:
    I was able to make it work IF I let Flash Builder Generate an HTML Wrapper file.
    If I tick it off, the debugging will start Flash Pro CS5, but doesn't debug and gives me the same things as the 2 last screenshot.

  • Flash Builder startup

    Adobe CC installed all products and they work fine EXCEPT for Flash Builder. I had Eclipse installed when I first installed cc so I thought it installed Flash Builder as a plug in. I uninstalled Flash Builder and Eclipse and installed Flash Builder again. There is NO folder or Icon for the program. I can't find it. How do I activate it?

    Hi joekatana,
    Please refer the article: http://helpx.adobe.com/creative-cloud/help/install-apps.html.
    Regards,
    Romit Sinha

  • Flash Builder Embed FXG - Problem

    Hi,
    I am working on creating an asset library using AS 3 project in Flash builder. I want to embed the fxg graphics referencing with a Class,
    [Embed(source='Sample.fxg')]
    private var myInstance:Class;
    I get the following error :
    no transcoder registered for mimeType 'text/fxg'    Main.as    /Project/src    line 9    Flex Problem
    The flex sdk version is  4.1.0.16076 and this doesn't with previous versions either.
    I can create instance of SpriteVisualElement to have fxg embedded, but this requires a flex project and I don't it is the best way to create a library for managing assets.
    Unable to create a AS3 project seems to be a quite limitation for traditional flash/flex development.
    Any help would be appreciated.
    Thanks,
    Kiran

    Hi Kiran,
    Usually I do put my reusable assets in a Flex Library Project (and also the FXG converted to MXML graphics). I don't embed the FXG documents.
    I usually convert the FXG documents to MXML graphics so that I can use it as a component in my application.
    Regards,
    Pablo Souza

  • Random errors on Flash Builder 4.5.1 mobile project: FXG elements

    I'm kind of frustrated because Flash Builder is starting to report random errors on some mxml components that include FXGs. It's reporting the following errors:
    1. 'MyFXG' declaration must be contained within the <Declarations> tag, since it is not assignable to the default
    property's element type 'mx.core.IVisualElement'.
    2. In initializer for 'mxmlContent', type es.domain.application.skin.assets.fxg.MyFXG is not assignable to target Array
    element type mx.core.IVisualElement.
    Code example:
    <s:Group height="100%"
                 left="10" right="10" top="40" bottom="10">
            <fxg:MyFXG width="100%" height="{content.height+20}"/>
    </s:Group>
    The curious thing (and frustrated one): these fxgs are included on others components and are working fine. There's no problem with the FXG themselves. If I comment all lines where I get an error, my project starts to compile fine (remember that I got included those very same fxgs in other components in the same project).
    Even more curious: if I uncomment those lines my project continues to compile fine! But If I make a clean, It starts to complain again on the very same lines and fxgs.
    It is driving me crazy!
    Anyone could give me a clue? Has anybody experienced something like this?
    Thanks in advance.

    Well, finally I've managed to solve the issue:
    I've deleted one of the mxml components that contained false fxg errors.
    I've created another mxml component with a different name.
    I've copied&pasted the content of the first mxml into the new one.
    et voila, everything has started to compile again, even if I clean the project.
    Really weird and strange issue :S

  • Problem with working in Flash Builder 4

    Hi there,
    I am working on the develepment of a new kind of website in 3D.
    For this I am using Flash Builder 4 AS3 Project and the 3D program Away3D.
    The problem is that I created a SWF in one AS3 project called PoloSWF.
    In another project I created a plane with the SWF as material.
    For this I copied PoloSWF from the original bin release directory and pasted it in the assets folder of the plane project.
    When running the plane project, the SWF is not visible.
    Any idea where the bug is?

    I tried it in Internet Explorer, Firefox, and Chrome. I was able to get the Akamai download manager but that was all I could download. Currently with firefox the download is stuck at waiting and will not continue any further.

  • Launch flash builder from flash cs5 don't work

    hi
    I have a trial version of flash builder (eclipse plug-in) and registered flash cs5 pro
    I'm trying to open a new AS3 class like in this tutorial: http://tv.adobe.com/watch/learn-flash-professional-cs5/using-flash-pro-and-flash-builder-t ogether/
    and it doesn't work.
    at first it did asked if I want to edit the file in flash builder or not, and it didnt work.
    now it won't even ask.
    what can I do?
    and also I cant open a flash proffessional  project in flash builder, it says "This feature requires Adobe Flash CS5 or higher to be installed."
    but it is installed!
    frustrated...

    I gave this a shot, using CS5, and when I started a new AS3 file I got the appropriate prompt asking me which application should edit my file...
    Flash Pro
    Flash Builder
    When I chose Flash Builder, (which I had already running), it opened the new AS3 file there with no problems. Interestingly, when I closed FB, and with Flash Pro created a new AS3 class, I wasn't prompted (and the AS file opened in Flash Pro) - so it does require that FB be running, or else Flash Pro will be the default editor.
    For the issue of Flash no longer prompting you "Who" will open a new file, you can change that here:
    Edit > Preferences > ActionScript > Several items down is the Class editor. Change that to Flash Builder
    If you still have problems...Are you able to successfully launch Flash Builder 4 by itself? Or has the trial expired?
    Last but not least, it's worth mentioning another fantastic AS editor (in case you don't really need FB, and/or your trial runs out):
    http://www.flashdevelop.org/wikidocs/index.php?title=Main_Page

Maybe you are looking for

  • Calendar event not showing correctly

    Hi, I'm running several iCloud calendar and encountered a weird problem today with the way an event block rendered in day view in my personal work calendar.  I'm putting in a night-shift which runs from 2230 on a Sunday 30th March 2014 to 0730 the ne

  • Remove payment block indicator in customer document

    hi, how to remove payment block indicator in customer bill. Like in vendor we are useing MRBR. Same way to customer. Can any one give the suggestion on this. gvoind.

  • Two Shipment and Shipping cost docs using a single delivery doc.

    SAP Gurus,                    I'v a delivery document with a single line item and i would like to create two shipmt and shipping cost document since the material movement will be handled by two different freight vendors from the point of origin - tra

  • Accessing audio file directories more easily

    Is there a way to access audio files like foley or music files more easily. Currently I locate files in the finder and drag into the FCP browser window, but would like to have a way to see the various folders in one place. Is this doable, or is there

  • Alsa-driver install problem

    Hello everyone, I am trying to install my new sound card and I need to upgrade the alsa-driver to version 1.0.23 in order to get my Xonar DS to work. I am following the guide here: http://www.alsa-project.org/main/index. … ule-oxygen Here is the erro