Showing posts with label flex. Show all posts
Showing posts with label flex. Show all posts

Sunday, March 6, 2011

Installing AIR Runtime on Android emulator

You can find the Air Runtime.apk in Flex sdk, Flash Builder, or Flash CS5.
Then use Android's command line adb tool to install Runtime.apk.  Apk files are Android package files.

On Flash Builder Burrito, the emulator Runtime.apk is at:
/sdks/4.5.0/runtimes/air/android/Emulator/Runtime.apk

On a terminal, go to android sdk platform-tools folder
> cd /platform-tools
> ./adb -e install -r

eg.
> cd /Applications/android-sdk-mac_x86/platform-tools
> ./adb -e install -r "/Applications/Adobe Flash Builder Burrito/sdks/4.5.0/runtimes/air/android/Emulator/Runtime.apk"

After installation, you can go to emulator's settings-> applications -> android applications, you should see "Adobe AIR" as one of the application.

Done.

Thursday, August 5, 2010

Installing AIR SDK onto Flex SDK (Mac)

Here is a good instructions for installing AIR SDK onto your flex builder's Flex SDK for Mac.
http://radleymarx.com/2010/02/install-air-2-osx/  (by Radley Marx)

Monday, August 2, 2010

Solution to "Problem using as3corelib and HTTService"

I encountered this error message in one of my AIR projects.

VerifyError: Error #1053: Illegal override of concurrency in mx.rpc.http.mxml.HTTPService.

It looks like the same error as the one described in:
http://forums.adobe.com/thread/681351?tstart=0

Steps to reproduce:
This occurs after I download as3corelib.swc 0.93 and put in my Flex project's libs folder.  Inside my app, there is an mx:HttpService.
It looks like some sdk incompatibility.

Solution:
Instead of putting downloaded as3corelib.swc into libs folder.  Copy and paste as3corelib source code into your own project.  You can download the source code by using svn from http://as3corelib.googlecode.com/svn/trunk/

For example, I only use JSON library.  So I just need to copy com.adobe.serialization.json folder to my project.

Thursday, June 24, 2010

Creating more secure swf app

This is a good article on creating more secure swf app
http://www.adobe.com/devnet/flashplayer/articles/secure_swf_apps.html

If your primary focus is on making the data secure in transit, then you should read the "encrypting data" section.  That is how I found this article.  I had a need to encrypt data in transit.
http://www.adobe.com/devnet/flashplayer/articles/secure_swf_apps_12.html

Hope it helps.

Saturday, May 1, 2010

Tip: Flex with https require the web page to be https too

Just a quick tip.

Flex can make SSL call by simply specify "https" in the url of HTTPService.  However, the enclosing page must be in https for this to work.  Otherwise, you may get "Security Sandbox Violation" like the one below:


*** Security Sandbox Violation ***
Connection to https://graph.facebook.com/me/friends?access_token=xyz halted - not permitted from http://localhost:8888/xyz/xyz.swf


Wednesday, December 30, 2009

Data binding in Flex

Data binding (usually done using {} in mxml) is one of the best features in Flex. It simplifies a lot of coding. Underneath the hood, Flex actually generates a lot of code to handle the data binding.


Note:
You can skip the rest of this article and just read Chapter 40 of the Flex Developer Guide.


The easiest way to do data binding is {} in mxml. It is so easy to use and so easy to understand that it is like magic. However, one often has questions about what can or cannot be put into the {}. Object properties (eg. object1.abc) are definitely allowed. Chains like object1.subobj.subsubobj.subsubsubobj.property are also allowed. Is functions allowed? Is array allowed? The best source is chapter 40 of the Flex Developer Guide.

To debug {} bindings, see Debugging bindings section in andybryant's blog:


Data binding can be done in many ways:
  1. {} in mxml
  2. <mx:Binding> tag in mxml
  3. BindingUtils class
  4. ChangeWatcher class
  5. good old event listener



Monday, August 24, 2009

Flex and Flash Integration

I had come across a few quick and sweet Flex and Flash integration tutorials done by Adobe evangelist Serge Jespers . It covers how to build a component in CS4 and use it in Flex. It also covers create a swc in Flex and use in CS4.



Friday, June 26, 2009

Flex Builder 4 Beta is out

Flex Builder 4 beta is out for at least a week now. I like Flex Builder 4 more than Flash Builder 4. I wish they have kept the original name. In the enterprise world, it is much better in the enterprise world to call it Flex than Flash... http://labs.adobe.com/technologies/flashbuilder4/

Thursday, June 4, 2009

Google Wave Actionscript API

I have started creating an Actionscript library for Google Wave Gadget API. If everything goes as planned, one should be able to create gadgets that contain wave-enabled Flex/Flash using this library.
It is hosted at http://code.google.com/p/wave-as-client
It is not yet in any type of working version as it is not tested.