Archive for the ‘Flex’ Category
You are currently browsing the archives for the Flex category.
You are currently browsing the archives for the Flex category.
Follow these steps in order to set up SAP GAteway as one of the data service objects in your Adobe Flex builder.
Prerequisites
Installation instructions
For more information on the subject you can reference the following links:
Stumbled across this strange error while doing some development. I’ve needed to determine the enable function of a button based on two boolean conditions and as a result created the following bit of code:
<com:Component enabled=”{booleanA && booleanB}”/>
The compiler didn’t like what I’ve put together and threw the following error: The entity name must immediately follow the ‘&’ in the entity reference.
At first I litteraly thought that I’ve forgotten how to code and trivially tried a simple if statement in a <fx:Script> tag – that worked without a problem. I’ve also tried to see if the or ”||” operator worked within the enabled attribute – which it did. My last thought before searching for a solution online was that the latest version of Adobe Flex had a bug in it.
Some of the solution that I’ve discovered are:
When you’re dealing with a situation that requires the use of the following image settings:
width="100%"
height="100%"
scaleContent="true"
maintainAspectRatio="true"
You can find your self in a situation where the loaded content will result in a pixelated bitmap. Simply add a complete event handler to your image component and update the contents of the event in the following way:
var lv_btmp:Bitmap = ((event.target as Image).content as Bitmap);
if ( lv_btmp != null )
lv_btmp.smoothing = true;
this will smooth out the image that you have loaded.
When I tried creating a new project with the BlackBerry sdk I ran in to the following error:
Description Resource Path Type LocationUnable to resolve resource bundle "collections" for locale "en_US".Flex Problem Unknown
Although annoying I quickly found a solution:
-library-path+="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\
blackberry-tablet-sdk-0.9.0\frameworks\locale\en_US"
If you are working with rich text editors you will run in to a situation where you have to format an HTML string to RichText value.
Following code can accomplish this:
gc_ta_bio.textFlow =
TextConverter.importToFlow( "<h1>Your String</h1>,
TextConverter.TEXT_FIELD_HTML_FORMAT )
Where the MXML control will look something like this:
<s:RichEditableText id="gc_ta_bio" />
A nice introduction to what the cross-domain policy are all about
While trying to configure the AMFPHP set up with the Flex 3 framework I ran in to a problem while setting up the services-config.xml.
I’ve created the file in the root directory and specified in the Flex Compiler [Additional compiler arguments] the following string -locale en_US -services “services-config.xml”.
As soon as I clicked OK an error popped up with a message unable to open ‘services-config.xml’. After trying varying things I was able to figure out that the problem was with the location of the file. Simply placing the file at the root of the directory wasn’t the right location. I needed to put the file in the same directory as the main MXML executable – after that the program worked as expected.
Gumbo: the next release of Adobe Flex SDK interface will has some interesting and useful features. The idea of developing custom controls [like buttons or menues] which slide in and out based on mouse interaction can be problematic to build. The logic of incomplete slide ins and slide outs along with the gittery screen can cause the application to look unpolished.
All of this is about to change as you can see in this video describing the new sequence functionality that will be available in the next release. Have a look at the more complex sequences.
PS: seems that the new release will be hitting the shelf sometime in the second half of 2009.
A great collection of tutorials for anyone who is interested in learning how to work with Adobe Flex. The lessons cover everything from the basics of Flex Builder to more complicated topics like building run time shared libraries. Have a look and learn something new.
Before I begin let me just say that I am a big supporter of what Adobe has done with the Flex application. As a result I’ve tried to be un-biast and explicit about my opinion.
I have a few concerns regarding a new product xcelsius. Despite impressive results there are fundamentals shortcommings that will become evident while working with the application.
Overall this is just another attempt to market Adobe’s ability to present data, an attempt that failed miserably.