Cannot embed image in flash builder 4.7

I am building a game in flash 4.7, each time i try to embed an image an error occurs, it says that it cannot locate the source of the image, please what can i do to fix that problem?

There is a disconnect between a pure actionscript project and a flex project.
You need to supply an absolute path in pure actionscript.
If you have an Assets class in say src/core and your assets folder is on the same level as src
you need:
[Embed(source="../../assets/sky.png")]
Is real pain in the rectum, because in Flex [Embed(source="assets/sky.png")] will work

Similar Messages

  • How do i embed fonts in flash builder 4?

    how do i embed fonts in flash builder 4?
    thanks,
    daniel

    Try http://blog.flexexamples.com/2008/10/15/embedding-fonts-in-flex-gumbo/
    I also answered in your other thread, http://forums.adobe.com/thread/482315.
    Let us know if you're still having problems and we can try and help you get started.
    Peter

  • Cannot load Design mode flash builder 4 preminum trail version

    Hi
    I installed flash builder4 premium trail version .After creating project when i click on the design mode . It displays an alert box containg the message like cannot load design mode with title as outof memory . How can slove this problem.
    Here i  attached the image file.
    Thanks in advance
    Regards
    ss

    sss999sss, Dezoris, ypeng, GJam564: Can you guys reproduce the issue still?
    When you can, please comment on this bug http://bugs.adobe.com/jira/browse/FB-25594 and attach your error log from your workspace
    Win: C:\users\you\Adobe Flash Builder 4 Plug-in\.metadata\.log
    Mac: /Users/you/Documents/Adobe Flash Builder 4 Plug-in/.metadata/.log
    It would be helpful to know if this is limited to a particular MXML file or if it also reproduces in an empty Application.
    Also, just to be sure, try to reproduce this bug a new workspace:
    1) File > Switch Workspace > Other...
    2) Specify a new folder
    We'll continue to follow up on FB-25594. Again, please post your log and platform (mac/win, memory, etc.) information on the bug.
    Jason San Jose
    Software Engineer, Flash Builder.

  • Invalid Launch Image in Flash Builder 4.6

    I've been making updates and releases to my iPad app for the last several months, but just recently, I started receiving this email back from Apple:
         iPhone 5 Optimization Requirement - Your binary is not optimized for iPhone 5. As of May 1, all new iPhone apps and app updates submitted must support the 4-inch display on iPhone 5. All           apps must include a launch image of the appropriate size. Learn more about iPhone 5 support by reviewing the iOS Human Interface Guidelines.
    I've been googling this for a while, and have tried adding  Default.png (320x480), Default-586h.png (640x960), and [email protected] (640x960) files to the root directory and made sure they were being compiled into the .ipa file.  With the [email protected] file, I received an additional error in the nastygram from Apple:
         Invalid Launch Image - Your app contains a launch image with a size modifier that is only supported for apps built with the iOS 6.0 SDK or later.
    So I took out the @2x file and it still failed.  Now, my app isn't even intended for the iPhone5, it's intended for the iPad.  What can I do to make them happy so I can keep making releases?

    These are the errors tackled with this post:
    iPhone 5 Optimization Requirement - Your binary is not optimized for iPhone 5. As of May 1, all new iPhone apps and app updates submitted must support the 4-inch display on iPhone 5. All apps must include a launch image with the -568h size modifier immediately following the <basename> portion of the launch image's filename. Launch images must be PNG files and located at the top-level of your bundle, or provided within each .lproj folder if you localize your launch images. Learn more about iPhone 5 support and app launch images by reviewing the iOS Human Interface Guidelines and iOS App Programming Guide.
    Invalid Launch Image - Your app contains a launch image with a size modifier that is only supported for apps built with the iOS 6.0 SDK or later.
    Non-PIE Binary - The executable 'C-Print Mobile.app' is not a Position Independent Executable. Please ensure that your build settings are configured to create PIE executables. For more information, refer to Technical Q&A QA1788 - Building a Position Independent Executable
    I followed these steps to get my app .ipa to the point where Apple would accept it:
    Download the latest AIR SDK. My Flash Builder was using the AIR SDK 3.6. From within Flash Builder I clicked "Check for updates..." and Flash Builder said it was up-to-date. BUT when checked the AIR SDK website, there in fact was a newer version. So you may need to update, even if Flash Builder says otherwise. To check, go to Windows -> Preferences -> Installed AIR SDKs. If you have AIR SDK 3.6 or less, you need to update.
    The latest SDK can be downloaded here:
    http://www.adobe.com/devnet/air/air-sdk-download.html
    IMPORTANT: If you are building a Flex project (that was my situation), you will need to download the SDK without the compiler. This will be under the "Note: Flex users will need to download the original AIR SDK without the new compiler." section.
    Install the downloaded SDK. The instructions are different for Flex projects and ActionScript projects.
    Flex: http://helpx.adobe.com/x-productkb/multi/how-overlay-air-sdk-flex-sdk.html
    ActionScript: http://helpx.adobe.com/flash-builder/kb/overlay-air-sdk-flash-builder.html
    Reference the correct version in your app.xml file. My app was using AIR SDK 3.1, which is very old. As of this writing, I'm now using:<application xmlns="http://ns.adobe.com/air/application/3.7">
    Include a splash screen image called [email protected] in the top-most level of your source. This file must be 640x1136 (width x height), and is required for iPhone 5 devices.
    Read the following forum thread about the Non-PIE Binary issue. As of this writing, it is being regarded as "not a big deal", but Apple may become more strict about this in the future.http://forums.adobe.com/message/5281575
    Best of luck. If these steps work for you, let me, and others, know here in the forums!

  • Can't load an image in flash builder

    Hi, I recently copied my project from one computer to another.  On my old computer, everything worked fine, but on my new computer, when it tries to load images, it gives me this error :
    Error #2148: SWF file http://localhost/MyProject-debug/MyProject.swf/[[DYNAMIC]]/2 cannot access local resource file:///C:/assets/MyImage.jpg. Only local-with-filesystem and trusted local SWF files may access local resources.
    But that's not where it gets REALLY frustrating.  So I changed the location of the image to a bin-debug folder in my project, and it doesn't give me an error anymore... it gives me a broken image icon instead.  The image looks fine in Flex Builder, but when I view it in my web browser, I get a broken image icon!  I know it's pointing to the right spot.  Any idea why this could be?

    **having relative path would eliminate a lot of errors, else have complete path like Http://localhost:800 ...... shoud b mentioned for each and every image which is not usable.

  • Cannot import images into Flash Catalyst 5.5 on Windows 7 64bit

    Hello,
    when i try to import any image (i tried it with .jpg .png and .psd) i always end up with a placeholder image on my stage that looks like this:
    Can anyone tell me what might be wrong? When i load files that i created with the first version of catalyst i get the same result. All the images are replaced by the placeholder image
    Edit: I just installed it on my old Windows XP System and it's working fine.

    Hello Chris,
    i just tried it with a blank project. My code looks like this:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:d="http://ns.adobe.com/fxg/2008/dt"
                   xmlns:fc="http://ns.adobe.com/flashcatalyst/2009"
                   width="100%" height="100%" backgroundColor="#FFFFFF" preloaderChromeColor="#FFFFFF"
                   fc:previewHeight="600" fc:previewWidth="800">
        <fx:DesignLayer d:userLabel="Ebene 1">
            <s:BitmapImage x="392" y="292" smooth="true"
                           source="@Embed('/assets/images/Chrysanthemum.jpg')"/>
        </fx:DesignLayer>
    </s:Application>
    The image is present in the assets folder: (Chrysantheme.jpg)
    I can doubleclick the image-name and get a preview of it. It seems to have importet correctly.

  • Is there a way to Open as3Proj in Flash Builder or Flex?

    I am starting to work on a project that they've been developing in FlashDevelop. Flash Develop creates a as3proj and I am sure there is a way to work on the project in Flash Builder...
    You guys have any idea on how I would go about doing that?
    Thanks!

    Hello,
    So I am not familiar with FlashDevelop and how it stores its projects, but is there any reason why you cannot just create a Flash Builder ActionScript project and point it to the same source files and libraries etc?
    -george
    George Comninos
    Sr Computer Scientist
    Adobe Systems Inc

  • Flash Builder 4.5 Debugger Problem

    Hey Everyone,
    I spent the better half of the last hour searching for a remedy to my situation but have not found one. I have a problem where in Flash Builder 4.5 I keep losing my debugger version of Flash Player. I download the version here http://www.adobe.com/support/flashplayer/downloads.html#fp10 and it works again. However, seemingly random it will do it again a couple of days later. So I'm trying to figure out what is causing this or how I can fix it. It is quite annoying to go to jump into a project, debug it and then have to stop everything and download it again. Anyone know how to fix this?
    I am running it on Mac OSX 10.6.7 (latest).
    This is the message I receive when it breaks:
    "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?"

    My two cents on this issue & how I resolved it.
    I was getting a similar message which referenced a location in C:\Windows\System32\Macromed\Flash, and was looking for this version of the Flash Player: Flash64_10_3_162.ocx
    What I tried that did NOT help:
    Re-associating the SWF file type to open with a Flash Player debugger version downloaded from Adobe's site.
    These three steps resolved the issue for me:
    I had installed the 64-bit version of the Flash Player a few months ago, so I uninstalled that since it cannot be used by Flash Builder as a debugger. Back in FB 4.5.1, I got another message saying Flash was not installed at all.
    I used Adobe's Flash uninstaller tool and then,
    re-installed the latest debuggers for IE & Firefox.
    I can now debug in IE or FF without any issues. FB finds the debug version of the Flash Player.
    From what I saw when researching this, there seem to be many causes for this issue so I'll give Adobe some slack here. I will point out that the post from Adobe employee Anirudh Sasikumar, above, was not helpful in my case and was in fact misleading and not specific enough as to the location of the file he referenced. I searched for that file and found dozens of them on my machine, none in any location he mentioned. I wish he would have taken a little more time to give a complete path to this file. Maybe he did, but I could not find that path, or folders, on my machine. I work in a tightly-controlled network environment so perhaps these folders are ones I cannot see due to permissions issues, but it would've saved me time to get a complete path to start with.
    For complete and full disclosure, here is my set-up; hopefully this will help others with a similar setup who are experiencing this nagging issue:
    Windows 7 Enterprise 64-bit, Service Pack 1
    Flash Builder 4.5.1.313231
    Eclipse 3.6.1r361_v20100909xxxxxxx
    Flash Debugger version (IE & FF): 10.3 r183

  • Flash Builder resets php include_path?

    Hi,
    using the data services of flash builder 4, I run into the following problem:
    we gathered all our include directories in one php file, that sets the include_path (ini_set('include_path')). The service classes include that file as a very first statement so the include_path points to several directories spread over the project, that contain further code.
    the benefit of this is that we do not need to bother about any directory trees when putting together our project. Due to the complexity of the project this still seems to be a good idea...but nevertheless...
    Now when I call a service via the Fb context menu in order to configure the returned data types I always get error messages saying some files could not be found. The error message dumps the include_path var as well and for some reasons all it contains at that point are the pathes to MAMP/php and the ZendFramework/library path.
    I dumped the include_path at several locations to check. Looks fine in the services when I dump right behind the include statement for the paths. But in any other class/function it seems to be reset.
    Calling the services over amfphp browser seems to work fine.
    I might be just pretty blind, so please make me see
    THX!

    Not sure what could be the cause of this failure, we will need you complete setup to reproduce, if it is Ok with you.
    If you would like do debug what could be the cause, let me explain how the amf calls are made from Flash Builder.
    You pointed out that Flash Builder is changing the include_path, but that cannot be done by Flash Builder directly.
    The way it works is that whenever you try using PHP Service from the Data Service view, Flash Builder first installs Zend Framework on your server if it is not present already. Then it puts gateway.php and amf_config.ini files in the output folder of the flex project on your server.
    Now this gateway.php actually becomes the endpoint to make amf requests, and can be used by Flash Builder or any other client like a Flex application running on Flash player.
    The gateway.php file does contain a modification of include_path, where it adds the Zend library in the path, but it does not remove anything.
    You make try to dump the path in gateway.php file to debug the cause of this issue.
    Thanks,
    - Gaurav

  • FLASH Builder 4.5 Debugger Issues

    Hey,
    Recently the projects I've been working on have had additional compiler arguments added to it:
    http://livedocs.adobe.com/flex/3/html/help.html?content=compilers_21.html
    (e.g. -define+=myval,true -define+=myvalx,false)
    This works ok for the compiler but I'm noticing now sometimes my FLASH Builder will now trigger breakpoints in external libraries no matter what I do.
    I've referenced the library directly from my application, removed any swc references internally, did a clean etc. This never happened before when I never had these conditional compiler arguments. Breakpoints also work fine within the context of the main application.
    Has anyone experienced this before and know anyway to work around it?
    (This doesn't ALWAYS happen, sometimes the very same library works fine, but other times it does not)
    Thanks,
    Sean

    My two cents on this issue & how I resolved it.
    I was getting a similar message which referenced a location in C:\Windows\System32\Macromed\Flash, and was looking for this version of the Flash Player: Flash64_10_3_162.ocx
    What I tried that did NOT help:
    Re-associating the SWF file type to open with a Flash Player debugger version downloaded from Adobe's site.
    These three steps resolved the issue for me:
    I had installed the 64-bit version of the Flash Player a few months ago, so I uninstalled that since it cannot be used by Flash Builder as a debugger. Back in FB 4.5.1, I got another message saying Flash was not installed at all.
    I used Adobe's Flash uninstaller tool and then,
    re-installed the latest debuggers for IE & Firefox.
    I can now debug in IE or FF without any issues. FB finds the debug version of the Flash Player.
    From what I saw when researching this, there seem to be many causes for this issue so I'll give Adobe some slack here. I will point out that the post from Adobe employee Anirudh Sasikumar, above, was not helpful in my case and was in fact misleading and not specific enough as to the location of the file he referenced. I searched for that file and found dozens of them on my machine, none in any location he mentioned. I wish he would have taken a little more time to give a complete path to this file. Maybe he did, but I could not find that path, or folders, on my machine. I work in a tightly-controlled network environment so perhaps these folders are ones I cannot see due to permissions issues, but it would've saved me time to get a complete path to start with.
    For complete and full disclosure, here is my set-up; hopefully this will help others with a similar setup who are experiencing this nagging issue:
    Windows 7 Enterprise 64-bit, Service Pack 1
    Flash Builder 4.5.1.313231
    Eclipse 3.6.1r361_v20100909xxxxxxx
    Flash Debugger version (IE & FF): 10.3 r183

  • Having a problem with Flash Builder and Extension Builder - images not apearing on Mac system

    Have a panel created in Flash Builder 4.5 with Extension Builder 2.1. Everything is fine when installed on a PC but when installed on a Mac the images in the panel do not show.
    Mac and PC both using Adobe Photoshop CC . Both installed from same .ZXP file using Adobe Extension Manager CC.
    Any ideas?

    No I used relative path - the path is  images/image name
    example images/cRight.png
    tried downloading Extension Builder 2.1 and compiling on Mac but still have same results - images show up fine in design window , but not when running panel in Photoshop
    Created a new project: testImage
    added an image component to form
    answered yes to add asset to project
    ran project
    image did not show up in Photoshop
    went back to project
    checked item Embed under Common image properties
    ran project and image shows up
    Looks like it works if I add @Embed("assets/image name") on Mac to display images
    tried in my real project:
    Looks like it works if I add @Embed("images/image name") on Mac to display images
    When I change this on PC to @Embed("images/image name") images do not show Up
    Don't know if I need to create two versions one for Mac one for PC
    Don't know how this would affect product on Adobe Exchange

  • 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? =/

  • Flash Builder 4.5 SOAP call for images using Base64 Encoding

    I am trying to load some image meta data in a flash builder mobile application by making a SOAP call to .Net service. I am able to test the web service successfully using a .Net console application. However when I make the call from flash builder mobile client I get a null result. What am I doing wrong? I am using SOAP 1.1 ByteArray didn't work for Flash builder. So converted the ByteArray to Base64 format and tried to obtain result that way. Both ways worked from a .Net Client but not working from Flash mobile.
    Here is the code
    <fx:Script>
            <![CDATA[          
                import mx.graphics.ImageSnapshot;
                import mx.graphics.codec.JPEGEncoder;
                import mx.graphics.codec.PNGEncoder;
                import mx.rpc.AsyncToken;
                import mx.utils.Base64Encoder;         
                import services.exifimagemetadata1.ExifImageMetaData1;         
                import spark.components.Image;     
                public var metaData:ExifImageMetaData1 = new ExifImageMetaData1();         
                public var imageBytes:ByteArray = new ByteArray();
                public var gpsData:String;
        private function getBase64EncodedImage():String
                    var myEncoder:Base64Encoder = new Base64Encoder();
                    myEncoder.encodeBytes(getImageBytes());            
                    var image64BitText:String = myEncoder.toString();                          
                    return image64BitText;
        public function GetMetaDataFromExif():void{
                    var imageToken:AsyncToken = metaData.GetExifBase64Data(getBase64EncodedImage());               
                    gpsData = imageToken.result.toString();
                    metaResult.text = gpsData;
        protected function GetImageMetaDataFromExif(event:MouseEvent):void
                    GetMetaDataFromExif();         
            ]]>
        </fx:Script>
    <s:layout>
            <s:VerticalLayout>         
            </s:VerticalLayout>
        </s:layout>
        <s:HGroup>
            <s:Image id="test" width="130" height="140" source="@Embed(source='assets/p1000106.jpg')"/>
        </s:HGroup>
        <s:HGroup>
        <s:Label width="100" height="140" backgroundColor="Blue" click="GetImageMetaDataFromExif(event)">
            <s:text/>
        </s:Label>
        </s:HGroup>
        <s:HGroup>
            <s:Label id="metaResult" width="200" height="140" backgroundColor="yellow"/>           
        </s:HGroup>

    Hello everyone -
    Since I last posted an interesting update happened. I tested my  Flex application again, it is calling a Jetty Server that returns a JSON object, in different BROWSERS.  I disabled HTTPS for now, and the crossdomain.xml policy file is wide open for testing (ie. allowing every request to return data). So the app accessing the data using HTTP only. Browsers  -  IE, Opera, Firefox and Chrome. Each browser contained the SAME application, revision of the Flash Player (10.3.183.10 debugger for firefox, chrome, opera, safari PC; 11.0.1.129 consumer version in IE9,) take a look at the screen shot (safari not shown although the result was the same as IE and chrome)
    Note that Opera and Firefox returned successful values (i.e. successful JSON objects) using the same code generated from the Data Services Wizard. Chrome, IE and, Safari failed with an Internal error. So I am left wondering - WHY? Is it something with the Flash Player? the Browsers?  the Flex SDK? Any thoughts are appreciated. Again, the code is found in the original thread above.

  • 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

  • Cannot install Flash Builder on a network home drive

    When trying to install in our corporate environment we have network home drives and the Flash Builder installer for some reason tries to create a directory here:
    \\escfil02\homedir\deancj\..\Adobe Flash Builder 4
    We noone here has permission to create a directory outside our home directory since it is using the .. directory.  Perhaps that works fine when your home directory is local on your C: drive but it doesn't work here and I cannot really change my %HOMESHARE% environment variable (or can I?)  Then I get 25 other errors but they may all be related to this first one I don't know.  They are all ERROR 15078 errors
    How can I get past this?
    Here is the full list of errors:
    Exit Code: 7
    -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 25 error(s), 0 warning(s)
    ERROR: 15080 Unable to create directory "\\escfil02\homedir\deancj\..\Adobe Flash Builder 4
    ERROR: 15080 Command ARKCreateDirectoryCommand failed.
    ERROR: 15080 Unable to delete directory "\\escfil02\homedir\deancj\..\Adobe Flash Builder 4". Error 2 The system cannot find the file specified.
    ERROR: 15080 Error rolling back command ARKCreateDirectoryCommand
    ERROR: 15078 Unable to delete file copy at "C:\Program Files\Adobe\Adobe Flash Builder 4\configuration\config.ini" Error 3 The system cannot find the path specified.
    ERROR: 15078 Error rolling back command ARKMoveFileCommand
    ERROR: 15077 Unable to delete directory "C:\Program Files\Adobe\Adobe Flash Builder 4\configuration". Error 2 The system cannot find the file specified.
    ERROR: 15077 Error rolling back command ARKCreateDirectoryCommand
    ERROR: 15015 Unable to delete file copy at "C:\Program Files\Adobe\Adobe Flash Builder 4\AMT\application.xml" Error 3 The system cannot find the path specified.
    ERROR: 15015 Error rolling back command ARKMoveFileCommand
    ERROR: 15014 Unable to delete file copy at "C:\Program Files\Adobe\Adobe Flash Builder 4\AMT\application.sif" Error 3 The system cannot find the path specified.
    ERROR: 15014 Error rolling back command ARKMoveFileCommand
    ERROR: 15013 Unable to delete directory "C:\Program Files\Adobe\Adobe Flash Builder 4\AMT". Error 2 The system cannot find the file specified.
    ERROR: 15013 Error rolling back command ARKCreateDirectoryCommand
    ERROR: 23 Deleting Registry Key - failure. Error 5
    ERROR: 4 Unable to delete file copy at "C:\Program Files\Adobe\Adobe Flash Builder 4\FlashBuilder.exe" Error 3 The system cannot find the path specified.
    ERROR: 4 Error rolling back command ARKMoveFileCommand
    ERROR: 3 Unable to delete file copy at "C:\Program Files\Adobe\Adobe Flash Builder 4\artifacts.xml" Error 3 The system cannot find the path specified.
    ERROR: 3 Error rolling back command ARKMoveFileCommand
    ERROR: 2 Unable to delete file copy at "C:\Program Files\Adobe\Adobe Flash Builder 4\.eclipseproduct" Error 3 The system cannot find the path specified.
    ERROR: 2 Error rolling back command ARKMoveFileCommand
    ERROR: 1 Unable to delete directory "C:\Program Files\Adobe\Adobe Flash Builder 4". Error 2 The system cannot find the file specified.
    ERROR: 1 Error rolling back command ARKCreateDirectoryCommand
    ERROR: The following payload errors were found during install:
    ERROR:  - Adobe Flash Builder: Install failed

    Hi,
    You're right that we're trying to create your default workspace in the folder one level up from your roaming documents folder, and that's what's causing the conflict between our installer and your roaming profile.
    This is on our radar to fix for the next release, but here's a workaround you could try in the meantime. From what we've seen with roaming network profiles, our installers will have trouble mainly if your roaming documents folder has been flattened (redirected) to the root of your profile tree. If you can have your network profile reconfigured with the more conventional home folder at the top level, and the documents folder underneath it, then the relative path will be able to resolve correctly in your network tree.
    There's more info here, about how to configure your roaming profile on the server to follow the conventional tree structure:
    http://technet.microsoft.com/en-us/library/cc766489(WS.10).aspx
    Depending on who administers your network profiles, you might need someone in IT/IS to help with this.
    -Chris

Maybe you are looking for

  • How to re-install Design Premium CS5.5 Student and Teacher Edition? Lost my serial number. [was: Hey]

    I bought a student and teacher edition of Creative Suite 5,5 Design Premium in 2011, I got my serial number and everything. But now I have changed computers and lost my serial number. I have tried to register my product on my old computer and it says

  • Material weight and quantity report

    Dear, Do you know if in standard SAP exists a report able to extract the material good movements and the material weight field to? For example; something like the MB51 but with the weight field. Thank you Regards Matteo

  • OT: javascript question ... can it be done

    Assume: var x = "one_two_three_four"; Is there any way to do the following with only one line of code? var tmp = x.split('_'); // tmp = array("one","two","three","four") y = x[x.length-1]; // y = "four"

  • Help with playing my tracks on iTunes

    i have recently changed my iphone and when i try to sync my music, most of my tracks show a ! beside them and wont let me play them - why is this happening?

  • Printing multi-page documents

    I have a 25-page .psd document that I want to print in CS6 in one hit, but I only seem able to print it by opening each page individually and processing it separately. What can this be done?