ASC2.0 & flash builder 4.7 inconsistencies

I am trying to upgrade my Ant build script to build my project.
First I managed to get the project to build and run fine within flash builder 4.7, fixing the errors that come up.
But now when I installed the AIR 3.4 SDK with ASC2.0 and use the ant script, I get a new code error. This could possibly be that the ant script is building more things than flash builder but I don't think so.
Anyways the error is in this file:
http://code.google.com/p/as3yaml/source/browse/tags/0.4.1/org/as3yaml/Emitter.as line 134
  [mxmlc] Error: 'var' is not allowed here
    [mxmlc]         private static var defInit0 : Map = new HashMap();
    [mxmlc]         ^
This code looks a bit strange, but any input would be good, I find it at least strange that this does not happen in flash builder 4.7 but happens when I use Air SDK 3.4 with ASC2.0
UPDATE:
Managed to fix it just by putting these static variables outside of the static scope. However now When I am trying to package the app (IOS packager) I get Initial window content is invalid.
what is there now is the name of the SWF file, that I was building.
Any ideas what maybe causing that?
Are the parameter and compatability issues listed somewhere for the new command line tools (in this case adt packager)?

Hi ,
Were you able to build ipa successfully using AIR 3.1 in FB 4.6 ?
Is the issue reproducible for a particular project or on all the projects ?
Please share the build.xml , debug and release swf, app.xml file .
You can also mail me at [email protected]
Than

