The most comprehensive explaination of Flex 4 Skin
3 February 2010 2:46 AM
by Charles
The most comprehensive explaination of Flex 4 Skin

One of the biggest change you will encounter when develop or migrate to Flex 4 is the spark skin creation. It’s a big leap to separate UI design from programming. There are many resources available to start tutoring the skin development. I found the best one so far among them is this slides created by Saurabh Narula.
It’ll make a lot easier to go over this stack first before diving into the thick document. It’s worth the time.

Flex 3: Delaying Instantiation to Improve Startup Time with Components
This tutorial is inspired by the book Flex 3 Cookbook
- none - no components created.
- all - all components will be created, and queued, based on their creationIndex.
...
<mx:Script>
[![CDATA[
private function changeViewStackCreation(): void {
viewStack.creationPolicy = all;
viewStack.createComponentsFromDescriptors(true);
}
..
Flex: Basic overview of Cairngorm 3 Libraries
- Guidelines explaining the motivation
- Tools to adhere to this guideline framework.
- Libraries to extend existing architectural framework and solve existing problems.
<mx:TextInput text="{ model.firstName }"/>
<cg:Observe source="{ model.firstName }" handler="runEffectFunction"/>
..
<cg:ObserveValue source="{ model.firstName }" value="{ Name.SARA }" handler="runEffectFunction"/>
<observer:EventListener source="{ model }" type="{ Person.UPDATE_EVENT }" handler="runEffectFunction"/>
<popup:PopUpWrapper open="{model.openPopUp}"> <mx:Label text="Hello World"/> </popup:PopUpWrapper>
...
<popup:PopUpWrapper
open="{model.openPopUp}"
center="true"
modal="false"
childList="{PopUpManagerChildList.POPUP}"
opening="openingHandler()"
opened="openedHandler()"
closing="closingHandler()"
closed="closedHandler()">
<mx:Label text="Hello World!"/>
<popup:PopUpWrapper>
<validators:ValidatorGroup id="validatorGroup">
<validators:validators>
<mx:StringValidator id="firstnameValidator"
source="{ firstnameInput }"
required="true"
minLength="3"
property="text"
triggerEvent="change"/>
<mx:StringValidator id="lastnameValidator"
source="{ lastnameInput }"
enabled="{ lastnameValidatorEnableFlag }"
required="true"
minLength="2"
property="text"
triggerEvent="change"/>
</validators:validators>
Adobe Demonstrating iPhone Applications Built Using Flash
Adobe Demonstrating iPhone Applications Built Using Flash
Monday October 05, 2009 03:05 PM EST; Category: iPhone
Written by Eric SlivkaWhile Apple's iPhone has notably been left out of Adobe's new initiative with Flash Player 10.1 to bring an integrated Flash experience to browsers on smartphones and other platforms, TechCrunch notes that Adobe has also been using its Adobe MAX 2009 conference to show off capabilities found in the company's forthcoming Flash Professional CS5 that will allow developers to build Flash-based applications and then export them to the standard .ipa format used for native iPhone applications.
The new support for iPhone applications in the Flash Platform tooling will not allow iPhone users to browse web content built with Flash technology on iPhone, but it may allow developers to repackage existing web content as applications for iPhone if they choose to do so.
Flash Player uses a just-in-time compiler and virtual machine within a browser plug-in to play back content on websites. Those technologies are not allowed on the iPhone at this time, so a Flash Player for iPhone is not being made available today.
Flash Professional CS5 will enable developers to build applications for iPhone that are installed as native applications. Users will be able to access the apps after downloading them from Apple's App Store and installing them on iPhone or iPod touch
Applications created using Flash Professional CS5 meet all iPhone .ipa and SDK requirements, allowing them to be included in Apple's App Store via the standard iPhone Developer Program. Adobe has even featured seven current App Store applications that were built using a pre-release version of Flash Professional CS5.Rating (58 Positives; 33 Negatives)
[ 51 comments ]
Looks like Apple will provide a compromise to Flex/Flash developers, allowing them to develop and with the aid of a compiler, convert native Flash/Flex code to native iPhone code. Adobe has a demo video on how its done. What do you all think?
FirebugTarget - A Flex Logging Tool I found
Hey folks, I came across this simple Flex logging when I was investigating the latest developments in the logging framework world, for my project at work. While I will do a good review of one of the best logging tools out there, Thunderbolt, for now I just wanted to bring up a simple blogging utility. It's called FireBugTarget and was made to be able to use Firefox's Firebug console, to log warnings, information, errors and so forth. I found it on Danny Patterson's blog, and he explained how he created a simple mx.logging framework implementation, and I have tested it on both Firefox and Internet Explorer (with Internet Development Tools). All you have to do to get this working is, put the .as file somewhere in amongst your packages and refer to it, as shown below:
import com.dannypatterson.logging.FirebugTarget; import mx.logging.ILogger; import mx.logging.Log; var logger:ILogger = Log.getLogger("myLogger"); var logTarget:FirebugTarget = new FirebugTarget(); logTarget.addLogger(logger); logger.info("info from flex"); logger.error("error from flex"); logger.warn("warn from flex"); logger.debug("debug from flex");
Flex:: Introduction to Cairngorm
Cairngorm, a really nifty Flex framework that I use quite often at work, with my company, and therefore would give my highest recommendations for it to be the enterprise-framework of choice for Flex developers. Adobe identifies Cairngorm as a micro-architecture that addresses key issues through best-practices in the areas of (1) handling user events in the front-most layer, (2) arranging and managing business logic elegantly, and (3) consistently managing state on the client-side. That is, unlike traditional web-development situations, RIA and Flex in particular is more stateful. [ad] 1. Value Objects Part of keeping the promise of having a stateful application, Cairngorm has borrowed a concept from J2EE, Value Objects or Transfer Objects, which are passed across various layers of our application, in a decoupled way. The following is an example of what a VO looks like :class com.doronkatz..application.vo.CarVO
implements ValueObject, Comparable
{
public static var registered:Boolean =
Object.registerClass( "com.doronkatz.application.car.
vo.CarVO", CarVO );
public var id : Number;
public var make : String;
public var model : String;
public var year : Date;
}
The value object is connected through to the front-layer UI through a concept called data-binding leaving objects to act as source and destination, so if changes are made on one side, it is updated for the other side (i.e updating a text box updates the value through live binding). This is more commonly evident when we play around with Data Grids. The diagram below put's the VO and binding in context. We will explain the rest of the diagram, bit-by-bit.
[ad#Adsense]

This is it for the first introduction. I will go into each of the components with code samples in the next article.
Flex Tutorial #1: Colour a Button using a Colour Picker
Ok guys, this is the first of my tutorials in Flex, and I will regularly be writing up tutorials to help other fellow Flex developers learn a few basic tricks. Please feel free to comment or offer suggestions (or G-D forbid even correct me) on each of my Tutorials: And for the first tutorial, I will show you how to change the colour of a button or any object for that matter, using a colour picker. In the MXML, enter the following:...
<mx:ColorPicker change="changeButtonColour(event)" />
<mx:Button id="test_Button" label="Change My Colour"
click="" />
<mx:script>
<![CDATA[
import mx.events.ColorPickerEvent;
private function changeButtonColour(e:ColorPickerEvent):void
{ test_Button.setStyle("backgroundColor", e.color); }
</mx:script>
[ad#WidgetbucksComputers]







