"Special" version of Velocity required by Flex SDK?

The Flex compiler (mxmlc) appears to have a dependency to a customized version of Velocity (more on this below). Is this correct? If so:
1) What changes were made to Velocity source code?
2) Does Adobe intend to release them?
The reason I believe that the Velocity classes may have been modified for Flex is because the compiler source code includes a class called flex2.compiler.util.VelocityManager, which has an external dependency to flex.util.SerializedTemplateFactory, which is currently available only in compiled form inside the mm-velocity-1.4.jar.
I thought it was curious that (1) SerializeTemplateFactory was put inside the velocity .jar, and (2) that the .jar contains the following String: "Make sure you are using the special velocity in flex/sdk/lib."

We made some changes to improve the parsing performance for mxmlc and we're working on open-sourcing these changes; thanks for bringing it up :)

Similar Messages

  • 'You have used a feature that requires the Flex SDK'

    I've tried this code from a tutorial:
    // ActionScript 3.0
    *  Note: This example assumes the bullet_star.png file
    *  is in the same directory as your .FLA file.
    [Embed("bullet_star.png")]
    const BulletStar:Class;
    var starIcon:DisplayObject = new BulletStar();
    starIcon.x = 10;
    starIcon.y = 10;
    addChild(starIcon);
    When I test it I get this popup:
    Does something needs fixing?

    You're probably better off just making a swc, but if you want to do this you need to implement the Interface that Flash wants with your own version of the Class that Flash is trying to get from the SDK. I think in this case maybe BitmapAsset.
    http://stackoverflow.com/questions/9458003/is-there-a-way-to-embed-custom-fonts-in-flash-w ithout-flex
    Here's a better link that explains the process better http://blog.brokenfunction.com/2009/03/how-to-remove-flex-libraries-completely-from-your-a s3-project/

  • Flex SDK with createRectangleTexture() ?

    Sorry if this is entirely the wrong forum for this question, but I'm stumped...
    I see there's a Context3D function called createRectangleTexture(), which I'd like to try using. I'm creating a Flash app using AS3 and C++, via FlasCC. Currently am using the Flex 4.6 SDK; alas, this does not seem to include a sufficiently recent version of Context3D, and so of course compilation fails when I try to use this function. The documentation suggests this is in AIR 3.6; however, the docs for Flex tell me to not overlay a newer version of AIR onto the Flex SDK (and at this point, I cannot even tell if AIR 3.6 actually provides createRectangleTexture()).
    Any help/pointers/suggestions in regard to this issue would be greatly appreciated.
    Thanks!

    If you are not using Flash Builder go here: http://www.adobe.com/devnet/air/air-sdk-download.html
    At the bottom it says:
    Note : Flex users will need to download the original AIR SDK without the new compiler. Mac Windows.
    Download the proper one for your OS and then extract it over your existing Flex SDK directory.
    EDIT: Just read your post again and noticed you mentioned Flash Builder. In that case you want to follow these directions: http://helpx.adobe.com/flash-builder/kb/overlay-air-sdk-flash-builder.html and grab the version with the compiler at http://www.adobe.com/devnet/air/air-sdk-download.html

  • Flex SDK problem

    Where can I find the path to the  Flex SDK? Last time I embeded metadata, Flash CS5 automatically found it for me. This time its not working. I get this message in the output window:
    You have used a feature that requires the Flex SDK:
    "Embed" metadata
    Please set the Flex SDK path if necessary and add it to the library path for this file. The Flex SDK folder contains the bin, frameworks, lib and other folders.
    Thanks for your help
    Shiim

    I did that. I found an SDK that was in the FlashDevelop folder, but the SDK that comes with Flash CS5 is missing or hidden. I did an unhide files in the control panel. but the folder is still not there. Also my program works if I click Test Project, but it will not work with ctrl+enter. Something keeps getting messed up, but I'm not familiar enough with the Flash IDE to fix it. I've re-installed 3 times.
    Thanks
    Shiim

  • 'Use minimum version required by the Flex SDK' setting question

    Hi,
    Can someone explain why after downloading the latest stable Hero SDK (build 19786), which only has fp10.2 support in the framwork/libs/player directory, would the 'Use minimum version required by the Flex SDK' build property still tell Flash Builder to build for fp10.1?
    In my flex-config.xml file from this new SDK, I see the target-player attribute is set to 10.2. Is there a bug in burrito that would fail for that value to be used?

    No. That should work. Builder also reads the minimum value from flex-config.xml.
    Just to check - you added this as a new SDK in Preferences -> Flash Builder -> Installed Flex SDKs and either made that the default SDK or changed the project to use the new SDK, right?

  • Flex SDK and AIR runtime version in mobile

    Hi, guys.
    I'm trying to make my first Flex mobile app.
    I'm a little confused about the relationship between Flex SDK and AIR  runtime versions for mobile development.
    In the "Developing Mobile Applications with ADOBE FLEX 4.6 and ADOBE FLASH BUILDER 4.6" pdf document, it says:
    "AIR requirements
    Flex mobile projects and ActionScript mobile projects require AIR 2.6 or a higher version. You can run mobile projects on physical devices that support AIR 2.6 or a higher version of AIR.
    You can install AIR 2.6 or a higher version only on supported Android devices that run Android 2.2 or a higher version. For the complete list of supported Android devices, see Certified Devices. Also, review the minimum system requirements to run Adobe AIR on Android devices at Mobile System Requirements.
    Note: If you do not have a device that supports AIR 2.6 or a higher version of AIR, you can use Flash Builder to launch and debug mobile applications on the desktop."
    So, I go and check the Certified devices in http://www.adobe.com/devnet-apps/flashruntimes/certified-devices.html and find that the minimun FLASH PLAYER version accepted by ALL devices is FP 10.1
    1. Does this mean that if I want to release an app to target ALL mobile devices, then I can only use Flex 4.5?
    2. Do support for Flash Player mean the same than support for Adobe AIR? Or the application will prompt the user to install whatever version of the AIR runtime and all of them would be supported by the device, even in the FLASH PLAYER support is for a lesser version?
    Thanks!

    Thanks for your help, Flex harUI,
    The first impression that comes to mind is that FP version is indeed only for the web browser plugin. Then, why does the official Flex 4.6 mobile development documentation have a link to that page that only speaks about the supported FP version in mobiles under the title "AIR requirements"??
    This makes it way too confusing.
    Do you know whether there is something like an equivalent matrix/list of mobile devices with their supported AIR runtime versions?  I went a great deal in trying to keep my original app under 400kb... I didn't know that in the end it would end up weighing 9.5Mb... :S
    Thanks again,

  • Flex SDK 4.5 && flash player version

    Why does Flex SDK 4.5 requires minimum flash player version 10.1 not 10 ?

    I think the question was "Which flex components will not work in right way if we compile project with Flex SDK 4.5 and then run it in Flash Player 10.0 enviroment?"
    For example - as I understand some new components in Flex SDK 4.5 use flash.globalization classes - so new spark formatters and ?validators? will not work in in Flash Player 10.0.
        * spark.formatter.NumberFormatter
        * spark.formatter.CurrencyFormatter
        * spark.formatter.DateTimeFormatter
        * spark.globalization.SortingCollator
        * spark.globalization.MatchingCollator
        * spark.globalization.StringTools
    Also we have to pay attension to 'string sorting'  functionality - because it could be dependent on flash.globalization also.
    Are there another 'danger' components in Flex SDK 4.5 ?

  • ScriptUI and Flex SDK version

    Hello,
    what is the last Flex SDK version supported by ScriptUI?
    It seems I'm having troubles loading a swf made with Flex 4.5 (Flash project, not AIR).
    I've been told that 3.6 is the latest, usable SDK - yet I'm afraid it could be a permission issue (the error says: "Error #2032: Stream Error. URL: /Volumes/Macintosh HD/DEVELOPER/myExtension/GUI_Test/resources/framework_4.5.0.20967.swf")
    Thanks in advance
    Davide

    I confirm that with Flex SDK 3.6 the problem disappears - following versions are not supported (alas). You can download it here.
    Davide

  • CF8 Flex SDK Version and Update

    I'm new to Flex so this is probably a basic question. When
    creating a new Flex project I have an option, under the Flex SDK
    version (properties of the particular project) to select either a
    specific SDK or the server's SDK. Now I have CF8 installed as my
    application server. Is there a way to tell what version of the Flex
    SDK is installed with CF8? If it's an older version, or when Flex 3
    SDK is finalized, how do I go about "upgrading" the Flex SDK in the
    CF8 install?

    correct me if i am wrong, but i do not think ANY flex sdk is
    installed
    with cf8...
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com

  • Flex SDK version 4.5.1 upgrade issue

    I recently upgraded from Flex SDK version 4.1.0.16076 to  4.5.1 and this upgrade broke one of the key functionalities in my  application.
    Wherever the s:DataGroup itemRenderer's  s:RichText textFlow has <img> element, it throws the following  error in debug Flash player:
    TypeError: Error #2007: Parameter child must be  non-null.
    at flash.display::DisplayObjectContainer/addChild()
    at  flashx.textLayout.factory::TextFlowTextLineFactory/callbackWithTextLines()[C:\Vellum\bran ches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\factory\TextFlowTextLin eFactory.as:267]
    at  flashx.textLayout.factory::TextFlowTextLineFactory/createTextLinesInternal()[C:\Vellum\br anches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\factory\TextFlowTextL ineFactory.as:245]
    at  flashx.textLayout.factory::TextFlowTextLineFactory/createTextLines()[C:\Vellum\branches\v 2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\factory\TextFlowTextLineFacto ry.as:104]
    at  spark.components::RichText/createTextLines()[E:\dev\4.5.1\frameworks\projects\spark\src\s park\components\RichText.as:1296]
    at  spark.components::RichText/http://www.adobe.com/2006/flex/mx/internal::composeTextLines()[E:\dev\4.5.1\frameworks\pro jects\spark\src\spark\components\RichText.as:1173]
    at  spark.components.supportClasses::TextBase/measure()[E:\dev\4.5.1\frameworks\projects\spar k\src\spark\components\supportClasses\TextBase.as:534]
    at  mx.core::UIComponent/measureSizes()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\cor e\UIComponent.as:8496]
    at  mx.core::UIComponent/validateSize()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\cor e\UIComponent.as:8420]
    at  mx.managers::LayoutManager/validateClient()[E:\dev\4.5.1\frameworks\projects\framework\sr c\mx\managers\LayoutManager.as:987]
    at  mx.core::UIComponent/validateNow()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core \UIComponent.as:8067]
    at  spark.components::DataGroup/initializeTypicalItem()[E:\dev\4.5.1\frameworks\projects\spar k\src\spark\components\DataGroup.as:297]
    at  spark.components::DataGroup/ensureTypicalLayoutElement()[E:\dev\4.5.1\frameworks\projects \spark\src\spark\components\DataGroup.as:352]
    at  spark.components::DataGroup/measure()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\co mponents\DataGroup.as:1354]
    at  mx.core::UIComponent/measureSizes()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\cor e\UIComponent.as:8496]
    at  mx.core::UIComponent/validateSize()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\cor e\UIComponent.as:8420]
    at  mx.managers::LayoutManager/validateSize()[E:\dev\4.5.1\frameworks\projects\framework\src\ mx\managers\LayoutManager.as:665]
    at  mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.5.1\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:816]
    at  mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.5.1\frameworks\projec ts\framework\src\mx\managers\LayoutManager.as:1180]
    If I downgrade to 4.1.0.16076, the issue goes  away!
    Has anyone seen this issue? Any idea on how to fix  it? Please help!

    I created a new simple Flex project to recreate the  issue but I'm unable to reproduce the error condition.
    Is there any other way I can provide the needed  information? Can you point me to what you refer to as sample test case, so that  I can provide you the info in appropriate form.
    For what it's worth, here are the  screenshots:
    With SDK 4.1.0.16076
    With SDK 4.5.1:

  • [svn:cairngorm3:] 17674: Maven: Remove deprecated PopUpFactory from Flex SDK 4 version.

    Revision: 17674
    Revision: 17674
    Author:   [email protected]
    Date:     2010-09-13 02:20:26 -0700 (Mon, 13 Sep 2010)
    Log Message:
    Maven: Remove deprecated PopUpFactory from Flex SDK 4 version. Use PopUpWrapper.reuse = false instead.
    Modified Paths:
        cairngorm3/trunk/libraries/Popup/pom.xml

    Hi, those technologies are so cool but I failed to run the sample:
    - I am using Maven 3.0.2.
    Runnung mvn build from the latest source code from trunk "....cairngorm3\samples\todo>mvn install". I got the error relating to "unable to transacoding"
    D:\Java\workspaces\misc\cairngorm3\samples\todo\todo_flex\todo_flex_shell\src\ma
    in\flex\com\adobe\txi\todo\shell\skins\ApplicationHeaderSkin.mxml: Error: unable
    to resolve '/assets/todoLogo_big.png' for transcoding
    D:\Java\workspaces\misc\cairngorm3\samples\todo\todo_flex\todo_flex_shell\src\ma
    in\flex\com\adobe\txi\todo\shell\skins\ApplicationHeaderSkin.mxml: Error: Unable
    to transcode /assets/todoLogo_big.png.
    I shift the assets folder to src/main/flex. It got compiled then I can deploy succesfully into Tomcat 6. But I still get empty screen.
    Do I have to do something else like "run db script", "create DB schema" ?
    Note: my adt.jar is from flex_sdk_4.5.0.17855
    Thanks

  • Flash Builder, Flex SDK 4.1 and OSMF versions

    Hi,
    I use Flash Builder (4.5) and have to use the 4.1 Flex SDK to make AIR apps for TV sets. The OSMF lib provided in the 4.1 SDK doesnt meet my needs, but the 4.5 version does. However, when I add another OSMF.swc version to my libraries, I get a Conflict error and cannot compile the app. If to prevent conflicts I remove the native OSMF.swf (Properties -> Flex Buid Path -> Remove) then Flash Builder signals an error (red cross aside the project in the project explorer), but won't say where it is. Of course it will not compile either.
    Any idea ?

    If I had to summarize my problem in ten words :
    With Flex 4.5 SDK and AIR 2.6 SDK I can stream dynamic http in the VideoPlayer element, but it won't play on a Samsung TV.
    With Flex 4.1 SDK and AIR 2.6 SDK I can launch the app on a Samsung TV, but the VideoPlayer element won't play any dynamic http stream.
    I assume this problem comes from OSMF because it is the library supposedly handling the dynamic streaming. I just can't make it work within Flex 4.1 :
    If I delete the native osmf.swc and remove it from the Flex Build Path properties, Flash Builder won't compile, claiming there is an error, even if I add other more recent osmf.swc.
    If I don't delete it and still add another one, either I get a conflict error or a "not found" error. either way it won't compile.

  • [svn:fx-trunk] 12087: Dev only. Checking in Flash Builder 4 " Library Projects" for building Flex SDK SWCs in trunk.

    Revision: 12087
    Revision: 12087
    Author:   [email protected]
    Date:     2009-11-21 20:56:09 -0800 (Sat, 21 Nov 2009)
    Log Message:
    Dev only. Checking in Flash Builder 4 "Library Projects" for building Flex SDK SWCs in trunk. These projects are easier to import and do not require linked resource variables to be specified.
    Note: although the trunk does not build textLayout.swc, there appears to be a legitimate compiler error in FlowGroupElement.as as a cast is missing. I'll follow up with TLF.
    QE notes: N/A
    Doc notes: N/A
    Bugs: N/A
    Reviewer: N/A
    Tests run: N/A
    Is noteworthy for integration: No
    Modified Paths:
        flex/sdk/trunk/build.xml
    Added Paths:
        flex/sdk/trunk/frameworks/projects/airframework/.actionScriptProperties
        flex/sdk/trunk/frameworks/projects/airframework/.flexLibProperties
        flex/sdk/trunk/frameworks/projects/airframework/.project
        flex/sdk/trunk/frameworks/projects/airframework/.settings/
        flex/sdk/trunk/frameworks/projects/airframework/.settings/org.eclipse.core.resources.pref s
        flex/sdk/trunk/frameworks/projects/airspark/.actionScriptProperties
        flex/sdk/trunk/frameworks/projects/airspark/.flexLibProperties
        flex/sdk/trunk/frameworks/projects/airspark/.project
        flex/sdk/trunk/frameworks/projects/airspark/.settings/
        flex/sdk/trunk/frameworks/projects/airspark/.settings/org.eclipse.core.resources.prefs
        flex/sdk/trunk/frameworks/projects/flex/.actionScriptProperties
        flex/sdk/trunk/frameworks/projects/flex/.flexLibProperties
        flex/sdk/trunk/frameworks/projects/flex/.project
        flex/sdk/trunk/frameworks/projects/flex/.settings/
        flex/sdk/trunk/frameworks/projects/flex/.settings/org.eclipse.core.resources.prefs
        flex/sdk/trunk/frameworks/projects/framework/.actionScriptProperties
        flex/sdk/trunk/frameworks/projects/framework/.flexLibProperties
        flex/sdk/trunk/frameworks/projects/framework/.project
        flex/sdk/trunk/frameworks/projects/framework/.settings/
        flex/sdk/trunk/frameworks/projects/framework/.settings/org.eclipse.core.resources.prefs
        flex/sdk/trunk/frameworks/projects/halo/.actionScriptProperties
        flex/sdk/trunk/frameworks/projects/halo/.flexLibProperties
        flex/sdk/trunk/frameworks/projects/halo/.project
        flex/sdk/trunk/frameworks/projects/halo/.settings/
        flex/sdk/trunk/frameworks/projects/halo/.settings/org.eclipse.core.resources.prefs
        flex/sdk/trunk/frameworks/projects/osmf/.actionScriptProperties
        flex/sdk/trunk/frameworks/projects/osmf/.flexLibProperties
        flex/sdk/trunk/frameworks/projects/osmf/.project
        flex/sdk/trunk/frameworks/projects/osmf/.settings/
        flex/sdk/trunk/frameworks/projects/osmf/.settings/org.eclipse.core.resources.prefs
        flex/sdk/trunk/frameworks/projects/rpc/.actionScriptProperties
        flex/sdk/trunk/frameworks/projects/rpc/.flexLibProperties
        flex/sdk/trunk/frameworks/projects/rpc/.project
        flex/sdk/trunk/frameworks/projects/rpc/.settings/
        flex/sdk/trunk/frameworks/projects/rpc/.settings/org.eclipse.core.resources.prefs
        flex/sdk/trunk/frameworks/projects/spark/.actionScriptProperties
        flex/sdk/trunk/frameworks/projects/spark/.flexLibProperties
        flex/sdk/trunk/frameworks/projects/spark/.project
        flex/sdk/trunk/frameworks/projects/spark/.settings/
        flex/sdk/trunk/frameworks/projects/spark/.settings/org.eclipse.core.resources.prefs
        flex/sdk/trunk/frameworks/projects/sparkskins/.actionScriptProperties
        flex/sdk/trunk/frameworks/projects/sparkskins/.flexLibProperties
        flex/sdk/trunk/frameworks/projects/sparkskins/.project
        flex/sdk/trunk/frameworks/projects/sparkskins/.settings/
        flex/sdk/trunk/frameworks/projects/sparkskins/.settings/org.eclipse.core.resources.prefs
        flex/sdk/trunk/frameworks/projects/textLayout/.actionScriptProperties
        flex/sdk/trunk/frameworks/projects/textLayout/.flexLibProperties
        flex/sdk/trunk/frameworks/projects/textLayout/.project
        flex/sdk/trunk/frameworks/projects/textLayout/.settings/
        flex/sdk/trunk/frameworks/projects/textLayout/.settings/org.eclipse.core.resources.prefs
        flex/sdk/trunk/frameworks/projects/wireframe/.actionScriptProperties
        flex/sdk/trunk/frameworks/projects/wireframe/.flexLibProperties
        flex/sdk/trunk/frameworks/projects/wireframe/.project
        flex/sdk/trunk/frameworks/projects/wireframe/.settings/
        flex/sdk/trunk/frameworks/projects/wireframe/.settings/org.eclipse.core.resources.prefs

    Status Update - don't know if this is a bug, design flaw, install problem or my misunderstanding.
    I got it to work by first changing my Flex library to 4.5.0 - still didn't work with current
    app and update mxml files using "2.6" for their namespace versions. But I did at least
    get the popup error number 16815 - indicating an error in the update version namespace.
    By leaving my application namespace version at "2.6" and changing the update version to "2.5" ... bingo!
    I got my new update installed autiomatically.
    Is this how it's supposed to work - or are my runtimes mixed up?
    Will this work the same using the Flex 4.5.1 SDK? I'll find out shortly
    Hope this helps others.

  • Flex SDK 3.5 support

    Hello,
    I would like to know if there is any due date to which the Adobe Flex SDK 3.5 will continue to be supported by the adobe flash player.
    I dont know if this is the right way of asking this question, but we have a very large Adobe Flex app. In the past few years we have been discussing to move it to a newer SDK or to directly change technology (HTML5) but it has been really hard, and find us in a position where with a reduced team we are just maintaining that app.
    So wanted to know if someone knows if there is a due date in which the compiled swf will no longer continue to work properly in the newer version of flash player.
    Thanks in advance.
    Fernando

    There is no due date.  Adobe wants all future players to run all existing content.  Extensive testing is done before each release to try to ensure that.  Adobe in general will only purposefully break content if required to fix a security issue.  I’m pretty sure you aren’t the only one maintaining a Flex 3 app for years to come.
    And don’t forget, there is continuing development on the Flex 4 code at Apache.  If enough folks showed up on the Apache Flex mailing lists wanting to make improvements to Flex 3, such a thing could happen there too.  At Apache, development is completely community-driven.
    And also, there is progress being made on FlexJS, a next-generation Flex SDK that cross-compiles to HTML/JS/CSS.  That could make your transition off of Flash much easier.  Volunteers are always welcome to help accelerate its development
    -Alex

  • Flex SDK and AIR Runtime issue

    Hello,
    Please somebody answer my Question.i.e,
    For Instance, I downloaded an Application(AIR application) which is developed with Flex SDK 3.0 and AIR Runtime version 2.5. But I have AIR Runtime version 2.0 installed in my machine. What will happen if i install the application? whether it will be installed completely or Any warning will be shown up regarding the AIR Runtime discrepancies? or will the application be obsolete even after it's successful installation?
    Did anyone experience it?
    Regards,
    venks.

    Thanks for your help, Flex harUI,
    The first impression that comes to mind is that FP version is indeed only for the web browser plugin. Then, why does the official Flex 4.6 mobile development documentation have a link to that page that only speaks about the supported FP version in mobiles under the title "AIR requirements"??
    This makes it way too confusing.
    Do you know whether there is something like an equivalent matrix/list of mobile devices with their supported AIR runtime versions?  I went a great deal in trying to keep my original app under 400kb... I didn't know that in the end it would end up weighing 9.5Mb... :S
    Thanks again,

Maybe you are looking for