Flex Builder 2 replaces HTML wrapper

Hello world

I pass values to my application using flashvars, that works pretty well. But Flash Bulder 2 overwrites the file wrapper html with the flashvars in each generation.

If I turn off the "File wrapper from generate HTML" setting, then the wrapper will be not overwritten longer, but then I can't start in debug mode, which is terrible... Curiously, the Flex Builder tries to start the SWF with the Real Player and then (without packaging), which does not of course.

Here my questions:
How can I say Flex Builder 2 to transfer the flashvars in the wrapper html also to the wrapper that is located in the folder "/ bin"? After each generation, those who are crushed.

How can I use my application in with active debug option "File wrapper from generate HTML" mode and by using existing html wrapper files, where my flashvars?

I found out what I did wrong... here my answers to my questions to share with potential imitators ;)

To change a html envelope that is created and updated Flex Builder, it is important to change the html-template/index.template.html, and not the index.html file located in the root of the project folder, since this will be replaced whenever a generation occurs.

Flash vars in the html code should appear in the html section and in the JavaScript section, which will be used by default in the browser. To find the right place in the JS, just search for 'flashvars' and add the parameters to the values of this key.

Tags: Flex

Similar Questions

  • Flex Ant tasks & lt; HTML-wrapper & gt; problem

    I am BUILDING with SUCCESS and a SWF file, but no HTML wrapper. Any help is appreciated!


    Apache Ant version 1.7.0 compiled on December 13, 2006
    BuildFile: C:\Installs\MTCSEWorkspace\MTCSE_WebApp\flex-build.xml
    parsing buildfile C:\Installs\MTCSEWorkspace\MTCSE_WebApp\flex-build.xml with URI = file:/C:/Installs/MTCSEWorkspace/MTCSE_WebApp/flex-build.xml
    The value of the project base dir: C:\Installs\MTCSEWorkspace\MTCSE_WebApp
    [antlib:org.apache.tools.ant] Could not load definitions from resource org/apache/tools/ant/antlib.xml. He could not be present.
    Build sequences for target (s) 'wrapper' is [compiles, wrapper]
    Complete sequence of construction is [compiles, wrapper,]
    compile:
    [mxmlc] C:\Installs\MTCSEStudio\Flex Builder 3 Plug-in\sdks\2.0.1\frameworks\flex-config.xml configuration file
    [mxmlc] C:\Installs\MTCSEWorkspace\MTCSE_WebApp\target\MTCSE_WebApp/ValidValueTest.swf (592822 bytes)
    envelope:
    BUILD SUCCESSFULLY
    Total time: 18 seconds

    <? XML version = "1.0" encoding = "utf-8"? >
    <! - flex - build.xml--->
    "< name of project ="My App Builder"basedir =". ">
    < property name = 'FLEX_HOME '.
    value = "C:\Installs\MTCSEStudio\Flex Builder 3 Plug-in\sdks\2.0.1" / >
    < property name = "ANT_HOME".
    value = "C:\Installs\MTCSEStudio\eclipse\plugins\org. Apache.ant_1.7.0.v200706080842"/ >
    < property name = "MTCSE_WebApp".
    value = "C:\Installs\MTCSEWorkspace\MTCSE_WebApp" / >
    < property name = "DEPLOY_DIR".
    value = "C:\Installs\MTCSEWorkspace\MTCSE_WebApp\target\MTCSE_WebApp" / >
    < taskdef resource = "flexTasks.tasks"
    classpath="${ANT_HOME}/lib/flexTasks.jar" / >
    < name target = 'hand' >
    "< file="${MTCSE_WebApp}/flex_src/ValidValueTest.mxml mxmlc ".
    Keep-generated-actionscript = 'false' output = "${DEPLOY_DIR} / ValidValueTest.swf" >
    < load-config
    filename="${FLEX_HOME}/frameworks/flex-config.xml" / >
    < path-element source-path = "${FLEX_HOME}" / frameworks "/ >"
    < / mxmlc >
    < html-wrapper swf = "ValidValueTest."
    output = "${DEPLOY_DIR}" / >
    < / target >
    < / project >

    OK, on second inspection, index.html is generated. However, the file attribute is not supported.

    Using the Ant movement job, I was able to accomplish what I wanted to do. Thank you!



    output = "${DEPLOY_DIR}" / >

  • Replacement for Flex Builder?

    Hello

    I'm looking around for another way to begin to develop.  Can someone tell me please what IDE to use and how to put in place.  I downloaded Adobe AIR SDK, Flex SDK...

    Is there anything other then purchase Flex Builder?

    Thank you

    Hi, there is not much free alternative IDEs. Most well-known is FlashDevelop, open source running on .net:

    http://www.FlashDevelop.org/wikidocs/index.php?title=Main_Page

    Not to the powerful as Flash Builder, but enough to get you started

    Fabien

  • Keep the changes to the automatically generated html wrapper

    Hello

    In flex builder 3, I put in place of a wen app using an eternal interface to javascript.

    For dev and test that I just want to burst the JS generates functions on the page wrapper which Flex auto, but of course when I change the wrapper page get more written. How to stop the html page wrapper of regeneration each time.

    Thanks in advance
    Dean

    Thank you

    I also found that you can edit the index - template.html, inside the html-template folder. What you add to this template will be added to the automatically generated html wrapper.

    I added a few JS, iFrame and Flash Vars and they added for debugging and normal envelopes. Ideal for testing

    Thanks again

    Dean

  • Flex Build hero 18623 - alert missing control!

    Hello

    I just started to use the hero for one of my projects but I get - "1172: definition mx.controls:Alert not found.» When I check, that there is there no control alert one more and I can't find any replacement spark plug?

    Please feel free to enlighten me :-)

    Morgan

    Alert control has been moved to mx.swc, in the frameworks/libs/mx directory. MX.swc should be on the way to the library, unless your project is configured as "Spark" only in the Flex Build Path properties.

    -Darrell

  • Flex Builder is not compatible 3.0.1 Flex SDK 3.5.0.

    Hello


    We were using Flex 3.0.1 SDK + Flex Builder 3.0.1 combination and worked very well. Then due to some other business requirements had to upgrade the Flex SDK 3.5.0. Now the problem that we face is that the old Flex Builder 3.0.1 is not compatible with the new SDK (version 3.5.0).


    What is the solution? Is there a Flex Builder compatible with Flex 3.5 SDK available... I googled a bit, but failed. Is there any necessary changes in Flex Builder 3.0 files?

    Any eventual solution will be really useful. Thanks in advance.

    Hello

    Have you tried to update Flex Builder 3.0.2 and then using Flex SDK 3.5?

    Updates are available here: http://www.adobe.com/support/flex/downloads_updaters.html#flex3

    Alternatively, Flash Builder 4 also provides full support for Flex SDK 3.5.

    Thank you

    Andrew

    Senior Product Manager, Flash Builder

  • Flex Builder 4 and project WST

    The new version of Flex Builder 4 using I would install the draft standards of Web Tools (WST) as well as the tools and editors XML Eclipse for Eclipse. It worked well in the beta, and so I thought that it would be no problem with the final. I use the discovery to draw europa website. The problem is that I get many incompatibilities of dependency:

    Can not complete the installation because of a dependency conflict.
    Software: Web Tools Standard (WST) project 2.0.2.v200802150100 - 7 c-7C8k0JWR293WFMOOObjNnnqho (org.eclipse.wst.feature.group 2.0.2.v200802150100 - 7 c-7C8k0JWR293WFMOOObjNnnqho)
    Currently installed software: Adobe Flash Builder 4.0.0 (com.adobe.flexbuilder.standalone.product 4.0.0)
    Only the following can be installed at once:
    Core Runtime 3.2.0.v20090413 (org.eclipse.core.runtime.compatibility 3.2.0.v20090413) plug-in compatibility
    Core Runtime 3.2.0.v20071008 (org.eclipse.core.runtime.compatibility 3.2.0.v20071008) plug-in compatibility
    org.Eclipse.Core.Runtime.Compatibility 3.1.200.v20070502
    Cannot satisfy the dependency:
    From: Adobe Flash Builder 4.0.0 (com.adobe.flexbuilder.standalone.product 4.0.0)
    In: org.eclipse.platform.feature.group [3.5.1.R35x_v20090910 - 9gEeG1_FthkNDSP2odXdThaOu9GFDPn83DGB7]
    Cannot satisfy the dependency:
    From: Eclipse Platform 3.5.1.R35x_v20090910-9gEeG1_FthkNDSP2odXdThaOu9GFDPn83DGB7 (org.eclipse.platform.feature.group 3.5.1.R35x_v20090910 - 9gEeG1_FthkNDSP2odXdThaOu9GFDPn83DGB7)
    To: org.eclipse.core.runtime.compatibility [3.2.0.v20090413]
    Cannot satisfy the dependency:
    From: Interface user commune WST 2.0.2.v200802150100 - 7C5EH3E9RvTVnirrspVz0bmP7g8d (org.eclipse.wst.common_ui.feature.feature.group 2.0.2.v200802150100 - 7C5EH3E9RvTVnirrspVz0bmP7g8d)
    To: org.eclipse.core.runtime.compatibility [3.1.100,3.2.0)
    Cannot satisfy the dependency:
    From: Web Tools Standard (WST) project 2.0.2.v200802150100 - 7 c-7C8k0JWR293WFMOOObjNnnqho (org.eclipse.wst.feature.group 2.0.2.v200802150100 - 7 c-7C8k0JWR293WFMOOObjNnnqho)
    In: org.eclipse.wst.common_ui.feature.feature.group [2.0.2.v200802150100 - 7C5EH3E9RvTVnirrspVz0bmP7g8d]

    Is it possible to solve these so I can edit XML and HTML files in Flash Builder 4 with the power of these packages?

    I've seen these errors when using webtools update site http://download.eclipse.org/webtools/updates/, but not when using the Galileo Update site http://download.eclipse.org/releases/galileo/. Try and post if it works or not for you.

    Jason San Jose

    Software engineer, Flash Builder

  • Cannot open '... Flex Builder 3\sdks\3.2.0\frameworks\locale\nl_BE'

    I opened a project (a Zip file import), and when you try to build the project I get the following message:

    "Can't open ' C:\Program Files (x 86) \Adobe\Flex Builder 3\sdks\3.2.0\frameworks\locale\nl_BE '.  When we look at the existing folders inside the \locale way, there is en-US and ja - JP, each containing 6 SWC files.

    What are these files and how do I get those lacking?

    Best regards

    Those who are used to the location settings.

    The problem is that you try to compile with a parameter regional nl_BE, when your SDK has only local en_US and ja_JP.

    To get rid of everything that you need to do is the file copylocale.exe to your SDK allows you to copy the settings regional en_US in nl_BE. This will create a folder in your SDK nl_BE, allowing you to compile with this place.

    Run:

    copylocale en_US nl_BE
    

    in the your SDK bin directory.

    More details here:

    http://livedocs.Adobe.com/Flex/3/HTML/Help.HTML?content=l10n_3.html

  • Connection problem with the database, the closure of Flex Builder

    Hello

    I developed a web page that connects to a database, reads data and it shows on the screen. I use HTTPService to connect to a php server that supports MySQL data. Everything is OK when I run the Flex Builder web page, but when I run the page doing double click on the file released .html the connection fails and the program generates this error:

    [RPC Fault faultString = "" error #2028: file:///Q:/2009-08-05-1330FinalFrontEnd/bin-release/FrontEnd.swf SWF file with Local file system cannot access Internet URL http://localhost/Test2/Test2.php. "faultCode ="InvokeFailed"faultDetail ="null""]
    to mx.rpc::AbstractInvoker / http://www.adobe.com/2006/flex/mx/internal: call ()
    at mx.rpc.http.mxml::HTTPService/ http://www.adobe.com/2006/flex/mx/internal: call ()
    at mx.rpc.http::HTTPService/send()
    at mx.rpc.http.mxml::HTTPService/send()
    in FrontEnd / submitLabelsQuery)
    in FrontEnd / updateLabels)
    in FrontEnd / ___FrontEnd_SetEventHandler5_handler)

    Does anyone know how can I use the web page without using Flex Builder?

    More information:

    I use Flex Builder 3 to the development of the web page and WampServer 2.0 for the connection with the database.

    Thank you

    Onditz

    Hi Onditz,

    Previously, I also faced the same problem when working with Php as the Backend, the problem is that Flex does not call your PHP page

    It is the way I solved it to export your Flex Project at Flex Release Build.

    Right click on the export of project---> Flex project---> Release Build---> copy all the files on your server where all of your PHP files are and then call the application from the browser

    http://localhost/test2/sample.html. »

  • Installation of Flash builder 4 has somehow broken my launch of running/debugging/profiling of flex builder 3.

    After installing Flash builder 4 neither to him nor to flex builder 3 has been able to launch flex swf:s. After hitting to run or debug flex gives a prompt saying "Flash Player is not found. Flex builder cannot locate the required version of Flash Player. You need to maybe install Flash Player 9 or reinstall Flex Builder. Do you want to try to run your application with the current version? ». The popup itself happened before the installation of flash builder 4. But normally I would hit just Yes and he would use any flashplayer is default.

    Now, if I click Yes it launch command prompt with a path to the installation folder of flex 3 Builder. When running flash builder 4, same happens except the path is the folder of installation of flash builder 4. Flex then begins waiting for connection of the debugger, and after awhile, he invites a timeout message. The title of command prompts is... \workspace\project\bin-debug\filename.swf.

    When you open the SWFs directly from windows, they open fine.

    I used the uninstaller for flash player software and recovered both fp9 & 10 and reinstalled the. That did not help. When we browser everything works fine, the problem occurs only when you launch standalone player. I tried to check the registry settings if there is something wrong, but all the flashplayers paths seem to be ok.

    Is there another hope to solve this problem than to reinstall flex builder 3 and flash builder 4 from scratch?

    You need content installed FP debugger

    http://www.Adobe.com/support/flashplayer/downloads.html download from here and install it and you should see the problem go away

    Download the Flash Player 10 ActiveX Windows control content debugger (for IE) (EXE, 2.03 MB)

  • How to compile flex builder flex sdk project?

    I built a flex with flex builder project and wish to modify and maintain in an environment of the flex SDK.

    I wonder if there is no tool in flex sdk to do this.

    Thank you

    You can use Ant tasks

    http://livedocs.Adobe.com/Flex/3/HTML/Help.HTML?content=anttasks_1.html

  • How to save the changes to the HTML wrapper file?

    Hi all

    I'm working on the .swf file. I make a few changes to the HTML wrapper file, but the changes are saved in the file.

    Is there another way to do it?

    Thank you.

    Swati,

    Flex tends to auto-update the wrapper file that it generates, which is frustrating if you change, then your changes are lost. I usually make a second copy of this file in the src folder and change this one. Flex will then leave it as-is (since he never controlled) but it will be deployed to your bin-debug folder (or wherever your output goes).

    Richard

  • How to install Cocomo with Flex Builder 3 as an Eclipse plugin

    Hello.

    I got Eclipse 3.4.1 running on my Windows XP computer running and installed a plugin of Flex Builder 3.0.2 .
    Now that I've downloaded Cocomo first wonder where to put the framework since the documentation gives advice only for the standalone installation of FB.

    I appreciate some helpful tips.
    Best regards, Noam

    Hey levancho.
    Thank you for your help. I almost had with your advice. Put it all together, it is for me:

    (1) create a Adobe ID to https://cocomo.acrobat.com/
    2) unzip CocomoSDK_0.91 and place this directory in your eclipse_install_dir/plugins
    (3) create a new Flex project
    (4) add the eclipse_install_dir/plugins/cocomo... /lib/Player10/AFCS.swc to Flex Build Path / Library in the properties of the project path
    (5) change the Flex compiler / requires Flash Player version to 10.0.0 in the project properties
    (6) adds the code attached like a test application...

    I found the following tutorial very useful: http://www.adobe.com/devnet/flex/articles/cocomo_gettingstarted.html
    Note that I've changed a few namespaces as the given code really worked for me.

    Thank you, Noam

  • Flex Builder then

    I am new to the world of Adobe as a developer and have been using Flex Builder 2. After not seeing just the launch of CS3, I noticed no mention of Flex Builder CS3.

    What is the roadmap for Flex Builder? Is there a replacement within the family of products of the CS3 or Flex Builder is going to be around for a while?

    I am interested in the creation of RIA from the point of view of a Web Developer and find that Flash provides the wrong metaphor.

    TIA
    GEO

    Hello

    Flex is not form part of the Creative Suite as it is a complete development platform and not a platform for design. Its for developers only if it does not form a part of the Creative Suite. What I've heard, is that Adobe will come out with Flex Builder 3 last part of this year or next year. Don't worry, Flex is a great thing, and with Apollo coming out, I don't think Adobe will soon cease it.

    Gerard

  • Project is unable to get data from the server when more Flex Builder

    I have a strange problem...

    I have a flex project that communicates with multiple PHP files (which are located on a server). These are works very well when I run Flex Builder. For some reason, however it cannot communicate with the PHP files when I download or copy the files from the project elsewhere.

    I thought it might be a problem with some relative paths. But I discovered that although the project works when I run it from pojectFolder/bin/main.html, it does not work if I remove it from Flex Builder (without deleting the project files) and run it from the same file main.html .

    Isn't it strange?

    What you met sounds like a security sandbox issue. When you develop a SWF file using either Flex Builder or the Flash IDE, the SWF file is placed in a security sandbox ' local trust. This means that it can access any resource that is convenient for the development. But when you move the SWF to a server, the SWF file will have a ' remote' security security sandbox and then different rules apply. Using a crossdomain.xml on the remote resource file should solve the problem.

    You should see the security error when you apply. Here is a link for more details:
    http://www.Adobe.com/devnet/flash/articles/fplayer8_security.html

Maybe you are looking for