actionscript-misc-SerializationDemo.ax [swf] flex
package { import flash.display.Sprite; public class @ax-actionscript-misc-SerializationDemo extends Sprite { public function @ax-actionscript-misc-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 27/08/2009
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.