topical media & game development
actionscript-example-SerializationDemo.ax
actionscript-example-SerializationDemo.ax
(swf
)
[ flash
]
flex
package {
import flash.display.Sprite;
public class actionscript-example-SerializationDemo extends Sprite {
public function actionscript-example-SerializationDemo () {
var r:Rectangle = new Rectangle(0xFF0000, 0x0000FF);
r.setSize(10, 15);
// Displays: lineColor=255|fillColor=16711680|width=10|height=15
trace(r.serialize());
var p:Point = new Point(5, 6);
trace(p.serialize()); // Displays: y=6,x=5
}
}
}
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.