diff --git a/core/src/avm2/globals.rs b/core/src/avm2/globals.rs index 2efb739b9..7384541ab 100644 --- a/core/src/avm2/globals.rs +++ b/core/src/avm2/globals.rs @@ -74,6 +74,7 @@ pub struct SystemClasses<'gc> { pub graphicsendfill: ClassObject<'gc>, pub graphicsgradientfill: ClassObject<'gc>, pub graphicspath: ClassObject<'gc>, + pub graphicssolidfill: ClassObject<'gc>, pub loaderinfo: ClassObject<'gc>, pub bytearray: ClassObject<'gc>, pub stage: ClassObject<'gc>, @@ -178,6 +179,7 @@ impl<'gc> SystemClasses<'gc> { graphicsendfill: object, graphicsgradientfill: object, graphicspath: object, + graphicssolidfill: object, loaderinfo: object, bytearray: object, stage: object, @@ -644,6 +646,7 @@ fn load_playerglobal<'gc>( graphicsgradientfill ), ("flash.display", "GraphicsPath", graphicspath), + ("flash.display", "GraphicsSolidFill", graphicssolidfill), ("flash.display", "Graphics", graphics), ("flash.display", "LoaderInfo", loaderinfo), ("flash.display", "MovieClip", movieclip), diff --git a/core/src/avm2/globals/flash/display/GraphicsSolidFill.as b/core/src/avm2/globals/flash/display/GraphicsSolidFill.as new file mode 100644 index 000000000..cb834298b --- /dev/null +++ b/core/src/avm2/globals/flash/display/GraphicsSolidFill.as @@ -0,0 +1,13 @@ +package flash.display { + + public final class GraphicsSolidFill implements IGraphicsFill, IGraphicsData { + public var alpha : Number = 1.0; + public var color : uint = 0; + + public function GraphicsSolidFill(color:uint = 0, alpha:Number = 1.0) { + this.alpha = alpha; + this.color = color; + } + } + +} \ No newline at end of file diff --git a/core/src/avm2/globals/globals.as b/core/src/avm2/globals/globals.as index 7ce90f620..1dd8d0be1 100644 --- a/core/src/avm2/globals/globals.as +++ b/core/src/avm2/globals/globals.as @@ -64,6 +64,7 @@ include "flash/display/GraphicsGradientFill.as" include "flash/display/GraphicsPathCommand.as" include "flash/display/GraphicsPathWinding.as" include "flash/display/GraphicsPath.as" +include "flash/display/GraphicsSolidFill.as" include "flash/display/InterpolationMethod.as" include "flash/display/JointStyle.as" include "flash/display/JPEGEncoderOptions.as"