Search the web
Sign In
New User? Sign Up
JavaSWF-Support · Support and discussion about the JavaSWF pure Java wrapper package for the Macromedia Flash file format
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
SWFTagTypes::tagDefineShape bug producing CURVEEDGE line... Need hel   Message List  
Reply | Forward Message #1134 of 1162 |
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




Thu Sep 18, 2008 11:11 am

leesing_ong
Offline Offline
Send Email Send Email

Forward
Message #1134 of 1162 |
Expand Messages Author Sort by Date

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...
Ong Lee Sing
leesing_ong
Offline Send Email
Sep 18, 2008
2:00 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help