Royans
10-11-2004, 08:58 AM
I was wondering whats the limitation in laszlo which stops me from drawing 2d vector graphics using actionscript. This is an example which I though should have worked, but it didn't.
I couldn't find even one example of allowing custom vector graphics on the laszlo documentation/faq/tutorials, but neither is there any mention that this is not supported explicitly.
This feature is a deal breaker for us to use it, so any ideas would help.
regards
rkt
<canvas width="500" height="150" bgcolor="green">
<script>
<![CDATA[
var paper:MovieClip = this.createEmptyMovieClip("paper",100);
paper.onMouseMove=function() {
paper.clear();
paper.lineStyle(3,0xFF0000,100);
paper.moveTo(100,200);
paper.curveTo(_xmouse,_ymouse,400,200);
updateAfterEvent();
};
]]>
</script>
</canvas>
I couldn't find even one example of allowing custom vector graphics on the laszlo documentation/faq/tutorials, but neither is there any mention that this is not supported explicitly.
This feature is a deal breaker for us to use it, so any ideas would help.
regards
rkt
<canvas width="500" height="150" bgcolor="green">
<script>
<![CDATA[
var paper:MovieClip = this.createEmptyMovieClip("paper",100);
paper.onMouseMove=function() {
paper.clear();
paper.lineStyle(3,0xFF0000,100);
paper.moveTo(100,200);
paper.curveTo(_xmouse,_ymouse,400,200);
updateAfterEvent();
};
]]>
</script>
</canvas>