How do I build the apache flex framework rsls? - apache-flex

I tried ant frameworks-rsls but it doesn't work. I don't see any swz files just swfs.

Apache Flex does not contain SWZ files.
The SWZ files were issued and signed by Adobe and cached by Flash Player for quick loading.
But since Adobe is no more developing Flex, Adobe will not be releasing SWZ files any more.
You will have to work with the SWF version of the RSLs.

Related

How to develop cross platform apps with Flex?

I have been throught a lot of reading and the whole thing is becoming only more confusing so I decided to ask you some stuff about Flex.
So, Flex can run in a webpage if you have Flash plugin in your browser, in an AIR container (on pc/android/IOS, but on OSX ?) and also can compile to Native IOS/Android app.
I am not sure about the last point.
If it is possible, how can I build a flex app that would run in browser with flash plugin and also be compiled to Android and IOS (and maybe Windows RT) ?
Adobe gives you Flash builder, do you also need the Flex SDK ? Is it doable with the Eclipse Flex plugin ?
Thank you for your help and sorry if it is a bit messed up.
So, Flex can run in a webpage if you have Flash plugin in your
browser, in an AIR container (on pc/android/IOS, but on OSX ?) and
also can compile to Native IOS/Android app. I am not sure about the
last point.
This is mostly correct. Flex can run in a web page using the Flash Plugin, which is widely available on desktop browsers. For all intents and purposes, you should assume your mobile users do not have a Flash Plugin installed on their mobile browsers.
It is true using AIR you can create desktop applications for PC and Mac; OSx is indeed supported. You can also use AIR to create Mobile applications on Android, iOS, and Blackberry Playbook. So, iOS is indeed supported. Windows 8 UI/Metro support for AIR is expected 1st quarter of this year. I suspect we'll also see AIR support for Blackberry 10; but nothing has been formally announced that I'm aware of.
Update: 3/2014
Adobe has abandoned plans for Windows 8 UI / Metro support. Windows Phone 8 support is a very common feature request, though, so vote for it if you want it.
BlackBerry 10 does indeed support Adobe AIR. Here is a link to the SDK.
If it is possible, how can I build a flex app that would run in
browser with flash plugin and also be compiled to Android and IOS (and
maybe Windows RT) ?
Flex is primarily a framework for creating business applications. A slightly different component set is offered for desktop applications and mobile applications. Part of this is due to screen size; and part due to performance. A big DataGrid with dozens of columns, for example, is not conducive to the screen size of your mobile phone.
Update 3/2014:
A mobile optimized DataGrid was donated to the Apache Flex Team, and it should be available in current versions of the SDK.
In the end; you should not plan on using the same exact application for both your Desktop/browser app and the mobile app. But, you can share some amount of code. I would target to share 80% of the code. Move the shared code into a library project; which you can then use on both your mobile application, your desktop application, and your browser based application.
Adobe gives you Flash builder, do you also need the Flex SDK ? Is it
doable with the Eclipse Flex plugin ?
Flash Builder is shipped with the Flex SDK. And Adobe Flex ships with the AIR SDK [Note: Apache Flex does not ship w/ the AIR SDK due to licensing differences; but there is a handy installer]. Flash Builder, also, is an Eclipse plugin and can be installed into any eclipse instance you wish.
You do not need Flash Builder to create a Flex Application. You can use command line tools and other IDEs, such as IntelliJ, if you prefer.
Using Flash Professional, you can package and export to a number of platforms using AIR. You can port to both Android or iOS (as a native app), in addition to creating a .swf file that can be embedded onto a webpage - all using the one application (go 'File' > 'Publish Settings' then change the player target).
I'm not sure whether the same options are available in Flash Builder, (appears to be possible -
adobe website) but not other IDE (such as Eclipse) or framework should be needed.
You may want to consider an alternative development and deployment strategy depending on your requirements, e.g. PhoneGap which should offer support for a greater number of devices.

How to attach file extension with my AIR application that by default open with my AIR application?

