Fan of Flex, I just discover apache Royale. I knew about FalconJS, I thought it was death, but no, after seeing Tour of jewel I'm very exited to use it. Thanks to all contributors.
I play a little with exemples, but I don't know how to add svg graphic.
I tried something like this in a <j:view>
<svg:Rect height="50" width="50" fill="#ff0000"/>
But got error :
Uncaught TypeError: cls is not a constructor
at Function.org.apache.royale.utils.MXMLDataInterpreter.generateMXMLObject (MXMLDataInterpreter.js:58)
Could someone give me an exemple of drawing Rectangle ou Circle with border and background color ? Used Royale version is 0.9.4
Here is full code :
<j:Application
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:j="library://ns.apache.org/royale/jewel"
xmlns:js="library://ns.apache.org/royale/basic"
xmlns:local="*" xmlns:layouts="spark.layouts.*" xmlns:svg="library://ns.apache.org/royale/svg"
>
<j:initialView>
<j:View>
<svg:Rect height="50" width="50" fill="0xff0000"/>
</j:View>
</j:initialView>
</j:Application>
Best Regards