очень это всё странно...
главный вопрос - зачем и что это?
никогда не понимал выноса всего в конфиги.. ас сам по себе лучше, чем недокументированный и никому не понятный конфиг
Код AS3:
<Form id="form" width="{@form.stageWidth}" height="{@form.stageHeight}" >
<Container id="testCanvas" x="0" y="0" width="150" height="200">
<actions>
<click>
<Trace argument="{pi())}" />
</click>
</actions>
<graphics>
<draw>
<shape>
<fill color="white" alpha="1">
<bitmap src="contents/image2.jpg" >
<matrix a="0.5" b="0" tx="0"
c="0" d="0.5" ty="0"
/>
</bitmap>
</fill>
<line color="red" alpha="1" />
<rectangle>
<bounds x="0" y="10" width="300" height="200" />
</rectangle>
<ellipse >
<bounds x="{@stageMouseX-40-testCanvas.x}" y="{stageMouseY-40-testCanvas.y}" width="80" height="80" />
</ellipse>
</shape>
</draw>
</graphics>
</Container>
<Container x="200" y="250" >
<Container rotation="{atan((@stageMouseY-250)/(stageMouseX-200))*180/(pi())}" >
<graphics>
<draw>
<shape>
<fill color="yellow" alpha="1" />
<line color="red" alpha="1" thickness="2" />
<path>
<points>
<point x="-50" y="-50" />
<point x="50" y="0" />
<point x="-50" y="50" />
</points>
</path>
</shape>
</draw>
</graphics>
</Container>
</Container>
</Form>