Archive for the ‘Flex’ Category

Flex学习途径

Saturday, November 29th, 2008

Adobe Devnet推出了一个聚合的Flex Learn Path资源站点,这个小站点上提供了根据不同的角色来深入学习Flex技术的途径,其实就是一个Flex资源分类的聚合,总结的非常不错。

http://www.adobe.com/devnet/flex/learn/

你可以省很多功夫到处search你想要的Flex资源了。

告诉你flex是什么,能做什么

Saturday, November 22nd, 2008

Tour de Flex 这个应用程序将为你展示 Flex 的全部核心特性。

安装地址:
http://flex.org/tour

即将面世的FLEX和AIR新书[转]

Thursday, September 4th, 2008

Programming Flex 3: The Comprehensive Guide to Creating Rich Internet Applications with Adobe Flex

Authors: Chafic Kazoun, Joey Lott

发行时间: 九月24, 2008

Publisher: Adobe Dev Library

Description:

If you want to try your hand at developing rich Internet applications with Adobe’s Flex 3, and already have experience with frameworks such as .NET or Java, this is the ideal book to get you started. Programming Flex 3 gives you a solid understanding of Flex 3’s core concepts, and valuable insight into how, why, and when to use specific Flex features. Numerous examples and sample code demonstrate ways to build complete, functional applications for the Web, using the free Flex SDK, and RIAs for the desktop, using Adobe AIR. This book is an excellent companion to Adobe’s Flex 3 reference documentation.

(more…)

Flex Job Postings and Lists

Wednesday, August 29th, 2007

Ted Patrick recently posted about a Flex jobs yahoo list, located at http://tech.groups.yahoo.com/group/flexjobs/. In the 24 hours of being up it has over 20 job postings. That is great for the Flex community.

Other resources for job postings can be found at:
The “Flex Jobs” google group page.
Tariq over at CFlex.net keeps a list.

As a Flex developer my self and a manager seeking Flex developers its exciting to see the growth in of Flex jobs in the last 6 months since release.

Flex 2 RolloverImage component

Wednesday, August 29th, 2007

I have created a very basic Flex 2 RolloverImage component that allows you to define the up, over, and down images through CSS.

Here is the guts of how to use the class:

PLAIN TEXT

XML:

  1. <mx:Style>

  2.   .firstRollover {

  3.     upSkin: Embed(source=”/assets/arrowGreenUp.png”);

  4.     overSkin: Embed(source=”/assets/arrowBlueUp.png”);

  5.     downSkin: Embed(source=”/assets/arrowBlueDown.png”);

  6.   }

  7. </mx:Style>

  8. <renaun:RolloverImage

  9.     styleName=“firstRollover”

  10.     click=“mx.controls.Alert.show( ‘click’ );” />

  11. <renaun:RolloverImage

  12.     upSkin=“@Embed(source=’/assets/arrowBlueUp.png’)”

  13.     overSkin=“@Embed(source=’/assets/arrowBlueDown.png’)”

  14.     downSkin=“@Embed(source=’/assets/arrowGreenUp.png’)”

  15.     mouseDown=“mx.controls.Alert.show( ‘mouseDown’ );” />

For a live example click here
, the source is available by right clicking on the component or you can find it here.

Flex 2 Application Repeating BackgroundImage Style (updated)

Wednesday, August 29th, 2007

UPDATE: see comments, the skin class works with any UIComponent and checks for many exceptions of different backgroundImage style values. Note backgroundImage values of embedded images only work, embedded SWF’s with symbol names throws an error.

I created a RepeatingImage component last month that works nicely for applying repeating images any where in your Flex application. But most repeating image usages are typical implemented as repeating background image for the whole Application. There is no easy way to apply the background image as a style and have it repeat.

You could use the RepeatingImage component to apply a image class on the Canvas of an Application component, but that might not work for non absolute layout apps. The basic code to repeat a bitmap over an graphic area requires BitmapFill. Stefan Richter modified Jemery Lu’s code to apply a bitmap image to the Application component through AS code in the Script block. This looks a lot like the RepeatingImage in its approach.

Then in Stefan’s comments Maikel Sibbald applied the BitmapFill approach to a borderSkin. This approach makes more sense when you are thinking of just applying a background image on the Application that repeats. The one done side to the code was that it you have to hard code the image source into the custom borderSkin class.

I decided to take that code and modify it so you set the borderSkin and backgroundImage styles on the Application component class to make it work. The trick is the modifications in the custom borderSkin called RepeatedBackground, they RepeatedBackground class locates the backgroundImage style from the parent (which is Application or any other component with borderSkin set to RepeatedBackground) and uses that as the class for the image. It then clears the backgroundImage style on the parent to make sure that that doesn’t get drawn.

See for your self, here is the live example and the source code through context help.

Flex/AS3 and FMS getting id3 info from mp3’s

Wednesday, August 29th, 2007

There was a question on the FlashMedia mailing list about how to get id3 info from a NetStream with AS3 code. It is actually just like AS2 with some quirks to watch out for. The first is the supported ID3 tags:

About supported versions of ID3 tags

Flash Media Server supports playback of ID3 text tags in UTF-8, UTF-16, and ISO-8859-1 formats and supports ID3 versions 1.0, 2.3, and 2.4. Only tags that contain text data are supported, such as song title, artist name, comments, and year recorded.

I had a mp3 with ID3 v2.2 tags that did not work until I put in a v1.0 ID3 tag.

The next is the NetStream is not dynamic in AS3 and you use the client property to handle method calls from the server. There will be a onPlayerStatus and onId3 method call the server makes on the NetStream object.

Here is the running example and source code is available through the right click.

Improving Actionscript 3 Performance

Wednesday, August 29th, 2007

Ted Patrick is giving the session on improving AS3 performance. The one thing he is making sure we take with us from this MAX session is that strong typing optimizes bytecode.

Ted showed examples of strong typed versus weak typed code, the measurements showed at least 3 times faster execution speed.

Oracle and Adobe to Mashup with Flex

Wednesday, August 29th, 2007

Catch the news at:
http://biz.yahoo.com/prnews/061023/sfm090.html?.v=70

Here is the quick quote:

“By integrating Adobe Flex, the Adobe framework for building enterprise Flash applications, with the latest portal and Web services standards, Oracle and Adobe are bringing dramatically more engaging and usable business applications to end users, while meeting the needs of developers and IT organizations.”
Jeff Whatcott, senior director of product marketing, Enterprise and Developer Business Unit, Adobe.

Along with the article is a Flex Article on the dev center that helps you understand how to create rich portlets using Adobe Flex.
http://www.adobe.com/devnet/flex/articles/flex2_portal.html

RemoteObjectAMF0 update - makeObjectsBindable

Wednesday, August 29th, 2007

As more people are using the RemoteObjectAMF0 the component receives some updates. The update is in regards to the “makeObjectsBindable” attribute that is present on Flex RPC service components.

I used the HTTPService’s makeObjectsBindable documentation to implemented a part of what makeObjectsBindable might do.

If makeObjectsBindable is true then the Array will be wrapped in an ArrayCollection.

Now you can bind the result straight to dataProvider value like:

PLAIN TEXT

ACTIONSCRIPT:

  1. [Bindable]

  2. [ArrayElementType("com.renaun.samples.login.vo.BookVO")]

  3. private var books:ArrayCollection;

  4.  

  5. books = ArrayCollection( event.result );

  6. // instead of

  7. books = new ArrayCollection( ArrayUtil.toArray( event.result ) );

You’ll find the source and example changes in the here.