How do I populate required parameters in a custom MXML tag?
Here's the Class: package fnc { import mx.containers.Canvas; public class Deck extends Canvas { protected var _chipCount:int; public function Deck(chipCount:int) { /* Associate some chips with this deck */ _chipCount = chipCount; } public function get chipCount():int { return _chipCount; } } } Here's the MXML: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:ns1="fnc.*"> <ns1:Deck horizontalCenter="0" verticalCenter="0"> </ns1:Deck> </mx:Application> Running this application gets this error: ArgumentError: Error #1063: