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

Similar Messages

  • Flash Builder 4 trace problem.....

    Flash Builder 4 trace problem.....
    Hi,
    I got the trace-classical problem:
    267 AVMINF: MTHD global$init ()
    267 AVMINF: MTHD flash.display::Sprite$cinit ()
    267 AVMINF: MTHD global$init ()
    267 AVMINF: MTHD flash.display::MovieClip$cinit ()
    267 AVMINF: MTHD PreloaderDisplay$cinit ()
    267 AVMINF: MTHD global$init ()
    267 AVMINF: MTHD global$init ()
    267 AVMINF: MTHD mx.managers::SystemManager$cinit ()
    267 AVMINF: MTHD global$init ()
    267 AVMINF: MTHD flash.utils::Dictionary$cinit ()
    267 AVMINF: MTHD flash.utils::Dictionary ()
    267 AVMINF: MTHD flash.utils::Dictionary/init ()
    79 AVMINF: MTHD flash.display::Loader/get contentLoaderInfo ()
    379 AVMINF: MTHD flash.events::EventDispatcher/addEventListener ()
    379 AVMINF: MTHD flash.display::Loader/loadBytes ()
    380 AVMINF: MTHD flash.display::Loader/_buildLoaderContext ()
    380 AVMINF: MTHD flash.display::Loader/_getJPEGLoaderContextdeblockingfilter ()
    380 AVMINF: MTHD flash.display::Loader/_loadBytes ()
    More information:
    *I did read many answer already about the mm.cfg file, but I don't have that file, i don't even got firefox...
    *That is happens only when i am using flash player 10.2 + (IT DOES NOT HAPPENS WITH FLASH PLAYER 10.1 - )
    Please help,
    Thanks for advance.
    Esteban

    No.
    Working only with Flash Builder 4 to compile, but you can switch the flash player versions anyway.
    And when my flash version is up to 10.1 the trace console commes crazy, and brokes the debbug session.
    But never mind, i did kill the OS already in order to keep working.

  • FLASH BUILDER 4.7 PROBLEM PLEASE HELP

    Hello,
    So i just ordered the adobe creative cloud service today and downloaded the adobe application manager, installed Flash Builder 4.7 and then preceded to create a flash game.  It had tons of errors with my code so i then just did the simple HelloWorld program and it ran fine.  But as soon as i tried to type in more complex code like (import flash.display.Loader) it has a yellow triangle by this statement of code saying that (import flash.display.Loader is not used locally).  I have had this problem with the rest of my code also.  Please help!!!  I have already tried to contact adobe technical services but they said they couldn't help me because I had the creative cloud.  I am in desperate need of help!!!!!!!!!!!
    Thanks,
    DarkRue97

    Flash Builder 4.7 is warning about unused imports largely to help you clean up your code. These warnings may also be useful if you have made a typo in the qualified name. An unused import, however, should not stop you from building your application.
    If you're building a Flex application, then you should use a Flex project. Flex projects use the Flex SDK 4.6 already included in Flash Builder 4.7. Unless you're trying to customize or update the SDK for a specific reason, you shouldn't need to add a new Flex SDK if you're just starting out to explore developing a Flex application.
    Once you start writing more complicated applications or games that take advantage of the latest AIR features, you can update the Flex SDK with a later version of AIR by applying the updated AIR SDK overlay for Flex zip distribution manually. I would wait until you're more familiar with Flash Builder 4.7 and Flex projects before trying to upgrade an SDK. The following like describes the process:
    http://helpx.adobe.com/x-productkb/multi/how-overlay-air-sdk-flex-sdk.html
    If you're doing pure-ActionScript development, you can use an ActionScript project. These projects use the new compiler, ASC 2.0. In such a project, you cannot use Flex concepts, like MXML or CSS. Some Flex-specific metadata extensions in AS3 are also not supported. Just pure-AS3.

  • Installing Flex SDK into Flash Builder 4.7 problems

    Hi,
    Im completely new to Flash Builder, today I have installed Flash Builder 4.7 & Flash CS6 from Creative Cloud for my son to start to learn game programming (with my help), I have used simple coding in web design however this terminology is new to me.
    I bought my son the latest 'Foundation Game Design with ActionScript 3.0' book on recommendation but it was written when FB was version 4.5 so im guessing this might be the problem.
    The book is very easy to follow but have hit problems at the beginning of the tutorials, the book talks about Flex SDK but it seems that FB 4.7 uses AIR SDK ?
    So the first project called HelloWorld, we got up to:
    Got an exclamation mark which said
    'The import flash.display.Sprite is not used
    locally'
    Continuing with the rest of the project the exclamation mark disappeared:
    However on selecting run- Debug we got a blank Flash Player window  ('generate HTML wrapper file' was deselected)
    So either we've done something wrong, or the book and FB version are not compatible?
    Any advice would be great!
    Thank you
    Latest ...
    I thought that installing Flex SDK may solve the problem but after following instructions I have the error message, see image below. Really stumped now!

    Sorry, if I went a little overboard. After re-reading your post, perhaps I should back up a little.
    First, there are little things that Flash Builder (FB) will complain about. Having extra import statements in your code doesn't hurt anything. If I'm trying different solutions and then commenting out the code, the import statements will hang around, FB will complain, but just ignore it. If you see a little icon on the left edge of your code editor and its a red circle with an X in it, then that is something that will have to be fixed.
    When you create an app in FB or Flash you can choose to create a web app which means it will run in a browser window. The project can optionally create an HTML wrapper, or web page that will load your app. In Flash Pro you can choose File->Publish Settings and there will be a checkbox on the left to publish a HTML wrapper. In FB, you can right click your project in the Package Explorer, select Properties at the bottom, select the ActionScript Compiler, and down at the bottom there will be a checkbox to create a HTML wrapper.
    If you're just learning Flash Builder, then the FlexSDK 4.6 and the AIR SDK 3.1 that comes with it should be fine. You mentioned Apache SDK and I'd recently been working with that so I ended up getting side-tracked.
    Getting an AIRSDK to work with when build ActionScript projects is easy. Just go to the adobe site, type AIR SDK in the search box, and you should find a page that will let you downloaded the latest version. There's also a page to let you download the latest AIR runtime, and if you were just going to run AIR apps and not build them, then that's all you would need. As a developer you'll want to install the runtime from the downloaded .exe file. With the SDK, after downloading it, installing it is easy. Just create a new folder an unzip the SDK into it, then place it somewhere easy to find. I put all my SDK's in their own directory right off the c: drive. So I have c:\AIRSDK_3.5.0.880 and c:\AIRSDK_3.7.0.1530. I use very descriptive folder names so I always know which SDK's I have to work from.
    To use the SDK in Flash Pro select Help -> Manage AIR SDK, hit the plus button and add the folder you created. Now when you've opened a Flash project, you go to File->Publish Settings and select the combo box at the top, you'll see options like 'AIR 3.7.0.1530 for Android' in the list that reflect the SDK's you've added.
    Generally with FB you'll be using a FlexSDK, or perhaps a FlexSDK overlaid with a newer version of AIRSDK. Overlaid basically means you copied the contents of the AIR SDK into the Flex Folder. The article I mentioned above will give you all the details on creating those. For instance, I downloaded the Apache Flex installer, installed it, then created an empty folder called c:\ApacheFlexSDK_4.9.1, launched the Apache installer, gave it the new empty folder I'd created, selected all the download options, and let it all download. If it launches a popup box or a security warning, you can allow it, and it will continue. Once you have the SDK and you want to use it with a project in FB, just right click the project, select Properties, selected that Compiler tab again, and up in the right corner you'll see 'Manage SDK's...'. Hit that link, add your new SDK to the list and give it a descriptive name, then selected the checkbox beside it to set it up as your default. If you do this, then all your projects set to use the default will automatically switch to it and rebuild. So if you want a project to stay with a specific SDK then select that option in your Compiler tab, and then you could use the combo box to select your new added SDK.
    When I started with FB I think I spent the first 2 days going round and round with project settings and options until I got them all figured out.
    When I develop, I usually have my browser open and I have bookmarks and favorites to let me quickly get to all the pages I use most often. Here are a few of them:
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/index.html  <---- The API reference. In the packages window check out 'Top Level' at the top and Language Elements near the bottom. I think I have this page open in one or more tabs almost every day.
    http://www.adobe.com/devnet.html
    http://www.adobe.com/devnet/actionscript/learning.html
    http://help.adobe.com/en_US/as3/learn/index.html
    http://helpx.adobe.com/flash.html
    http://help.adobe.com/en_US/flashbuilder/using/index.html
    Free videos to help you learn Flash Pro:
    http://tv.adobe.com/show/learn-flash-professional-cs6-/
    http://tv.adobe.com/show/learn-flash-professional-cs5/
    And you've already found the forums! But if you don't find an answer here, many times you can find your question already answered on www.stackoverflow.com forums.
    Ok, I think I went a little overboard again.

  • Flash Builder 4 Run Problem

    When I Run a project in FB4 sometimes I have this weird problem where the changes I have made do not show up in the project I have just ran.  I can do something as simple as changing a label or complex as changing some AS code and it still has this problem.  I am not sure if it is random or what the issue is.  Has anyone else encountered this or have an answer as to why it might be happening?  Thanks in advance!

    I've recently been experiencing an abnormal number of occurrences of this error and Google directed me to this thread. In response to your question, here's the Error Log message that gets added when the "internal build error" occurs:
    null
    Error
    Mon Aug 06 13:11:03 EDT 2012
    Uncaught exception in compiler
    java.lang.NullPointerException
              at com.adobe.flexbuilder.project.ui.utils.ANE.AppXMLFileANEExtensionHandler.addToAppXmlFile( AppXMLFileANEExtensionHandler.java:74)
              at com.adobe.flexbuilder.project.ui.utils.ANE.AppXMLFileANEExtensionHandler.addToAppXmlFile( AppXMLFileANEExtensionHandler.java:46)
              at com.adobe.flexbuilder.project.ui.utils.ANE.ANEController.applyWorkingCopy(ANEController.j ava:720)
              at com.adobe.flexbuilder.project.ui.utils.ANE.ANEController.projectIsBuilt(ANEController.jav a:904)
              at com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.informProjectBuildList ener(FlexProjectBuilder.java:156)
              at com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.buildItem(FlexProjectB uilder.java:616)
              at com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.build(FlexProjectBuild er.java:382)
              at com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.build(FlexIncremen talBuilder.java:187)
              at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
              at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
              at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
              at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
              at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
              at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
              at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
              at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
              at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
              at org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:513)
              at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:422)
              at org.eclipse.ui.actions.GlobalBuildAction$1.run(GlobalBuildAction.java:180)
              at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
    My particular project is a Flex Mobile project with a couple of ANEs. I have to restart Flash Builder every couple of times I launch my project though because of this type of error.
    Any ideas? Could I provide you with any more information to help track down the problem?

  • App ios from flash builder add appStore problem

    I create an apps iOS FB4.7 with Apache Flex sdk 4.11.0 FP 12.0 AIR 4.0 en_US I have a problem with adding it to the AppStore. Gets a message the error message: ERROR ITMS-9000: "No architectures in the binary. Lipo failed to detect any architectures in the bundle executable.". Whether it may have a relationship with the new Apple SDK 8? Could there be another reason?

    The iPad and iPhone have NEVER supported Flash and never will. In fact, Adobe is no longer distributing Flash builds to mobile devices.
    Time to move on...

  • Flash Builder 4 Installation Problems

    I'm having trouble using Flash Builder 4. I first tried to use it as a plugin for eclipse, which didn't work, as I got an error when trying to open .mxml files. The error is the same one discussed in another discussion: a null pointer exception. I tried to follow the solution to the discussion but couldn't figure it out. So after uninstalling and reinstalling Flash Builder in plugin form, I downloaded and installed it as a standalone. The installing worked fine but when i tried to open the application, all I got was the license agreement popup repeatedly, even after I pressed accept. I'm not sure what's going on, but I've been told that it's a licensing problem. Is there a quick fix for this?

    Can someone please help me? I doubt that I'm the only one who has seen this problem before.

  • Flash Builder 4.5 problem

    Hello everybody.
    I'm hoping at least somebody has a similar problem: Flash Builder 4.5 and Windows 7 x64 with Flash Player 11.
    I try to launch a Flex Project in the browser but I get this message:
    C:\Windows\System32\Macromed\Flash\NPSWF64_11_1_102.dll
    Flash Builder cannot locate the required debugger version of Adobe Flash Player. You might need to install the debugger version of the Flash Player or reinstall Flash Builder.
    Do you want to try to debug with the current version?
    Apparently FB 4.5 looks for the 64 bit version of the NPSWF*.dll file, but I searched on my entire computer and I only find the "NPSWF32.dll" file, not the 64 one.
    Note: I have the *DEBUG* version of the Flash Player installed on FireFox 7, but it is indeed the 32 bit version because there ARE NO 64 BIT VERSIONS. Or at least none that I know of.

    I'm on Win7 64 bit with FB 4.5 and FP 11, and debug works fine.
    You may have the 32 bit debug player installed now, but try reinstalling the 32 bit debug player anyway.  If you're desperate, you could try renaming that 64 bit dll, copy a same-named 32 bit dll in it's place, and see what that does.  I used to do something similar to this when the security idiots where I work would push out new versions of FP all the time (although now I forget what I did specifically, I know it worked at the time).
    I'm thinking that re-installing the (32 bit) debug player will restore "something" that's causing your browser to point at the wrong Flash player version.  You could also try switching browsers (try Chrome).  If you're using IE 64 bit...well, don't.  It's not a Flash Builder problem, it's a browser plugin problem.

  • Flash Builder Macintosh installation problem

    I'm trying to install flashbuilder4_b2_mac_100509 on my MacBook running an up to date installation of Snow Leopard.  Despite having no other applications running, I get an error message right at the beginning of the process telling me to close all browsers. I have tried installing immediately after a reboot, again with no other apps running, and still get the same message.

    There seems to be no longer a Flash Builder forum where you can post, but perhaps you can ask in the Flex forum?

  • BlazeDS 4 and Flash Builder 4 Setup problems

    Hello All.
    I have downloaded BlazeDS4 and installed it onto a windows server using tomcat.  I have then been able to log into this server and use the examples provided using this address - http://localhost:8400/  I should note, that this link also works on remote computers by giving the correct IP address instead of localhost.
    So i know that Blaze is working fine.
    But now i want to configure this with Flash Builder 4, so that i can try and create my own apps.
    I go "File > New > Flex Project "
    Then i select J2EE from Server Technology, and then select "BlazeDS"
    Now this is where i get stuck, I don't know what settings to put for
    "Root Folder"  "Root URL" "Context Root"
    If for example my server IP is - 10.1.2.12:8400
    Could somebody talk thru me what settings i need to use ? I keep getting a message
    Invalid root. The WEB-INF/flex folder must contain either flex-config.xml or services-config.xml.
    If anyone could help I would be thankful ! !

    Hi guy,
    its actually quite simple.
    The  "Root Folder"  "Root URL" "Context Root" define your server directory and its url.
    as the root folder you put in
    <your blazeds install dir>/tomcat/webapps/<your project dir> // you take the blazeds.war file and copy it , rename it and voila your app dir is ready
    so it should read something like : c:\blazeds\tomcat\webapps\my_project --> this then has a WEB-INF/flex directory in it. Thats why you have that error of yours  --> Invalid root. The WEB-INF/flex folder must contain either flex-config.xml or services-config.xml.
    the root url is something like
    http://localhost:8400/<your context root> --> is usually your project name in lower case
    the context root is your project name, the same name as your copied blazeds.war file
    <my_project_name> --> thats what you insert to access your app in a webbrowser
    Hope that helped a bit
    I am just getting started myself, so i hope i didnt make any mistake, if so I would also be happy if anybody you knows better corrects me    
    Have fun and good luck
    einrocker

  • Flash Builder embed video in different stages

    Hi, I'm Paulinho Cé from Brasil and i have a problem to embed youtube videos on my site in different stages FlashBuilder.
    I have 10 videos and want to display them in the event of each button corresponding to a different stage.
    This code works in the main application but not in the stages of the site, because the functions and variables are global and can not change the url of the video to a video display differently at each stage.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    layout="absolute" verticalAlign="top"
    creationComplete="Init();" >
    <mx:Script>
    <![CDATA[
    private function Init():void
    var url:String = "http://www.youtube.com/v/zlfKdbWwruY&hl=en&fs=1"; //url extracted from embed code
    Security.allowDomain(url); //allow domain
    youtubevid.load(url); //load video
    ]]>
    </mx:Script>
    <mx:VBox width="100%" height="100%" horizontalAlign="center" verticalAlign="top" verticalGap="0">
    <mx:Label text="YouTube Video Embedded Inside Flex" width="100%"  color="#060809" textAlign="center" fontSize="16" fontWeight="bold"/>
    <mx:SWFLoader id="youtubevid" verticalAlign="top" horizontalAlign="center"  width="425" height="344"/>
    </mx:VBox>
    </mx:Application>
    <iframe title="YouTube video player" width="480" height="390" src="http://www.youtube.com/embed/kdhuQJRW6kA" frameborder="0" allowfullscreen></iframe>
    Because this solution is of extreme importance to me, I requestthe help of experts, which immensely grateful.
    Thanks for all,
    Congrat's
    Paulinho Cé

    This appears to be Flex question. Please try posting this to the Flex forums here http://forums.adobe.com/community/flex/flex_general_discussion for better response.

  • I cannot install flash builder 4.6.  Installation hangs while unpacking files

    Below is the information from the event viewer.  I am using Windows XP SP3.  I don't know, but I wonder if it has something to do with our roaming profiles.  The place it seems to be trying to unpack to is \\EssexHQVM\Desktops$\user.name\Desktop\Adobe Flash Builder 4.6 Installer, which has a special character in it.  I can't find any way to have the file unpack to another location, it doesn't prompt for a location.
    Event Type:
    Error
    Event Source:
    Application Hang
    Event Category:
    (101)
    Event ID:
    1002
    Date:
    12/9/2011
    Time:
    10:56:55 AM
    User:
    N/A
    Computer:
    MIKESHOST
    Description:
    Hanging application FlashBuilder_4_6_LS10.exe, version 1.0.1.2, hang module hungapp, version 0.0.0.0, hang address 0x00000000.
    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
    Data:
    0000: 41 70 70 6c 69 63 61 74   Applicat
    0008: 69 6f 6e 20 48 61 6e 67   ion Hang
    0010: 20 20 46 6c 61 73 68 42     FlashB
    0018: 75 69 6c 64 65 72 5f 34   uilder_4
    0020: 5f 36 5f 4c 53 31 30 2e   _6_LS10.
    0028: 65 78 65 20 31 2e 30 2e   exe 1.0.
    0030: 31 2e 32 20 69 6e 20 68   1.2 in h
    0038: 75 6e 67 61 70 70 20 30   ungapp 0
    0040: 2e 30 2e 30 2e 30 20 61   .0.0.0 a
    0048: 74 20 6f 66 66 73 65 74   t offset
    0050: 20 30 30 30 30 30 30 30    0000000
    0058: 30                        0      

    So, the best solution that I have come up with, which is a poor solution, is to run the .exe file on a machine that is not connected to our network and wait for the files to unpack.  Then copy the files to a thumb drive and move them to the computer that I work from.  I can then install Flash builder with no problem. 
    This is a kludgy work around that ought not be.  How hard is it to have the unpacking routine prompt for a location?  That would allow me to give it a location to unpack that would not cause a hang up.  Or, failing that, why not unpack in the same location as the file that is doing the unpacking?  Then I could simply place the file in a good location and let it run.

  • 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

  • How do I use Embed with an environment variable in an Actionscript AIR project Flash Builder 4.7

    I am using Flash Builder 4.7 to build an Actionscript AIR project.  The project embeds a number of png files from my local directory and I have been using absolute paths which all works fine.
    I have a laptop with which I want to start developing the same project - I set up a git repository that both the laptop and main pc can pull from and so I can get the source where I need it and push it back to the central repository.
    My problem is that the absolute paths for the embed commands don't work on the laptop as it has a different filesystem setup (Windows 8 with one drive as opposed to Windows 7 with a SSD and a data drive).  I thought the solution would be as easy as using an environment variable to specify the path which could then point to a different physical directory on both machines, i.e:
    [Embed(source = "DEVELOPER_RESOURCES/graphics/are/here.png"]
    I did a bit of research and there was quite a lot mentioned about setting up resource directories using path variables which I worked through but I just can't get it to compile.  The Actionscript compiler just won't find the png files however I specify the path.  I tried something with a FLEX project and the compiler didn't complain but I think this is because the compiler for FLEX uses a different convention.
    [Embed(source ="/Project Name/DEVELOPER_RESOURCES/graphics/are/here.png"]  works with FLEX but not Actionscript.
    So does anyone have a recipe for using the Embed command referencing assets using an environment variable that works across multiple machines with different file structures?

    I managed to find a solution on Windows which was to use symlinks and absolute paths.  You an basically point one directory to another so I did something like:
    mklink c:\developer_resources c:/the/local/path/to/my/resources
    and then reference all resources as c:\developer_resources\...
    Now as long as a developer machine has the right link (from c:\developer_resources to the place where the resources are kept) then it seems to work. 
    This doesn't however work for Mac and certainly isn't a solution for passing files between Mac and windows

  • Flash Builder 4.7 Embed Error

    I originally posted something similiar in the "Using Flash Builder" section but decided to post something here thinking it would get more coder eyes.
    This worked in Flash Builder 4.5 using the Flex 4.6 SDK with the AIR 3.5 SDK.
    However in Flash Builder 4.7 using the Flex 4.6 SDK with the AIR 3.5 SDK the following:
    package
              import flash.display.Sprite;
              public class TestProject extends Sprite
                        [Embed(source = "Image.png", mimeType = "image/png", compression="true", quality="80")]
                        private static var _imageClass:Class;
                        public function TestProject()
    Is generating these errors:
    Error 1:
    Internal error in outgoing dependency subsystem, when generating code for: C:\Users\users\Adobe Flash Builder 4.7\TestProject\src\Image.png: java.lang.ArrayIndexOutOfBoundsException: 0
              at com.adobe.flash.compiler.internal.units.EmbedCompilationUnit.analyze( EmbedCompilationUnit.java:224)
              at com.adobe.flash.compiler.internal.units.EmbedCompilationUnit.handleOu tgoingDependenciesRequest(EmbedCompilationUnit.java:193)
              at com.adobe.flash.compiler.internal.units.CompilationUnitBase.processOu tgoingDependenciesRequest(CompilationUnitBase.java:886)
              at com.adobe.flash.compiler.internal.units.CompilationUnitBase.access$50 0(CompilationUnitBase.java:107)
              at com.adobe.flash.compiler.internal.units.CompilationUnitBase$6$1.call( CompilationUnitBase.java:378)
              at com.adobe.flash.compiler.internal.units.CompilationUnitBase$6$1.call( CompilationUnitBase.java:374)
              at com.adobe.flash.compiler.internal.units.requests.RequestMaker$1.call( RequestMaker.java:228)
              at com.adobe.flash.compiler.internal.units.requests.RequestMaker$1.call( RequestMaker.java:222)
              at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
              at java.util.concurrent.FutureTask.run(Unknown Source)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
              at java.lang.Thread.run(Unknown Source)          Image.png          /TestProject/src          line 0          Flex Problem
    Error 2:
    The definition of base class Bitmap was not found.
    With a warning:
    Definition flash.utils.Bitmap could not be found.
    If you drop the quality param:
    package
         import flash.display.Sprite;
         public class TestProject extends Sprite
             [Embed(source = "Image.png", mimeType = "image/png", compression="true")]
             private static var _imageClass:Class;
             public function TestProject()
    The errors change to:
    Internal error in ABC generator subsystem, when generating code for: C:\Users\user\Adobe Flash Builder 4.7\TestProject\src\TestProject.as: java.lang.NullPointerException
              at com.adobe.flash.compiler.internal.embedding.transcoders.JPEGTranscode r.equals(JPEGTranscoder.java:220)
              at com.adobe.flash.compiler.internal.embedding.EmbedData.equals(EmbedDat a.java:522)
              at java.util.WeakHashMap.eq(Unknown Source)
              at java.util.WeakHashMap.get(Unknown Source)
              at com.adobe.flash.compiler.internal.workspaces.Workspace.getCanonicalEm bedData(Workspace.java:933)
              at com.adobe.flash.compiler.internal.units.EmbedCompilationUnitFactory.g etEmbedData(EmbedCompilationUnitFactory.java:120)
              at com.adobe.flash.compiler.internal.units.EmbedCompilationUnitFactory.g etCompilationUnit(EmbedCompilationUnitFactory.java:62)
              at com.adobe.flash.compiler.internal.tree.as.EmbedNode.resolveCompilatio nUnit(EmbedNode.java:116)
              at com.adobe.flash.compiler.internal.tree.as.EmbedNode.resolveCompilatio nUnit(EmbedNode.java:126)
              at com.adobe.flash.compiler.internal.tree.as.EmbedNode.resolveCompilatio nUnit(EmbedNode.java:43)
              at com.adobe.flash.compiler.internal.units.EmbedCompilationUnitFactory.c ollectEmbedDatas(EmbedCompilationUnitFactory.java:136)
              at com.adobe.flash.compiler.internal.as.codegen.ABCGenerator.generate(AB CGenerator.java:184)
              at com.adobe.flash.compiler.internal.units.ASCompilationUnit.handleABCBy tesRequest(ASCompilationUnit.java:374)
              at com.adobe.flash.compiler.internal.units.CompilationUnitBase.processAB CBytesRequest(CompilationUnitBase.java:870)
              at com.adobe.flash.compiler.internal.units.CompilationUnitBase.access$30 0(CompilationUnitBase.java:107)
              at com.adobe.flash.compiler.internal.units.CompilationUnitBase$4$1.call( CompilationUnitBase.java:309)
              at com.adobe.flash.compiler.internal.units.CompilationUnitBase$4$1.call( CompilationUnitBase.java:305)
              at com.adobe.flash.compiler.internal.units.requests.RequestMaker$1.call( RequestMaker.java:228)
              at com.adobe.flash.compiler.internal.units.requests.RequestMaker$1.call( RequestMaker.java:222)
              at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
              at java.util.concurrent.FutureTask.run(Unknown Source)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
              at java.lang.Thread.run(Unknown Source)          TestProject.as          /TestProject/src          line 0          Flex Problem
    Internal error in outgoing dependency subsystem, when generating code for: C:\Users\user\Adobe Flash Builder 4.7\TestProject\src\TestProject.as: java.lang.NullPointerException
              at com.adobe.flash.compiler.internal.embedding.transcoders.JPEGTranscode r.equals(JPEGTranscoder.java:220)
              at com.adobe.flash.compiler.internal.embedding.EmbedData.equals(EmbedDat a.java:522)
              at java.util.WeakHashMap.eq(Unknown Source)
              at java.util.WeakHashMap.get(Unknown Source)
              at com.adobe.flash.compiler.internal.workspaces.Workspace.getCanonicalEm bedData(Workspace.java:933)
              at com.adobe.flash.compiler.internal.units.EmbedCompilationUnitFactory.g etEmbedData(EmbedCompilationUnitFactory.java:120)
              at com.adobe.flash.compiler.internal.units.EmbedCompilationUnitFactory.g etCompilationUnit(EmbedCompilationUnitFactory.java:62)
              at com.adobe.flash.compiler.internal.tree.as.EmbedNode.resolveCompilatio nUnit(EmbedNode.java:116)
              at com.adobe.flash.compiler.internal.tree.as.EmbedNode.resolveCompilatio nUnit(EmbedNode.java:126)
              at com.adobe.flash.compiler.internal.tree.as.EmbedNode.resolveCompilatio nUnit(EmbedNode.java:43)
              at com.adobe.flash.compiler.internal.units.CompilationUnitBase.updateEmb edCompilationUnitDependencies(CompilationUnitBase.java:946)
              at com.adobe.flash.compiler.internal.units.ASCompilationUnit.handleOutgo ingDependenciesRequest(ASCompilationUnit.java:458)
              at com.adobe.flash.compiler.internal.units.CompilationUnitBase.processOu tgoingDependenciesRequest(CompilationUnitBase.java:886)
              at com.adobe.flash.compiler.internal.units.CompilationUnitBase.access$50 0(CompilationUnitBase.java:107)
              at com.adobe.flash.compiler.internal.units.CompilationUnitBase$6$1.call( CompilationUnitBase.java:378)
              at com.adobe.flash.compiler.internal.units.CompilationUnitBase$6$1.call( CompilationUnitBase.java:374)
              at com.adobe.flash.compiler.internal.units.requests.RequestMaker$1.call( RequestMaker.java:228)
              at com.adobe.flash.compiler.internal.units.requests.RequestMaker$1.call( RequestMaker.java:222)
              at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
              at java.util.concurrent.FutureTask.run(Unknown Source)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
              at java.lang.Thread.run(Unknown Source)          TestProject.as          /TestProject/src          line 0          Flex Problem
    If you try to set compression to false:
    package
         import flash.display.Sprite;
         public class TestProject extends Sprite
             [Embed(source = "Image.png", mimeType = "image/png", compression="false")]
             private static var _imageClass:Class;
             public function TestProject()
    You get the following:
    The attribute compression can't be used with the mime type: image/png
    Change it to jpeg:
    package
         import flash.display.Sprite;
         public class TestProject extends Sprite
             [Embed(source = "Image.png", mimeType = "image/jpeg", compression="false")]
             private static var _imageClass:Class;
             public function TestProject()
    You get the following:
    The attribute compression can't be used with the mime type: image/jpeg
    Is anyone else getting these same results with Flash Builder 4.7 with Flex SDK 4.6 and AIR SDK 3.5? I expect that we still should be able to compress embedded assets within Flash Builder?

    Upgraded Flex 4.6 SDK to use the new AIR 3.6 SDK and the Flash Builder 4.7 to use the new AIR 3.6 SDK with the new compiler and I am still getting this. I had some other people try these steps and they got the exact same error so it doesn't seem to be just me. Is noone here getting this or am I the only one trying to embed a png directly into a Flash Builder project? =/

Maybe you are looking for

  • Invoices for free of cost material

    Hi All, We are creating a delivery for free of cost material. while creating a billing document using T. Code VF01 with reference to delivery, i can create multiple invoices with reference to same delivery. How cani block creating the multiple invoic

  • Crystal reports Server XI

    Hi I have installed Crystal Report Server XI (not XI R2). But in desktoplaunch folder I do not see OpenDoc folder also there is no openDocument.jsp. Also IN menu there is option op InfoeView but when I click on it it says resource not available. are

  • Sorting and Grouping by multi-value Choice columns - any options?

    I found out the hard way that SharePoint doesn't support sorting or grouping lists by Choice columns that are set to "Allow Multiple Values." I'm stunned by this missing capability, and my project has come to a complete halt without it. It's like Mic

  • No preview

    when i place a .ai file in another .ai file i get no preview. the reason for this is i need to step and repeat the file and if i make any correx to the 1up then this will update the file with the placed .ai in it. any help would be great. i saved the

  • Re: LOIPRO02 IDoc

    Hello Experts, I am facing an issue with LOIPRO02 IDoc type through which I send production order to an external system. I have a product assembled on two lines (2 production versions). It has BOM components assigned to operations 60 and 70. When I c