Similar Messages

  • Flex, Air, Flash, Flash builder, ASC2.0

    After the decision of moving Flex to apache, and with the release of Flash builder 4.7 I am getting a bit confused about what is what anymore.
    Flex development is moving to apache, yet the compilers, packaging tools and more seem to live inside the Flex SDK.
    Air SDK has previously gone on top of the Flex SDK and seems to be an addon on the Flex SDK.
    However in flash builder 4.7, AIR SDK is set as the compiler even for web projects, although the result is a .swf file with no dependency on AIR.
    On top of things now you can get AIR SDK with ASC2.0 that still can build web applications (non-air)
    I am sorry if this is a stupid question, but Isn't this getting a bit complicated and terminologies getting mixed up?
    Am I right to assume that things are moving towards the following:
    AIR SDK - Compiler and core framework/Api for AS3 code that targets either web(swf), air or air mobile (this would be bundled with Flash builder), have command line tools, to build & package applications.
    FLEX SDK - Frameworks for RIA apps (mxml files etc), but ultimately not necessery unless your doing those kinds of apps.

    In the Flex/Flash world, everything eventually gets compiled to SWF despite how the source is written.  SWF consists of media assets as well as bytecode that can be executed.  This is very similar to the Windows world where EXE/DLL files may be a compiled product of C++, VB, Delphi, etc code.
    ASC 2.0 is a new compiler that produces more optimal bytecode.  While Flash is fast, the current ActionScript compiler does not produce good enough bytecodes that gets the best out of Flash player.
    Adobe AIR provides additional capabilities outside of Flash Player to make the applications more desktop friendly.  Flash Player is constrainted by browser security, therefore capabilities such as are local file read/write are limited.  While the security makes sense, when it comes to desktop applications where security model is different, it makes sense to have extentions that enrich the user experience.  Throughout the years, besides API additions, AIR grows to include capabilities such as packaging SWFs for mobile devices.
    Flex is just a framework that's designed to make building business applications easier.  However, business applications can be built without Flex framework.
    p.s.  I am not an Adobe employee, but I have been trying to clear this confusion for many people.  It seems that Adobe's PR is not keen on communicating with developers, while they are awesome in terms of catering creative professionals.

  • Flash Builder 4.7, ASC2.0, ANT Build, iOS-Package

    Hello,
    I just tried out to build and package an iOS-ipa via ANT.
    Doing this with a release-build swf results in "...app.xml: error 304: Initial window content is invalid"
    Packaging with a debug-build swf seems to run without any errors.
    I have no idea about what is "invalid". Doing it with Flash Builder 4.6 and ASC1.0 also reports now errors.
    I am using the same build.xml (corrected pathes of course) in FB4.6 and FB4.7
    Also, i am using AirSDK3.4 in both builder.
    Any ideas?! Anyone?!
    Thanks for any help!
    Greetings...

    Hi ,
    Were you able to build ipa successfully using AIR 3.1 in FB 4.6 ?
    Is the issue reproducible for a particular project or on all the projects ?
    Please share the build.xml , debug and release swf, app.xml file .
    You can also mail me at [email protected]
    Than

  • Flash builder 4.7 not treating External linkage correctly

    Hi,
    I am refactoring the project I am working to external link assets(flash assets), so I can load them on runtime.
    This works in Flash builder 4.6 and you can observe a smaller .swf than if they are merged into code.
    In FB 4.7 However it seems to ignore external linkage resulting in same size .swf as merged into code setting and I can run it fine without loading any external swf.
    This seems to be yet another bug in FB 4.7 or its compiler, unless I am missing something.
    Ps.
    I am building the project with -frame parameter which seems to be the way to use a preloader with the new compiler:
    see this post http://forums.adobe.com/message/4695625
    The preloader is on frame 1, splash screens on frame 2 and 3 and rest of the project on frame 4.
    Is this a known bug by any chance & or are there any ways around it.
    I am using Asc2.0 Version 2.0.0 build 353448
    Sincerely,
    Ævar

    here is a demo project set up similar to the main project having the problem.
    https://dl.dropboxusercontent.com/u/154782/assetMultiProjectTestfield.zip
    If you adjust the linkage on the directory ./export/normal/swc to external, on the web project it makes absolutely no difference. While in FB 4.6 or using ant build it is smaller and requires a swf to be loaded at runtime.
    That being said, I am now in the process of seeing if the method we are trying to use will actually work, since the iOS packager refuses to make a release build if it cannot find the class definitions at compile time. 
    The idea is basically that the compiler uses external linkage to flash assets, and then depending if the device is retina or not it loads the appropriate swf.

  • What is new in Flash Builder 4.7 Game Development beta 2

    I just installed it, I thought it would include some version of monocle.
    Are there any changes other than a support for a product not available yet through labs?
    If Not, when will we get monocle to test with it?

    In this build you can create SWFs that support profiling with Monocle, but you will need to download Monocle separately as it is not a part of Flash Builder.
    The telemetry API usage via monocle is possible only with the AIR SDK 3.4, so out of the box AS3 projects would support creating SWFs that can be used with monocle. To make it work with MXML (or rather Flex) would will need to overlay the Flex 4.6 SDK with the AIR 3.4 runtime.
    Thanks
    Arijit

  • Adobe creative cloud cc install has messed up my Flash Builder 4.6 serialization

    Hello,
    I have been a flash builder user for several years now. I have had FB 4.6 installed on my computer as a free upgrade from FB 4.5, which came with my copy of creative suite 5.5, which I purchased in 2011.
    FB 4.6 has been working fine - even when I moved to adobe creative cloud last May (2012).
    However, now that I have installed the new creative cloud (CC) applications (and uninstalled the creative cloud cs6 apps) - I am having problems with Flash Builder 4.6. I open it and get a message that my 'trial period' is up. Again, I own FB from my purchase of CS 5.5 - not to metion that it was included in creative cloud. I know that I can download FB 4.7 from creative cloud, but it doesn;t have the design view. So I want FB 4.6. I have seen some solutions to similar problems on the web that recommend reinstalling as a trial and then inputting the serial number once it launches. But I have FB 4.5 on my CS 5.5 installation disc - not FB 4.6 - and I'm not even sure how I could get FB 4.6 anymore. Not to mention that uninstalling - reinstalling 4.5 - and then upgrading from 4.5 to 4.6 - even if possible - would be a huge hassle.
    Can someone please help me to get my FB 4.6 working again? To reiterate - everything was fine until I installed Creative Cloud CC apps and uninstalled Creative Cloud CS6 apps
    Thanks

    Hi bobba1,
    I am experiencing the same problem. DId you ever get this solved?
    Regards

  • 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

  • How do I update my Flash Debug Player for Flash Builder 4.6?

    Hey how do I update my copy of Flash Builder 4.6 to the latest flash debug Player?

    Go to flash player downloads and get the latest one for your browser.
    http://www.adobe.com/support/flashplayer/downloads.html

  • 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

  • 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.

  • Is there a limit to the amount of SWCS I can use in my Flash Builder app?

    I have 3 swc folders in my flash builder project that includes about 40 swcs total. Each swc is a simple flash animation with a size of about 500 kb each. When I include and complile about 20 of them in my project, things work fine.
    When I try to include all my swcs, the app compiles, but when i make changes in my code and save those changes, each time the compile becomes slower and eventually my flash builder freezes at about 52%, gives me a "java heap error" message, and then crashes. After restarting FB, when I take out most of the swcs from the build, FB acts normal again. Attached is a screen shot of my error.
    Is there a limit in size or amount of swcs that I can use in my FB application?

    There are no limits. But there is a known memory leak (which is being fixed for a later release).
    Would it be possible to attach a sample SWC so that we can confirm whether this is a known leak or not? I'll take care of filing this in bugs.adobe.com.
    Meanwhile, in your Flash Builder installation directory, you can edit FlashBuilder.ini to bump up max heap size by editing:
    -Xmx512m
    to
    -Xmx800m

  • How to connect my app interface with the code in flash builder?

    I'm a beginner and learning my way around actionscript,mxml and flash builder.So this may seem foolish but please bear with me,I'm creating a very simple ios app using flash builder,I have created a simple app interface (A background and a custom navigation bar)using photoshop for my app,now the question is how do i import it into flash builder so that i can connect it with the code i have written? or is there another simpler way to create a app interface using other products like fireworks or catalyst?
    In short, I want to know how is an app interface created(wt software) and how is it connected with its code using flash builder.Any help would be greatly appreciated, and tutorials would be swell
    Thanks!

    Can you use stage.width or stage.stageWidth?

  • Unable to install Flash Builder Premium: a beta version exists on this computer

    Hi,
    I'm a user of Flex since version 2 and i'm still currently using it everyday. Some days ago I uninstall Flash Builder Premium 4.7 because i did a mess installing some external packages so I dedided to uninstall it and install everything from scratch.
    The problem is that installing using Creating Cloud on my iMac, I always receive the same error: "a beta version exists on this computer".
    I have already used the "Adobe Creative Suite Cleaner Tool" and I removed the "Adobe Flash Builder" having the same icon as the other applications installed by Creative Cloud and now I have another "Adobe Flash Builder" with a slightly different icon but I'm scared to use it because waiting to repair Flash Builder 4.7 I'm using Flash Builder 4.6 and I cannot think I cannot work because Flash Builder is not working (I use it every day !).
    I removed Flash Builder 4.7 using the uninstaller, so the uninstalled didn't completed its job.
    On the machine I have currently installed Flex Builder 3, Adobe Flash Builder 4.6, Adobe Gaming SDK 1.0 (no uninstaller for it !), Adobe Flash C++ Compiler (no uninstaller for it too!).
    So, the question is, where I can find the log file containing the reason of the error message ? I have already checked the followimg folders:
         \Library\Logs\Adobe\Installer: I cleaned the folder and the error happens before a file is created in this folder
         \Users\<my account>\Library\Logs: it seems that the error isn't logged here
    Please help me, I need to use Flash Builder 4.7 for a presentation I have to do next Wednsday (almost 2 years of working !!!)
    Thank you
    Diego Novati

    Hi novatiitm,
    Please search for Flash Builder in Spotlight and if find simply uninstall it or delete the folders containing the software.
    Regards,
    Abhijit

  • Flash Builder 4.5 Data Services Wizard, setting up REST service call returns Internal Error Occurred

    Dear all -
    I am writing with the confidence that someone will be able to assist me.
    I am using the Flash Builder Data Services Wizard to access a Server that utilizes REST type calls and returns JSON objects. The server is a JETTY server and it apparantly already works and is returning JSON objects (see below for example). It is both HTTP and HTTPS enabled, and right now it has a cross-domain policy file that is wide open (insecure but its not a production server, it's internal).
    The crossdomain file looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
       <allow-http-request-headers-from domain="*" headers="*" secure="false"   />
       <allow-access-from domain="*" to-ports="*" secure="false"/>
       <site-control permitted-cross-domain-policies="master-only" />
    </cross-domain-policy>
    The crossdomain file is in the jetty server's root directory and is browseable via HTTP and HTTPS (i.e. browsing to it returns the xml)
    Now before all of you say that using wizards sucks (generally) I thought I would utilize the FB Data Services Wizard as at least it would provide a template for which I could build additional code against, or replace and improve the code it produces.
    With that in mind, I browse to the URL of the Jetty Server with any web browser (for example, Google Chrome, Firefox or IE) with a URL like this (the URL is a little confidential at the moment, but the structure is the same)
    https://localhost:somePort/someKey/someUser/somePassword/someTask
    *somePort is the SSL port like 8443
    *someKey is a key to access the URL's set of services
    returns a JSON object as a string in the web browser and it appears like the following:
    {"result":success,"value":"whatEverTheValueShould"}
    Looks like the JSON string/object is valid.
    I went through the Flash Builder Data Services Wizard to set up HTTP access to this server. The information that I filled in is described below:
    Do you want to use a Base URL as a prefix for all operation URLs?
    YES
    Base URL:
    https://localhost:8443/someKey/
    Name                    : someTask
    Method                    : POST
    Content-Type: application/x-www-form-urlencoded
    URL                              : {someUser}/{somePassword}/someTask
    Service Name: SampleRestapi
    Services Package: services.SampleRestapi
    datatype objects: valueObjects:
    Completing the wizard, I run the Test Operation command. Remember, no authentication is needed to get a JSON string.
    It returns:
    InvocationTargetException: Unable to connect to the URL specified
    I am thinking - okay, but the URL IS browseable (as I originally was able to browse to it, as noted above).
    I continue to test the service by creating a Flex application that accepts a username and password in a form. when the form is submitted, the call to the service is invoked and an event handler returns the result. The code is below (with some minor changes to mask the actual source).
    <?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:mx="library://ns.adobe.com/flex/mx"
                                     xmlns:SampleRestapi="services.SampleRestapi.*"
                                     minWidth="955" minHeight="600">
              <fx:Script>
                        <![CDATA[
                                  import mx.controls.Alert;
                                  import mx.rpc.events.ResultEvent;
                                  protected function button_clickHandler(event:MouseEvent):void
                                            isUserValidResult.token = SampleRestAPI.isUserValid(userNameTextInput.text,passwordTextInput.text);
                                  protected function SampleRestAPI_resultHandler(event:ResultEvent):void
                                            // TODO Auto-generated method stub
                                            // print out the results
                                            txtAreaResults.text = event.result.message as String;
                                            // txtAreaResults.appendText( "headers \n" + event.headers.toString() );
                        ]]>
              </fx:Script>
              <fx:Declarations>
                        <SampleRestapi:SampleRestAPI id="SampleRestAPI"
                                                                                                 fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)"
                                                                                                 result="SampleRestAPI_resultHandler(event)"
                                                                                                 showBusyCursor="true"/>
                        <s:CallResponder id="isUserValidResult"/>
                        <!-- Place non-visual elements (e.g., services, value objects) here -->
              </fx:Declarations>
              <s:Form defaultButton="{button}">
                        <s:FormItem label="UserName">
                                  <s:TextInput id="userNameTextInput" text="q"/>
                        </s:FormItem>
                        <s:FormItem label="Password">
                                  <s:TextInput id="passwordTextInput" text="q"/>
                        </s:FormItem>
                        <s:Button id="button" label="IsUserValid" click="button_clickHandler(event)"/>
                        <s:FormItem  label="results:">
                                  <s:TextArea id="txtAreaResults"/>
                        </s:FormItem>
              </s:Form>
    </s:Application>
    It's a simple application to be sure. When I run it , I get the following returned in the text area field txtAreaResults:
    An Internal Error Occured.
    Which is equivalent to the following JSON string being returned:
    {"success":false,"value":"An Internal Error Occured"}
    It appears that the call is being made, and that a JSON object is being returned... however it does not return the expected results?
    Again the URL constructed is the same:
    https://www.somedomain.com:somePort/someKey/someUser/somePassword/someTask
    So I am wondering what the issue could be:
    1) is it the fact that I am browsing the test application from an insecure (http://) web page containing the Flex application and it is accessing a service through https:// ?
    2) is the JSON string structurally correct? (it appears so).
    3) There is a certificate enabled for HTTPs. it does not match the test site I am using ( the cert is for www.somedomain.com but I am using localhost for testing). Would that be an issue? Google Chrome and IE just asks me to proceed anyway, which I say "yes".
    Any help or assistance on this would be appreciated.
    thanks
    Edward

    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 can I get to the compiler arguments in Flash Builder 4.6?

    Howdy!
    So far I've been unable to locate any information that could help me with my task. The ultimate goal is to build my project's SWF with mxmlc. I was not able to figure it out and thought I'd install Flash Builder in the hopes of being able to get to the compiler arguments. No luck.
    First, I'm not the lead on the building of the SWF. This is done by another person via the Eclipse plugin; her hard drive crashed last night too. In fact I'm not a Flash developer. I'm coming at this from a Build Infrastructure perspective.
    Any help would be greatly appreciated.
    Cheers,
    Mel Riffe

    Mel Riffe,
    Here's a Help topic about compiler options in Flash Builder: http://help.adobe.com/en_US/flashbuilder/using/WSe4e4b720da9dedb524b8220812e5611f28f-7fe7. html
    For information on using mxmlc, the application compiler, to compile SWF files from your ActionScript and MXML source files, you can see: http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7fcc.html
    Hope this helps,
    Mallika Yelandur
    Flash Builder Community Help & Learning
    Adobe Systems Incorporated

Maybe you are looking for