AS3 Test case #8 "UNSUPPORTED" 0.71

Bug #1126377 reported by zahurdias
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Lightspark
Confirmed
Medium
Unassigned

Bug Description

package {
    import flash.display.GraphicsPath;
    import flash.display.GraphicsSolidFill;
    import flash.display.GraphicsStroke;
    import flash.display.GraphicsPathCommand;
    import flash.display.Sprite;
    import flash.display.IGraphicsData;

    public class GraphicsDataDemo extends Sprite {
        public function GraphicsDataDemo() {
            var graphicsData:Vector.<IGraphicsData> = new Vector.<IGraphicsData>();
            var stroke:GraphicsStroke = new GraphicsStroke(5);
            stroke.fill = new GraphicsSolidFill(0xFF0000);

            var commands:Vector.<int> = new Vector.<int>();
            commands.push(GraphicsPathCommand.MOVE_TO);
            commands.push(GraphicsPathCommand.LINE_TO);

            var data:Vector.<Number> = new Vector.<Number>();
            data.push(100, 100);
            data.push(200, 200);

            var path:GraphicsPath = new GraphicsPath(commands, data);

            graphicsData.push(stroke);
            graphicsData.push(path);
            graphics.drawGraphicsData(graphicsData);
        }
    }
}

Revision history for this message
zahurdias (zahurdias) wrote :

We get:

ERROR: Unhandled ActionScript exception in VM TypeError: Wrong type in applytype

This is FP10 new Drawing API.

I imagine it is too early for this to be working, but just so we have a test case online.

Revision history for this message
Antti Ajanki (aajanki) wrote :

Confirmed, the new API is not yet supported.

Changed in lightspark:
importance: Undecided → Medium
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.