December 13th, 2007 Ashier de Leon | Posted in Flash |
There are new announcements on labs . These new releases are gifts to us from Adobe. There are 3 new software releases.
1. Flex Builder Beta 3
2. AIR Beta 3
3. BlazeDS
AMF3 is now Open!
Wow, this is really cool!
Happy Flexing!
December 13th, 2007 Ashier de Leon | Posted in AMFPHP |
This is a very good news to all AMFPHP users out there. Hopefully, we can see updates on the pages on a soon. You can visit the documention pages here .
Visit AMFPHP.org
December 8th, 2007 Ashier de Leon | Posted in Adobe |
Today, Adobe launches their website. It has a new look, new colors and lovely mini logos. Product pages has really cool backgrounds, and an introduction video at their homepage. But unfortunately, Adobe Labs is not part of the revamp. One tiny detail though, it’s left aligned but overall, I think the site looks good and fresh.
visit adobe.com now!
December 7th, 2007 Ashier de Leon | Posted in Adobe |
Adobe launches a Flash HD Gallery. It has a few Hi-def videos for sample.
Definitely in the next few months, we’ll see trailer sites utilizing this new feature.
visit the site
December 6th, 2007 Ashier de Leon | Posted in Flex |
Here’s a simple Horizontal Dotted Line Component in Flex. You can implement simple modifications in the source code to create the vertical version of the component.
Demo:
(Either JavaScript is not active or you are using an old version of Adobe Flash Player. Please install the newest Flash Player .)
Right Click to view the source.
December 6th, 2007 Ashier de Leon | Posted in Flex |
David Tucker posted a series of tutorials concerning Cairngorm. It is worth a read.
December 6th, 2007 Ashier de Leon | Posted in Flex |
Donald Martinez extended the datagrid component that will allow you to implicitly page contents in a data grid… You can view his post and download the component or view the demo by clicking this link .
December 6th, 2007 Ashier de Leon | Posted in Flex |
You will need to download the as3corelib classes for this to work.
JSONManager is a wrapper class to simplify JSON service calls. It has a feature that allows you to call service's asynchronously.
Actionscript:
package lib.ashier .managers {
import com.adobe .serialization .json .JSON ;
import flash.events .EventDispatcher ;
import flash.utils .Dictionary ;
import lib.ashier .events .JSONManagerEvent ;
import mx.rpc .events .FaultEvent ;
import mx.rpc .events .ResultEvent ;
import mx.rpc .http .HTTPService ;
public class JSONManager extends EventDispatcher{
function JSONManager( ) :void {
super ( ) ;
initializeJSON( ) ;
}
private var service:HTTPService = new HTTPService( ) ;
protected function initializeJSON( ) :void {
// INITIIALIZE
}
private function onJSONResult( event:ResultEvent) :void {
if ( event.result != "" ) {
var obj:Object = Object ( JSON.decode ( String ( event.result ) ) ) ;
obj.url = event.target .url ;
delete serviceDict[ obj.url ] ;
} else {
onJSONFault( new FaultEvent( FaultEvent.FAULT ) ) ;
delete serviceDict[ url ] ;
return ;
}
dispatchEvent( new JSONManagerEvent( JSONManagerEvent.RESULT , obj) ) ;
}
private function onJSONFault( event:FaultEvent) :void {
dispatchEvent( new JSONManagerEvent( JSONManagerEvent.FAULT , { message :( ( event.fault ) ? event.fault .faultString : "Unknown JSON Fault" ) } ) ) ;
}
private var serviceDict:Dictionary = new Dictionary( ) ;
public function send ( params:Object = null ) :void {
var parameters:String = JSON.encode ( params) ;
if ( !serviceDict[ _url ] ) {
service = new HTTPService( ) ;
service.useProxy = false ;
service.contentType = _contentType;
service.method = _method;
service.url = _url ;
service.addEventListener ( ResultEvent.RESULT , onJSONResult) ;
service.addEventListener ( FaultEvent.FAULT , onJSONFault) ;
serviceDict[ _url ] = service
}
if ( params) {
service.send ( parameters) ;
} else {
service.send ( ) ;
}
dispatchEvent( new JSONManagerEvent( JSONManagerEvent.SENDING , null ) ) ;
}
private var _contentType:String = "text/html" ;
public function set contentType ( s:String ) :void {
_contentType = s;
}
public function get contentType ( ) :String {
return _contentType;
}
private var _method:String = "POST" ;
public function set method( s:String ) :void {
_method = s;
}
public function get method( ) :String {
return _method;
}
private var _url :String = "" ;
public function set url ( s:String ) :void {
_url = s;
}
public function get url ( ) :String {
return _url ;
}
}
}
JSONManagerEvent
Actionscript:
package lib.ashier .events {
import lib.ashier .core .interfaces .IEvent ;
import flash.events .Event ;
public class JSONManagerEvent extends Event implements IEvent {
public static const SENDING:String = "sending" ;
public static const RESULT:String = "result" ;
public static const FAULT:String = "fault" ;
private var value:Object = new Object ( ) ;
public function JSONManagerEvent( type :String , value:Object ) {
super ( type ) ;
this .value = value;
}
public function get data ( ) :Object {
return this .value ;
}
override public function clone( ) :Event {
return new JSONManagerEvent( type , value) ;
}
}
}