Transient metadata tag
Escrito el 8/11/2006 por Xavi Beumala
Sometimes when implementing VO's, comes in hand to declare some properties which aren't mapped server side.
For example, imagine the following client side class:
<br />
<pre><br />
package com.mif.vos {<br />
[RemoteClass(alias="com.mif.vos.DomainVO")]<br />
public class DomainVO {<br />
public var list:Array;<br />
private var _list:ArrayCollection;</p>
<p> [Transient]<br />
public function get listAC ():ArrayCollection<br />
{<br />
if (_list == null)<br />
{<br />
_list = new ArrayCollection (list);<br />
}<br />
return _list;<br />
}<br />
<br />
public function set listAC (listAC:ArrayCollection):void<br />
{<br />
this._list = listAC;<br />
}<br />
}<br />
}<br />
</pre><br />
If you don't want listAC property to be serialized across de wire, the only thing you have to do is add the [Transient] metatag. This way DomainVO serialized objects will only have the list property.
Permalink
Comments (1)
[Transient] metadata tag
Escrito el 30/10/2006 por Xavi Beumala
Sometimes when implementing VO's, comes in hand to declare some properties which aren't mapped server side.
For example, imagine the following client side class:
<pre>
package com.mif.vos {
[RemoteClass(alias="com.mif.vos.DomainVO")]
public class DomainVO {
public var list:Array;
private var _list:ArrayCollection;
[Transient]
public function get listAC ():ArrayCollection
{
if (_list == null)
{
_list = new ArrayCollection (list);
}
return _list;
}
public function set listAC (listAC:ArrayCollection):void
{
this._list = listAC;
}
}
}
</pre>
If you don't want listAC property to be serialized across de wire, the only thing you have to do is add the [Transient] metatag. This way DomainVO serialized objects will only have the list property.
Permalink
Comments (433)
ALF now hosted at OSFlash
Escrito el 16/03/2006 por Xavi Beumala
Adavanced Library for Flash is now an OSFlash hosted project. This means that the source code now is available through subversion and that we have really good tools to manage bug tracking, roadmap and enhancements and new features requests.
Here are the links:
Permalink
Comments (177)
ALF - Advanced Library for Flash
Escrito el 12/03/2006 por Xavi Beumala
Updated with svn code repository information and trac system information provided by osflash.org
Advanced Library for Flash, AKA ALF, is a Flash IDE extension that extends Flash Library capabilities allowing you to find assets in a search as you type way and, when found, execute some actions on them which will help you refactor your library.
Searches can be performed following diferent criterias. You can find an asset on the library by its name, linkage name or by its classname. Also it allows you to filter the results depending on the symbol type (MovieClip, Graphic, Compiled Clip, Screen, Font, Bitmap or Sound). Depending on your criterias results are shown in one way or in another.
When you have found an asset you can open it in "Edit Mode" in the timeline, attach a new instance to the current selected timeline, select it on the library or change it's name, linkage name or binded className. In case you select more than one item at the same time you can change their className all at once.
Developing Flash under Eclipse
Escrito el 2/03/2006 por Xavi Beumala
Flash projects aren't what they once were. Flash based RIA applications are growing in both complexity and size. It's not uncommon for projects to have hundreds of classes and several thousand lines of code. So, we need tools to improve development times as well as make it easy.
With this in mind I've written an article explaining how FDT and eclipse can help you and your team. Read the article at actionscript.com
Permalink
Comments (55)
FDView
Escrito el 5/11/2005 por Xavi Beumala
FDView (Flash Document Viewer) is a custom viewer for pdf2swf. It's main purpose is provide same capabilities as FlashPaper. That's present pdf documents inside a swf documents.
DragManager
Escrito el 23/10/2005 por Xavi Beumala
Flex Framework introduces a DragManager. This manager allows us to convert nearly anything into draggable. This way it's quite easy to drag and drop items between datagrids and between components. But also we can use it within our custom classes.
The example shows how to manage new drag and drop capabilities letting you drag a dog image. If you hit ctrl key while dragging a new copy of the image is created.
Embeding external assets and resources
Escrito el 23/10/2005 por Xavi Beumala
Usually, applications works with assets that has nothing to be with buttons neither application components. Instead they use nicely designed items and draws.
This example shows you the new way to work with visual elements and how to bind a visual element to a Class.
Cambiamos de idioma
Escrito el 23/10/2005 por Xavi Beumala
Hacía ya bastante tiempo que lo tenía en mente y creo que ahora es el momento de pasar a escribir en inglés. Bueno a lo mejor parecerá indio, pero como mínimo lo voy a intentar :P Si quereis seguir poniendo comentarios en español no hay ningun problema
Permalink
Comments (1)
Sprite creation and performance test
Escrito el 23/10/2005 por Xavi Beumala
This is one of my first tests using AS3. What I wanted to test here was the new way to create visual elements on the stage and the rendering performance. By usin g the new event system I create 10000 randomly shapes and apply a Fade effect to them.
The result IMHO is awesome, the player behaves very well with such a lot of animated elements on the stage.
Read more