and found the public beta of flash player 10 was out. How cool is that.
I knew this would be coming before too long, but didnt realize that it would be out so quickly. This new version is filled with lots of new features aimed at allowing greater "expressiveness" in flash player content, such as 3d effects, custom filters, enhanced text rendering, and revs to the drawing API. Of course, like each version before it, FP10 also has lots of performance enhancements. What are you waiting for go get it on adobe labs
I'm particularly looking forward to working with the Advanced Text Rendering features, which promise to allow lots of layout possibilities, including bi-directional text!
Increasingly, clients have been asking for a "reflection" effect, showing a vertically flipped image of a component next to the actual component. After reinventing the wheel on this several times, I came up with this simple reusable component:
package com.tappernimer.components{
import mx.containers.Canvas;
import mx.core.UIComponent;
import flash.display.BitmapData;
import flash.geom.Matrix;
import flash.display.IBitmapDrawable;
public class VerticalReflection extends Canvas{
private var _component:UIComponent;
public var trans:Number=.5;
public var filterArray:Array=new Array();
public var skewY:Number=0;
public var skewX:Number=0;
public function get component():UIComponent{
return _component;
}
public function set component(c:UIComponent):void{
this._component = c;
// hack to work around issue with component being
// a dynamically loaded image its possible for the
// image to be fully loaded, but its height or width
// not yet set this call later, keeps retrying until
// the values are set.
if(c.width ==0 || c.height==0){
callLater(resetComponent,[c]);
return;
}
doReflection();
}
private function resetComponent(c:UIComponent):void{
this.component = c;
}
private function doReflection():void {
// create bitmap object
var bmpData:BitmapData = new BitmapData(
component.width,component.height);
// create matrix
var invertMatrix:Matrix = new Matrix(1,skewY,skewX);
// set matrix to invert vertically, but normal horizontally
invertMatrix.scale(1, -1);
// move matrix, so top is at bottom, and vice versa
invertMatrix.translate(0, component.height);
// draw component flipped
bmpData.draw(component as IBitmapDrawable,invertMatrix);
This component can then be passed any other component to reflect, accepting filters (filterArray), alpha value (trans), and arguments to allow you to skew the reflection. In fact, using it can be as simple as this:
I missed it yesterday, when it was announced, but Adobe has now announced support for H.264 (also know as MPEG4) in an upcoming version of the flash player. H.264 is the same standard which is used by BluRay and HD-DVD -- the ability to have this type of video in our web applications is absolutly huge. Remember, not that long ago, Adobe announced plans for the Adobe Media Player (AMP), as a desktop application which was built with AIR and Flash -- now, AMP will be able to use H.264 as well as FLV for its video content.
It seems Sun is interested in re-gaining some of the market share it one had in the Rich Application space. The annual JavaOne conference is underway, and there seems to be quite a bit of buzz surrounding the upcoming annoucement of the JavaFX project. It seems that JavaFX is looking to compete directly with Microsoft's Silverlight and Adobe's Flex/Apollo initiatives, as developers will be able to target Desktop, Web and Mobile applications from this single platform. Ultimately, it seems that this is largely going to be done by vastly simplifying Swing development, with the use of JavaFX as a declaritive programming model, on top of the existing Swing framework.
Ultimately, its good for everyone, developers and consumers alike to have more competition in the Rich Applicaiton space. This will surely lead to greater innovations for applications, and more choices for developers.
As an attendee of each of the Allaire / Macromedia / Adobe conferences since 2000, I have every confidence this event will be as good, if not better than the rest. See you in Chicago!
Posted At : January 8, 2007 11:51 AM
| Posted By : Jeff Tapper
Related Categories:
flex, flash
Flex Builder 2.0.1 has now been released. In addition to a myraid of bug fixes, there are a suprising number of new features available in this release, including Macintosh support, support for runtime CSS (in the previous version, CSS styles sheets had to be compiled into the app, they can now be loaded and changed at run time), and most excitingly is the new Modules support, which allows an easier alternative to breaking up large applications into smaller components, and allowing components to be loaded into the app as they are needed. One more feature slipped in is native support for the upcoming Apollo project.
Even though this release is numbered as if it were just a collection of minor bug fixes, this truly does represent a great step forward for Flex, and yet another very encouraging sign about Adobe's commitment to the Flash Player as the platform for Web 2.0 application development
Posted At : October 31, 2006 5:00 AM
| Posted By : Jeff Tapper
Related Categories:
as3, hexidecimal, flex2, flash, svg
Its really convenient for anyone coming from an HTML background that we can now provide colors to Flex using html standard syntax for hexidecimal number (#000000 = black, #ffffff= white, etc). I've recently been building some tools to convert drawings in the flash player to and from SVG format. SVG, like HTML, likes to specify hexidecimal numbers with a "#" prefix, but the flash player drawing API needs hexidecimal numbers to be prefixed with "0x" To help migrate back and forth between hexStrings and AS numbers, I wrote a few static methods, which are working well for me:
package utils { public class Colors { public static function hexStringToNumber(hexStr:String):Number{ if(hexStr.length != 7){ return -1; } if(hexStr.charAt(0) != "#"){ return -1; } var newStr:String = hexStr.substr(1,6); var numStr:String = "0x"+newStr; var num:Number = Number(numStr); return num; } public static function numToHexString(num:Number):String{ var hexStr:String = num.toString(16); while(hexStr.length < 6){ hexStr = "0"+hexStr; } hexStr = "#"+hexStr; return hexStr; } } }
As you can see, there are 2 methods hexStringToNumber and numToHexString. These can be used simply like this:
var whiteNum:Number = Colors.hexStringToNumber ("#ffffff"); var whiteStr:String = Colors.numToHexString(16777215);
Posted At : July 10, 2006 7:40 PM
| Posted By : Jeff Tapper
Related Categories:
max06, adobe, coldfusion, flex, flash
Browsing to the MAX 06 site, i found they have released more details, including a listing of the 8 tracks:
Adobe Collaboration Solutions
Adobe LiveCycle Technologies
eLearning
Mobile and Devices
Rich Internet Applications
Vertical Market Solutions
Web Design
Web Development
They even have listings of each session to be presented. I've been asked to present the "Getting Started with Flex Development" session, which is one of 25 Rich Internet Application sessions of the conference. Anyhow, up to now, information about the conference has been few and far between, but fortunately, there is now a wealth of information available.