I just recently was made aware that there are actually 3 different “builds” of Flex SDK “hotfix 3″ out there.
1. Originally hotfix 3 was applied to hotfix 2 (updating a few swcs) - version 1
2. Late summer 2007 it was realized this confused some folks so the hotfix kb article was replaced with a full version of the SDK with the fixes applied - version 2
3. Flex Builder 3 beta 2 shipped with the latest/greatest SDK from the 2.0.1 branch which is an equivalent to hotfix 3 SDK - version 3.
These versions should be functionally identical afaik.
I updated my version checker to detect and differentiate these versions. I have updated the original blog entry here and also have links to the update AIR app here.
No Comments »
Here is an example demonstrating how to use project references to refer to source files in other projects as well as swcs in other projects.
If you take a look at this zip file, you will find that it contains 3 projects.
The first project is a normal Flex project called globalIncludes which contains an actionscript file, vars.as.
A second project, Expando, is a library project, which contains an mxml component.
- In the properties/Project References dialogue for this project there is a checked refererence to the globalIncludes project.
- In the properties/sourcepath for this project, I have added the root folder from the globalIncludes project. (Just click the add Folder… button and navigate to the folder.) This folder is added as ${DOCUMENTS}\globalIncludes.
Now in your Expando project you can see a “virtual directory” from the globalIncludes project labeled - [source path] globalIncludes.
In my mxml component in the Expando project, I refer to the actionscript file from the globalIncludes project by doing an include:
include "../globalincludes/vars.as";
Then in my component I use a variable defined in that vars,as actionscript file to expose a version number tooltip in my component.
Note:
In the Expando project, I have right clicked on the ExpandoComboBox.mxml and selected – “Include class in library”. That way, whenever I make changes to this component, the swc will be recompiled.
My third project, Sample, is a normal project that just has an application in it.
- In the properties/Project References dialogue for this project there is a checked refererence to the Expando project.
- In the properties/Flex Build Path/Library Path dialogue for this project, I have added the Expando Project (click Add Project… and you will be able to select the Expando project since it is in the list of Project references.)
Now you can launch the Sample.mxml application and see that the tooltip for the ExpandoComboBox is 1.0 which has come from the vars.as actionscript file in the globalIncludes project.
2 Comments »
I’ve had a few customers ask me how they can switch out embedded fonts at runtime. This really isn’t too difficult and basically involves loading swfs at runtime that have the appropriate fonts embedded within.
You register the font after the “font swf” is loaded and apply the newly loaded font to whatever components you like. Check out the code and comments below.
First I define an interface that I want all my font swf classes to implement so I know how to determine what font(s) are loaded.
IFontModule.as:
package
{
public interface IFontModule
{
function get fontName_Normal():String;
function get fontName_Bold():String;
function get fontName_Italic():String;
function get fontName_BoldItalic():String;
}
}
Read the rest of this post»
1 Comment »
I just published two Tech note articles for Flex regarding changes to Daylight Savings time in effect for 2007 and Sun’s JVM changes regarding this:
“How to upgrade the JVM shipped with Flex”
and
“Flex and Sun’s JVM: U.S. Daylight Saving Time changes in 2007″
No Comments »
RSS feeds are a good way to stay on top of news regarding your favorite product.
This is a good way to stay aware of the latest tech notes or new product announcements.
I encourage all my customers to subscribe to Flex, Flex Builder and Flash Player Feeds.
These feeds and others from Adobe can be found here:
http://www.adobe.com/support/rss/
No Comments »
I have run into a few customer issues that could be traced to them not having successfully upgraded to Flex Builder 2.0.1.
(I believe upgrading from the last GMC to the Final release was supposed to work, but upgrading from earlier GMCs was not.)
Whatever the case, if you need to know what build you are using here are the directions to find it in either the Standalone version of Flex Builder or the Eclipse plugin version:
If using Flex Builder Standalone, if you go to:
Help/Product Details/… and click on Feature Details.
You should see the Flex Builder2 feature version #
If using the Eclipse Plugin, if you go to
Help/About Eclipse SDK/ …and click on Feature Details.
You should see the Flex Builder2 feature version #
For the Flex Builder 2.0.1 release, the version# should be 2.0.155577
No Comments »
I wrote this article for the Flex 2.0 release.
It is a good intro on how you can move data between Coldfusion 7.02 CFCs and Flex 2.0 using Web Services or Remote Object calls.
My co-worker, Lin Lin, blogged a good follow up to this article that expands up on the configuration and steps necessary to access cfcs on your Coldfusion server from a flex app on a separate server.
No Comments »
Recent Comments