I made an AIR application that parses some specific files. I am using flex builder 4.5 and SDK 3.6. I want to attach Icons with those files and when I double click those files they should open with my application. How can I do this?
Thanks
In the Application Descriptor file (look in your project structure for a file named like your application, plus -app.xml as an ending) find the tag fileTypes.
If you uncomment it, you can specify which file types you application handles, and which icons to show for those files.
We can not do this using SDK 3.6 in flex builder 4.5. To do this we need to use SDK 4.5.

Create different version of swf file for each release build in flash builder

Recently, i have faced an issue of caching of my flex swf file on client's ie-explorer machine and i could not tell him every time, delete all your cache data and reopen the browser.
so, finally, i have think to make the different version of swf file for each release build and give it to client while production release.
Could you please have any idea about handling/maintain version of release swf file in flash builder.
i am using the flash builder 4.0 and using flex 4 in my application.
I think you should do this versioning in the deployment process, ie when you upload the new SWF to your webserver, as the HTML / JS embedding needs to be updated too anyway.

Does Flash Builder 4 now use AIR 2?

I just got CS5 master suite which includes Flash Builder 4 and Flash CS5 Pro.
When I create a new AIR app in CS5 pro it says "AIR 2" but when I create a new AIR project in Flash Builder I do not see anything indicating that it is AIR 2 or 1.5?
Is there a way to tell which AIR runtime it is using?
I think you'll have to download the SDK and st it up yourself; but Flash Builder should work fine:
http://labs.adobe.com/wiki/index.php/AIR_2:Release_Notes
How to overlay the Adobe AIR SDK for use with the Flex SDK
Copy the contents an existing Flex SDK folder to a new folder. For
example, in Flex Builder, copy the
following folder located at:
* Windows: c:\Program Files\Adobe\Flex Builder 3\sdks\3.2.0
* Mac OS: /Applications/Adobe Flex Builder
3/sdks/3.2.0
Download the appropriate AIR SDK file for your operating system and
save it to the root folder of the Flex
SDK.
* Windows: AIR20_win_sdk_XXXXXX.zip
* Mac OS: AIR20_mac_sdk_XXXXXX.tbz2
Extract the contents of the AIR SDK archive and overwrite the existing
SDK files in the copied folder.
* Windows: Right-click on the ZIP file and select "Extract All"
or use the decompression tool of your
choice.
* Mac OS: In Terminal, cd to the root folder of the Flex SDK and
run this command:
* tar jxvf AIR20_mac_sdk_XXXXXX.tbz2
If you have trouble overwriting files due to file
permissions, try this command
sudo tar jxvf AIR20_mac_sdk_XXXXXX.tbz2
In Flex or Flash Builder, open the Properties dialog and choose the
Flex Compiler page
Click the Configure Flex SDKs... link
Add the combined Flex and AIR 2 SDK folder created above
Use this SDK for any projects accessing AIR 2 APIs.
To update this for the production release; go downlod your preferred version of the Flex SDK at http://opensource.adobe.com/wiki/display/flexsdk/Downloads and download the AIR 2 SDK at http://www.adobe.com/cfusion/entitlement/index.cfm?e=airsdk .
Overlay the two using the instructions above (1-3); then configure the new SDK in Flash Builder (also using the instructions above (4-7).
Update: Since my original post of this; Flex 4.1 SDK was released which includes the relevant AIR 2 bits. You can get it here
The fastest way to use AIR 2 is to download a new version of the Flex framework. I've downloaded version 4.1.0.16076 from here and it comes with AIR 2 already installed.
Today Adobe release the stable version of AIR 2 SDK so probably they come up with a new stable release of the Flex SDK.

Can i develop application in Adobe Flex with AIR support?

I need to create directories in the local machine, can i do this with FLEX with AIR support
Air gives you reasonable file access. Creating directories shouldn't be a problem.
See the docs for more info:
http://help.adobe.com/en_US/AIR/1.5/devappsflex/WS5b3ccc516d4fbf351e63e3d118666ade46-7d8e.html#WS5b3ccc516d4fbf351e63e3d118666ade46-7d9a

Resources