petchgamer / svgweb

Automatically exported from code.google.com/p/svgweb
Other
0 stars 0 forks source link

Flash Player 11 - class not found flash.display.GraphicsPath #650

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
>> What steps will reproduce the problem?
1. Install Flash Player 11.2.
2. Test Flash based SVG Renderer

>> What is the expected output? What do you see instead?
Rendered SVG.                Error Message.

>> What version of the product are you using? On what operating system,
browser, and version of Flash?
The newest svgweb. On Windows 7. Flash Player 11.2.202

Please provide any additional information below. Reduced test cases are
always appreciated!

Original issue reported on code.google.com by Johann.N...@googlemail.com on 29 Oct 2012 at 9:43

GoogleCodeExporter commented 8 years ago
Browser Mozilla Firefox 16.0.1

Original comment by Johann.N...@googlemail.com on 29 Oct 2012 at 9:45

GoogleCodeExporter commented 8 years ago
I have found in asdraw project - but now Graphics.drawPath is undefined

Original comment by Johann.N...@googlemail.com on 30 Oct 2012 at 9:49

GoogleCodeExporter commented 8 years ago
wrote my own

public function drawPath( graphics : Graphics ) : void {
            var j : int = 0;
            for( var i : int = 0; i < commands.length; i++ ) {              
                switch( commands[i] ) {
                    case GraphicsPathCommand.CURVE_TO:
                        graphics.curveTo( data[j], data[j+1], data[j+2], data[j+3] );
                        j+=4;
                    break;
                    case GraphicsPathCommand.LINE_TO:
                        graphics.lineTo( data[j], data[j+1] );
                        j+=2;
                    break;
                    case GraphicsPathCommand.MOVE_TO:
                        graphics.moveTo( data[j], data[j+1] );
                        j+=2;
                    break;
                    case GraphicsPathCommand.WIDE_LINE_TO:
                        graphics.lineTo( data[j], data[j+1] );                      
                        j+=4;
                    break;
                    case GraphicsPathCommand.WIDE_MOVE_TO:
                        graphics.moveTo( data[j], data[j+1] );
                        j+=4;
                    break;
                }
            }                       
        }

Original comment by Johann.N...@googlemail.com on 30 Oct 2012 at 11:49