This is a dream come true.
To run an EXE from AIR, do the following steps:
Step 1:
Install the exe from this Link
Step 2:
Import Flex Project samples, from install dir ex: C:\Program Files\FluorineFx Aperture\Samples
Step 3:
Copy *.dll files (apimaging.dll,apoutlook.dll,apSystem.dll,fluorinepp.dll and msi.dll) to your Flex src directory
Step 4:
Copy your ‘-app.xml’ to ‘C:\Program Files\FluorineFx Aperture\Debug’ location of install dir for debugging or just pack the AIR
Access Client Machine from AIR on Ease
September 14, 2009Flex@Beach
July 29, 2009Loading Image / Swf in MAC, AIR
July 2, 2009A Quick tip, was stuck today to load an local image / swf inside AIR at MAC OS.
The below is the solution:
var filenotion:String =”;
if(Capabilities.os.search(“Mac”) >= 0) filenotion = “file://”;
Image.source= filenotion +imgFileURI;
Using / Creating Locale for your language
June 24, 2009How to do :
1 ) To create resource bundles for different languages and then use the ResourceManager class provided by the Flex API to get the resources.
Just changing the locale of the resource manager will reflect changes in the entire application with the values from the new locale’s resource bundle.
How to Create Locale :
For example if I want to support two locales (en_US and fr_FR) in your application and I my parent folder is named as “Locales”, then I might have following folders. As en_US ,fr_FR
It will be like this :
Locales/en_US , Locales/fr_FR
Steps to do before make the Bundle
Part 1 : SDK
Create folder
1 D:\Program Files\Adobe\Flex Builder 3\sdks\3.2.0\frameworks\projects\framework\bundles \fr_FR
2 D:\Program Files\Adobe\Flex Builder 3\sdks\3.2.0\frameworks\projects\framework\bundles\fr_FR \src
Download and paste
3.http://opensource.adobe.com/svn/opensource/flex/sdk/trunk/frameworks/projects/framework/bundles/fr_FR inside step 2
Create folder :
4 D:\Program Files\Adobe\Flex Builder 3\sdks\3.2.0\frameworks\locale \fr_FR
Execute
5. D:\Program Files\Adobe\Flex Builder 3\sdks\3.2.0
bin\compc -locale=fr_FR -source-path+=frameworks/projects/framework/bundles/fr_FR/src -include-resource-bundles=collections,containers,controls,core,effects,formatters,logging,SharedResources,skins,states,styles,utils,validators -output=frameworks/locale/fr_FR/framework_rb.swc
Part 2 : Project
1. Set System PATH
D:\Program Files\Adobe\Flex Builder 3\sdks\3.2.0\bin
2. create required properties file mainBundle.properties
3. keep that file inside a folder with your locale name ‘fr_FR
4.execute from root path
mxmlc -locale=fr_FR -source-path={locale} -include-resource-bundles=mainBundle,collections,containers,controls,core,effects,skins,styles -output=src/Resources_fr_FR.swf
mxmlc -locale=en_US -source-path={locale} -include-resource-bundles=mainBundle,collections,containers,controls,core,effects,skins,styles -output=src/Resources_en_US.swf
After that place that swf file your Project
Locale/en_US :
Inside we need create the file name like “mainBundle.properties” inside that we need to create like that
welcome_title_text=Welcome,
form_first_name_text=First Name
form_second_name_text=Last Name
form_gender_text=Gender
form_gender_list_male_text=Male
form_gender_list_female_text=Female
Locale/fr_FR :
Inside we need create the file name like “mainBundle.properties” inside that we need to create like that
welcome_title_text=Bienvenue ,
form_first_name_text=Prénom
form_second_name_text=Nom de famille
form_gender_text=Sexe
form_gender_list_male_text=Mâle
form_gender_list_female_text=Femelle
Adding Locales to your Projects
Add the locale to the compiler options.
-locale=en_US,fr_FR
This link, claims to have compiled swc files for most languages : Babel
Flex with Java Collaborative using the Best Architectures of Both
June 18, 2009This Post was my overdue subject, I wanted to help with a sample Application using Cairngorm, Spring BlazeDS Integration & Generic DAO.
This might be a heavy subject as it deals with many subjects:
- Cairngorm with UM Extensions , from Universal Mind
- Spring BlazeDS Integration, from Spring Source
- Spring, from Spring Source
- Hibernate
- Generic DAO, from IBM.
- Spring Security 2.0, using MySQL.
The Source is available at the link: cairnspring
How to use the source effectively?
it is simple, steps below:
- Download, Source and Libs
- Unzip both and import “CairnSpring”, to your Eclipse
- Paste the lib files to “CairnSpring\WebContent\WEB-INF\lib” folder
- Import the “db.sql” into your MySQL Db, (change mysql port to 3036, else can be configured to default in “CairnSpring\WebContent\WEB-INF\config\jdbc.properties” file)
- In Eclipse, Window -> Preferences -> Web and XML -> XML Catalog -> Add User Specified Entries with below values
Location : CairnSpring/WebContent/WEB-INF/config/spring-flex-1.0.xsd
KeyType : Namespace Name
Key : http://www.springframework.org/schema/flex/spring-flex-1.0.xsd - Start the Tomcat Server with CairnSpring instance (the server host and port can be configured in file “CairnSpring\flex_src\Server.properties”)
SQLLite DBManager for AIR
April 2, 2009fileReference.load()
March 28, 2009Today, i faced a weird problem of fileReference.load() not working in AIR. Even, in the latest 3.3 SDK. To resolve that, you have to install Flex Builder Update. Then, modify your App.xml into air version 1.5. As, to get the benefits of latest AIR Version.
Otherwise, in AIR: Code gets compiled but when we select a file from system, it throws a error.
Licensing Flex / AIR Application
January 20, 2009I have came through the thread and this is my solution to protect the product with a serial key uncrackable.
The solution can be used in both Online browser based / AIR products.
The MD5 class does create a Unique system ID and verifies the MD5 checksum with a foreign key to check whether the user is registered or not.
MD5.registereduser – Boolean returns true, if user is registered.
MD5.skey - The Serial key to be used, to register (can store in a db or xml)
MD5.setRegKey(MD5.skey); – To unlock the product.
Welcome the user with his name
September 22, 2008Guessing the end-user name, for AIR Applications.
![]()
var nameStr:String = File.userDirectory.name;
String converted to Component Dynamically
July 17, 2008VBox(or any class with package path)
var ctrl:String = ‘VBox’;
var ClassReference:Class = getDefinitionByName(“mx.controls.” + ctrl) as Class;
var ctrlObj:Object = new ClassReference();
ctrlObj is now the class of any component you need for dynamic usage
AIR Popup
April 11, 2008Click here to have a look on AIR with multiple nativewindow instance (App also plays my Marriage video)
Flexible MXML Editor
April 9, 2008click here for AIR version of Flexible, for editing and modifying the MXML. Alternative for Flex Builder. This works as MXML Parser. I have plans to create SWF instead of mxml (on runtime).
Applying Dynamic Properties for controls
March 19, 2008Instead of using AS3 dynamic Class for assigning dynamic properties to the DisplayObject, the below line is best alternative:
DisplayObject['property']= value
Using this i am working on mxml parser, planning for swf generator from AIR
PNR Status (Indian Railway)
March 13, 2008click here to install an Application to check the passenger status for Indian Railway Ticket.
Googler
March 7, 2008click here to install AIR Application to google ( created using HTML and AIR )
Posted by nsdevaraj
Posted by nsdevaraj
Posted by nsdevaraj 