Chapter 10 Example 1 actionscript.. forked:2favorite:0lines:14license : MIT License modified : 2009-06-09 02:35:44 Embed Tweet package { import com.actionscriptbible.Example; public class ch10ex1 extends Example { public function ch10ex1() { var shape:Object = new Object(); shape.name = "hexagon"; shape.sides = 6; shape["color"] = 0x00ff00; shape["stroke weight"] = 2; shape["describe"] = function():String {return "A " + this.name;}; trace(shape.describe() + " has " + shape.sides + " sides."); // Displays: A hexagon has 6 sides. } } } Code Fullscreen Preview Fullscreen as3bible Object trace name String sort new page view favorite forked pv75 forked from: Chapter 10 Exampl.. pershiuan forked:0 favorite:0lines:7 (diff:9) pv72 forked from: Chapter 10 Exampl.. pershiuan forked:0 favorite:0lines:14 (diff:1)