Hi
I am following the example "How to create a simple movie at the file
format level" on the web.
The example works fine but I got this weird error when I try to draw a
longer line. The function SWFShape::Line actually draws a CURVEDEDGE
line instead of a straightline when I increase the dx, dy to the
following values....
SWFWriter writer = new SWFWriter( "C:\\temp\\swf\\SWFFileLevel.swf" );
SWFTagTypes swf = new TagWriter( writer );
SWFCustomTags CITag = (SWFCustomTags) swf;
CIShape CIObject;
swf.header( 5, //Flash version
-1, //unknown length
800000,
800000,
12, //frames per sec
-1 ); //unknown frame count
swf.tagSetBackgroundColor( new Color(255,255,255) );
//--define a shape\
Rect outline = new Rect( -2000, -2000, 80000, 80000 );
shape = swf.tagDefineShape2(3, outline);
shape.defineFillStyle( new Color( 255, 0, 0 ) );
shape.defineLineStyle( 40, new Color( 0, 0, 0 ) );
shape.setFillStyle1( 1 );
shape.setLineStyle( 1 );
shape.move( 2000, 2000 ); //move coords are absolute
//******************ERRER***************
//This value caused the defineShape tag to draw a CURVEEDGE
//line when i use a swf decompiler to see.
//Other values like in the example are fine....
shape.line( 8388, 79666 );
shape.done();
Any one has any idea whether I have used the API incorrectly or this
is a known bug?
Please help.
Thanks
Lee Sing