Flex Ant html-wrapper task

http://labs.adobe.com/wiki/index.php/Flex_Ant_Tasks
Isn't there a way to use a CUSTOM template instead of one of
the predefined ones?
If you want to add anything additional, like telling the
browser not to cache the swf, or detecting when the browser window
is closed, etc, there doesn't seem to be a way to do this if you're
using this Ant task.
What do people usually do when they need a custom wrapper?
Just use the version that Flex Builder generates, or run the Ant
task one time only and modify from there? Seems to me that this is
a pretty big omission for the html-wrapper task, unless I've missed
something.

Yeah, that's what I'm going to be doing, using Flex Builder's
generated template. Of course this defeats the purpose of the Ant
task completely.
As for making an enhancement request- it's already been done,
and was apparently deemed a waste of time:
http://bugs.adobe.com/jira/browse/SDK-14195
"Deferred" i.e. it was shrugged off as not important. Without
even providing any kind of target date or version for "Deferred"
features, you might as well say "This is indefinitely postponed and
will probably never get done."
Sorry to sound bitter but I've seen too many important
"Deferred" issues with Flex that will probably never be resolved.
Ever since they deferred 50% of refactoring (rename is implemented
in FB3 but move isn't??) I've yet to be impressed with Adobe's
responsiveness on other issues.

Similar Messages

  • Flex ant html-wrapper

    I cannot get the Flex ant tasks to run.
    I have copied the lib/flexTasks.jar to my project.
    - created a Proj-config.xml
    - created a Wrapper-build.xml
    - created an External Run Config that points to my
    Wrapper-build.xml.
    I keep getting Exception Occurred Executing Command Line.
    No matter what I put in the xml file I get the same error.
    Is there anything I can do to see the flexTasks.jar kicking?
    <taskdef resource="flexTasks.tasks"
    classpath="${basedir}/flexTasks/lib/flexTasks.jar" />
    Thanks.j

    Yeah, that's what I'm going to be doing, using Flex Builder's
    generated template. Of course this defeats the purpose of the Ant
    task completely.
    As for making an enhancement request- it's already been done,
    and was apparently deemed a waste of time:
    http://bugs.adobe.com/jira/browse/SDK-14195
    "Deferred" i.e. it was shrugged off as not important. Without
    even providing any kind of target date or version for "Deferred"
    features, you might as well say "This is indefinitely postponed and
    will probably never get done."
    Sorry to sound bitter but I've seen too many important
    "Deferred" issues with Flex that will probably never be resolved.
    Ever since they deferred 50% of refactoring (rename is implemented
    in FB3 but move isn't??) I've yet to be impressed with Adobe's
    responsiveness on other issues.

  • Passing flashVars with the html-wrapper command

    Hi,
    Is it possible to pass flashVars when the html template  is generated using the html-wrapper task? So that I dont have to edit  the html template to add flashVars?
    Something like this in the html wrapped swf?
    AC_FL_RunContent(
         "src", "TestApp",
         "flashVars", "myName=Danger&myHometown=Los%20Angeles",
         "width", "100%",
         "height", "100%",
         "align", "middle",
         "id", "TestApp",
         "quality", "high",
         "name", "TestApp",
         "allowScriptAccess","sameDomain",
         "type", "application/x-shockwave-flash",
         "pluginspage", "http://www.adobe.com/go/getflashplayer"
    The flashVars I want to pass when I run the html-wrapper task. 
    Thanks 
    Raghu Jakkula

    If this is still an issue please re-post your question To the Business Objects forum or purchase a support case on line and have a dedicated support engineer work with you directly.

  • Flex Ant Tasks html-wrapper problem

    I'm getting BUILD SUCCESSFUL and an 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
    Project base dir set to:
    C:\Installs\MTCSEWorkspace\MTCSE_WebApp
    [antlib:org.apache.tools.ant] Could not load definitions from
    resource org/apache/tools/ant/antlib.xml. It could not be found.
    Build sequence for target(s) `wrapper' is [compile, wrapper]
    Complete build sequence is [compile, wrapper, ]
    compile:
    [mxmlc] Loading configuration file
    C:\Installs\MTCSEStudio\Flex Builder 3
    Plug-in\sdks\2.0.1\frameworks\flex-config.xml
    [mxmlc]
    C:\Installs\MTCSEWorkspace\MTCSE_WebApp\target\MTCSE_WebApp/ValidValueTest.swf
    (592822 bytes)
    wrapper:
    BUILD SUCCESSFUL
    Total time: 18 seconds
    <?xml version="1.0" encoding="utf-8"?>
    <!-- flex-build.xml -->
    <project name="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" />
    <target name="main">
    <mxmlc
    file="${MTCSE_WebApp}/flex_src/ValidValueTest.mxml"
    keep-generated-actionscript="false"
    output="${DEPLOY_DIR}/ValidValueTest.swf">
    <load-config
    filename="${FLEX_HOME}/frameworks/flex-config.xml" />
    <source-path path-element="${FLEX_HOME}/frameworks" />
    </mxmlc>
    <html-wrapper swf="ValidValueTest"
    output="${DEPLOY_DIR}" />
    </target>
    </project>

    Ok, on second inspection, index.html is being generated.
    However, the file attribute is unsupported.
    Using the ant Move task, I was able to accomplish what I
    wanted to do. Thanks!
    <target name="wrapper" depends="compile">
    <html-wrapper swf="ValidValueTest"
    output="${DEPLOY_DIR}" />
    <move file="${DEPLOY_DIR}/index.html"
    tofile="${DEPLOY_DIR}/ValidValueTest.html"/>
    </target>

  • [svn:fx-3.x] 13067: Fix for html-wrapper ant task generates incorrect wrapper files for flash player version detection .

    Revision: 13067
    Revision: 13067
    Author:   [email protected]
    Date:     2009-12-17 12:48:20 -0800 (Thu, 17 Dec 2009)
    Log Message:
    Fix for html-wrapper ant task generates incorrect wrapper files for flash player version detection.
    QE notes: None.
    Doc notes: None
    Bugs: SDK-18826
    Reviewed By: Paul
    Tests run: checkintests
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-18826
    Modified Paths:
        flex/sdk/branches/3.x/modules/antTasks/src/flex/ant/HtmlWrapperTask.java

    Could you try creating a new Firefox profile to see if that helps?
    8. Make a new profile
    Chris

  • Creating custom html-wrapper from ANT build

    Hi,
    I have been using flex from last six month. I am facing problem while creating html-wrapper. As per my requirement, my application need to run on all the browser. But whenever I use to run application on firefox, there is some focus related problem. For that I need to set wmode='opaque' and < 
    body scroll="no" onLoad="window.document.${application}.focus();">. But I am unable to find out how to set this property in html-wrapper through ant build.
    currently I am using following and script to build my flex application.
    <!-- compile flex source code -->
    <target name="compile.flex" description="Compile the Flex source code" unless="eclipse.running">
    <taskdef resource="flexTasks.tasks" classpath="${flex.home}/ant/lib/flexTasks.jar" />
    <echo level="info">Compiling flex mxml</echo>
    <property name="FLEX_HOME" value="${flex.home}" />
    <mxmlc file="${basedir}/src/main/flex/main.mxml" output="${exploded.dir}/${project.name}.swf" actionscript-file-encoding="UTF-8" incremental="true" services="${basedir}/src/main/resources/services-config.xml" context-root="/${project.name}">
    <source-path path-element="${basedir}/src/main/resources/messages/{locale}" />
    <!-- Get default compiler options. -->
    <load-config filename="${flex.home}/frameworks/flex-config.xml" />
    <!-- List of path elements that form the roots of ActionScript class hierarchies. -->
    <!--<source-path path-element="${view.dir}/flex/assets" />-->
    <compiler.library-path dir="${flex.lib.dir}" append="true">
    <include name="*" />
    </compiler.library-path>
    </mxmlc>
    <echo level="info">Generating html</echo>
    <html-wrapper title="${project.name}" file="${project.name}.html" application="app" swf="${project.name}" version-major="9" version-minor="0" version-revision="0" width="100%" height="100%" history="true" template="client-side-detection" output="${exploded.dir}" />
    </target>
    I have also tried to edit respective index.template.html file in flex SDK, but that also doesn't work. Please suggest what shoud I do?
    Thanks and Regards,
    Ravindar kumar

    Did you already try the narrative view?
    regards
    John
    http://obiee101.blogspot.com

  • Are the Flex Ant tasks open source? If so, where to find them?

    I took a brief look into Flex SDK source and didn't see the Flex Ant tasks. Is this also open source? Where would I find it?
    I probably won't change anything, just want to take a look. Although, I'm annoyed that the tasks don't work in a similar fashion as the core ant tasks
    Thanks.

    http://opensource.adobe.com/svn/opensource/flex/sdk/trunk/modules/antTasks
    Note that the way the tasks are put together ain't exactly pretty--they're just a very thin wrapper on mxmlc / compc / etc. There are some advantages to this approach, but if you're hoping to learn about the compiler options by looking at the task source, it could take some doing.

  • Does compiling an advanced datagrid using flex ant task require additional config other than the license property?

    Hi,
        I am trying to build my Flex app which uses the Advanced Data Grid in a couple of locations. Originally, when I built the app using the flex ant tasks, I noticed the Visualization Trial watermark show up on the screen. I then added the license tag with the serial number to my flex-config.xml and re-ran my ant build. The watermark goes away, but then when I look at the advanced datagrid, the datagrid shows up with the hierarchy, but the data does not display in the grid (only the group by nodes are visible, not the data for the leaf elements). This works fine when I build the app using my Flex Builder. Is there something I am missing or need to add to my flex ant task to make this work?
    Any help or guidance is much appreciated.
    The following is the ant task to build the module that uses the ADG:
        <target name="compile-modules" depends="compile-shared">
            <!-- Module 1 -->
            <echo>Compiling module 1...</echo>
            <mxmlc file="${modulesrc.dir}\ui\modules\mod1\Module1.mxml"
                    output="${dist.dir}\modules\mod1\Module1.swf"
                    actionscript-file-encoding="UTF-8"
                    incremental="true"
                    default-background-color="0xFFFFFF"
                    use-network="false"
                    load-externs="${extern-report-xml}">
                <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml" />
                <source-path path-element="${FLEX_HOME}/frameworks"/>
                <!-- source paths -->
                <compiler.source-path path-element="${modulesrc.dir}"/>
                <!-- add external libraries -->
                <compiler.library-path dir="${main.dir}" append="true">
                    <include name="${lib.dir}"/>
                </compiler.library-path>
                <compiler.library-path dir="${FLEX_HOME}/frameworks" append="true">
                    <include name="libs" />
                    <include name="locale/{locale}" />
                </compiler.library-path>
                <compiler.debug>true</compiler.debug>
            </mxmlc>
        </target>
    And here is the ant task for the main application:
        <target name="compile-ui" depends="compile-modules">
            <mxmlc file="${src.dir}/MainApp.mxml" output="${dist.dir}/MainApp.swf"
                    actionscript-file-encoding="UTF-8" keep-generated-actionscript="false"
                    fork="true" maxmemory="1024m">
                <jvmarg value="-XX:MaxPermSize=256m"/>
                <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
                <source-path path-element="${FLEX_HOME}/frameworks"/>
                <source-path path-element="${src.dir}"/>
                <source-path path-element="${main.dir}/locale/{locale}"/>
                <!-- List of SWC files or directories that contain SWC files. -->
                <!--<compiler.library-path dir="${FLEX_HOME}/frameworks" append="true">
                    <include name="libs" />
                    <include name="locale/{locale}" />
                </compiler.library-path>-->
                <compiler.library-path dir="${FLEX_HOME}/frameworks" append="true">
                    <include name="libs/datavisualization.swc" />
                    <include name="libs/flex.swc" />
                    <include name="libs/framework.swc" />
                    <include name="libs/rpc.swc" />
                    <include name="libs/utilities.swc" />
                    <include name="locale/{locale}" />
                </compiler.library-path>
                <compiler.library-path dir="${main.dir}" append="true">
                    <include name="${lib.dir}"/>
                </compiler.library-path>
                <runtime-shared-library-path path-element="${FLEX_FRAMEWORK}/framework.swc">
                    <url rsl-url="framework_3.2.0.3958.swf"/>
                    <url rsl-url="framework_3.2.0.3958.swz"/>
                </runtime-shared-library-path>
                <compiler.debug>true</compiler.debug>
            </mxmlc>
        </target>
    Regards,
    Purush

    to remove watermark i have added license key in WEB-INF\flex\license.properties file as key = value

  • [svn] 4001: Adding support for asdoc in flex ant tasks

    Revision: 4001<br />Author:   [email protected]<br />Date:     2008-11-03 13:46:13 -0800 (Mon, 03 Nov 2008)<br /><br />Log Message:<br />-----------<br />Adding support for <asdoc> in flex ant tasks<br /><br />QE Notes: Tests need to be added to the flextasks test suite.<br />Doc Notes: flex tasks documentation should be updated with example for <asdoc> task. <br />Reviewer: Paul<br />Bugs: SDK-9775<br />tests: checkintests<br /><br />Ticket Links:<br />------------<br />    http://bugs.adobe.com/jira/browse/SDK-9775<br /><br />Modified Paths:<br />--------------<br />    flex/sdk/trunk/modules/antTasks/flexTasks-internal.tasks<br />    flex/sdk/trunk/modules/antTasks/flexTasks.tasks<br /><br />Added Paths:<br />-----------<br />    flex/sdk/trunk/modules/antTasks/src/flex/ant/AsDocTask.java

    You should use compiler.library-path to include libraries.
    Try the following
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <project basedir="." default="build" name="Project_name">
    <property environment="env"/>
    <property name="FLEX_HOME" value="C:/Program Files/Flex 3.4"/>
    <property name="APP_ROOT" value="./src"/>
    <property name="Project_name.location" value="../Project_name"/>
    <taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/ant/lib/flexTasks.jar"/>
    <target name="build">
    <mxmlc file="${APP_ROOT}/AdminConsole.mxml">
    <source-path path-element="${FLEX_HOME}/frameworks"/>
    <compiler.library-path>
    <include name="${Project_name.location}/src" />
    </compiler.library-path>
    </mxmlc>
    </target>
    </project>
    Although, I don't know what are you planning to include, and whether you should use compiler.library-path for that.

  • Flash Builder 4.6 Standard Generate HTML Wrapper?

    I have used Flash Builder for a while now, but now I need a HTML Wrapper.
    It is said to look in Project>Properties>Actionscript Compiler, but it's not there!!!
    (There is no Flex Compiler)
    Screenshot:
    Help Would Be Helpful
    Thanks in advance...

    Anyone? If it helps, I am trying to use AlternativaPlatform, (Which needs the HTML Wrapper)
    and I can't find the option!
    Does ANYONE have thid problem?
    Oh, and I got flashbuilder for free, Cause I'm a student.
    Please reply!!!

  • Lookin for html wrapper example

    Hi,
    All I have done so far is using the Flex Builder to generate
    the html wrapper that embeds/hosts the swf file. I am new to
    Javascript and would like to learn more about embedding the Flex
    swf in html, particularly customizing it, such as embedding
    multiple swf files in different areas of the page.
    Are there any good examples, or tutorials? Thanks!

    Hi webvalue,
    I second buabco's suggestion that you focus your efforts
    around swfobject.
    Per the post here in the Flex JIRA, Flex Product Manager Matt
    Chotin indicates that future versions of Flex will be switching to
    generating wrapper code using swfobject:
    http://bugs.adobe.com/jira/browse/SDK-15468
    The SWFObject home is here:
    http://code.google.com/p/swfobject/
    For a default Flex template using SWFObject, this link looks
    promising:
    http://olegflex.blogspot.com/2008/06/swfobject-2-flex-template.html
    hth,
    g

  • How to save changes of HTML wrapper file?

    Hello All,
    I am working on .swf file. I am making some changes in HTML wrapper file, but the changes are saved in the file.
    Is there any other way to do it?
    Thanks.

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

  • Flex ant build - problem including custom theme

    Hi,
    I added custom ios theme using the below code in the flex ant build. The custom ios theme does not seem to be included.
    <compiler.theme dir="${FLEX_HOME}/frameworks" append="true"> 
    <include name="themes/Spark/spark.css" /> 
      <include name="themes/Mobile/mobile.swc" />
      </compiler.theme>
    <compiler.theme dir="${deploy.dir}/lib" append="true">   <include  name="mobiletheme_ios.swc" />
    </compiler.theme>
    I also tried using just <theme> tag but it did not help.
    Hoping a solution with the forum's help.
    Thanks in advance
    <include  name="themes/Halo/halo.swc" /> 

    Sorry, I meant to address that. Yes, since we've moved up to the Flex 3 sdk, we are pointing at a new directory. The old directory was flex_sdk and the new directory is flex_sdk_340.
    FLEX_HOME is being set in the build.properties file for local building and then overidden in the build.xml file with this code:
    <target name="build">
         <available property="FLEX_HOME" value="/apps/flex_sdk_340" file="/apps/flex_sdk_340" />
         <echo>FLEX_HOME = ${FLEX_HOME}</echo>
         <antcall target="compile" />
    </target>
    I did notice a warning about not using the available property, so I removed it and just changed what FLEX_HOME was set to in the build.properties file to the server directory. Would mess up local building but regardless it didn't matter because it had no effect on the error being generated. I alos looked a little into the file property of the available tag trying to figure out if that was somehow an issue but I wasn't able to come to any conclusion.
    Before the program errors out, it does displayt he echo statement and the value of FLEX_HOME appears to be correct in that it does show /apps/flex_sdk_340.
    Thank you so much for your continued help. This is truly frustrating because nothing but a directory name has really changed and yet it stopped working. I can't find any information anywhere on what could be wrong and this is really my last resort.

  • How to tell the difference of Flex or HTML sites

    How can I tell whether a web site is developed with Flex or
    HTML?
    Is this Flex Forum based on Flex?

    There will always be an <object> and/or <embed>
    tag containing the swf file. You would also be able to search the
    source for the page for swf to see if there were any, or possibly
    SWFObject or similar for embeds created with Javascript support.
    Doing this in Firebug for Firefox, or in Opera using the 'generate
    on the fly view of the DOM setting' or whatever tends to show the
    page as it is now, which would get around javascript loading
    issues.
    THere is a free utility for Sothink called SWF Catcher that
    I've used, and presumably others like it.

  • Unable to load swf from different domain through html wrapper in Chrom

    Hi All,
           I am trying a embed a swf from different domain. My html wrapper was in one domain and swf was in another domain. I have embedded the swf into the html wrapper. When i run the html file it is loading the swf in firefox and working fine. But when i try to run the same html in chrom or IE the swf is aborted. I have crossdomain.xml file in both the servers which is also allowing both the domains. I was not able to figure out the issue. Can anybody help on this.
    regards,
    Jayagopal.

    Are you getting any errors or warnings?

Maybe you are looking for

  • Why no apple support

    Having read Apple's help pages extensively for an answer - their advice is to contact my email provider for support. Since Apple are my email providers - I need to contact them to get my email working again. However, there is no Apple Support offered

  • Need help with something...

    Hey guys, need some help with this, try to keep up with me here... I opened up illustrator cs4 and drew individual items (three items) and drew all three on one artboard and saved it as a standard .AI file. On each of the three items, one at a time I

  • GW 2012 Create Trusted Key not showing up in Console One

    Hello All, We are trying to add a trusted key to our GW domain, and are following the steps widely available (Click on domain, then Tools -> Groupwise System Operations -> Trusted Applications. Then click "Create".) There is no "Create" in the option

  • RE : Multiple environments on NT

    Hello Veronika, I have just tested on NT4 a multiple configuration with 2 environments On one user session NT : it works very well. I also use multi-version (R2 and R3) on the same PC. I use the next command : "C:\forteR3\install\bin\nodemgr.exe -e T

  • Error importacion  abap:

    Hello  i got this message  in the  import abap phase import_mnonitor.log TRACE: 2010-03-13 14:14:54 com.sap.inst.migmon.LoadTask processPackage Task file generation for 'SASACONT1' import package: /usr/sap/SOL/SYS/exe/run/R3load -ctf I /instaladores/