├── .dccache ├── .dockerignore ├── .gitattributes ├── .github ├── FUNDING.yml ├── ISSUE_TEMPLATE │ ├── ---bug-report.md │ ├── ---feature-request.md │ ├── ---support-openfl.md │ └── --support-question.md └── workflows │ └── main.yml ├── .gitignore ├── .vscode └── settings.json ├── CHANGELOG.md ├── CONTRIBUTING.md ├── Dockerfile ├── LICENSE.md ├── NOTICE.md ├── README.md ├── assets ├── docs-theme │ ├── config.json │ ├── resources │ │ ├── extra-styles.css │ │ ├── images │ │ │ ├── DisplayObjectContainerSetChildIndex1.jpg │ │ │ ├── DisplayObjectContainerSetChildIndex2.jpg │ │ │ ├── DisplayObjectContainer_layers.jpg │ │ │ ├── LineScaleMode_HORIZONTAL.jpg │ │ │ ├── LineScaleMode_VERTICAL.jpg │ │ │ ├── Matrix3Delements.jpg │ │ │ ├── Vector3Delements.jpg │ │ │ ├── beginGradientFill_interp_linearrgb.jpg │ │ │ ├── beginGradientFill_interp_rgb.jpg │ │ │ ├── beginGradientFill_spread_pad.jpg │ │ │ ├── beginGradientFill_spread_reflect.jpg │ │ │ ├── beginGradientFill_spread_repeat.jpg │ │ │ ├── bitmapData_draw_smoothing.jpg │ │ │ ├── bitmap_smoothing_off.jpg │ │ │ ├── bitmap_smoothing_on.jpg │ │ │ ├── blendMode-0a.jpg │ │ │ ├── blendMode-0b.jpg │ │ │ ├── blendMode-1.jpg │ │ │ ├── blendMode-10.jpg │ │ │ ├── blendMode-11.jpg │ │ │ ├── blendMode-12.jpg │ │ │ ├── blendMode-13.jpg │ │ │ ├── blendMode-14.jpg │ │ │ ├── blendMode-2.jpg │ │ │ ├── blendMode-3.jpg │ │ │ ├── blendMode-4.jpg │ │ │ ├── blendMode-5.jpg │ │ │ ├── blendMode-6.jpg │ │ │ ├── blendMode-7.jpg │ │ │ ├── blendMode-8.jpg │ │ │ ├── blendMode-9.jpg │ │ │ ├── createGradientBox-1.jpg │ │ │ ├── createGradientBox-2.jpg │ │ │ ├── createGradientBox-3.jpg │ │ │ ├── createGradientBox-4.jpg │ │ │ ├── crossScript_load.jpg │ │ │ ├── crossproduct.jpg │ │ │ ├── cubic_bezier.png │ │ │ ├── frustum.jpg │ │ │ ├── gradient-ratios-1.jpg │ │ │ ├── gradient-ratios-2.jpg │ │ │ ├── gradient-ratios-3.jpg │ │ │ ├── identityMatrix.jpg │ │ │ ├── lineStyle_pixelHinting.jpg │ │ │ ├── linecap.jpg │ │ │ ├── linejoin.jpg │ │ │ ├── logo.png │ │ │ ├── matrix_identity.jpg │ │ │ ├── matrix_props1.jpg │ │ │ ├── matrix_props2.jpg │ │ │ ├── matrix_rotate.jpg │ │ │ ├── matrix_rotate_image.jpg │ │ │ ├── matrix_scale.jpg │ │ │ ├── matrix_scale_image.jpg │ │ │ ├── matrix_skew.jpg │ │ │ ├── matrix_skew_image.jpg │ │ │ ├── matrix_translate.jpg │ │ │ ├── matrix_translate_image.jpg │ │ │ ├── miterLimit.jpg │ │ │ ├── movieClip_beginBitmapFill_repeat_1.jpg │ │ │ ├── movieClip_beginBitmapFill_repeat_2.jpg │ │ │ ├── movieClip_beginBitmapFill_repeat_3.jpg │ │ │ ├── quad_bezier.png │ │ │ ├── radial_sketch.jpg │ │ │ ├── rectangle.jpg │ │ │ ├── rectangle_intersect.jpg │ │ │ ├── rectangle_union.jpg │ │ │ ├── resultantVector3D.jpg │ │ │ ├── scale9Grid-a.jpg │ │ │ ├── scale9Grid-b.jpg │ │ │ ├── scale9Grid-c.jpg │ │ │ ├── scale9Grid-d.jpg │ │ │ ├── scale9Grid-e.jpg │ │ │ ├── scale9Grid-f.jpg │ │ │ ├── text-metrics.jpg │ │ │ ├── winding_positive_negative.gif │ │ │ ├── winding_rules_evenodd_nonzero.gif │ │ │ └── xyzAxes.jpg │ │ └── index.js │ └── templates │ │ ├── package_description.mtt │ │ └── topbar.mtt ├── fonts │ ├── NotoMono-Regular.ttf │ ├── NotoSans-Regular.ttf │ └── NotoSerif-Regular.ttf ├── openfl.png └── templates │ ├── animate │ ├── BitmapData.mtt │ ├── MovieClip.mtt │ └── SimpleButton.mtt │ ├── bin │ ├── openfl.bat │ ├── openfl.exe │ └── openfl.sh │ ├── console │ └── shaders │ │ ├── openfl_default.psh │ │ ├── openfl_default.vsh │ │ ├── openfl_fill.psh │ │ └── openfl_fill.vsh │ ├── default │ └── icon.svg │ ├── firefox │ ├── hxml │ │ ├── debug.hxml │ │ ├── final.hxml │ │ └── release.hxml │ └── template │ │ └── manifest.webapp │ ├── flash │ └── templates │ │ └── web │ │ └── index.html │ ├── haxe │ └── ApplicationMain.hx │ ├── html5 │ ├── hxml │ │ ├── debug.hxml │ │ ├── final.hxml │ │ └── release.hxml │ └── template │ │ └── index.html │ ├── project │ ├── Assets │ │ └── .gitignore │ ├── Project.hxproj │ ├── Source │ │ └── Main.hx │ └── project.xml │ └── swf │ ├── BitmapData.mtt │ ├── MovieClip.mtt │ └── SimpleButton.mtt ├── checkstyle.json ├── extraParams.hxml ├── haxelib.json ├── hooks └── build ├── hxformat.json ├── include.xml ├── lib ├── draft-api │ └── src │ │ └── openfl │ │ ├── display │ │ ├── Screen.hx │ │ └── ScreenMode.hx │ │ ├── filesystem │ │ ├── File.hx │ │ ├── FileMode.hx │ │ └── FileStream.hx │ │ ├── fl │ │ ├── containers │ │ │ ├── BaseScrollPane.hx │ │ │ └── ScrollPane.hx │ │ ├── controls │ │ │ ├── CheckBox.hx │ │ │ ├── ComboBox.hx │ │ │ ├── DataGrid.hx │ │ │ ├── LabelButton.hx │ │ │ ├── List.hx │ │ │ ├── ProgressBar.hx │ │ │ ├── RadioButton.hx │ │ │ ├── ScrollBar.hx │ │ │ ├── ScrollPolicy.hx │ │ │ ├── SelectableList.hx │ │ │ ├── Slider.hx │ │ │ ├── TextArea.hx │ │ │ ├── TextInput.hx │ │ │ ├── UIScrollBar.hx │ │ │ ├── dataGridClasses │ │ │ │ ├── DataGridColumn.hx │ │ │ │ └── HeaderRenderer.hx │ │ │ └── listClasses │ │ │ │ ├── CellRenderer.hx │ │ │ │ ├── ICellRenderer.hx │ │ │ │ └── ListData.hx │ │ ├── core │ │ │ └── UIComponent.hx │ │ ├── data │ │ │ └── DataProvider.hx │ │ ├── events │ │ │ ├── ListEvent.hx │ │ │ ├── ScrollEvent.hx │ │ │ └── SliderEvent.hx │ │ ├── lang │ │ │ └── Locale.hx │ │ └── net │ │ │ └── WebSocket.hx │ │ ├── utils │ │ ├── JSON.hx │ │ └── WeakRef.hx │ │ └── xml │ │ ├── XML.hx │ │ └── XMLList.hx └── flash-externs │ └── src │ └── flash │ ├── Memory.hx │ ├── Vector.hx │ ├── desktop │ ├── Clipboard.hx │ ├── ClipboardFormats.hx │ └── ClipboardTransferMode.hx │ ├── display │ ├── AVM1Movie.hx │ ├── Bitmap.hx │ ├── BitmapData.hx │ ├── BitmapDataChannel.hx │ ├── BlendMode.hx │ ├── CapsStyle.hx │ ├── DisplayObject.hx │ ├── DisplayObjectContainer.hx │ ├── FrameLabel.hx │ ├── GradientType.hx │ ├── Graphics.hx │ ├── GraphicsBitmapFill.hx │ ├── GraphicsEndFill.hx │ ├── GraphicsGradientFill.hx │ ├── GraphicsPath.hx │ ├── GraphicsPathCommand.hx │ ├── GraphicsPathWinding.hx │ ├── GraphicsShaderFill.hx │ ├── GraphicsSolidFill.hx │ ├── GraphicsStroke.hx │ ├── GraphicsTrianglePath.hx │ ├── IBitmapDrawable.hx │ ├── IGraphicsData.hx │ ├── IGraphicsFill.hx │ ├── IGraphicsPath.hx │ ├── IGraphicsStroke.hx │ ├── InteractiveObject.hx │ ├── InterpolationMethod.hx │ ├── JPEGEncoderOptions.hx │ ├── JointStyle.hx │ ├── LineScaleMode.hx │ ├── Loader.hx │ ├── LoaderInfo.hx │ ├── MovieClip.hx │ ├── PNGEncoderOptions.hx │ ├── PixelSnapping.hx │ ├── Shader.hx │ ├── ShaderData.hx │ ├── ShaderInput.hx │ ├── ShaderJob.hx │ ├── ShaderParameter.hx │ ├── ShaderParameterType.hx │ ├── ShaderPrecision.hx │ ├── Shape.hx │ ├── SimpleButton.hx │ ├── SpreadMethod.hx │ ├── Sprite.hx │ ├── Stage.hx │ ├── Stage3D.hx │ ├── StageAlign.hx │ ├── StageDisplayState.hx │ ├── StageQuality.hx │ ├── StageScaleMode.hx │ └── TriangleCulling.hx │ ├── display3D │ ├── Context3D.hx │ ├── Context3DBlendFactor.hx │ ├── Context3DBufferUsage.hx │ ├── Context3DClearMask.hx │ ├── Context3DCompareMode.hx │ ├── Context3DMipFilter.hx │ ├── Context3DProfile.hx │ ├── Context3DProgramType.hx │ ├── Context3DRenderMode.hx │ ├── Context3DStencilAction.hx │ ├── Context3DTextureFilter.hx │ ├── Context3DTextureFormat.hx │ ├── Context3DTriangleFace.hx │ ├── Context3DVertexBufferFormat.hx │ ├── Context3DWrapMode.hx │ ├── IndexBuffer3D.hx │ ├── Program3D.hx │ ├── VertexBuffer3D.hx │ └── textures │ │ ├── CubeTexture.hx │ │ ├── RectangleTexture.hx │ │ ├── Texture.hx │ │ ├── TextureBase.hx │ │ └── VideoTexture.hx │ ├── errors │ ├── ArgumentError.hx │ ├── EOFError.hx │ ├── Error.hx │ ├── IOError.hx │ ├── IllegalOperationError.hx │ ├── RangeError.hx │ ├── SecurityError.hx │ └── TypeError.hx │ ├── events │ ├── AccelerometerEvent.hx │ ├── ActivityEvent.hx │ ├── AsyncErrorEvent.hx │ ├── ContextMenuEvent.hx │ ├── DataEvent.hx │ ├── ErrorEvent.hx │ ├── Event.hx │ ├── EventDispatcher.hx │ ├── EventPhase.hx │ ├── FocusEvent.hx │ ├── FullScreenEvent.hx │ ├── GameInputEvent.hx │ ├── HTTPStatusEvent.hx │ ├── IEventDispatcher.hx │ ├── IOErrorEvent.hx │ ├── KeyboardEvent.hx │ ├── MouseEvent.hx │ ├── NetStatusEvent.hx │ ├── ProgressEvent.hx │ ├── SampleDataEvent.hx │ ├── SecurityErrorEvent.hx │ ├── TextEvent.hx │ ├── TimerEvent.hx │ ├── TouchEvent.hx │ ├── UncaughtErrorEvent.hx │ ├── UncaughtErrorEvents.hx │ └── VideoTextureEvent.hx │ ├── external │ └── ExternalInterface.hx │ ├── filters │ ├── BitmapFilter.hx │ ├── BitmapFilterQuality.hx │ ├── BitmapFilterType.hx │ ├── BlurFilter.hx │ ├── ColorMatrixFilter.hx │ ├── ConvolutionFilter.hx │ ├── DisplacementMapFilter.hx │ ├── DisplacementMapFilterMode.hx │ ├── DropShadowFilter.hx │ ├── GlowFilter.hx │ └── ShaderFilter.hx │ ├── geom │ ├── ColorTransform.hx │ ├── Matrix.hx │ ├── Matrix3D.hx │ ├── Orientation3D.hx │ ├── PerspectiveProjection.hx │ ├── Point.hx │ ├── Rectangle.hx │ ├── Transform.hx │ ├── Utils3D.hx │ └── Vector3D.hx │ ├── media │ ├── ID3Info.hx │ ├── Sound.hx │ ├── SoundChannel.hx │ ├── SoundLoaderContext.hx │ ├── SoundMixer.hx │ ├── SoundTransform.hx │ └── Video.hx │ ├── net │ ├── FileFilter.hx │ ├── FileReference.hx │ ├── FileReferenceList.hx │ ├── NetConnection.hx │ ├── NetStream.hx │ ├── ObjectEncoding.hx │ ├── SharedObject.hx │ ├── SharedObjectFlushStatus.hx │ ├── Socket.hx │ ├── URLLoader.hx │ ├── URLLoaderDataFormat.hx │ ├── URLRequest.hx │ ├── URLRequestDefaults.hx │ ├── URLRequestHeader.hx │ ├── URLRequestMethod.hx │ ├── URLStream.hx │ ├── URLVariables.hx │ └── XMLSocket.hx │ ├── printing │ ├── PrintJob.hx │ ├── PrintJobOptions.hx │ └── PrintJobOrientation.hx │ ├── profiler │ └── Telemetry.hx │ ├── sensors │ └── Accelerometer.hx │ ├── system │ ├── ApplicationDomain.hx │ ├── Capabilities.hx │ ├── LoaderContext.hx │ ├── Security.hx │ ├── SecurityDomain.hx │ ├── System.hx │ └── TouchscreenType.hx │ ├── text │ ├── AntiAliasType.hx │ ├── Font.hx │ ├── FontStyle.hx │ ├── FontType.hx │ ├── GridFitType.hx │ ├── StaticText.hx │ ├── TextField.hx │ ├── TextFieldAutoSize.hx │ ├── TextFieldType.hx │ ├── TextFormat.hx │ ├── TextFormatAlign.hx │ └── TextLineMetrics.hx │ ├── ui │ ├── GameInput.hx │ ├── GameInputControl.hx │ ├── GameInputDevice.hx │ ├── KeyLocation.hx │ ├── Keyboard.hx │ ├── Mouse.hx │ ├── MouseCursor.hx │ ├── Multitouch.hx │ └── MultitouchInputMode.hx │ └── utils │ ├── ByteArray.hx │ ├── CompressionAlgorithm.hx │ ├── Endian.hx │ ├── IDataInput.hx │ ├── IDataOutput.hx │ ├── IExternalizable.hx │ └── Timer.hx ├── package.json ├── run.n ├── script.hx ├── scripts ├── CompletionMain.hx ├── ImportAll.hx ├── RunScript.hx ├── completion.hxml ├── docs.hxml └── run.hxml ├── src └── openfl │ ├── Assets.hx │ ├── Lib.hx │ ├── Memory.hx │ ├── Vector.hx │ ├── desktop │ ├── Clipboard.hx │ ├── ClipboardFormats.hx │ ├── ClipboardTransferMode.hx │ ├── NativeProcess.hx │ └── NativeProcessStartupInfo.hx │ ├── display │ ├── AVM1Movie.hx │ ├── Application.hx │ ├── Bitmap.hx │ ├── BitmapData.hx │ ├── BitmapDataChannel.hx │ ├── BlendMode.hx │ ├── CairoRenderer.hx │ ├── CanvasRenderer.hx │ ├── CapsStyle.hx │ ├── ChildAccess.hx │ ├── DOMElement.hx │ ├── DOMRenderer.hx │ ├── DisplayObject.hx │ ├── DisplayObjectContainer.hx │ ├── DisplayObjectRenderer.hx │ ├── DisplayObjectShader.hx │ ├── FPS.hx │ ├── FrameLabel.hx │ ├── FrameScript.hx │ ├── GradientType.hx │ ├── Graphics.hx │ ├── GraphicsBitmapFill.hx │ ├── GraphicsEndFill.hx │ ├── GraphicsGradientFill.hx │ ├── GraphicsPath.hx │ ├── GraphicsPathCommand.hx │ ├── GraphicsPathWinding.hx │ ├── GraphicsQuadPath.hx │ ├── GraphicsShader.hx │ ├── GraphicsShaderFill.hx │ ├── GraphicsSolidFill.hx │ ├── GraphicsStroke.hx │ ├── GraphicsTrianglePath.hx │ ├── IBitmapDrawable.hx │ ├── IGraphicsData.hx │ ├── IGraphicsFill.hx │ ├── IGraphicsPath.hx │ ├── IGraphicsStroke.hx │ ├── ITileContainer.hx │ ├── InteractiveObject.hx │ ├── InterpolationMethod.hx │ ├── JPEGEncoderOptions.hx │ ├── JointStyle.hx │ ├── LineScaleMode.hx │ ├── Loader.hx │ ├── LoaderInfo.hx │ ├── MovieClip.hx │ ├── OpenGLRenderer.hx │ ├── PNGEncoderOptions.hx │ ├── PixelSnapping.hx │ ├── Preloader.hx │ ├── Scene.hx │ ├── Shader.hx │ ├── ShaderData.hx │ ├── ShaderInput.hx │ ├── ShaderJob.hx │ ├── ShaderParameter.hx │ ├── ShaderParameterType.hx │ ├── ShaderPrecision.hx │ ├── Shape.hx │ ├── SimpleButton.hx │ ├── SpreadMethod.hx │ ├── Sprite.hx │ ├── Stage.hx │ ├── Stage3D.hx │ ├── StageAlign.hx │ ├── StageDisplayState.hx │ ├── StageQuality.hx │ ├── StageScaleMode.hx │ ├── Tile.hx │ ├── TileContainer.hx │ ├── Tilemap.hx │ ├── Tileset.hx │ ├── Timeline.hx │ ├── TriangleCulling.hx │ ├── Window.hx │ └── _internal │ │ ├── AbstractNoise.hx │ │ ├── CairoBitmap.hx │ │ ├── CairoBitmapData.hx │ │ ├── CairoDisplayObject.hx │ │ ├── CairoDisplayObjectContainer.hx │ │ ├── CairoGraphics.hx │ │ ├── CairoShape.hx │ │ ├── CairoSimpleButton.hx │ │ ├── CairoTextField.hx │ │ ├── CairoTilemap.hx │ │ ├── CanvasBitmap.hx │ │ ├── CanvasBitmapData.hx │ │ ├── CanvasDisplayObject.hx │ │ ├── CanvasDisplayObjectContainer.hx │ │ ├── CanvasGraphics.hx │ │ ├── CanvasShape.hx │ │ ├── CanvasSimpleButton.hx │ │ ├── CanvasTextField.hx │ │ ├── CanvasTilemap.hx │ │ ├── CanvasVideo.hx │ │ ├── Context3DAlphaMaskShader.hx │ │ ├── Context3DBitmap.hx │ │ ├── Context3DBitmapData.hx │ │ ├── Context3DBuffer.hx │ │ ├── Context3DDisplayObject.hx │ │ ├── Context3DDisplayObjectContainer.hx │ │ ├── Context3DGraphics.hx │ │ ├── Context3DMaskShader.hx │ │ ├── Context3DShape.hx │ │ ├── Context3DSimpleButton.hx │ │ ├── Context3DTextField.hx │ │ ├── Context3DTilemap.hx │ │ ├── Context3DVideo.hx │ │ ├── DOMBitmap.hx │ │ ├── DOMDisplayObject.hx │ │ ├── DOMDisplayObjectContainer.hx │ │ ├── DOMShape.hx │ │ ├── DOMSimpleButton.hx │ │ ├── DOMTextField.hx │ │ ├── DOMTilemap.hx │ │ ├── DOMVideo.hx │ │ ├── DrawCommandBuffer.hx │ │ ├── DrawCommandReader.hx │ │ ├── DrawCommandType.hx │ │ ├── FlashGraphics.hx │ │ ├── FlashRenderer.hx │ │ ├── FlashTilemap.hx │ │ ├── GraphicsDataType.hx │ │ ├── GraphicsFillType.hx │ │ ├── IBitmapDrawableType.hx │ │ ├── PerlinNoise.hx │ │ ├── PerlinNoise2D.hx │ │ ├── SamplerState.hx │ │ ├── ShaderBuffer.hx │ │ ├── SimplexNoise2D.hx │ │ └── stats │ │ ├── Context3DStats.hx │ │ ├── DrawCallContext.hx │ │ └── DrawCallCounter.hx │ ├── display3D │ ├── Context3D.hx │ ├── Context3DBlendFactor.hx │ ├── Context3DBufferUsage.hx │ ├── Context3DClearMask.hx │ ├── Context3DCompareMode.hx │ ├── Context3DMipFilter.hx │ ├── Context3DProfile.hx │ ├── Context3DProgramFormat.hx │ ├── Context3DProgramType.hx │ ├── Context3DRenderMode.hx │ ├── Context3DStencilAction.hx │ ├── Context3DTextureFilter.hx │ ├── Context3DTextureFormat.hx │ ├── Context3DTriangleFace.hx │ ├── Context3DVertexBufferFormat.hx │ ├── Context3DWrapMode.hx │ ├── IndexBuffer3D.hx │ ├── Program3D.hx │ ├── VertexBuffer3D.hx │ ├── _internal │ │ ├── AGALConverter.hx │ │ ├── ATFFormat.hx │ │ ├── ATFGPUFormat.hx │ │ ├── ATFReader.hx │ │ ├── ATFType.hx │ │ ├── Context3DState.hx │ │ ├── GLBuffer.hx │ │ ├── GLFramebuffer.hx │ │ ├── GLProgram.hx │ │ ├── GLRenderbuffer.hx │ │ ├── GLShader.hx │ │ ├── GLTexture.hx │ │ ├── GLUniformLocation.hx │ │ └── assembler │ │ │ ├── FS.hx │ │ │ ├── Flags.hx │ │ │ ├── Opcode.hx │ │ │ ├── OpcodeMap.hx │ │ │ ├── Part.hx │ │ │ ├── Reg.hx │ │ │ ├── RegMap.hx │ │ │ ├── Sampler.hx │ │ │ └── SamplerMap.hx │ └── textures │ │ ├── CubeTexture.hx │ │ ├── RectangleTexture.hx │ │ ├── Texture.hx │ │ ├── TextureBase.hx │ │ └── VideoTexture.hx │ ├── errors │ ├── ArgumentError.hx │ ├── EOFError.hx │ ├── Error.hx │ ├── IOError.hx │ ├── IllegalOperationError.hx │ ├── RangeError.hx │ ├── SecurityError.hx │ └── TypeError.hx │ ├── events │ ├── AccelerometerEvent.hx │ ├── ActivityEvent.hx │ ├── AsyncErrorEvent.hx │ ├── ContextMenuEvent.hx │ ├── DataEvent.hx │ ├── DatagramSocketDataEvent.hx │ ├── ErrorEvent.hx │ ├── Event.hx │ ├── EventDispatcher.hx │ ├── EventPhase.hx │ ├── EventType.hx │ ├── FileListEvent.hx │ ├── FocusEvent.hx │ ├── FullScreenEvent.hx │ ├── GameInputEvent.hx │ ├── HTTPStatusEvent.hx │ ├── IEventDispatcher.hx │ ├── IOErrorEvent.hx │ ├── KeyboardEvent.hx │ ├── MouseEvent.hx │ ├── NativeProcessExitEvent.hx │ ├── NetStatusEvent.hx │ ├── OutputProgressEvent.hx │ ├── ProgressEvent.hx │ ├── RenderEvent.hx │ ├── SampleDataEvent.hx │ ├── SecurityErrorEvent.hx │ ├── ServerSocketConnectEvent.hx │ ├── TextEvent.hx │ ├── TimerEvent.hx │ ├── TouchEvent.hx │ ├── UncaughtErrorEvent.hx │ ├── UncaughtErrorEvents.hx │ └── VideoTextureEvent.hx │ ├── external │ └── ExternalInterface.hx │ ├── filesystem │ ├── File.hx │ ├── FileMode.hx │ └── FileStream.hx │ ├── filters │ ├── BitmapFilter.hx │ ├── BitmapFilterQuality.hx │ ├── BitmapFilterShader.hx │ ├── BitmapFilterType.hx │ ├── BlurFilter.hx │ ├── ColorMatrixFilter.hx │ ├── ConvolutionFilter.hx │ ├── DisplacementMapFilter.hx │ ├── DisplacementMapFilterMode.hx │ ├── DropShadowFilter.hx │ ├── GlowFilter.hx │ └── ShaderFilter.hx │ ├── geom │ ├── ColorTransform.hx │ ├── Matrix.hx │ ├── Matrix3D.hx │ ├── Orientation3D.hx │ ├── PerspectiveProjection.hx │ ├── Point.hx │ ├── Rectangle.hx │ ├── Transform.hx │ ├── Utils3D.hx │ └── Vector3D.hx │ ├── globalization │ ├── DateTimeFormatter.hx │ ├── DateTimeNameContext.hx │ ├── DateTimeNameStyle.hx │ ├── DateTimeStyle.hx │ ├── LastOperationStatus.hx │ └── LocaleID.hx │ ├── media │ ├── ID3Info.hx │ ├── Sound.hx │ ├── SoundChannel.hx │ ├── SoundLoaderContext.hx │ ├── SoundMixer.hx │ ├── SoundTransform.hx │ └── Video.hx │ ├── net │ ├── DatagramSocket.hx │ ├── FileFilter.hx │ ├── FileReference.hx │ ├── FileReferenceList.hx │ ├── IDynamicPropertyOutput.hx │ ├── IDynamicPropertyWriter.hx │ ├── NetConnection.hx │ ├── NetStream.hx │ ├── ObjectEncoding.hx │ ├── Responder.hx │ ├── ServerSocket.hx │ ├── SharedObject.hx │ ├── SharedObjectFlushStatus.hx │ ├── Socket.hx │ ├── URLLoader.hx │ ├── URLLoaderDataFormat.hx │ ├── URLRequest.hx │ ├── URLRequestDefaults.hx │ ├── URLRequestHeader.hx │ ├── URLRequestMethod.hx │ ├── URLStream.hx │ ├── URLVariables.hx │ └── XMLSocket.hx │ ├── printing │ ├── PrintJob.hx │ ├── PrintJobOptions.hx │ └── PrintJobOrientation.hx │ ├── profiler │ └── Telemetry.hx │ ├── sensors │ └── Accelerometer.hx │ ├── system │ ├── ApplicationDomain.hx │ ├── Capabilities.hx │ ├── LoaderContext.hx │ ├── Security.hx │ ├── SecurityDomain.hx │ ├── System.hx │ └── TouchscreenType.hx │ ├── text │ ├── AntiAliasType.hx │ ├── Font.hx │ ├── FontStyle.hx │ ├── FontType.hx │ ├── GridFitType.hx │ ├── StaticText.hx │ ├── StyleSheet.hx │ ├── TextField.hx │ ├── TextFieldAutoSize.hx │ ├── TextFieldType.hx │ ├── TextFormat.hx │ ├── TextFormatAlign.hx │ ├── TextLineMetrics.hx │ └── _internal │ │ ├── CSSParser.hx │ │ ├── CacheMeasurement.hx │ │ ├── GlyphPosition.hx │ │ ├── HTMLParser.hx │ │ ├── ShapeCache.hx │ │ ├── TextEngine.hx │ │ ├── TextFormatRange.hx │ │ ├── TextLayout.hx │ │ ├── TextLayoutGroup.hx │ │ └── UTF8String.hx │ ├── ui │ ├── GameInput.hx │ ├── GameInputControl.hx │ ├── GameInputDevice.hx │ ├── KeyLocation.hx │ ├── Keyboard.hx │ ├── Mouse.hx │ ├── MouseCursor.hx │ ├── Multitouch.hx │ └── MultitouchInputMode.hx │ └── utils │ ├── AGALMiniAssembler.hx │ ├── AssetBundle.hx │ ├── AssetCache.hx │ ├── AssetLibrary.hx │ ├── AssetManifest.hx │ ├── AssetType.hx │ ├── Assets.hx │ ├── ByteArray.hx │ ├── CompressionAlgorithm.hx │ ├── Dictionary.hx │ ├── Endian.hx │ ├── Function.hx │ ├── Future.hx │ ├── IAssetCache.hx │ ├── IDataInput.hx │ ├── IDataOutput.hx │ ├── IExternalizable.hx │ ├── Namespace.hx │ ├── Object.hx │ ├── ObjectPool.hx │ ├── PerspectiveMatrix3D.hx │ ├── Promise.hx │ ├── QName.hx │ ├── Timer.hx │ └── _internal │ ├── ArrayBufferView.hx │ ├── AssetsMacro.hx │ ├── ExtraParamsMacro.hx │ ├── Float32Array.hx │ ├── Lib.hx │ ├── Log.hx │ ├── NullUtils.hx │ ├── ShaderMacro.hx │ ├── TouchData.hx │ ├── UInt16Array.hx │ └── UInt8Array.hx └── tests ├── application.xml ├── application ├── Tests.hx ├── assets │ └── hello.rtf ├── build.hx └── src │ ├── ClipboardFormatsTest.hx │ ├── ClipboardRTFTest.hx │ ├── ClipboardTest.hx │ ├── ClipboardTransferModeTest.hx │ ├── FPSTest.hx │ ├── LibTest.hx │ └── PreloaderTest.hx ├── assets ├── Tests.hx ├── build.hx └── src │ ├── AssetsTest.hx │ └── assets │ └── 1x1.png ├── bitmapdata ├── Tests.hx ├── assets │ └── openfl-base64.txt ├── build.hx └── src │ ├── BitmapDataChannelTest.hx │ ├── BitmapDataFileIOTest.hx │ ├── BitmapDataTest.hx │ ├── JPEGEncoderOptionsTest.hx │ └── PNGEncoderOptionsTest.hx ├── build.hx ├── displayobject ├── Tests.hx ├── build.hx └── src │ ├── BitmapTest.hx │ ├── BlendModeTest.hx │ ├── DisplayObjectContainerTest.hx │ ├── DisplayObjectTest.hx │ ├── FocusEventTest.hx │ ├── InteractiveObjectTest.hx │ ├── PixelSnappingTest.hx │ ├── ShapeTest.hx │ └── SpriteTest.hx ├── errors ├── Tests.hx ├── build.hx └── src │ ├── ArgumentErrorTest.hx │ ├── AsyncErrorEventTest.hx │ ├── EOFErrorTest.hx │ ├── ErrorEventTest.hx │ ├── ErrorTest.hx │ ├── IOErrorEventTest.hx │ ├── IOErrorTest.hx │ ├── IllegalOperationErrorTest.hx │ ├── RangeErrorTest.hx │ ├── SecurityErrorTest.hx │ └── TypeErrorTest.hx ├── eventdispatcher ├── Tests.hx ├── build.hx └── src │ ├── DataEventTest.hx │ ├── EventDispatcherTest.hx │ ├── EventPhaseTest.hx │ ├── EventTest.hx │ ├── ProgressEventTest.hx │ └── TextEventTest.hx ├── externalinterface ├── Tests.hx ├── build.hx └── src │ └── ExternalInterfaceTest.hx ├── filereference └── .gitignore ├── filters ├── Tests.hx ├── build.hx └── src │ ├── BitmapFilterQualityTest.hx │ ├── BitmapFilterTest.hx │ ├── BitmapFilterTypeTest.hx │ ├── BlurFilterTest.hx │ ├── ColorMatrixFilterTest.hx │ ├── DropShadowFilterTest.hx │ ├── GlowFilterTest.hx │ └── ShaderFilterTest.hx ├── functional ├── .gitignore ├── assets │ ├── .gitignore │ ├── BlendCircle.png │ ├── BlendSquare.png │ ├── OwlAlpha.png │ ├── data.utf8 │ ├── openfl.png │ ├── scale9Grid.fla │ ├── scale9Grid.swf │ └── unifont-8.0.01.ttf ├── build.hx ├── project.xml └── src │ ├── FunctionalTest.hx │ ├── FunctionalTestSuite.hx │ ├── Main.hx │ └── test │ ├── AlphaBlendTest1.hx │ ├── BlendModeTest1.hx │ ├── BlurTest1.hx │ ├── CacheBitmapTest1.hx │ ├── CacheBitmapTest2.hx │ ├── CacheBitmapTest3.hx │ ├── ClipTest1.hx │ ├── ContextLossTest1.hx │ ├── DropFileTest1.hx │ ├── DropShadowTest.hx │ ├── FillTest1.hx │ ├── GlowTest.hx │ ├── MaskTest1.hx │ ├── Scale9GridTest1.hx │ ├── ScrollRectTest1.hx │ ├── SeededRandom.hx │ ├── StyleSheetTest1.hx │ ├── SurfaceAllocationTest1.hx │ ├── UnicodeTest1.hx │ ├── UnicodeTest2.hx │ └── WordWrapTest1.hx ├── geom ├── Tests.hx ├── build.hx └── src │ ├── ColorTransformTest.hx │ ├── Matrix3DTest.hx │ ├── MatrixTest.hx │ ├── Orientation3DTest.hx │ ├── PerspectiveProjectionTest.hx │ ├── PointTest.hx │ ├── RectangleTest.hx │ ├── TransformTest.hx │ ├── Utils3DTest.hx │ └── Vector3DTest.hx ├── globalization ├── Tests.hx ├── build.hx └── src │ ├── DateTimeFormatterTest.hx │ ├── DateTimeNameContextTest.hx │ ├── DateTimeNameStyleTest.hx │ ├── DateTimeStyleTest.hx │ └── LastOperationStatusTest.hx ├── graphics ├── Tests.hx ├── build.hx └── src │ ├── CapsStyleTest.hx │ ├── GradientTypeTest.hx │ ├── GraphicsBitmapFillTest.hx │ ├── GraphicsEndFillTest.hx │ ├── GraphicsGradientFillTest.hx │ ├── GraphicsPathCommandTest.hx │ ├── GraphicsPathTest.hx │ ├── GraphicsPathWindingTest.hx │ ├── GraphicsSolidFillTest.hx │ ├── GraphicsStrokeTest.hx │ ├── GraphicsTest.hx │ ├── InterpolationMethodTest.hx │ ├── JointStyleTest.hx │ ├── LineScaleModeTest.hx │ ├── SpreadMethodTest.hx │ └── TriangleCullingTest.hx ├── input ├── Tests.hx ├── build.hx └── src │ ├── ActivityEventTest.hx │ ├── GameInputEventTest.hx │ ├── KeyboardEventTest.hx │ ├── KeyboardTest.hx │ ├── MouseEventTest.hx │ ├── MouseTest.hx │ ├── MultitouchInputModeTest.hx │ ├── MultitouchTest.hx │ └── TouchEventTest.hx ├── loader ├── Tests.hx ├── build.hx └── src │ ├── LoaderContextTest.hx │ ├── LoaderInfoTest.hx │ ├── LoaderTest.hx │ ├── UncaughtErrorEventTest.hx │ └── UncaughtErrorEventsTest.hx ├── movieclip ├── Tests.hx ├── build.hx └── src │ ├── FrameLabelTest.hx │ ├── MovieClipTest.hx │ └── SimpleButtonTest.hx ├── printing └── .gitignore ├── renderer-dom ├── Tests.hx ├── build.hx └── src │ └── DOMElementTest.hx ├── run-openfl-utest-tools.mjs ├── security ├── Tests.hx ├── build.hx └── src │ ├── ApplicationDomainTest.hx │ ├── SecurityDomainTest.hx │ └── SecurityErrorEventTest.hx ├── sensors ├── Tests.hx ├── build.hx └── src │ ├── AccelerometerEventTest.hx │ └── AccelerometerTest.hx ├── shader ├── Tests.hx ├── build.hx └── src │ ├── ShaderDataTest.hx │ ├── ShaderInputTest.hx │ ├── ShaderJobTest.hx │ ├── ShaderParameterTest.hx │ ├── ShaderParameterTypeTest.hx │ ├── ShaderPrecisionTest.hx │ └── ShaderTest.hx ├── sharedobject ├── Tests.hx ├── build.hx └── src │ ├── SharedObjectFlushStatusTest.hx │ └── SharedObjectTest.hx ├── socket └── .gitignore ├── sound ├── Tests.hx ├── build.hx └── src │ ├── ID3InfoTest.hx │ ├── SampleDataEventTest.hx │ ├── SoundChannelTest.hx │ ├── SoundLoaderContextTest.hx │ ├── SoundTest.hx │ └── SoundTransformTest.hx ├── stage ├── Tests.hx ├── build.hx └── src │ ├── FullScreenEventTest.hx │ ├── StageAlignTest.hx │ ├── StageDisplayStateTest.hx │ ├── StageQualityTest.hx │ ├── StageScaleModeTest.hx │ └── StageTest.hx ├── stage3d ├── Tests.hx ├── build.hx └── src │ ├── Context3DBlendFactorTest.hx │ ├── Context3DBufferUsageTest.hx │ ├── Context3DClearMaskTest.hx │ ├── Context3DCompareModeTest.hx │ ├── Context3DMipFilterTest.hx │ ├── Context3DProfileTest.hx │ ├── Context3DProgramTypeTest.hx │ ├── Context3DRenderModeTest.hx │ ├── Context3DStencilActionTest.hx │ ├── Context3DTest.hx │ ├── Context3DTextureFilterTest.hx │ ├── Context3DTextureFormatTest.hx │ ├── Context3DTriangleFaceTest.hx │ ├── Context3DVertexBufferFormatTest.hx │ ├── Context3DWrapModeTest.hx │ ├── CubeTextureTest.hx │ ├── IndexBuffer3DTest.hx │ ├── Program3DTest.hx │ ├── RectangleTextureTest.hx │ ├── Stage3DTest.hx │ ├── TextureBaseTest.hx │ ├── TextureTest.hx │ └── VertexBuffer3DTest.hx ├── system ├── Tests.hx ├── build.hx └── src │ ├── CapabilitiesTest.hx │ └── SystemTest.hx ├── telemetry └── .gitignore ├── textfield ├── Tests.hx ├── build.hx └── src │ ├── AntiAliasTypeTest.hx │ ├── FontStyleTest.hx │ ├── FontTest.hx │ ├── FontTypeTest.hx │ ├── GridFitTypeTest.hx │ ├── TextFieldAutoSizeTest.hx │ ├── TextFieldRenderTest.hx │ ├── TextFieldRestrictTest.hx │ ├── TextFieldTest.hx │ ├── TextFieldTypeTest.hx │ ├── TextFormatAlignTest.hx │ ├── TextFormatTest.hx │ └── TextLineMetricsTest.hx ├── tilemap ├── Tests.hx ├── build.hx └── src │ ├── TileTest.hx │ ├── TilemapTest.hx │ └── TilesetTest.hx ├── urlloader ├── Tests.hx ├── build.hx └── src │ ├── URLLoaderDataFormatTest.hx │ └── URLLoaderTest.hx ├── urlrequest ├── Tests.hx ├── build.hx └── src │ ├── HTTPStatusEventTest.hx │ ├── NetStatusEventTest.hx │ ├── URLRequestHeaderTest.hx │ ├── URLRequestMethodTest.hx │ ├── URLRequestTest.hx │ └── URLVariablesTest.hx ├── urlstream └── .gitignore ├── utils ├── Tests.hx ├── build.hx └── src │ ├── ByteArrayTest.hx │ ├── CompressionAlgorithmTest.hx │ ├── DictionaryTest.hx │ ├── EndianTest.hx │ ├── MemoryTest.hx │ ├── NamespaceTest.hx │ ├── QNameTest.hx │ ├── TimerAsyncTest.hx │ ├── TimerEventTest.hx │ ├── TimerTest.hx │ └── VectorTest.hx └── video └── .gitignore /.dockerignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | *.userprefs 4 | *.swp 5 | *.hash 6 | .idea 7 | .svn 8 | NME.iml 9 | out 10 | target 11 | tests/unit/build 12 | tests/unit/report 13 | tests/unit/src 14 | tests/unit/test/ExampleTest.hx 15 | tests/unit/test/TestMain.hx 16 | tests/unit/test/TestSuite.hx 17 | tests/unit/test/*/ExampleTest.hx 18 | tests/unit/test/*/TestMain.hx 19 | tests/unit/test/*/TestSuite.hx 20 | tests/unit/test/*/*/ExampleTest.hx 21 | tests/unit/test/*/*/TestMain.hx 22 | tests/unit/test/*/*/TestSuite.hx 23 | tools/*.n 24 | docs/xml 25 | docs/pages 26 | haxedoc.xml 27 | .temp 28 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.sh eol=lf -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [jgranick] 4 | patreon: openfl 5 | open_collective: openfl 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] 13 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/--support-question.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: "❔ Support question" 3 | about: Ask a question or express a concern 4 | title: '' 5 | labels: "\U0001F5C3️ Status: Review Needed, \U0001F914 Type: Question" 6 | assignees: '' 7 | 8 | --- 9 | 10 | --------------^ Click "Preview" for a nicer view! 11 | We primarily use GitHub as an issue tracker; for usage and support questions, please check out these resources below. Thanks! 12 | 13 | --- 14 | 15 | * Community forums: https://community.openfl.org 16 | * Discord server: https://discord.gg/tDgq8EE 17 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | ARG LIME_VERSION=latest 2 | 3 | FROM openfl/lime:${LIME_VERSION} 4 | 5 | COPY . /opt/openfl/ 6 | COPY assets/templates/bin/openfl.sh /usr/local/bin/openfl 7 | RUN haxelib dev openfl /opt/openfl/ 8 | RUN openfl rebuild tools 9 | 10 | CMD [ "openfl" ] -------------------------------------------------------------------------------- /NOTICE.md: -------------------------------------------------------------------------------- 1 | Notices 2 | ======= 3 | 4 | ### OpenFL 5 | Copyright (c) 2013-2023 Joshua Granick and other OpenFL contributors 6 | 7 | This product bundles font files which are available under an "SIL Open Font" 8 | license. For details, see [http://scripts.sil.org/OFL](http://scripts.sil.org/OFL). 9 | 10 | openfl/text/_internal/CSSParser.hx is adapted from original code by Damilare Akinlaja 11 | and the hxcss project, which is available under an "MIT" license. For details, see 12 | https://github.com/darmie/hxcss 13 | 14 | Excerpts of the Adobe ActionScript 3.0 Reference are used, with modification, 15 | which is available under the "CC BY-NC-SA 3.0" license. For details, see 16 | http://creativecommons.org/licenses/by-nc-sa/3.0/ 17 | 18 | -------------------------------------------------------------------------------- /assets/docs-theme/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "OpenFL Theme", 3 | "author": "OpenFL", 4 | "parentTheme": "default" 5 | } -------------------------------------------------------------------------------- /assets/docs-theme/resources/extra-styles.css: -------------------------------------------------------------------------------- 1 | body .navbar .brand:first-of-type { 2 | background: url(./images/logo.png) center left no-repeat; 3 | background-size: 227px 70px; 4 | padding-left: 240px; 5 | margin: 0.5em 0; 6 | } -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/DisplayObjectContainerSetChildIndex1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/DisplayObjectContainerSetChildIndex1.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/DisplayObjectContainerSetChildIndex2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/DisplayObjectContainerSetChildIndex2.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/DisplayObjectContainer_layers.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/DisplayObjectContainer_layers.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/LineScaleMode_HORIZONTAL.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/LineScaleMode_HORIZONTAL.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/LineScaleMode_VERTICAL.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/LineScaleMode_VERTICAL.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/Matrix3Delements.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/Matrix3Delements.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/Vector3Delements.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/Vector3Delements.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/beginGradientFill_interp_linearrgb.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/beginGradientFill_interp_linearrgb.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/beginGradientFill_interp_rgb.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/beginGradientFill_interp_rgb.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/beginGradientFill_spread_pad.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/beginGradientFill_spread_pad.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/beginGradientFill_spread_reflect.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/beginGradientFill_spread_reflect.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/beginGradientFill_spread_repeat.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/beginGradientFill_spread_repeat.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/bitmapData_draw_smoothing.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/bitmapData_draw_smoothing.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/bitmap_smoothing_off.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/bitmap_smoothing_off.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/bitmap_smoothing_on.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/bitmap_smoothing_on.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/blendMode-0a.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/blendMode-0a.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/blendMode-0b.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/blendMode-0b.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/blendMode-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/blendMode-1.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/blendMode-10.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/blendMode-10.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/blendMode-11.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/blendMode-11.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/blendMode-12.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/blendMode-12.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/blendMode-13.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/blendMode-13.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/blendMode-14.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/blendMode-14.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/blendMode-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/blendMode-2.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/blendMode-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/blendMode-3.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/blendMode-4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/blendMode-4.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/blendMode-5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/blendMode-5.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/blendMode-6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/blendMode-6.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/blendMode-7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/blendMode-7.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/blendMode-8.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/blendMode-8.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/blendMode-9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/blendMode-9.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/createGradientBox-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/createGradientBox-1.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/createGradientBox-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/createGradientBox-2.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/createGradientBox-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/createGradientBox-3.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/createGradientBox-4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/createGradientBox-4.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/crossScript_load.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/crossScript_load.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/crossproduct.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/crossproduct.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/cubic_bezier.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/cubic_bezier.png -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/frustum.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/frustum.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/gradient-ratios-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/gradient-ratios-1.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/gradient-ratios-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/gradient-ratios-2.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/gradient-ratios-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/gradient-ratios-3.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/identityMatrix.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/identityMatrix.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/lineStyle_pixelHinting.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/lineStyle_pixelHinting.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/linecap.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/linecap.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/linejoin.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/linejoin.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/logo.png -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/matrix_identity.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/matrix_identity.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/matrix_props1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/matrix_props1.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/matrix_props2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/matrix_props2.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/matrix_rotate.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/matrix_rotate.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/matrix_rotate_image.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/matrix_rotate_image.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/matrix_scale.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/matrix_scale.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/matrix_scale_image.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/matrix_scale_image.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/matrix_skew.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/matrix_skew.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/matrix_skew_image.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/matrix_skew_image.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/matrix_translate.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/matrix_translate.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/matrix_translate_image.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/matrix_translate_image.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/miterLimit.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/miterLimit.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/movieClip_beginBitmapFill_repeat_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/movieClip_beginBitmapFill_repeat_1.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/movieClip_beginBitmapFill_repeat_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/movieClip_beginBitmapFill_repeat_2.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/movieClip_beginBitmapFill_repeat_3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/movieClip_beginBitmapFill_repeat_3.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/quad_bezier.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/quad_bezier.png -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/radial_sketch.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/radial_sketch.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/rectangle.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/rectangle.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/rectangle_intersect.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/rectangle_intersect.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/rectangle_union.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/rectangle_union.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/resultantVector3D.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/resultantVector3D.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/scale9Grid-a.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/scale9Grid-a.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/scale9Grid-b.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/scale9Grid-b.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/scale9Grid-c.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/scale9Grid-c.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/scale9Grid-d.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/scale9Grid-d.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/scale9Grid-e.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/scale9Grid-e.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/scale9Grid-f.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/scale9Grid-f.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/text-metrics.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/text-metrics.jpg -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/winding_positive_negative.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/winding_positive_negative.gif -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/winding_rules_evenodd_nonzero.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/winding_rules_evenodd_nonzero.gif -------------------------------------------------------------------------------- /assets/docs-theme/resources/images/xyzAxes.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/docs-theme/resources/images/xyzAxes.jpg -------------------------------------------------------------------------------- /assets/fonts/NotoMono-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/fonts/NotoMono-Regular.ttf -------------------------------------------------------------------------------- /assets/fonts/NotoSans-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/fonts/NotoSans-Regular.ttf -------------------------------------------------------------------------------- /assets/fonts/NotoSerif-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/fonts/NotoSerif-Regular.ttf -------------------------------------------------------------------------------- /assets/openfl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/openfl.png -------------------------------------------------------------------------------- /assets/templates/animate/BitmapData.mtt: -------------------------------------------------------------------------------- 1 | package ::PACKAGE_NAME::; 2 | 3 | @:access(openfl._internal.formats.animate.AnimateLibrary) 4 | 5 | class ::CLASS_NAME:: extends openfl.display.BitmapData 6 | { 7 | public function new(width:Int = 0, height:Int = 0, transparent:Bool = false, background:Int = 0) 8 | { 9 | super(0, 0, true, 0); 10 | 11 | var library = openfl._internal.formats.animate.AnimateLibrary.get("::UUID::"); 12 | var symbol:openfl._internal.formats.animate.AnimateBitmapSymbol = cast library.symbols.get(::SYMBOL_ID::); 13 | var image = library.getImage(symbol.path); 14 | __fromImage(image); 15 | } 16 | } -------------------------------------------------------------------------------- /assets/templates/animate/MovieClip.mtt: -------------------------------------------------------------------------------- 1 | package ::PACKAGE_NAME::; 2 | 3 | @:access(openfl._internal.formats.animate) 4 | 5 | class ::CLASS_NAME:: extends ::if BASE_CLASS_NAME::::BASE_CLASS_NAME::::else::#if flash flash.display.MovieClip.MovieClip2 #else openfl.display.MovieClip #end::end:: 6 | { 7 | ::foreach CLASS_PROPERTIES::@:keep public var ::name::(default, null):::type::; 8 | ::end:: 9 | 10 | public function new() 11 | { 12 | super(); 13 | 14 | var library = openfl._internal.formats.animate.AnimateLibrary.get("::UUID::"); 15 | var symbol = library.symbols.get(::SYMBOL_ID::); 16 | symbol.__initObject(library, this); 17 | } 18 | } -------------------------------------------------------------------------------- /assets/templates/animate/SimpleButton.mtt: -------------------------------------------------------------------------------- 1 | package ::PACKAGE_NAME::; 2 | 3 | @:access(openfl._internal.formats.animate) 4 | 5 | class ::CLASS_NAME:: extends ::if BASE_CLASS_NAME::::BASE_CLASS_NAME::else::#if flash flash.display.SimpleButton.SimpleButton2 #else openfl.display.SimpleButton #end::end:: 6 | { 7 | public function new() 8 | { 9 | super(); 10 | 11 | var library = openfl._internal.formats.animate.AnimateLibrary.get("::UUID::"); 12 | var symbol = library.symbols.get(::SYMBOL_ID::); 13 | symbol.__initObject(library, this); 14 | } 15 | } -------------------------------------------------------------------------------- /assets/templates/bin/openfl.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | haxelib run openfl %* 3 | -------------------------------------------------------------------------------- /assets/templates/bin/openfl.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/templates/bin/openfl.exe -------------------------------------------------------------------------------- /assets/templates/bin/openfl.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | haxelib run openfl "$@" 3 | -------------------------------------------------------------------------------- /assets/templates/console/shaders/openfl_default.vsh: -------------------------------------------------------------------------------- 1 | #include "common.fxh" 2 | 3 | 4 | MATRIX_ORDER float4x4 g_transform : register (c0); 5 | float4 g_color : register (c4); 6 | 7 | 8 | struct VS_IN { 9 | 10 | float3 Pos : POSITION; 11 | float2 Texcoord : TEXCOORD; 12 | float4 Color : COLOR; 13 | 14 | }; 15 | 16 | 17 | struct VS_OUT { 18 | 19 | float4 ProjPos : VS_OUT_POSITION; 20 | float4 Color : COLOR; 21 | float2 Texcoord : TEXCOORD; 22 | 23 | }; 24 | 25 | 26 | VS_OUT main (VS_IN In) { 27 | 28 | VS_OUT Out; 29 | Out.ProjPos = mul( g_transform, float4( In.Pos, 1 ) ); 30 | Out.Color = In.Color * g_color; 31 | //Out.color.rgb = gammaToLinear(Out.Color.rgb); 32 | Out.Texcoord = In.Texcoord; 33 | return Out; 34 | 35 | } 36 | -------------------------------------------------------------------------------- /assets/templates/console/shaders/openfl_fill.psh: -------------------------------------------------------------------------------- 1 | #include "common.fxh" 2 | 3 | 4 | float4 g_scissorRect : register (c0); 5 | #define g_scissorMin (g_scissorRect.xy) 6 | #define g_scissorMax (g_scissorRect.zw) 7 | 8 | 9 | struct PS_IN { 10 | 11 | PS_IN_POSITION 12 | float4 Color : COLOR; 13 | 14 | }; 15 | 16 | 17 | float4 main( PS_IN In ) : PS_TARGET_OUT { 18 | 19 | #if defined WF_VITA 20 | // TODO(james4k): maybe stencil test instead, or multiply with alpha 21 | { 22 | float2 s0 = step(g_scissorMin, In.Position.xy); 23 | float2 s1 = step(In.Position.xy, g_scissorMax); 24 | if (s0.x*s0.y * s1.x*s1.y < 0.5) { 25 | discard; 26 | } 27 | } 28 | #endif 29 | 30 | return In.Color; 31 | 32 | } 33 | -------------------------------------------------------------------------------- /assets/templates/console/shaders/openfl_fill.vsh: -------------------------------------------------------------------------------- 1 | #include "common.fxh" 2 | 3 | 4 | MATRIX_ORDER float4x4 g_transform : register(c0); 5 | float4 g_color : register (c4); 6 | 7 | 8 | struct VS_IN { 9 | 10 | float3 Pos : POSITION; 11 | 12 | }; 13 | 14 | 15 | struct VS_OUT { 16 | 17 | float4 ProjPos : VS_OUT_POSITION; 18 | float4 Color : COLOR; 19 | 20 | }; 21 | 22 | 23 | VS_OUT main( VS_IN In ) { 24 | 25 | VS_OUT Out; 26 | Out.ProjPos = mul( g_transform, float4( In.Pos, 1 ) ); 27 | Out.Color = g_color; 28 | //Out.Color.rgb = gammaToLinear(Out.Color.rgb); 29 | return Out; 30 | 31 | } 32 | -------------------------------------------------------------------------------- /assets/templates/firefox/hxml/debug.hxml: -------------------------------------------------------------------------------- 1 | -main ApplicationMain ::HAXE_FLAGS:: 2 | -js ::OUTPUT_FILE:: 3 | -cp ::OUTPUT_DIR::/haxe 4 | -D firefoxos 5 | -D html5 6 | -debug -------------------------------------------------------------------------------- /assets/templates/firefox/hxml/final.hxml: -------------------------------------------------------------------------------- 1 | -main ApplicationMain ::HAXE_FLAGS:: 2 | -js ::OUTPUT_FILE:: 3 | -cp ::OUTPUT_DIR::/haxe 4 | -D firefoxos 5 | -D html5 6 | -D final -------------------------------------------------------------------------------- /assets/templates/firefox/hxml/release.hxml: -------------------------------------------------------------------------------- 1 | -main ApplicationMain ::HAXE_FLAGS:: 2 | -js ::OUTPUT_FILE:: 3 | -cp ::OUTPUT_DIR::/haxe 4 | -D firefoxos 5 | -D html5 -------------------------------------------------------------------------------- /assets/templates/firefox/template/manifest.webapp: -------------------------------------------------------------------------------- 1 | { 2 | "version": "::META_VERSION::", 3 | "name": "::META_TITLE::", 4 | "description": "::META_DESCRIPTION::", 5 | "launch_path": "/index.html", 6 | "icons": { 7 | "32": "/icon-32.png", 8 | "48": "/icon-48.png", 9 | "64": "/icon-64.png", 10 | "128": "/icon-128.png", 11 | "512": "/icon-512.png" 12 | }, 13 | "developer": { 14 | "name": "::META_COMPANY::", 15 | "url": "::META_COMPANY_URL::" 16 | }, 17 | "orientation": ::if (WIN_ORIENTATION == "landscape")::"landscape"::else::"portrait"::end::, 18 | "fullscreen": "::WIN_FULLSCREEN::" 19 | } -------------------------------------------------------------------------------- /assets/templates/html5/hxml/debug.hxml: -------------------------------------------------------------------------------- 1 | -main ApplicationMain ::HAXE_FLAGS:: 2 | -js ::OUTPUT_FILE:: 3 | -cp ::OUTPUT_DIR::/haxe 4 | -D html5 5 | -debug -------------------------------------------------------------------------------- /assets/templates/html5/hxml/final.hxml: -------------------------------------------------------------------------------- 1 | -main ApplicationMain ::HAXE_FLAGS:: 2 | -js ::OUTPUT_FILE:: 3 | -cp ::OUTPUT_DIR::/haxe 4 | -D html5 5 | -dce full 6 | -D final 7 | -D js-flatten 8 | -dce full -------------------------------------------------------------------------------- /assets/templates/html5/hxml/release.hxml: -------------------------------------------------------------------------------- 1 | -main ApplicationMain ::HAXE_FLAGS:: 2 | -js ::OUTPUT_FILE:: 3 | -cp ::OUTPUT_DIR::/haxe 4 | -D html5 -------------------------------------------------------------------------------- /assets/templates/project/Assets/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/assets/templates/project/Assets/.gitignore -------------------------------------------------------------------------------- /assets/templates/project/Source/Main.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.display.Sprite; 4 | 5 | class Main extends Sprite 6 | { 7 | public function new() 8 | { 9 | super(); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /assets/templates/project/project.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /extraParams.hxml: -------------------------------------------------------------------------------- 1 | --macro openfl.utils._internal.ExtraParamsMacro.include() -------------------------------------------------------------------------------- /haxelib.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "openfl", 3 | "url": "http://www.openfl.org", 4 | "license": "MIT", 5 | "tags": [], 6 | "description": "The \"Open Flash Library\" for fast 2D development", 7 | "version": "9.2.1", 8 | "releasenote": "Various bug fixes", 9 | "contributors": [ 10 | "singmajesty", 11 | "bowlerhat", 12 | "Dimensionscape" 13 | ], 14 | "classPath": "src" 15 | } -------------------------------------------------------------------------------- /hooks/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Build hook for docker hub. 4 | # $IMAGE_NAME var is injected into the build so the tag is correct. 5 | 6 | echo "Build hook running" 7 | 8 | if [ "$DOCKER_TAG" == "develop" ]; then 9 | LIME_VERSION="develop" 10 | else 11 | LIME_VERSION="latest" 12 | fi 13 | 14 | docker build --build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \ 15 | --build-arg VCS_REF=`git rev-parse --short HEAD` \ 16 | --build-arg LIME_VERSION=$LIME_VERSION \ 17 | -t $IMAGE_NAME . -------------------------------------------------------------------------------- /hxformat.json: -------------------------------------------------------------------------------- 1 | { 2 | "excludes": [ 3 | "\\assets", 4 | "/assets", 5 | "\\node_modules", 6 | "/node_modules" 7 | ], 8 | "lineEnds": { 9 | "leftCurly": "both", 10 | "rightCurly": "both", 11 | "objectLiteralCurly": { 12 | "leftCurly": "after" 13 | } 14 | }, 15 | "sameLine": { 16 | "ifBody": "same", 17 | "ifElse": "next", 18 | "doWhile": "next", 19 | "tryBody": "next", 20 | "tryCatch": "next" 21 | } 22 | } -------------------------------------------------------------------------------- /lib/draft-api/src/openfl/display/ScreenMode.hx: -------------------------------------------------------------------------------- 1 | package openfl.display; 2 | 3 | import lime.system.DisplayMode; 4 | 5 | class ScreenMode 6 | { 7 | public var height(get, null):Int; 8 | public var refreshRate(get, null):Int; 9 | public var width(get, null):Int; 10 | 11 | private function get_height():Int 12 | { 13 | return _displayMode.height; 14 | } 15 | 16 | private function get_refreshRate():Int 17 | { 18 | return _displayMode.refreshRate; 19 | } 20 | 21 | private function get_width():Int 22 | { 23 | return _displayMode.width; 24 | } 25 | 26 | private var _displayMode:DisplayMode; 27 | 28 | private function new(displayMode:DisplayMode) 29 | { 30 | _displayMode = displayMode; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /lib/draft-api/src/openfl/filesystem/FileMode.hx: -------------------------------------------------------------------------------- 1 | package openfl.filesystem; 2 | 3 | @:enum 4 | abstract FileMode(String) from String to String 5 | { 6 | var APPEND = "append"; 7 | var READ = "read"; 8 | var UPDATE = "update"; 9 | var WRITE = "write"; 10 | } 11 | -------------------------------------------------------------------------------- /lib/draft-api/src/openfl/fl/containers/ScrollPane.hx: -------------------------------------------------------------------------------- 1 | package openfl.fl.containers; 2 | 3 | import openfl.fl.containers.BaseScrollPane; 4 | import openfl._internal.formats.xfl.XFLSymbolArguments; 5 | import openfl._internal.formats.xfl.XFLAssets; 6 | 7 | /** 8 | * Base scroll pane 9 | */ 10 | class ScrollPane extends BaseScrollPane 11 | { 12 | /** 13 | * Public constructor 14 | **/ 15 | public function new(name:String = null, xflSymbolArguments:XFLSymbolArguments = null) 16 | { 17 | super(name, xflSymbolArguments != null ? xflSymbolArguments : XFLAssets.getInstance().createXFLSymbolArguments("fl.containers.ScrollPane")); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /lib/draft-api/src/openfl/fl/controls/List.hx: -------------------------------------------------------------------------------- 1 | package openfl.fl.controls; 2 | 3 | import openfl._internal.formats.xfl.XFLSymbolArguments; 4 | import openfl._internal.formats.xfl.XFLAssets; 5 | import openfl.fl.core.UIComponent; 6 | import openfl.fl.controls.SelectableList; 7 | 8 | /** 9 | * List 10 | */ 11 | class List extends SelectableList 12 | { 13 | public function new(name:String = null, xflSymbolArguments:XFLSymbolArguments = null) 14 | { 15 | super(name, xflSymbolArguments != null ? xflSymbolArguments : XFLAssets.getInstance().createXFLSymbolArguments("fl.controls.List")); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /lib/draft-api/src/openfl/fl/controls/ScrollPolicy.hx: -------------------------------------------------------------------------------- 1 | package openfl.fl.controls; 2 | 3 | /** 4 | * Scroll policy 5 | */ 6 | class ScrollPolicy 7 | { 8 | public static inline var OFF = "off"; 9 | public static inline var AUTO = "auto"; 10 | 11 | /** 12 | * Public constructor 13 | **/ 14 | public function new() {} 15 | } 16 | -------------------------------------------------------------------------------- /lib/draft-api/src/openfl/fl/controls/UIScrollBar.hx: -------------------------------------------------------------------------------- 1 | package openfl.fl.controls; 2 | 3 | import openfl._internal.formats.xfl.XFLSymbolArguments; 4 | import openfl._internal.formats.xfl.XFLAssets; 5 | 6 | /** 7 | * UI scroll bar 8 | */ 9 | class UIScrollBar extends ScrollBar 10 | { 11 | public function new(name:String = null, xflSymbolArguments:XFLSymbolArguments = null) 12 | { 13 | super(name, xflSymbolArguments != null ? xflSymbolArguments : XFLAssets.getInstance().createXFLSymbolArguments("fl.controls.UIScrollBar")); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /lib/draft-api/src/openfl/fl/controls/listClasses/ICellRenderer.hx: -------------------------------------------------------------------------------- 1 | package openfl.fl.controls.listClasses; 2 | 3 | /** 4 | * ICellRenderer 5 | */ 6 | interface ICellRenderer 7 | { 8 | public var data(get, set):Dynamic; 9 | public var listData(get, set):ListData; 10 | public var selected(get, set):Bool; 11 | public function setMouseState(state:String):Void; 12 | } 13 | -------------------------------------------------------------------------------- /lib/draft-api/src/openfl/fl/controls/listClasses/ListData.hx: -------------------------------------------------------------------------------- 1 | package openfl.fl.controls.listClasses; 2 | 3 | /** 4 | * List data 5 | */ 6 | class ListData 7 | { 8 | public var column:Int; 9 | public var icon:Dynamic; 10 | public var index:Int; 11 | public var label:String; 12 | public var owner:Dynamic; 13 | public var row:Int; 14 | 15 | /** 16 | * Public constructor 17 | **/ 18 | public function new() {} 19 | } 20 | -------------------------------------------------------------------------------- /lib/draft-api/src/openfl/fl/data/DataProvider.hx: -------------------------------------------------------------------------------- 1 | package openfl.fl.data; 2 | 3 | /** 4 | * Data provider 5 | */ 6 | class DataProvider 7 | { 8 | public var data:Array; 9 | public var length(get, never):Int; 10 | 11 | public function new(data:Array) 12 | { 13 | this.data = data; 14 | } 15 | 16 | public function addItem(rowData:Dynamic) 17 | { 18 | data.push(rowData); 19 | } 20 | 21 | public function getItemAt(rowIdx:Int):Dynamic 22 | { 23 | return data[rowIdx]; 24 | } 25 | 26 | private function get_length():Int 27 | { 28 | return data.length; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /lib/draft-api/src/openfl/fl/events/ScrollEvent.hx: -------------------------------------------------------------------------------- 1 | package openfl.fl.events; 2 | 3 | import openfl.events.Event; 4 | 5 | /** 6 | * Scroll event 7 | */ 8 | class ScrollEvent extends Event 9 | { 10 | public static inline var SCROLL = "scroll"; 11 | } 12 | -------------------------------------------------------------------------------- /lib/draft-api/src/openfl/fl/events/SliderEvent.hx: -------------------------------------------------------------------------------- 1 | package openfl.fl.events; 2 | 3 | /** 4 | * Slider event 5 | */ 6 | class SliderEvent 7 | { 8 | public static var THUMB_RELEASE:String = "thumb_release"; 9 | 10 | /** 11 | * Public constructor 12 | **/ 13 | public function new() {} 14 | } 15 | -------------------------------------------------------------------------------- /lib/draft-api/src/openfl/utils/JSON.hx: -------------------------------------------------------------------------------- 1 | package openfl.utils; 2 | 3 | import haxe.Json; 4 | 5 | @:transitive 6 | @:forward 7 | abstract JSON(Object) from Object to Object 8 | { 9 | public function new() 10 | { 11 | this = {}; 12 | } 13 | 14 | public static function decode(data:String):JSON 15 | { 16 | return Json.parse(data); 17 | } 18 | 19 | public static function encode(json:JSON):String 20 | { 21 | return Json.stringify(json); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/desktop/ClipboardFormats.hx: -------------------------------------------------------------------------------- 1 | package flash.desktop; 2 | 3 | #if flash 4 | @:enum abstract ClipboardFormats(String) from String to String 5 | { 6 | public var HTML_FORMAT = "air:html"; 7 | public var RICH_TEXT_FORMAT = "air:rtf"; 8 | public var TEXT_FORMAT = "air:text"; 9 | #if air 10 | public var BITMAP_FORMAT = "air:bitmap"; 11 | public var FILE_LIST_FORMAT = "air:file list"; 12 | public var FILE_PROMISE_LIST_FORMAT = "air:file promise list"; 13 | #end 14 | } 15 | #else 16 | typedef ClipboardFormats = openfl.desktop.ClipboardFormats; 17 | #end 18 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/desktop/ClipboardTransferMode.hx: -------------------------------------------------------------------------------- 1 | package flash.desktop; 2 | 3 | #if flash 4 | @:enum abstract ClipboardTransferMode(String) from String to String 5 | { 6 | public var CLONE_ONLY = "cloneOnly"; 7 | public var CLONE_PREFERRED = "clonePreferred"; 8 | public var ORIGINAL_ONLY = "originalOnly"; 9 | public var ORIGINAL_PREFERRED = "originalPreferred"; 10 | } 11 | #else 12 | typedef ClipboardTransferMode = openfl.desktop.ClipboardTransferMode; 13 | #end 14 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display/AVM1Movie.hx: -------------------------------------------------------------------------------- 1 | package flash.display; 2 | 3 | #if flash 4 | import haxe.Constraints.Function; 5 | 6 | extern class AVM1Movie extends DisplayObject 7 | { 8 | private function new():Void; 9 | public function addCallback(functionName:String, closure:Function):Void; 10 | public function call(functionName:String, ?p1:Dynamic, ?p2:Dynamic, ?p3:Dynamic, ?p4:Dynamic, ?p5:Dynamic):Dynamic; 11 | } 12 | #else 13 | typedef AVM1Movie = openfl.display.AVM1Movie; 14 | #end 15 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display/Bitmap.hx: -------------------------------------------------------------------------------- 1 | package flash.display; 2 | 3 | #if flash 4 | extern class Bitmap extends DisplayObject 5 | { 6 | public var bitmapData:BitmapData; 7 | public var pixelSnapping:PixelSnapping; 8 | public var smoothing:Bool; 9 | public function new(bitmapData:BitmapData = null, ?pixelSnapping:PixelSnapping, smoothing:Bool = false); 10 | } 11 | #else 12 | typedef Bitmap = openfl.display.Bitmap; 13 | #end 14 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display/BitmapDataChannel.hx: -------------------------------------------------------------------------------- 1 | package flash.display; 2 | 3 | #if flash 4 | @:enum abstract BitmapDataChannel(UInt) from UInt to UInt from Int to Int 5 | { 6 | public var ALPHA = 8; 7 | public var BLUE = 4; 8 | public var GREEN = 2; 9 | public var RED = 1; 10 | } 11 | #else 12 | typedef BitmapDataChannel = openfl.display.BitmapDataChannel; 13 | #end 14 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display/CapsStyle.hx: -------------------------------------------------------------------------------- 1 | package flash.display; 2 | 3 | #if flash 4 | @:enum abstract CapsStyle(String) from String to String 5 | { 6 | public var NONE = "none"; 7 | public var ROUND = "round"; 8 | public var SQUARE = "square"; 9 | 10 | @:noCompletion public inline static function fromInt(value:Null):CapsStyle 11 | { 12 | return switch (value) 13 | { 14 | case 0: NONE; 15 | case 1: ROUND; 16 | case 2: SQUARE; 17 | default: null; 18 | } 19 | } 20 | } 21 | #else 22 | typedef CapsStyle = openfl.display.CapsStyle; 23 | #end 24 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display/FrameLabel.hx: -------------------------------------------------------------------------------- 1 | package flash.display; 2 | 3 | #if flash 4 | import openfl.events.EventDispatcher; 5 | 6 | @:final extern class FrameLabel extends EventDispatcher 7 | { 8 | public var frame(default, never):Int; 9 | public var name(default, never):String; 10 | public function new(name:String, frame:Int):Void; 11 | } 12 | #else 13 | typedef FrameLabel = openfl.display.FrameLabel; 14 | #end 15 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display/GradientType.hx: -------------------------------------------------------------------------------- 1 | package flash.display; 2 | 3 | #if flash 4 | @:enum abstract GradientType(String) from String to String 5 | { 6 | public var LINEAR = "linear"; 7 | public var RADIAL = "radial"; 8 | 9 | @:noCompletion public inline static function fromInt(value:Null):GradientType 10 | { 11 | return switch (value) 12 | { 13 | case 0: LINEAR; 14 | case 1: RADIAL; 15 | default: null; 16 | } 17 | } 18 | } 19 | #else 20 | typedef GradientType = openfl.display.GradientType; 21 | #end 22 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display/GraphicsBitmapFill.hx: -------------------------------------------------------------------------------- 1 | package flash.display; 2 | 3 | #if flash 4 | import openfl.geom.Matrix; 5 | 6 | @:final extern class GraphicsBitmapFill implements IGraphicsData implements IGraphicsFill 7 | { 8 | public var bitmapData:BitmapData; 9 | public var matrix:Matrix; 10 | public var repeat:Bool; 11 | public var smooth:Bool; 12 | public function new(bitmapData:BitmapData = null, matrix:Matrix = null, repeat:Bool = true, smooth:Bool = false); 13 | } 14 | #else 15 | typedef GraphicsBitmapFill = openfl.display.GraphicsBitmapFill; 16 | #end 17 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display/GraphicsEndFill.hx: -------------------------------------------------------------------------------- 1 | package flash.display; 2 | 3 | #if flash 4 | @:final extern class GraphicsEndFill implements IGraphicsData implements IGraphicsFill 5 | { 6 | public function new(); 7 | } 8 | #else 9 | typedef GraphicsEndFill = openfl.display.GraphicsEndFill; 10 | #end 11 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display/GraphicsPathCommand.hx: -------------------------------------------------------------------------------- 1 | package flash.display; 2 | 3 | #if flash 4 | @:enum abstract GraphicsPathCommand(Int) from Int to Int from UInt to UInt 5 | { 6 | public var CUBIC_CURVE_TO = 6; 7 | public var CURVE_TO = 3; 8 | public var LINE_TO = 2; 9 | public var MOVE_TO = 1; 10 | public var NO_OP = 0; 11 | public var WIDE_LINE_TO = 5; 12 | public var WIDE_MOVE_TO = 4; 13 | } 14 | #else 15 | typedef GraphicsPathCommand = openfl.display.GraphicsPathCommand; 16 | #end 17 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display/GraphicsPathWinding.hx: -------------------------------------------------------------------------------- 1 | package flash.display; 2 | 3 | #if flash 4 | @:enum abstract GraphicsPathWinding(String) from String to String 5 | { 6 | public var EVEN_ODD = "evenOdd"; 7 | public var NON_ZERO = "nonZero"; 8 | } 9 | #else 10 | typedef GraphicsPathWinding = openfl.display.GraphicsPathWinding; 11 | #end 12 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display/GraphicsShaderFill.hx: -------------------------------------------------------------------------------- 1 | package flash.display; 2 | 3 | #if flash 4 | import openfl.geom.Matrix; 5 | 6 | @:final extern class GraphicsShaderFill implements IGraphicsData implements IGraphicsFill 7 | { 8 | public var matrix:Matrix; 9 | public var shader:Shader; 10 | public function new(?shader:Shader, ?matrix:Matrix):Void; 11 | } 12 | #else 13 | typedef GraphicsShaderFill = openfl.display.GraphicsShaderFill; 14 | #end 15 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display/GraphicsSolidFill.hx: -------------------------------------------------------------------------------- 1 | package flash.display; 2 | 3 | #if flash 4 | @:final extern class GraphicsSolidFill implements IGraphicsData implements IGraphicsFill 5 | { 6 | public var alpha:Float; 7 | public var color:UInt; 8 | public function new(color:UInt = 0, alpha:Float = 1); 9 | } 10 | #else 11 | typedef GraphicsSolidFill = openfl.display.GraphicsSolidFill; 12 | #end 13 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display/GraphicsStroke.hx: -------------------------------------------------------------------------------- 1 | package flash.display; 2 | 3 | #if flash 4 | @:final extern class GraphicsStroke implements IGraphicsData implements IGraphicsStroke 5 | { 6 | public var caps:CapsStyle; 7 | public var fill:IGraphicsFill; 8 | public var joints:JointStyle; 9 | public var miterLimit:Float; 10 | public var pixelHinting:Bool; 11 | public var scaleMode:LineScaleMode; 12 | public var thickness:Float; 13 | public function new(thickness:Float = 0 /*NaN*/, pixelHinting:Bool = false, ?scaleMode:LineScaleMode, ?caps:CapsStyle, ?joints:JointStyle, 14 | miterLimit:Float = 3, fill:IGraphicsFill = null); 15 | } 16 | #else 17 | typedef GraphicsStroke = openfl.display.GraphicsStroke; 18 | #end 19 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display/GraphicsTrianglePath.hx: -------------------------------------------------------------------------------- 1 | package flash.display; 2 | 3 | #if flash 4 | import openfl.Vector; 5 | 6 | @:final extern class GraphicsTrianglePath implements IGraphicsData implements IGraphicsPath 7 | { 8 | public var culling:TriangleCulling; 9 | public var indices:Vector; 10 | public var uvtData:Vector; 11 | public var vertices:Vector; 12 | public function new(?vertices:Vector, ?indices:Vector, ?uvtData:Vector, ?culling:TriangleCulling); 13 | } 14 | #else 15 | typedef GraphicsTrianglePath = openfl.display.GraphicsTrianglePath; 16 | #end 17 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display/IBitmapDrawable.hx: -------------------------------------------------------------------------------- 1 | package flash.display; 2 | 3 | #if flash 4 | extern interface IBitmapDrawable {} 5 | #else 6 | typedef IBitmapDrawable = openfl.display.IBitmapDrawable; 7 | #end 8 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display/IGraphicsData.hx: -------------------------------------------------------------------------------- 1 | package flash.display; 2 | 3 | #if flash 4 | extern interface IGraphicsData {} 5 | #else 6 | typedef IGraphicsData = openfl.display.IGraphicsData; 7 | #end 8 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display/IGraphicsFill.hx: -------------------------------------------------------------------------------- 1 | package flash.display; 2 | 3 | #if flash 4 | extern interface IGraphicsFill {} 5 | #else 6 | typedef IGraphicsFill = openfl.display.IGraphicsFill; 7 | #end 8 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display/IGraphicsPath.hx: -------------------------------------------------------------------------------- 1 | package flash.display; 2 | 3 | #if flash 4 | extern interface IGraphicsPath {} 5 | #else 6 | typedef IGraphicsPath = openfl.display.IGraphicsPath; 7 | #end 8 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display/IGraphicsStroke.hx: -------------------------------------------------------------------------------- 1 | package flash.display; 2 | 3 | #if flash 4 | extern interface IGraphicsStroke {} 5 | #else 6 | typedef IGraphicsStroke = openfl.display.IGraphicsStroke; 7 | #end 8 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display/InterpolationMethod.hx: -------------------------------------------------------------------------------- 1 | package flash.display; 2 | 3 | #if flash 4 | @:enum abstract InterpolationMethod(String) from String to String 5 | { 6 | public var LINEAR_RGB = "linearRGB"; 7 | public var RGB = "rgb"; 8 | 9 | @:noCompletion public inline static function fromInt(value:Null):InterpolationMethod 10 | { 11 | return switch (value) 12 | { 13 | case 0: LINEAR_RGB; 14 | case 1: RGB; 15 | default: null; 16 | } 17 | } 18 | } 19 | #else 20 | typedef InterpolationMethod = openfl.display.InterpolationMethod; 21 | #end 22 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display/JPEGEncoderOptions.hx: -------------------------------------------------------------------------------- 1 | package flash.display; 2 | 3 | #if flash 4 | @:final extern class JPEGEncoderOptions 5 | { 6 | public var quality:UInt; 7 | public function new(quality:UInt = 80); 8 | } 9 | #else 10 | typedef JPEGEncoderOptions = openfl.display.JPEGEncoderOptions; 11 | #end 12 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display/JointStyle.hx: -------------------------------------------------------------------------------- 1 | package flash.display; 2 | 3 | #if flash 4 | @:enum abstract JointStyle(String) from String to String 5 | { 6 | public var MITER = "miter"; 7 | public var ROUND = "round"; 8 | public var BEVEL = "bevel"; 9 | 10 | @:noCompletion public inline static function fromInt(value:Null):JointStyle 11 | { 12 | return switch (value) 13 | { 14 | case 0: BEVEL; 15 | case 1: MITER; 16 | case 2: ROUND; 17 | default: null; 18 | } 19 | } 20 | } 21 | #else 22 | typedef JointStyle = openfl.display.JointStyle; 23 | #end 24 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display/LineScaleMode.hx: -------------------------------------------------------------------------------- 1 | package flash.display; 2 | 3 | #if flash 4 | @:enum abstract LineScaleMode(String) from String to String 5 | { 6 | public var HORIZONTAL = "horizontal"; 7 | public var NONE = "none"; 8 | public var NORMAL = "normal"; 9 | public var VERTICAL = "vertical"; 10 | 11 | @:noCompletion public inline static function fromInt(value:Null):LineScaleMode 12 | { 13 | return switch (value) 14 | { 15 | case 0: HORIZONTAL; 16 | case 1: NONE; 17 | case 2: NORMAL; 18 | case 3: VERTICAL; 19 | default: null; 20 | } 21 | } 22 | } 23 | #else 24 | typedef LineScaleMode = openfl.display.LineScaleMode; 25 | #end 26 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display/PNGEncoderOptions.hx: -------------------------------------------------------------------------------- 1 | package flash.display; 2 | 3 | #if flash 4 | @:final extern class PNGEncoderOptions 5 | { 6 | public var fastCompression:Bool; 7 | public function new(fastCompression:Bool = false):Void; 8 | } 9 | #else 10 | typedef PNGEncoderOptions = openfl.display.PNGEncoderOptions; 11 | #end 12 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display/PixelSnapping.hx: -------------------------------------------------------------------------------- 1 | package flash.display; 2 | 3 | #if flash 4 | @:enum abstract PixelSnapping(String) from String to String 5 | { 6 | public var ALWAYS = "always"; 7 | public var AUTO = "auto"; 8 | public var NEVER = "never"; 9 | } 10 | #else 11 | typedef PixelSnapping = openfl.display.PixelSnapping; 12 | #end 13 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display/ShaderData.hx: -------------------------------------------------------------------------------- 1 | package flash.display; 2 | 3 | #if flash 4 | import openfl.utils.ByteArray; 5 | 6 | @:require(flash10) 7 | @:final extern class ShaderData implements Dynamic 8 | { 9 | public function new(byteArray:ByteArray):Void; 10 | } 11 | #else 12 | typedef ShaderData = openfl.display.ShaderData; 13 | #end 14 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display/ShaderJob.hx: -------------------------------------------------------------------------------- 1 | package flash.display; 2 | 3 | #if flash 4 | import openfl.events.EventDispatcher; 5 | 6 | extern class ShaderJob extends EventDispatcher 7 | { 8 | public var width:Int; 9 | public var height:Int; 10 | public var progress(default, never):Float; 11 | public var shader:Shader; 12 | public var target:Dynamic; 13 | public function new(shader:Shader = null, target:Dynamic = null, width:Int = 0, height:Int = 0); 14 | public function cancel():Void; 15 | public function start(waitForCompletion:Bool = false):Void; 16 | } 17 | #else 18 | typedef ShaderJob = openfl.display.ShaderJob; 19 | #end 20 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display/ShaderParameter.hx: -------------------------------------------------------------------------------- 1 | package flash.display; 2 | 3 | #if flash 4 | @:final extern class ShaderParameter implements Dynamic 5 | { 6 | public var index(default, never):Int; 7 | public var type(default, never):ShaderParameterType; 8 | public var value:Array; 9 | public function new(); 10 | } 11 | #else 12 | typedef ShaderParameter = openfl.display.ShaderParameter; 13 | #end 14 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display/ShaderPrecision.hx: -------------------------------------------------------------------------------- 1 | package flash.display; 2 | 3 | #if flash 4 | @:enum abstract ShaderPrecision(String) from String to String 5 | { 6 | public var FAST = "fast"; 7 | public var FULL = "full"; 8 | } 9 | #else 10 | typedef ShaderPrecision = openfl.display.ShaderPrecision; 11 | #end 12 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display/Shape.hx: -------------------------------------------------------------------------------- 1 | package flash.display; 2 | 3 | #if flash 4 | extern class Shape extends DisplayObject 5 | { 6 | public var graphics(default, never):Graphics; 7 | public function new(); 8 | } 9 | #else 10 | typedef Shape = openfl.display.Shape; 11 | #end 12 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display/SpreadMethod.hx: -------------------------------------------------------------------------------- 1 | package flash.display; 2 | 3 | #if flash 4 | @:enum abstract SpreadMethod(String) from String to String 5 | { 6 | public var PAD = "pad"; 7 | public var REFLECT = "reflect"; 8 | public var REPEAT = "repeat"; 9 | 10 | @:noCompletion public inline static function fromInt(value:Null):SpreadMethod 11 | { 12 | return switch (value) 13 | { 14 | case 0: PAD; 15 | case 1: REFLECT; 16 | case 2: REPEAT; 17 | default: null; 18 | } 19 | } 20 | } 21 | #else 22 | typedef SpreadMethod = openfl.display.SpreadMethod; 23 | #end 24 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display/StageAlign.hx: -------------------------------------------------------------------------------- 1 | package flash.display; 2 | 3 | #if flash 4 | @:enum abstract StageAlign(String) from String to String 5 | { 6 | public var BOTTOM = "bottom"; 7 | public var BOTTOM_LEFT = "bottomLeft"; 8 | public var BOTTOM_RIGHT = "bottomRight"; 9 | public var LEFT = "left"; 10 | public var RIGHT = "right"; 11 | public var TOP = "top"; 12 | public var TOP_LEFT = "topLeft"; 13 | public var TOP_RIGHT = "topRight"; 14 | } 15 | #else 16 | typedef StageAlign = openfl.display.StageAlign; 17 | #end 18 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display/StageDisplayState.hx: -------------------------------------------------------------------------------- 1 | package flash.display; 2 | 3 | #if flash 4 | @:enum abstract StageDisplayState(String) from String to String 5 | { 6 | public var FULL_SCREEN = "fullScreen"; 7 | public var FULL_SCREEN_INTERACTIVE = "fullScreenInteractive"; 8 | public var NORMAL = "normal"; 9 | } 10 | #else 11 | typedef StageDisplayState = openfl.display.StageDisplayState; 12 | #end 13 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display/StageQuality.hx: -------------------------------------------------------------------------------- 1 | package flash.display; 2 | 3 | #if flash 4 | @:enum abstract StageQuality(String) from String to String 5 | { 6 | public var BEST = "best"; 7 | public var HIGH = "high"; 8 | public var LOW = "low"; 9 | public var MEDIUM = "medium"; 10 | } 11 | #else 12 | typedef StageQuality = openfl.display.StageQuality; 13 | #end 14 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display/StageScaleMode.hx: -------------------------------------------------------------------------------- 1 | package flash.display; 2 | 3 | #if flash 4 | @:enum abstract StageScaleMode(String) from String to String 5 | { 6 | public var EXACT_FIT = "exactFit"; 7 | public var NO_BORDER = "noBorder"; 8 | public var NO_SCALE = "noScale"; 9 | public var SHOW_ALL = "showAll"; 10 | } 11 | #else 12 | typedef StageScaleMode = openfl.display.StageScaleMode; 13 | #end 14 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display/TriangleCulling.hx: -------------------------------------------------------------------------------- 1 | package flash.display; 2 | 3 | #if flash 4 | @:enum abstract TriangleCulling(String) from String to String 5 | { 6 | public var NEGATIVE = "negative"; 7 | public var NONE = "none"; 8 | public var POSITIVE = "positive"; 9 | } 10 | #else 11 | typedef TriangleCulling = openfl.display.TriangleCulling; 12 | #end 13 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display3D/Context3DBufferUsage.hx: -------------------------------------------------------------------------------- 1 | package flash.display3D; 2 | 3 | #if flash 4 | @:enum abstract Context3DBufferUsage(String) from String to String 5 | { 6 | public var DYNAMIC_DRAW = "dynamicDraw"; 7 | public var STATIC_DRAW = "staticDraw"; 8 | } 9 | #else 10 | typedef Context3DBufferUsage = openfl.display3D.Context3DBufferUsage; 11 | #end 12 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display3D/Context3DClearMask.hx: -------------------------------------------------------------------------------- 1 | package flash.display3D; 2 | 3 | #if flash 4 | @:enum abstract Context3DClearMask(UInt) from UInt to UInt from Int to Int 5 | { 6 | public var ALL = 0x07; 7 | public var COLOR = 0x01; 8 | public var DEPTH = 0x02; 9 | public var STENCIL = 0x04; 10 | } 11 | #else 12 | typedef Context3DClearMask = openfl.display3D.Context3DClearMask; 13 | #end 14 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display3D/Context3DCompareMode.hx: -------------------------------------------------------------------------------- 1 | package flash.display3D; 2 | 3 | #if flash 4 | @:enum abstract Context3DCompareMode(String) from String to String 5 | { 6 | public var ALWAYS = "always"; 7 | public var EQUAL = "equal"; 8 | public var GREATER = "greater"; 9 | public var GREATER_EQUAL = "greaterEqual"; 10 | public var LESS = "less"; 11 | public var LESS_EQUAL = "lessEqual"; 12 | public var NEVER = "never"; 13 | public var NOT_EQUAL = "notEqual"; 14 | } 15 | #else 16 | typedef Context3DCompareMode = openfl.display3D.Context3DCompareMode; 17 | #end 18 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display3D/Context3DMipFilter.hx: -------------------------------------------------------------------------------- 1 | package flash.display3D; 2 | 3 | #if flash 4 | @:enum abstract Context3DMipFilter(String) from String to String 5 | { 6 | public var MIPLINEAR = "miplinear"; 7 | public var MIPNEAREST = "mipnearest"; 8 | public var MIPNONE = "mipnone"; 9 | } 10 | #else 11 | typedef Context3DMipFilter = openfl.display3D.Context3DMipFilter; 12 | #end 13 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display3D/Context3DProfile.hx: -------------------------------------------------------------------------------- 1 | package flash.display3D; 2 | 3 | #if flash 4 | @:enum abstract Context3DProfile(String) from String to String 5 | { 6 | public var BASELINE = "baseline"; 7 | public var BASELINE_CONSTRAINED = "baselineConstrained"; 8 | public var BASELINE_EXTENDED = "baselineExtended"; 9 | public var STANDARD = "standard"; 10 | public var STANDARD_CONSTRAINED = "standardConstrained"; 11 | public var STANDARD_EXTENDED = "standardExtended"; 12 | #if air 13 | public var ENHANCED = "enhanced"; 14 | #end 15 | } 16 | #else 17 | typedef Context3DProfile = openfl.display3D.Context3DProfile; 18 | #end 19 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display3D/Context3DProgramType.hx: -------------------------------------------------------------------------------- 1 | package flash.display3D; 2 | 3 | #if flash 4 | @:enum abstract Context3DProgramType(String) from String to String 5 | { 6 | public var FRAGMENT = "fragment"; 7 | public var VERTEX = "vertex"; 8 | } 9 | #else 10 | typedef Context3DProgramType = openfl.display3D.Context3DProgramType; 11 | #end 12 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display3D/Context3DRenderMode.hx: -------------------------------------------------------------------------------- 1 | package flash.display3D; 2 | 3 | #if flash 4 | @:enum abstract Context3DRenderMode(String) from String to String 5 | { 6 | public var AUTO = "auto"; 7 | public var SOFTWARE = "software"; 8 | } 9 | #else 10 | typedef Context3DRenderMode = openfl.display3D.Context3DRenderMode; 11 | #end 12 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display3D/Context3DStencilAction.hx: -------------------------------------------------------------------------------- 1 | package flash.display3D; 2 | 3 | #if flash 4 | @:enum abstract Context3DStencilAction(String) from String to String 5 | { 6 | public var DECREMENT_SATURATE = "decrementSaturate"; 7 | public var DECREMENT_WRAP = "decrementWrap"; 8 | public var INCREMENT_SATURATE = "incrementSaturate"; 9 | public var INCREMENT_WRAP = "incrementWrap"; 10 | public var INVERT = "invert"; 11 | public var KEEP = "keep"; 12 | public var SET = "set"; 13 | public var ZERO = "zero"; 14 | } 15 | #else 16 | typedef Context3DStencilAction = openfl.display3D.Context3DStencilAction; 17 | #end 18 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display3D/Context3DTextureFilter.hx: -------------------------------------------------------------------------------- 1 | package flash.display3D; 2 | 3 | #if flash 4 | @:enum abstract Context3DTextureFilter(String) from String to String 5 | { 6 | public var ANISOTROPIC16X = "anisotropic16x"; 7 | public var ANISOTROPIC2X = "anisotropic2x"; 8 | public var ANISOTROPIC4X = "anisotropic4x"; 9 | public var ANISOTROPIC8X = "anisotropic8x"; 10 | public var LINEAR = "linear"; 11 | public var NEAREST = "nearest"; 12 | } 13 | #else 14 | typedef Context3DTextureFilter = openfl.display3D.Context3DTextureFilter; 15 | #end 16 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display3D/Context3DTextureFormat.hx: -------------------------------------------------------------------------------- 1 | package flash.display3D; 2 | 3 | #if flash 4 | @:enum abstract Context3DTextureFormat(String) from String to String 5 | { 6 | public var BGR_PACKED = "bgrPacked565"; 7 | public var BGRA = "bgra"; 8 | public var BGRA_PACKED = "bgraPacked4444"; 9 | public var COMPRESSED = "compressed"; 10 | public var COMPRESSED_ALPHA = "compressedAlpha"; 11 | public var RGBA_HALF_FLOAT = "rgbaHalfFloat"; 12 | } 13 | #else 14 | typedef Context3DTextureFormat = openfl.display3D.Context3DTextureFormat; 15 | #end 16 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display3D/Context3DTriangleFace.hx: -------------------------------------------------------------------------------- 1 | package flash.display3D; 2 | 3 | #if flash 4 | @:enum abstract Context3DTriangleFace(String) from String to String 5 | { 6 | public var BACK = "back"; 7 | public var FRONT = "front"; 8 | public var FRONT_AND_BACK = "frontAndBack"; 9 | public var NONE = "none"; 10 | } 11 | #else 12 | typedef Context3DTriangleFace = openfl.display3D.Context3DTriangleFace; 13 | #end 14 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display3D/Context3DVertexBufferFormat.hx: -------------------------------------------------------------------------------- 1 | package flash.display3D; 2 | 3 | #if flash 4 | @:enum abstract Context3DVertexBufferFormat(String) from String to String 5 | { 6 | public var BYTES_4 = "bytes4"; 7 | public var FLOAT_1 = "float1"; 8 | public var FLOAT_2 = "float2"; 9 | public var FLOAT_3 = "float3"; 10 | public var FLOAT_4 = "float4"; 11 | } 12 | #else 13 | typedef Context3DVertexBufferFormat = openfl.display3D.Context3DVertexBufferFormat; 14 | #end 15 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display3D/Context3DWrapMode.hx: -------------------------------------------------------------------------------- 1 | package flash.display3D; 2 | 3 | #if flash 4 | @:enum abstract Context3DWrapMode(String) from String to String 5 | { 6 | public var CLAMP = "clamp"; 7 | public var CLAMP_U_REPEAT_V = "clamp_u_repeat_v"; 8 | public var REPEAT = "repeat"; 9 | public var REPEAT_U_CLAMP_V = "repeat_u_clamp_v"; 10 | } 11 | #else 12 | typedef Context3DWrapMode = openfl.display3D.Context3DWrapMode; 13 | #end 14 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display3D/IndexBuffer3D.hx: -------------------------------------------------------------------------------- 1 | package flash.display3D; 2 | 3 | #if flash 4 | import openfl.utils._internal.ArrayBufferView; 5 | import openfl.utils.ByteArray; 6 | import openfl.Vector; 7 | 8 | @:final extern class IndexBuffer3D 9 | { 10 | public function dispose():Void; 11 | public function uploadFromByteArray(data:ByteArray, byteArrayOffset:Int, startOffset:Int, count:Int):Void; 12 | public inline function uploadFromTypedArray(data:ArrayBufferView):Void 13 | { 14 | uploadFromByteArray(data.buffer, data.byteOffset, 0, data.byteLength); 15 | } 16 | public function uploadFromVector(data:Vector, startOffset:Int, count:Int):Void; 17 | } 18 | #else 19 | typedef IndexBuffer3D = openfl.display3D.IndexBuffer3D; 20 | #end 21 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display3D/textures/CubeTexture.hx: -------------------------------------------------------------------------------- 1 | package flash.display3D.textures; 2 | 3 | #if flash 4 | import openfl.display.BitmapData; 5 | import openfl.utils.ByteArray; 6 | 7 | @:final extern class CubeTexture extends TextureBase 8 | { 9 | public function uploadCompressedTextureFromByteArray(data:ByteArray, byteArrayOffset:UInt, async:Bool = false):Void; 10 | public function uploadFromBitmapData(source:BitmapData, side:UInt, miplevel:UInt = 0):Void; 11 | public function uploadFromByteArray(data:ByteArray, byteArrayOffset:UInt, side:UInt, miplevel:UInt = 0):Void; 12 | } 13 | #else 14 | typedef CubeTexture = openfl.display3D.textures.CubeTexture; 15 | #end 16 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display3D/textures/RectangleTexture.hx: -------------------------------------------------------------------------------- 1 | package flash.display3D.textures; 2 | 3 | #if flash 4 | import openfl.display.BitmapData; 5 | import openfl.utils.ByteArray; 6 | 7 | @:final extern class RectangleTexture extends TextureBase 8 | { 9 | public function uploadFromBitmapData(source:BitmapData):Void; 10 | public function uploadFromByteArray(data:ByteArray, byteArrayOffset:UInt):Void; 11 | } 12 | #else 13 | typedef RectangleTexture = openfl.display3D.textures.RectangleTexture; 14 | #end 15 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display3D/textures/Texture.hx: -------------------------------------------------------------------------------- 1 | package flash.display3D.textures; 2 | 3 | #if flash 4 | import openfl.display.BitmapData; 5 | import openfl.utils.ByteArray; 6 | 7 | @:final extern class Texture extends TextureBase 8 | { 9 | public function uploadCompressedTextureFromByteArray(data:ByteArray, byteArrayOffset:UInt, async:Bool = false):Void; 10 | public function uploadFromBitmapData(source:BitmapData, miplevel:UInt = 0):Void; 11 | public function uploadFromByteArray(data:ByteArray, byteArrayOffset:UInt, miplevel:UInt = 0):Void; 12 | } 13 | #else 14 | typedef Texture = openfl.display3D.textures.Texture; 15 | #end 16 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display3D/textures/TextureBase.hx: -------------------------------------------------------------------------------- 1 | package flash.display3D.textures; 2 | 3 | #if flash 4 | import openfl.events.EventDispatcher; 5 | 6 | extern class TextureBase extends EventDispatcher 7 | { 8 | public function dispose():Void; 9 | } 10 | #else 11 | typedef TextureBase = openfl.display3D.textures.TextureBase; 12 | #end 13 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/display3D/textures/VideoTexture.hx: -------------------------------------------------------------------------------- 1 | package flash.display3D.textures; 2 | 3 | #if flash 4 | import openfl.net.NetStream; 5 | 6 | @:final extern class VideoTexture extends TextureBase 7 | { 8 | public var videoHeight(default, never):Int; 9 | public var videoWidth(default, never):Int; 10 | #if flash 11 | public function attachCamera(theCamera:flash.media.Camera):Void; 12 | #end 13 | public function attachNetStream(netStream:NetStream):Void; 14 | } 15 | #else 16 | typedef VideoTexture = openfl.display3D.textures.VideoTexture; 17 | #end 18 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/errors/ArgumentError.hx: -------------------------------------------------------------------------------- 1 | package flash.errors; 2 | 3 | #if flash 4 | @:native("ArgumentError") extern class ArgumentError extends Error 5 | { 6 | public function new(message:String = ""); 7 | } 8 | #else 9 | typedef ArgumentError = openfl.errors.ArgumentError; 10 | #end 11 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/errors/EOFError.hx: -------------------------------------------------------------------------------- 1 | package flash.errors; 2 | 3 | #if flash 4 | extern class EOFError extends IOError 5 | { 6 | public function new(?message:String, id:Int = 0):Void; 7 | } 8 | #else 9 | typedef EOFError = openfl.errors.EOFError; 10 | #end 11 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/errors/IOError.hx: -------------------------------------------------------------------------------- 1 | package flash.errors; 2 | 3 | #if flash 4 | extern class IOError extends Error 5 | { 6 | public function new(message:String = ""); 7 | } 8 | #else 9 | typedef IOError = openfl.errors.IOError; 10 | #end 11 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/errors/IllegalOperationError.hx: -------------------------------------------------------------------------------- 1 | package flash.errors; 2 | 3 | #if flash 4 | extern class IllegalOperationError extends Error 5 | { 6 | public function new(message:String = ""); 7 | } 8 | #else 9 | typedef IllegalOperationError = openfl.errors.IllegalOperationError; 10 | #end 11 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/errors/RangeError.hx: -------------------------------------------------------------------------------- 1 | package flash.errors; 2 | 3 | #if flash 4 | @:native("RangeError") extern class RangeError extends Error 5 | { 6 | public function new(message:String = ""); 7 | } 8 | #else 9 | typedef RangeError = openfl.errors.RangeError; 10 | #end 11 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/errors/SecurityError.hx: -------------------------------------------------------------------------------- 1 | package flash.errors; 2 | 3 | #if flash 4 | @:native("SecurityError") extern class SecurityError extends Error 5 | { 6 | public function new(message:String = ""); 7 | } 8 | #else 9 | typedef SecurityError = openfl.errors.SecurityError; 10 | #end 11 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/errors/TypeError.hx: -------------------------------------------------------------------------------- 1 | package flash.errors; 2 | 3 | #if flash 4 | @:native("TypeError") extern class TypeError extends Error 5 | { 6 | public function new(message:String = ""); 7 | } 8 | #else 9 | typedef TypeError = openfl.errors.TypeError; 10 | #end 11 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/events/ActivityEvent.hx: -------------------------------------------------------------------------------- 1 | package flash.events; 2 | 3 | #if flash 4 | import openfl.events.EventType; 5 | 6 | extern class ActivityEvent extends Event 7 | { 8 | public static var ACTIVITY(default, never):EventType; 9 | public var activating:Bool; 10 | public function new(type:String, bubbles:Bool = false, cancelable:Bool = false, activating:Bool = false); 11 | public override function clone():ActivityEvent; 12 | } 13 | #else 14 | typedef ActivityEvent = openfl.events.ActivityEvent; 15 | #end 16 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/events/AsyncErrorEvent.hx: -------------------------------------------------------------------------------- 1 | package flash.events; 2 | 3 | #if flash 4 | import haxe.io.Error; 5 | import openfl.events.EventType; 6 | 7 | extern class AsyncErrorEvent extends ErrorEvent 8 | { 9 | public static var ASYNC_ERROR(default, never):EventType; 10 | public var error:Error; 11 | public function new(type:String, bubbles:Bool = false, cancelable:Bool = false, text:String = "", error:Error = null); 12 | public override function clone():AsyncErrorEvent; 13 | } 14 | #else 15 | typedef AsyncErrorEvent = openfl.events.AsyncErrorEvent; 16 | #end 17 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/events/DataEvent.hx: -------------------------------------------------------------------------------- 1 | package flash.events; 2 | 3 | #if flash 4 | import openfl.events.EventType; 5 | 6 | extern class DataEvent extends TextEvent 7 | { 8 | public static var DATA(default, never):EventType; 9 | public static var UPLOAD_COMPLETE_DATA(default, never):EventType; 10 | public var data:String; 11 | public function new(type:String, bubbles:Bool = false, cancelable:Bool = false, data:String = ""); 12 | public override function clone():DataEvent; 13 | } 14 | #else 15 | typedef DataEvent = openfl.events.DataEvent; 16 | #end 17 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/events/ErrorEvent.hx: -------------------------------------------------------------------------------- 1 | package flash.events; 2 | 3 | #if flash 4 | import openfl.events.EventType; 5 | 6 | extern class ErrorEvent extends TextEvent 7 | { 8 | public static var ERROR(default, never):EventType; 9 | @:require(flash10_1) public var errorID(default, never):Int; 10 | public function new(type:String, bubbles:Bool = false, cancelable:Bool = false, text:String = "", id:Int = 0):Void; 11 | public override function clone():ErrorEvent; 12 | } 13 | #else 14 | typedef ErrorEvent = openfl.events.ErrorEvent; 15 | #end 16 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/events/EventPhase.hx: -------------------------------------------------------------------------------- 1 | package flash.events; 2 | 3 | #if flash 4 | @:enum abstract EventPhase(Int) from Int to Int from UInt to UInt 5 | { 6 | public var AT_TARGET = 2; 7 | public var BUBBLING_PHASE = 3; 8 | public var CAPTURING_PHASE = 1; 9 | } 10 | #else 11 | typedef EventPhase = openfl.events.EventPhase; 12 | #end 13 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/events/IEventDispatcher.hx: -------------------------------------------------------------------------------- 1 | package flash.events; 2 | 3 | #if flash 4 | interface IEventDispatcher 5 | { 6 | public function addEventListener(type:String, listener:Dynamic->Void, useCapture:Bool = false, priority:Int = 0, useWeakReference:Bool = false):Void; 7 | public function dispatchEvent(event:Event):Bool; 8 | public function hasEventListener(type:String):Bool; 9 | public function removeEventListener(type:String, listener:Dynamic->Void, useCapture:Bool = false):Void; 10 | public function willTrigger(type:String):Bool; 11 | } 12 | #else 13 | typedef IEventDispatcher = openfl.events.IEventDispatcher; 14 | #end 15 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/events/NetStatusEvent.hx: -------------------------------------------------------------------------------- 1 | package flash.events; 2 | 3 | #if flash 4 | import openfl.events.EventType; 5 | 6 | extern class NetStatusEvent extends Event 7 | { 8 | public static var NET_STATUS(default, never):EventType; 9 | public var info:Dynamic; 10 | public function new(type:String, bubbles:Bool = false, cancelable:Bool = false, info:Dynamic = null); 11 | public override function clone():NetStatusEvent; 12 | } 13 | #else 14 | typedef NetStatusEvent = openfl.events.NetStatusEvent; 15 | #end 16 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/events/SampleDataEvent.hx: -------------------------------------------------------------------------------- 1 | package flash.events; 2 | 3 | #if flash 4 | import openfl.events.EventType; 5 | import openfl.utils.ByteArray; 6 | 7 | extern class SampleDataEvent extends Event 8 | { 9 | public static var SAMPLE_DATA(default, never):EventType; 10 | public var data:ByteArray; 11 | public var position:Float; 12 | public function new(type:String, bubbles:Bool = false, cancelable:Bool = false); 13 | public override function clone():SampleDataEvent; 14 | } 15 | #else 16 | typedef SampleDataEvent = openfl.events.SampleDataEvent; 17 | #end 18 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/events/SecurityErrorEvent.hx: -------------------------------------------------------------------------------- 1 | package flash.events; 2 | 3 | #if flash 4 | import openfl.events.EventType; 5 | 6 | extern class SecurityErrorEvent extends ErrorEvent 7 | { 8 | public static var SECURITY_ERROR(default, never):EventType; 9 | public function new(type:String, bubbles:Bool = false, cancelable:Bool = false, text:String = "", id:Int = 0); 10 | public override function clone():SecurityErrorEvent; 11 | } 12 | #else 13 | typedef SecurityErrorEvent = openfl.events.SecurityErrorEvent; 14 | #end 15 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/events/TextEvent.hx: -------------------------------------------------------------------------------- 1 | package flash.events; 2 | 3 | #if flash 4 | import openfl.events.EventType; 5 | 6 | extern class TextEvent extends Event 7 | { 8 | public static var LINK(default, never):EventType; 9 | public static var TEXT_INPUT(default, never):EventType; 10 | public var text:String; 11 | public function new(type:String, bubbles:Bool = false, cancelable:Bool = false, text:String = ""); 12 | public override function clone():TextEvent; 13 | } 14 | #else 15 | typedef TextEvent = openfl.events.TextEvent; 16 | #end 17 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/events/TimerEvent.hx: -------------------------------------------------------------------------------- 1 | package flash.events; 2 | 3 | #if flash 4 | import openfl.events.EventType; 5 | 6 | extern class TimerEvent extends Event 7 | { 8 | public static var TIMER(default, never):EventType; 9 | public static var TIMER_COMPLETE(default, never):EventType; 10 | public function new(type:String, bubbles:Bool = false, cancelable:Bool = false):Void; 11 | public override function clone():TimerEvent; 12 | public function updateAfterEvent():Void; 13 | } 14 | #else 15 | typedef TimerEvent = openfl.events.TimerEvent; 16 | #end 17 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/events/UncaughtErrorEvent.hx: -------------------------------------------------------------------------------- 1 | package flash.events; 2 | 3 | #if flash 4 | import openfl.events.EventType; 5 | 6 | extern class UncaughtErrorEvent extends ErrorEvent 7 | { 8 | public static var UNCAUGHT_ERROR(default, never):EventType; 9 | public var error(default, never):Dynamic; 10 | public function new(type:String, bubbles:Bool = true, cancelable:Bool = true, error:Dynamic = null); 11 | public override function clone():UncaughtErrorEvent; 12 | } 13 | #else 14 | typedef UncaughtErrorEvent = openfl.events.UncaughtErrorEvent; 15 | #end 16 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/events/UncaughtErrorEvents.hx: -------------------------------------------------------------------------------- 1 | package flash.events; 2 | 3 | #if flash 4 | @:require(flash10_1) 5 | extern class UncaughtErrorEvents extends EventDispatcher 6 | { 7 | public function new(); 8 | } 9 | #else 10 | typedef UncaughtErrorEvents = openfl.events.UncaughtErrorEvents; 11 | #end 12 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/events/VideoTextureEvent.hx: -------------------------------------------------------------------------------- 1 | package flash.events; 2 | 3 | #if flash 4 | import openfl.events.EventType; 5 | 6 | extern class VideoTextureEvent extends Event 7 | { 8 | public static var RENDER_STATE(default, never):EventType; 9 | public var colorSpace(default, null):String; 10 | public var status(default, null):String; 11 | public function new(type:String, bubbles:Bool = true, cancelable:Bool = true, status:String = null, colorSpace:String = null); 12 | public override function clone():VideoTextureEvent; 13 | } 14 | #else 15 | typedef VideoTextureEvent = openfl.events.VideoTextureEvent; 16 | #end 17 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/external/ExternalInterface.hx: -------------------------------------------------------------------------------- 1 | package flash.external; 2 | 3 | #if flash 4 | @:final extern class ExternalInterface 5 | { 6 | public static var available(default, never):Bool; 7 | public static var marshallExceptions:Bool; 8 | public static var objectID(default, never):String; 9 | public static function addCallback(functionName:String, closure:Dynamic):Void; 10 | public static function call(functionName:String, ?p1:Dynamic, ?p2:Dynamic, ?p3:Dynamic, ?p4:Dynamic, ?p5:Dynamic):Dynamic; 11 | } 12 | #else 13 | typedef ExternalInterface = openfl.external.ExternalInterface; 14 | #end 15 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/filters/BitmapFilter.hx: -------------------------------------------------------------------------------- 1 | package flash.filters; 2 | 3 | #if flash 4 | extern class BitmapFilter 5 | { 6 | public function new():Void; 7 | public function clone():BitmapFilter; 8 | } 9 | #else 10 | typedef BitmapFilter = openfl.filters.BitmapFilter; 11 | #end 12 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/filters/BitmapFilterQuality.hx: -------------------------------------------------------------------------------- 1 | package flash.filters; 2 | 3 | #if flash 4 | @:enum abstract BitmapFilterQuality(Int) from Int to Int from UInt to UInt 5 | { 6 | public var HIGH = 3; 7 | public var MEDIUM = 2; 8 | public var LOW = 1; 9 | } 10 | #else 11 | typedef BitmapFilterQuality = openfl.filters.BitmapFilterQuality; 12 | #end 13 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/filters/BitmapFilterType.hx: -------------------------------------------------------------------------------- 1 | package flash.filters; 2 | 3 | #if flash 4 | @:enum abstract BitmapFilterType(String) from String to String 5 | { 6 | public var FULL = "full"; 7 | public var INNER = "inner"; 8 | public var OUTER = "outer"; 9 | } 10 | #else 11 | typedef BitmapFilterType = openfl.filters.BitmapFilterType; 12 | #end 13 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/filters/BlurFilter.hx: -------------------------------------------------------------------------------- 1 | package flash.filters; 2 | 3 | #if flash 4 | @:final extern class BlurFilter extends BitmapFilter 5 | { 6 | public var blurX:Float; 7 | public var blurY:Float; 8 | public var quality:Int; 9 | public function new(blurX:Float = 4, blurY:Float = 4, quality:Int = 1); 10 | } 11 | #else 12 | typedef BlurFilter = openfl.filters.BlurFilter; 13 | #end 14 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/filters/ColorMatrixFilter.hx: -------------------------------------------------------------------------------- 1 | package flash.filters; 2 | 3 | #if flash 4 | @:final extern class ColorMatrixFilter extends BitmapFilter 5 | { 6 | public var matrix:Array; 7 | public function new(matrix:Array = null); 8 | } 9 | #else 10 | typedef ColorMatrixFilter = openfl.filters.ColorMatrixFilter; 11 | #end 12 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/filters/DisplacementMapFilterMode.hx: -------------------------------------------------------------------------------- 1 | package flash.filters; 2 | 3 | #if flash 4 | @:enum abstract DisplacementMapFilterMode(String) from String to String 5 | { 6 | public var CLAMP = "clamp"; 7 | public var COLOR = "color"; 8 | public var IGNORE = "ignore"; 9 | public var WRAP = "wrap"; 10 | } 11 | #else 12 | typedef DisplacementMapFilterMode = openfl.filters.DisplacementMapFilterMode; 13 | #end 14 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/filters/GlowFilter.hx: -------------------------------------------------------------------------------- 1 | package flash.filters; 2 | 3 | #if flash 4 | @:final extern class GlowFilter extends BitmapFilter 5 | { 6 | public var alpha:Float; 7 | public var blurX:Float; 8 | public var blurY:Float; 9 | public var color:Int; 10 | public var inner:Bool; 11 | public var knockout:Bool; 12 | public var quality:Int; 13 | public var strength:Float; 14 | public function new(color:Int = 0xFF0000, alpha:Float = 1, blurX:Float = 6, blurY:Float = 6, strength:Float = 2, quality:Int = 1, inner:Bool = false, 15 | knockout:Bool = false); 16 | } 17 | #else 18 | typedef GlowFilter = openfl.filters.GlowFilter; 19 | #end 20 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/filters/ShaderFilter.hx: -------------------------------------------------------------------------------- 1 | package flash.filters; 2 | 3 | #if flash 4 | import openfl.display.Shader; 5 | 6 | extern class ShaderFilter extends BitmapFilter 7 | { 8 | public var bottomExtension:Int; 9 | public var leftExtension:Int; 10 | public var rightExtension:Int; 11 | public var shader:Shader; 12 | public var topExtension:Int; 13 | public function new(shader:Shader); 14 | } 15 | #else 16 | typedef ShaderFilter = openfl.filters.ShaderFilter; 17 | #end 18 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/geom/Orientation3D.hx: -------------------------------------------------------------------------------- 1 | package flash.geom; 2 | 3 | #if flash 4 | @:enum abstract Orientation3D(String) from String to String 5 | { 6 | public var AXIS_ANGLE = "axisAngle"; 7 | public var EULER_ANGLES = "eulerAngles"; 8 | public var QUATERNION = "quaternion"; 9 | } 10 | #else 11 | typedef Orientation3D = openfl.geom.Orientation3D; 12 | #end 13 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/geom/PerspectiveProjection.hx: -------------------------------------------------------------------------------- 1 | package flash.geom; 2 | 3 | #if flash 4 | @:require(flash10) extern class PerspectiveProjection 5 | { 6 | public var fieldOfView:Float; 7 | public var focalLength:Float; 8 | public var projectionCenter:Point; 9 | public function new(); 10 | public function toMatrix3D():Matrix3D; 11 | } 12 | #else 13 | typedef PerspectiveProjection = openfl.geom.PerspectiveProjection; 14 | #end 15 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/geom/Utils3D.hx: -------------------------------------------------------------------------------- 1 | package flash.geom; 2 | 3 | #if flash 4 | import openfl.Vector; 5 | 6 | extern class Utils3D 7 | { 8 | #if flash 9 | public static function pointTowards(percent:Float, mat:Matrix3D, pos:Vector3D, ?at:Vector3D, ?up:Vector3D):Matrix3D; 10 | #end 11 | public static function projectVector(m:Matrix3D, v:Vector3D):Vector3D; 12 | public static function projectVectors(m:Matrix3D, verts:Vector, projectedVerts:Vector, uvts:Vector):Void; 13 | } 14 | #else 15 | typedef Utils3D = openfl.geom.Utils3D; 16 | #end 17 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/media/ID3Info.hx: -------------------------------------------------------------------------------- 1 | package flash.media; 2 | 3 | #if flash 4 | @:final extern class ID3Info implements Dynamic 5 | { 6 | public var album:String; 7 | public var artist:String; 8 | public var comment:String; 9 | public var genre:String; 10 | public var songName:String; 11 | public var track:String; 12 | public var year:String; 13 | public function new():Void; 14 | } 15 | #else 16 | typedef ID3Info = openfl.media.ID3Info; 17 | #end 18 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/media/SoundChannel.hx: -------------------------------------------------------------------------------- 1 | package flash.media; 2 | 3 | #if flash 4 | import openfl.events.EventDispatcher; 5 | 6 | @:final extern class SoundChannel extends EventDispatcher 7 | { 8 | public var leftPeak(default, never):Float; 9 | public var position(default, never):Float; 10 | public var rightPeak(default, never):Float; 11 | public var soundTransform:SoundTransform; 12 | #if flash 13 | public function new(); 14 | #end 15 | public function stop():Void; 16 | } 17 | #else 18 | typedef SoundChannel = openfl.media.SoundChannel; 19 | #end 20 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/media/SoundLoaderContext.hx: -------------------------------------------------------------------------------- 1 | package flash.media; 2 | 3 | #if flash 4 | extern class SoundLoaderContext 5 | { 6 | public var bufferTime:Float; 7 | public var checkPolicyFile:Bool; 8 | public function new(bufferTime:Float = 1000, checkPolicyFile:Bool = false); 9 | } 10 | #else 11 | typedef SoundLoaderContext = openfl.media.SoundLoaderContext; 12 | #end 13 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/media/SoundTransform.hx: -------------------------------------------------------------------------------- 1 | package flash.media; 2 | 3 | #if flash 4 | @:final extern class SoundTransform 5 | { 6 | public var leftToLeft:Float; 7 | public var leftToRight:Float; 8 | public var pan:Float; 9 | public var rightToLeft:Float; 10 | public var rightToRight:Float; 11 | public var volume:Float; 12 | public function new(vol:Float = 1, panning:Float = 0); 13 | public function clone():SoundTransform; 14 | } 15 | #else 16 | typedef SoundTransform = openfl.media.SoundTransform; 17 | #end 18 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/media/Video.hx: -------------------------------------------------------------------------------- 1 | package flash.media; 2 | 3 | #if flash 4 | import openfl.display.DisplayObject; 5 | import openfl.net.NetStream; 6 | 7 | extern class Video extends DisplayObject 8 | { 9 | public var deblocking:Int; 10 | public var smoothing:Bool; 11 | public var videoHeight(default, never):Int; 12 | public var videoWidth(default, never):Int; 13 | public function new(width:Int = 320, height:Int = 240):Void; 14 | #if flash 15 | public function attachCamera(camera:flash.media.Camera):Void; 16 | #end 17 | public function attachNetStream(netStream:NetStream):Void; 18 | public function clear():Void; 19 | } 20 | #else 21 | typedef Video = openfl.media.Video; 22 | #end 23 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/net/FileFilter.hx: -------------------------------------------------------------------------------- 1 | package flash.net; 2 | 3 | #if flash 4 | @:final extern class FileFilter 5 | { 6 | public var description:String; 7 | public var extension:String; 8 | public var macType:String; 9 | public function new(description:String, extension:String, macType:String = null); 10 | } 11 | #else 12 | typedef FileFilter = openfl.net.FileFilter; 13 | #end 14 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/net/FileReferenceList.hx: -------------------------------------------------------------------------------- 1 | package flash.net; 2 | 3 | #if flash 4 | import openfl.events.EventDispatcher; 5 | 6 | extern class FileReferenceList extends EventDispatcher 7 | { 8 | public var fileList(default, never):Array; 9 | public function new(); 10 | public function browse(typeFilter:Array = null):Bool; 11 | } 12 | #else 13 | typedef FileReferenceList = openfl.net.FileReferenceList; 14 | #end 15 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/net/ObjectEncoding.hx: -------------------------------------------------------------------------------- 1 | package flash.net; 2 | 3 | #if flash 4 | @:enum abstract ObjectEncoding(Int) from Int to Int from UInt to UInt 5 | { 6 | public var AMF0 = 0; 7 | public var AMF3 = 3; 8 | public var HXSF = 10; 9 | public var JSON = 12; 10 | // #if flash 11 | public var DEFAULT = 3; 12 | // #else 13 | // public var DEFAULT = 10; 14 | // #end 15 | } 16 | #else 17 | typedef ObjectEncoding = openfl.net.ObjectEncoding; 18 | #end 19 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/net/SharedObjectFlushStatus.hx: -------------------------------------------------------------------------------- 1 | package flash.net; 2 | 3 | #if flash 4 | @:enum abstract SharedObjectFlushStatus(String) from String to String 5 | { 6 | public var FLUSHED = "flushed"; 7 | public var PENDING = "pending"; 8 | } 9 | #else 10 | typedef SharedObjectFlushStatus = openfl.net.SharedObjectFlushStatus; 11 | #end 12 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/net/URLLoader.hx: -------------------------------------------------------------------------------- 1 | package flash.net; 2 | 3 | #if flash 4 | import openfl.events.EventDispatcher; 5 | 6 | extern class URLLoader extends EventDispatcher 7 | { 8 | public var bytesLoaded:Int; 9 | public var bytesTotal:Int; 10 | public var data:Dynamic; 11 | public var dataFormat:URLLoaderDataFormat; 12 | public function new(request:URLRequest = null); 13 | public function close():Void; 14 | public function load(request:URLRequest):Void; 15 | } 16 | #else 17 | typedef URLLoader = openfl.net.URLLoader; 18 | #end 19 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/net/URLLoaderDataFormat.hx: -------------------------------------------------------------------------------- 1 | package flash.net; 2 | 3 | #if flash 4 | @:enum abstract URLLoaderDataFormat(String) from String to String 5 | { 6 | public var BINARY = "binary"; 7 | public var TEXT = "text"; 8 | public var VARIABLES = "variables"; 9 | } 10 | #else 11 | typedef URLLoaderDataFormat = openfl.net.URLLoaderDataFormat; 12 | #end 13 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/net/URLRequestHeader.hx: -------------------------------------------------------------------------------- 1 | package flash.net; 2 | 3 | #if flash 4 | @:final extern class URLRequestHeader 5 | { 6 | public var name:String; 7 | public var value:String; 8 | public function new(name:String = "", value:String = ""); 9 | } 10 | #else 11 | typedef URLRequestHeader = openfl.net.URLRequestHeader; 12 | #end 13 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/net/URLRequestMethod.hx: -------------------------------------------------------------------------------- 1 | package flash.net; 2 | 3 | #if flash 4 | @:enum abstract URLRequestMethod(String) from String to String 5 | { 6 | @:require(flash10_1) public var DELETE = "DELETE"; 7 | public var GET = "GET"; 8 | @:require(flash10_1) public var HEAD = "HEAD"; 9 | @:require(flash10_1) public var OPTIONS = "OPTIONS"; 10 | public var POST = "POST"; 11 | @:require(flash10_1) public var PUT = "PUT"; 12 | } 13 | #else 14 | typedef URLRequestMethod = openfl.net.URLRequestMethod; 15 | #end 16 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/net/URLVariables.hx: -------------------------------------------------------------------------------- 1 | package flash.net; 2 | 3 | #if flash 4 | extern class URLVariables implements Dynamic 5 | { 6 | public function new(source:String = null); 7 | public function decode(source:String):Void; 8 | public function toString():String; 9 | } 10 | #else 11 | typedef URLVariables = openfl.net.URLVariables; 12 | #end 13 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/net/XMLSocket.hx: -------------------------------------------------------------------------------- 1 | package flash.net; 2 | 3 | #if flash 4 | import openfl.events.EventDispatcher; 5 | 6 | extern class XMLSocket extends EventDispatcher 7 | { 8 | public var connected(default, never):Bool; 9 | @:require(flash10) public var timeout:Int; 10 | public function new(host:String = null, port:Int = 80); 11 | public function close():Void; 12 | public function connect(host:String, port:Int):Void; 13 | public function send(object:Dynamic):Void; 14 | } 15 | #else 16 | typedef XMLSocket = openfl.net.XMLSocket; 17 | #end 18 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/printing/PrintJobOptions.hx: -------------------------------------------------------------------------------- 1 | package flash.printing; 2 | 3 | #if flash 4 | extern class PrintJobOptions 5 | { 6 | #if air 7 | public var pixelsPerInch:Float; 8 | #end 9 | public var printAsBitmap:Bool; 10 | #if air 11 | public var printMethod:PrintMethod; 12 | #end 13 | public function new(printAsBitmap:Bool = false); 14 | } 15 | #else 16 | typedef PrintJobOptions = openfl.printing.PrintJobOptions; 17 | #end 18 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/printing/PrintJobOrientation.hx: -------------------------------------------------------------------------------- 1 | package flash.printing; 2 | 3 | #if flash 4 | @:enum abstract PrintJobOrientation(String) from String to String 5 | { 6 | public var LANDSCAPE = "landscape"; 7 | public var PORTRAIT = "portrait"; 8 | } 9 | #else 10 | typedef PrintJobOrientation = openfl.printing.PrintJobOrientation; 11 | #end 12 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/profiler/Telemetry.hx: -------------------------------------------------------------------------------- 1 | package flash.profiler; 2 | 3 | #if flash 4 | @:require(flash11_4) 5 | @:final extern class Telemetry 6 | { 7 | public static var connected(default, never):Bool; 8 | public static var spanMarker(default, never):Float; 9 | public static function registerCommandHandler(commandName:String, handler:Dynamic):Bool; 10 | public static function sendMetric(metric:String, value:Dynamic):Void; 11 | public static function sendSpanMetric(metric:String, startSpanMarker:Float, value:Dynamic):Void; 12 | public static function unregisterCommandHandler(commandName:String):Bool; 13 | } 14 | #else 15 | typedef Telemetry = openfl.profiler.Telemetry; 16 | #end 17 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/sensors/Accelerometer.hx: -------------------------------------------------------------------------------- 1 | package flash.sensors; 2 | 3 | #if flash 4 | import openfl.events.EventDispatcher; 5 | 6 | @:require(flash10_1) 7 | extern class Accelerometer extends EventDispatcher 8 | { 9 | public static var isSupported(default, never):Bool; 10 | public var muted(default, never):Bool; 11 | public function new(); 12 | public function setRequestedUpdateInterval(interval:Int):Void; 13 | } 14 | #else 15 | typedef Accelerometer = openfl.sensors.Accelerometer; 16 | #end 17 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/system/SecurityDomain.hx: -------------------------------------------------------------------------------- 1 | package flash.system; 2 | 3 | #if flash 4 | extern class SecurityDomain 5 | { 6 | public static var currentDomain(default, never):SecurityDomain; 7 | #if flash 8 | @:require(flash11_3) public var domainID(default, never):String; 9 | #end 10 | private function new(); 11 | } 12 | #else 13 | typedef SecurityDomain = openfl.system.SecurityDomain; 14 | #end 15 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/system/TouchscreenType.hx: -------------------------------------------------------------------------------- 1 | package flash.system; 2 | 3 | #if flash 4 | @:enum abstract TouchscreenType(String) from String to String 5 | { 6 | public var FINGER = "finger"; 7 | public var NONE = "none"; 8 | public var STYLUS = "stylus"; 9 | } 10 | #else 11 | typedef TouchscreenType = openfl.system.TouchscreenType; 12 | #end 13 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/text/AntiAliasType.hx: -------------------------------------------------------------------------------- 1 | package flash.text; 2 | 3 | #if flash 4 | @:enum abstract AntiAliasType(String) from String to String 5 | { 6 | public var ADVANCED = "advanced"; 7 | public var NORMAL = "normal"; 8 | } 9 | #else 10 | typedef AntiAliasType = openfl.text.AntiAliasType; 11 | #end 12 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/text/FontStyle.hx: -------------------------------------------------------------------------------- 1 | package flash.text; 2 | 3 | #if flash 4 | @:enum abstract FontStyle(String) from String to String 5 | { 6 | public var BOLD = "bold"; 7 | public var BOLD_ITALIC = "boldItalic"; 8 | public var ITALIC = "italic"; 9 | public var REGULAR = "regular"; 10 | } 11 | #else 12 | typedef FontStyle = openfl.text.FontStyle; 13 | #end 14 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/text/FontType.hx: -------------------------------------------------------------------------------- 1 | package flash.text; 2 | 3 | #if flash 4 | @:enum abstract FontType(String) from String to String 5 | { 6 | public var DEVICE = "device"; 7 | public var EMBEDDED = "embedded"; 8 | public var EMBEDDED_CFF = "embeddedCFF"; 9 | } 10 | #else 11 | typedef FontType = openfl.text.FontType; 12 | #end 13 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/text/GridFitType.hx: -------------------------------------------------------------------------------- 1 | package flash.text; 2 | 3 | #if flash 4 | @:enum abstract GridFitType(String) from String to String 5 | { 6 | public var NONE = "none"; 7 | public var PIXEL = "pixel"; 8 | public var SUBPIXEL = "subpixel"; 9 | } 10 | #else 11 | typedef GridFitType = openfl.text.GridFitType; 12 | #end 13 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/text/StaticText.hx: -------------------------------------------------------------------------------- 1 | package flash.text; 2 | 3 | #if flash 4 | import openfl.display.DisplayObject; 5 | import openfl.display.Graphics; 6 | import openfl.display.Shape; 7 | 8 | @:final extern class StaticText extends DisplayObject 9 | { 10 | public var text(default, never):String; 11 | private function new(); 12 | } 13 | 14 | @:noCompletion class StaticText2 extends Shape 15 | { 16 | public var text:String; 17 | public var __graphics:Graphics; 18 | 19 | public function new() 20 | { 21 | super(); 22 | __graphics = graphics; 23 | } 24 | } 25 | #else 26 | typedef StaticText = openfl.text.StaticText; 27 | #end 28 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/text/TextFieldAutoSize.hx: -------------------------------------------------------------------------------- 1 | package flash.text; 2 | 3 | #if flash 4 | @:enum abstract TextFieldAutoSize(String) from String to String 5 | { 6 | public var CENTER = "center"; 7 | public var LEFT = "left"; 8 | public var NONE = "none"; 9 | public var RIGHT = "right"; 10 | } 11 | #else 12 | typedef TextFieldAutoSize = openfl.text.TextFieldAutoSize; 13 | #end 14 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/text/TextFieldType.hx: -------------------------------------------------------------------------------- 1 | package flash.text; 2 | 3 | #if flash 4 | @:enum abstract TextFieldType(String) from String to String 5 | { 6 | public var DYNAMIC = "dynamic"; 7 | public var INPUT = "input"; 8 | } 9 | #else 10 | typedef TextFieldType = openfl.text.TextFieldType; 11 | #end 12 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/text/TextFormatAlign.hx: -------------------------------------------------------------------------------- 1 | package flash.text; 2 | 3 | #if flash 4 | @:enum abstract TextFormatAlign(String) from String to String 5 | { 6 | public var CENTER = "center"; 7 | public var END = "end"; 8 | public var JUSTIFY = "justify"; 9 | public var LEFT = "left"; 10 | public var RIGHT = "right"; 11 | public var START = "start"; 12 | } 13 | #else 14 | typedef TextFormatAlign = openfl.text.TextFormatAlign; 15 | #end 16 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/text/TextLineMetrics.hx: -------------------------------------------------------------------------------- 1 | package flash.text; 2 | 3 | #if flash 4 | extern class TextLineMetrics 5 | { 6 | public var ascent:Float; 7 | public var descent:Float; 8 | public var height:Float; 9 | public var leading:Float; 10 | public var width:Float; 11 | public var x:Float; 12 | public function new(x:Float, width:Float, height:Float, ascent:Float, descent:Float, leading:Float); 13 | } 14 | #else 15 | typedef TextLineMetrics = openfl.text.TextLineMetrics; 16 | #end 17 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/ui/GameInput.hx: -------------------------------------------------------------------------------- 1 | package flash.ui; 2 | 3 | #if flash 4 | import openfl.events.EventDispatcher; 5 | 6 | @:require(flash11_8) 7 | @:final extern class GameInput extends EventDispatcher 8 | { 9 | public static var isSupported(default, never):Bool; 10 | public static var numDevices(default, never):Int; 11 | public function new(); 12 | public static function getDeviceAt(index:Int):GameInputDevice; 13 | } 14 | #else 15 | typedef GameInput = openfl.ui.GameInput; 16 | #end 17 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/ui/GameInputControl.hx: -------------------------------------------------------------------------------- 1 | package flash.ui; 2 | 3 | #if flash 4 | import openfl.events.EventDispatcher; 5 | 6 | extern class GameInputControl extends EventDispatcher implements Dynamic 7 | { 8 | public var device(default, never):GameInputDevice; 9 | public var id(default, never):String; 10 | public var maxValue(default, never):Float; 11 | public var minValue(default, never):Float; 12 | public var value(default, never):Float; 13 | private function new(device:GameInputDevice, id:String, minValue:Float, maxValue:Float, value:Float = 0); 14 | } 15 | #else 16 | typedef GameInputControl = openfl.ui.GameInputControl; 17 | #end 18 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/ui/KeyLocation.hx: -------------------------------------------------------------------------------- 1 | package flash.ui; 2 | 3 | #if flash 4 | @:enum abstract KeyLocation(Int) from Int to Int from UInt to UInt 5 | { 6 | // #if (flash && !doc_gen) 7 | @:noCompletion @:dox(hide) public static inline var D_PAD = 4; 8 | // #end 9 | public var LEFT = 1; 10 | public var NUM_PAD = 3; 11 | public var RIGHT = 2; 12 | public var STANDARD = 0; 13 | } 14 | #else 15 | typedef KeyLocation = openfl.ui.KeyLocation; 16 | #end 17 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/ui/Mouse.hx: -------------------------------------------------------------------------------- 1 | package flash.ui; 2 | 3 | #if flash 4 | @:final extern class Mouse 5 | { 6 | @:require(flash10) public static var cursor:MouseCursor; 7 | @:require(flash10_1) public static var supportsCursor(default, never):Bool; 8 | @:require(flash11) public static var supportsNativeCursor(default, never):Bool; 9 | public static function hide():Void; 10 | #if flash 11 | @:require(flash10_2) public static function registerCursor(name:String, cursor:flash.ui.MouseCursorData):Void; 12 | #end 13 | public static function show():Void; 14 | #if flash 15 | @:require(flash11) public static function unregisterCursor(name:String):Void; 16 | #end 17 | } 18 | #else 19 | typedef Mouse = openfl.ui.Mouse; 20 | #end 21 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/ui/Multitouch.hx: -------------------------------------------------------------------------------- 1 | package flash.ui; 2 | 3 | #if flash 4 | import openfl.Vector; 5 | 6 | @:final extern class Multitouch 7 | { 8 | public static var inputMode:MultitouchInputMode; 9 | #if flash 10 | public static var mapTouchToMouse:Bool; 11 | #end 12 | public static var maxTouchPoints(default, never):Int; 13 | public static var supportedGestures(default, never):Vector; 14 | public static var supportsGestureEvents(default, never):Bool; 15 | public static var supportsTouchEvents(default, never):Bool; 16 | } 17 | #else 18 | typedef Multitouch = openfl.ui.Multitouch; 19 | #end 20 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/ui/MultitouchInputMode.hx: -------------------------------------------------------------------------------- 1 | package flash.ui; 2 | 3 | #if flash 4 | @:enum abstract MultitouchInputMode(String) from String to String 5 | { 6 | public var GESTURE = "gesture"; 7 | public var NONE = "none"; 8 | public var TOUCH_POINT = "touchPoint"; 9 | } 10 | #else 11 | typedef MultitouchInputMode = openfl.ui.MultitouchInputMode; 12 | #end 13 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/utils/ByteArray.hx: -------------------------------------------------------------------------------- 1 | package flash.utils; 2 | 3 | typedef ByteArray = openfl.utils.ByteArray.ByteArrayData; 4 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/utils/CompressionAlgorithm.hx: -------------------------------------------------------------------------------- 1 | package flash.utils; 2 | 3 | #if flash 4 | @:enum abstract CompressionAlgorithm(String) from String to String 5 | { 6 | public var DEFLATE = "deflate"; 7 | // GZIP; 8 | public var LZMA = "lzma"; 9 | public var ZLIB = "zlib"; 10 | } 11 | #else 12 | typedef CompressionAlgorithm = openfl.utils.CompressionAlgorithm; 13 | #end 14 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/utils/IExternalizable.hx: -------------------------------------------------------------------------------- 1 | package flash.utils; 2 | 3 | #if flash 4 | interface IExternalizable 5 | { 6 | function readExternal(input:IDataInput):Void; 7 | function writeExternal(output:IDataOutput):Void; 8 | } 9 | #else 10 | typedef IExternalizable = openfl.utils.IExternalizable; 11 | #end 12 | -------------------------------------------------------------------------------- /lib/flash-externs/src/flash/utils/Timer.hx: -------------------------------------------------------------------------------- 1 | package flash.utils; 2 | 3 | #if flash 4 | import openfl.events.EventDispatcher; 5 | 6 | extern class Timer extends EventDispatcher 7 | { 8 | public var currentCount(default, never):Int; 9 | public var delay:Float; 10 | public var repeatCount:Int; 11 | public var running(default, never):Bool; 12 | public function new(delay:Float, repeatCount:Int = 0); 13 | public function reset():Void; 14 | public function start():Void; 15 | public function stop():Void; 16 | } 17 | #else 18 | typedef Timer = openfl.utils.Timer; 19 | #end 20 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "openfl-haxelib", 3 | "private": true 4 | } 5 | -------------------------------------------------------------------------------- /run.n: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/run.n -------------------------------------------------------------------------------- /scripts/CompletionMain.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | class CompletionMain 4 | { 5 | public static function main() {} 6 | } 7 | -------------------------------------------------------------------------------- /scripts/completion.hxml: -------------------------------------------------------------------------------- 1 | 2 | -main CompletionMain 3 | -neko completion.n 4 | -cp scripts 5 | -cp src 6 | -lib lime 7 | -lib hxp 8 | -D openfl 9 | # --remap flash:openfl 10 | --no-output -------------------------------------------------------------------------------- /scripts/run.hxml: -------------------------------------------------------------------------------- 1 | -main RunScript 2 | -neko ../run.n 3 | -lib hxp 4 | -D disable_cffi 5 | -------------------------------------------------------------------------------- /src/openfl/Assets.hx: -------------------------------------------------------------------------------- 1 | package openfl; 2 | 3 | typedef Assets = openfl.utils.Assets; 4 | -------------------------------------------------------------------------------- /src/openfl/display/DOMElement.hx: -------------------------------------------------------------------------------- 1 | package openfl.display; 2 | 3 | #if (!openfl_doc_gen || (js && html5)) 4 | #if (js && html5) 5 | import js.html.Element; 6 | #end 7 | 8 | class DOMElement extends #if flash Sprite #else DisplayObject #end 9 | { 10 | @:noCompletion private var __active:Bool; 11 | @SuppressWarnings("checkstyle:Dynamic") @:noCompletion private var __element:#if (js && html5) Element #else Dynamic #end; 12 | 13 | @SuppressWarnings("checkstyle:Dynamic") 14 | public function new(element:#if (js && html5) Element #else Dynamic #end) 15 | { 16 | super(); 17 | 18 | #if !flash 19 | __drawableType = DOM_ELEMENT; 20 | #end 21 | __element = element; 22 | } 23 | } 24 | #end 25 | -------------------------------------------------------------------------------- /src/openfl/display/FrameScript.hx: -------------------------------------------------------------------------------- 1 | package openfl.display; 2 | 3 | #if !openfl_debug 4 | @:fileXml('tags="haxe,release"') 5 | @:noDebug 6 | #end 7 | @:final class FrameScript 8 | { 9 | public var frame(default, null):Int; 10 | public var script(default, null):MovieClip->Void; 11 | 12 | public function new(script:MovieClip->Void, frame:Int) 13 | { 14 | this.script = script; 15 | this.frame = frame; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/openfl/display/IGraphicsData.hx: -------------------------------------------------------------------------------- 1 | package openfl.display; 2 | 3 | #if !flash 4 | import openfl.display._internal.GraphicsDataType; 5 | 6 | interface IGraphicsData 7 | { 8 | @:noCompletion private var __graphicsDataType(default, null):GraphicsDataType; 9 | } 10 | #else 11 | typedef IGraphicsData = flash.display.IGraphicsData; 12 | #end 13 | -------------------------------------------------------------------------------- /src/openfl/display/IGraphicsFill.hx: -------------------------------------------------------------------------------- 1 | package openfl.display; 2 | 3 | #if !flash 4 | import openfl.display._internal.GraphicsFillType; 5 | 6 | interface IGraphicsFill 7 | { 8 | @:noCompletion private var __graphicsFillType(default, null):GraphicsFillType; 9 | } 10 | #else 11 | typedef IGraphicsFill = flash.display.IGraphicsFill; 12 | #end 13 | -------------------------------------------------------------------------------- /src/openfl/display/IGraphicsPath.hx: -------------------------------------------------------------------------------- 1 | package openfl.display; 2 | 3 | #if !flash 4 | interface IGraphicsPath {} 5 | #else 6 | typedef IGraphicsPath = flash.display.IGraphicsPath; 7 | #end 8 | -------------------------------------------------------------------------------- /src/openfl/display/IGraphicsStroke.hx: -------------------------------------------------------------------------------- 1 | package openfl.display; 2 | 3 | #if !flash 4 | interface IGraphicsStroke {} 5 | #else 6 | typedef IGraphicsStroke = flash.display.IGraphicsStroke; 7 | #end 8 | -------------------------------------------------------------------------------- /src/openfl/display/Scene.hx: -------------------------------------------------------------------------------- 1 | package openfl.display; 2 | 3 | #if !flash 4 | #if !openfl_debug 5 | @:fileXml('tags="haxe,release"') 6 | @:noDebug 7 | #end 8 | @:final class Scene 9 | { 10 | public var labels(default, null):Array; 11 | public var name(default, null):String; 12 | public var numFrames(default, null):Int; 13 | 14 | public function new(name:String, labels:Array, numFrames:Int) 15 | { 16 | this.name = name; 17 | this.labels = labels; 18 | this.numFrames = numFrames; 19 | } 20 | } 21 | #else 22 | typedef Scene = flash.display.Scene; 23 | #end 24 | -------------------------------------------------------------------------------- /src/openfl/display/_internal/DrawCommandType.hx: -------------------------------------------------------------------------------- 1 | package openfl.display._internal; 2 | 3 | enum DrawCommandType 4 | { 5 | BEGIN_BITMAP_FILL; 6 | BEGIN_FILL; 7 | BEGIN_GRADIENT_FILL; 8 | BEGIN_SHADER_FILL; 9 | CUBIC_CURVE_TO; 10 | CURVE_TO; 11 | DRAW_CIRCLE; 12 | DRAW_ELLIPSE; 13 | DRAW_QUADS; 14 | DRAW_RECT; 15 | DRAW_ROUND_RECT; 16 | DRAW_TILES; 17 | DRAW_TRIANGLES; 18 | END_FILL; 19 | LINE_BITMAP_STYLE; 20 | LINE_GRADIENT_STYLE; 21 | LINE_STYLE; 22 | LINE_TO; 23 | MOVE_TO; 24 | OVERRIDE_BLEND_MODE; 25 | OVERRIDE_MATRIX; 26 | WINDING_EVEN_ODD; 27 | WINDING_NON_ZERO; 28 | UNKNOWN; 29 | } 30 | -------------------------------------------------------------------------------- /src/openfl/display/_internal/GraphicsDataType.hx: -------------------------------------------------------------------------------- 1 | package openfl.display._internal; 2 | 3 | @:dox(hide) @:enum abstract GraphicsDataType(Int) 4 | { 5 | var STROKE = 0; 6 | var SOLID = 1; 7 | var GRADIENT = 2; 8 | var PATH = 3; 9 | var BITMAP = 4; 10 | var END = 5; 11 | var QUAD_PATH = 6; 12 | var TRIANGLE_PATH = 7; 13 | var SHADER = 8; 14 | } 15 | -------------------------------------------------------------------------------- /src/openfl/display/_internal/GraphicsFillType.hx: -------------------------------------------------------------------------------- 1 | package openfl.display._internal; 2 | 3 | @:enum abstract GraphicsFillType(Int) 4 | { 5 | var SOLID_FILL = 0; 6 | var GRADIENT_FILL = 1; 7 | var BITMAP_FILL = 2; 8 | var END_FILL = 3; 9 | var SHADER_FILL = 4; 10 | } 11 | -------------------------------------------------------------------------------- /src/openfl/display/_internal/IBitmapDrawableType.hx: -------------------------------------------------------------------------------- 1 | package openfl.display._internal; 2 | 3 | @:enum abstract IBitmapDrawableType(Int) from Int to Int 4 | { 5 | public var BITMAP_DATA = 0; 6 | public var DISPLAY_OBJECT = 1; 7 | public var BITMAP = 2; 8 | public var SHAPE = 3; 9 | public var SPRITE = 4; 10 | public var STAGE = 5; 11 | public var SIMPLE_BUTTON = 6; 12 | public var TEXT_FIELD = 7; 13 | public var VIDEO = 8; 14 | public var TILEMAP = 9; 15 | public var DOM_ELEMENT = 10; 16 | } 17 | -------------------------------------------------------------------------------- /src/openfl/display/_internal/stats/DrawCallContext.hx: -------------------------------------------------------------------------------- 1 | package openfl.display._internal.stats; 2 | 3 | @:enum abstract DrawCallContext(Int) to Int 4 | { 5 | public var STAGE = 0; 6 | public var STAGE3D = 1; 7 | } 8 | -------------------------------------------------------------------------------- /src/openfl/display/_internal/stats/DrawCallCounter.hx: -------------------------------------------------------------------------------- 1 | package openfl.display._internal.stats; 2 | 3 | #if !openfl_debug 4 | @:fileXml('tags="haxe,release"') 5 | @:noDebug 6 | #end 7 | @SuppressWarnings("checkstyle:FieldDocComment") 8 | class DrawCallCounter 9 | { 10 | public var currentDrawCallsNum(default, null):Int = 0; 11 | 12 | private var drawCallsCounter:Int = 0; 13 | 14 | public function new() 15 | { 16 | currentDrawCallsNum = 0; 17 | drawCallsCounter = 0; 18 | } 19 | 20 | public function increment():Void 21 | { 22 | drawCallsCounter++; 23 | } 24 | 25 | public function reset():Void 26 | { 27 | currentDrawCallsNum = drawCallsCounter; 28 | drawCallsCounter = 0; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/openfl/display3D/Context3DClearMask.hx: -------------------------------------------------------------------------------- 1 | package openfl.display3D; 2 | 3 | #if !flash 4 | /** 5 | Defines the values to use for specifying Context3D clear masks. 6 | **/ 7 | @:enum abstract Context3DClearMask(UInt) from UInt to UInt from Int to Int 8 | { 9 | /** 10 | Clear all buffers. 11 | **/ 12 | public var ALL = 0x07; 13 | 14 | /** 15 | Clear only the color buffer. 16 | **/ 17 | public var COLOR = 0x01; 18 | 19 | /** 20 | Clear only the depth buffer. 21 | **/ 22 | public var DEPTH = 0x02; 23 | 24 | /** 25 | Clear only the stencil buffer. 26 | **/ 27 | public var STENCIL = 0x04; 28 | } 29 | #else 30 | typedef Context3DClearMask = flash.display3D.Context3DClearMask; 31 | #end 32 | -------------------------------------------------------------------------------- /src/openfl/display3D/_internal/ATFFormat.hx: -------------------------------------------------------------------------------- 1 | package openfl.display3D._internal; 2 | 3 | @:enum abstract ATFFormat(Int) 4 | { 5 | public var RGB888 = 0; 6 | public var RGBA8888 = 1; 7 | public var COMPRESSED = 2; // JPEG-XR+LZMA & Block compression 8 | public var RAW_COMPRESSED = 3; // Block compression 9 | public var COMPRESSED_ALPHA = 4; // JPEG-XR+LZMA & Block compression with Alpha 10 | public var RAW_COMPRESSED_ALPHA = 5; // Block compression with Alpha 11 | } 12 | -------------------------------------------------------------------------------- /src/openfl/display3D/_internal/ATFGPUFormat.hx: -------------------------------------------------------------------------------- 1 | package openfl.display3D._internal; 2 | 3 | @:enum abstract ATFGPUFormat(Int) from Int to Int 4 | { 5 | public var DXT = 0; // DXT1/DXT5 depending on alpha 6 | public var PVRTC = 1; 7 | public var ETC1 = 2; 8 | public var ETC2 = 3; 9 | } 10 | -------------------------------------------------------------------------------- /src/openfl/display3D/_internal/ATFType.hx: -------------------------------------------------------------------------------- 1 | package openfl.display3D._internal; 2 | 3 | @:enum abstract ATFType(Int) 4 | { 5 | public var NORMAL = 0; 6 | public var CUBE_MAP = 1; 7 | } 8 | -------------------------------------------------------------------------------- /src/openfl/display3D/_internal/GLBuffer.hx: -------------------------------------------------------------------------------- 1 | package openfl.display3D._internal; 2 | 3 | #if lime 4 | typedef GLBuffer = lime.graphics.opengl.GLBuffer; 5 | #else 6 | typedef GLBuffer = Dynamic; 7 | #end 8 | -------------------------------------------------------------------------------- /src/openfl/display3D/_internal/GLFramebuffer.hx: -------------------------------------------------------------------------------- 1 | package openfl.display3D._internal; 2 | 3 | #if lime 4 | typedef GLFramebuffer = lime.graphics.opengl.GLFramebuffer; 5 | #else 6 | typedef GLFramebuffer = Dynamic; 7 | #end 8 | -------------------------------------------------------------------------------- /src/openfl/display3D/_internal/GLProgram.hx: -------------------------------------------------------------------------------- 1 | package openfl.display3D._internal; 2 | 3 | #if lime 4 | typedef GLProgram = lime.graphics.opengl.GLProgram; 5 | #else 6 | typedef GLProgram = Dynamic; 7 | #end 8 | -------------------------------------------------------------------------------- /src/openfl/display3D/_internal/GLRenderbuffer.hx: -------------------------------------------------------------------------------- 1 | package openfl.display3D._internal; 2 | 3 | #if lime 4 | typedef GLRenderbuffer = lime.graphics.opengl.GLRenderbuffer; 5 | #else 6 | typedef GLRenderbuffer = Dynamic; 7 | #end 8 | -------------------------------------------------------------------------------- /src/openfl/display3D/_internal/GLShader.hx: -------------------------------------------------------------------------------- 1 | package openfl.display3D._internal; 2 | 3 | #if lime 4 | typedef GLShader = lime.graphics.opengl.GLShader; 5 | #else 6 | typedef GLShader = Dynamic; 7 | #end 8 | -------------------------------------------------------------------------------- /src/openfl/display3D/_internal/GLTexture.hx: -------------------------------------------------------------------------------- 1 | package openfl.display3D._internal; 2 | 3 | #if lime 4 | typedef GLTexture = lime.graphics.opengl.GLTexture; 5 | #else 6 | typedef GLTexture = Dynamic; 7 | #end 8 | -------------------------------------------------------------------------------- /src/openfl/display3D/_internal/GLUniformLocation.hx: -------------------------------------------------------------------------------- 1 | package openfl.display3D._internal; 2 | 3 | #if lime 4 | typedef GLUniformLocation = lime.graphics.opengl.GLUniformLocation; 5 | #else 6 | typedef GLUniformLocation = Dynamic; 7 | #end 8 | -------------------------------------------------------------------------------- /src/openfl/display3D/_internal/assembler/FS.hx: -------------------------------------------------------------------------------- 1 | package openfl.display3D._internal.assembler; 2 | 3 | #if !openfl_debug 4 | @:fileXml('tags="haxe,release"') 5 | @:noDebug 6 | #end 7 | class FS 8 | { 9 | public var format:String; 10 | public var size:Int; 11 | 12 | public function new() {} 13 | } 14 | -------------------------------------------------------------------------------- /src/openfl/display3D/_internal/assembler/Flags.hx: -------------------------------------------------------------------------------- 1 | package openfl.display3D._internal.assembler; 2 | 3 | #if !openfl_debug 4 | @:fileXml('tags="haxe,release"') 5 | @:noDebug 6 | #end 7 | class Flags 8 | { 9 | public var fragonly:Bool; 10 | public var horizontal:Bool; 11 | public var matrix:Bool; 12 | public var simple:Bool; 13 | 14 | public function new() {} 15 | } 16 | -------------------------------------------------------------------------------- /src/openfl/display3D/_internal/assembler/Part.hx: -------------------------------------------------------------------------------- 1 | package openfl.display3D._internal.assembler; 2 | 3 | import openfl.utils.ByteArray; 4 | import openfl.utils.Endian; 5 | 6 | #if !openfl_debug 7 | @:fileXml('tags="haxe,release"') 8 | @:noDebug 9 | #end 10 | class Part 11 | { 12 | public var data:ByteArray; 13 | public var name:String; 14 | public var version:Int; 15 | 16 | public function new(name:String = "", version:Int = 0) 17 | { 18 | this.name = name; 19 | this.version = version; 20 | 21 | this.data = new ByteArray(); 22 | data.endian = Endian.LITTLE_ENDIAN; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/openfl/display3D/_internal/assembler/Reg.hx: -------------------------------------------------------------------------------- 1 | package openfl.display3D._internal.assembler; 2 | 3 | #if !openfl_debug 4 | @:fileXml('tags="haxe,release"') 5 | @:noDebug 6 | #end 7 | class Reg 8 | { 9 | public var code:Int; 10 | public var desc:String; 11 | 12 | public function new(code:Int, desc:String) 13 | { 14 | this.code = code; 15 | this.desc = desc; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/openfl/display3D/_internal/assembler/Sampler.hx: -------------------------------------------------------------------------------- 1 | package openfl.display3D._internal.assembler; 2 | 3 | #if !openfl_debug 4 | @:fileXml('tags="haxe,release"') 5 | @:noDebug 6 | #end 7 | class Sampler 8 | { 9 | public var mask:Int; 10 | public var shift:Int; 11 | public var value:Int; 12 | 13 | public function new(shift:Int, mask:Int, value:Int) 14 | { 15 | this.shift = shift; 16 | this.mask = mask; 17 | this.value = value; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/openfl/errors/ArgumentError.hx: -------------------------------------------------------------------------------- 1 | package openfl.errors; 2 | 3 | #if !flash 4 | #if !openfl_debug 5 | @:fileXml('tags="haxe,release"') 6 | @:noDebug 7 | #end 8 | class ArgumentError extends Error 9 | { 10 | public function new(message:String = "") 11 | { 12 | super(message); 13 | 14 | name = "ArgumentError"; 15 | } 16 | } 17 | #else 18 | typedef ArgumentError = flash.errors.ArgumentError; 19 | #end 20 | -------------------------------------------------------------------------------- /src/openfl/errors/RangeError.hx: -------------------------------------------------------------------------------- 1 | package openfl.errors; 2 | 3 | #if !flash 4 | #if !openfl_debug 5 | @:fileXml('tags="haxe,release"') 6 | @:noDebug 7 | #end 8 | class RangeError extends Error 9 | { 10 | public function new(message:String = "") 11 | { 12 | super(message, 0); 13 | 14 | name = "RangeError"; 15 | } 16 | } 17 | #else 18 | typedef RangeError = flash.errors.RangeError; 19 | #end 20 | -------------------------------------------------------------------------------- /src/openfl/errors/SecurityError.hx: -------------------------------------------------------------------------------- 1 | package openfl.errors; 2 | 3 | #if !flash 4 | #if !openfl_debug 5 | @:fileXml('tags="haxe,release"') 6 | @:noDebug 7 | #end 8 | class SecurityError extends Error 9 | { 10 | public function new(message:String = "") 11 | { 12 | super(message, 0); 13 | 14 | name = "SecurityError"; 15 | } 16 | } 17 | #else 18 | typedef SecurityError = flash.errors.SecurityError; 19 | #end 20 | -------------------------------------------------------------------------------- /src/openfl/errors/TypeError.hx: -------------------------------------------------------------------------------- 1 | package openfl.errors; 2 | 3 | #if !flash 4 | #if !openfl_debug 5 | @:fileXml('tags="haxe,release"') 6 | @:noDebug 7 | #end 8 | class TypeError extends Error 9 | { 10 | public function new(message:String = "") 11 | { 12 | super(message, 0); 13 | 14 | name = "TypeError"; 15 | } 16 | } 17 | #else 18 | typedef TypeError = flash.errors.TypeError; 19 | #end 20 | -------------------------------------------------------------------------------- /src/openfl/events/EventPhase.hx: -------------------------------------------------------------------------------- 1 | package openfl.events; 2 | 3 | #if !flash 4 | /** 5 | The EventPhase class provides values for the `eventPhase` 6 | property of the Event class. 7 | **/ 8 | @:enum abstract EventPhase(Int) from Int to Int from UInt to UInt 9 | { 10 | /** 11 | The target phase, which is the second phase of the event flow. 12 | **/ 13 | public var AT_TARGET = 2; 14 | 15 | /** 16 | The bubbling phase, which is the third phase of the event flow. 17 | **/ 18 | public var BUBBLING_PHASE = 3; 19 | 20 | /** 21 | The capturing phase, which is the first phase of the event flow. 22 | **/ 23 | public var CAPTURING_PHASE = 1; 24 | } 25 | #else 26 | typedef EventPhase = flash.events.EventPhase; 27 | #end 28 | -------------------------------------------------------------------------------- /src/openfl/filters/BitmapFilterQuality.hx: -------------------------------------------------------------------------------- 1 | package openfl.filters; 2 | 3 | #if !flash 4 | /** 5 | The BitmapFilterQuality class contains values to set the rendering quality 6 | of a BitmapFilter object. 7 | **/ 8 | @:enum abstract BitmapFilterQuality(Int) from Int to Int from UInt to UInt 9 | { 10 | /** 11 | Defines the high quality filter setting. 12 | **/ 13 | public var HIGH = 3; 14 | 15 | /** 16 | Defines the medium quality filter setting. 17 | **/ 18 | public var MEDIUM = 2; 19 | 20 | /** 21 | Defines the low quality filter setting. 22 | **/ 23 | public var LOW = 1; 24 | } 25 | #else 26 | typedef BitmapFilterQuality = flash.filters.BitmapFilterQuality; 27 | #end 28 | -------------------------------------------------------------------------------- /src/openfl/text/_internal/TextFormatRange.hx: -------------------------------------------------------------------------------- 1 | package openfl.text._internal; 2 | 3 | import openfl.text.TextFormat; 4 | 5 | #if !openfl_debug 6 | @:fileXml('tags="haxe,release"') 7 | @:noDebug 8 | #end 9 | class TextFormatRange 10 | { 11 | public var end:Int; 12 | public var format:TextFormat; 13 | public var start:Int; 14 | 15 | public function new(format:TextFormat, start:Int, end:Int) 16 | { 17 | this.format = format; 18 | this.start = start; 19 | this.end = end; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/openfl/text/_internal/UTF8String.hx: -------------------------------------------------------------------------------- 1 | package openfl.text._internal; 2 | 3 | #if (!haxe4 && lime) 4 | typedef UTF8String = lime.text.UTF8String; 5 | #else 6 | typedef UTF8String = String; 7 | #end 8 | -------------------------------------------------------------------------------- /src/openfl/utils/AssetBundle.hx: -------------------------------------------------------------------------------- 1 | package openfl.utils; 2 | 3 | #if lime 4 | typedef AssetBundle = lime.utils.AssetBundle; 5 | #else 6 | typedef AssetBundle = Dynamic; 7 | #end 8 | -------------------------------------------------------------------------------- /src/openfl/utils/Function.hx: -------------------------------------------------------------------------------- 1 | package openfl.utils; 2 | 3 | #if flash 4 | typedef Function = Dynamic; 5 | #else 6 | typedef Function = haxe.Constraints.Function; 7 | #end 8 | -------------------------------------------------------------------------------- /src/openfl/utils/_internal/ArrayBufferView.hx: -------------------------------------------------------------------------------- 1 | package openfl.utils._internal; 2 | 3 | #if lime 4 | typedef ArrayBufferView = lime.utils.ArrayBufferView; 5 | #elseif js 6 | typedef ArrayBufferView = js.lib.ArrayBufferView; 7 | #else 8 | typedef ArrayBufferView = Dynamic; 9 | #end 10 | -------------------------------------------------------------------------------- /src/openfl/utils/_internal/Float32Array.hx: -------------------------------------------------------------------------------- 1 | package openfl.utils._internal; 2 | 3 | #if lime 4 | typedef Float32Array = lime.utils.Float32Array; 5 | #elseif js 6 | typedef Float32Array = js.lib.Float32Array; 7 | #else 8 | typedef Float32Array = Dynamic; 9 | #end 10 | -------------------------------------------------------------------------------- /src/openfl/utils/_internal/UInt16Array.hx: -------------------------------------------------------------------------------- 1 | package openfl.utils._internal; 2 | 3 | #if lime 4 | typedef UInt16Array = lime.utils.UInt16Array; 5 | #elseif js 6 | typedef UInt16Array = js.lib.UInt16Array; 7 | #else 8 | typedef UInt16Array = Dynamic; 9 | #end 10 | -------------------------------------------------------------------------------- /src/openfl/utils/_internal/UInt8Array.hx: -------------------------------------------------------------------------------- 1 | package openfl.utils._internal; 2 | 3 | #if lime 4 | typedef UInt8Array = lime.utils.UInt8Array; 5 | #elseif js 6 | typedef UInt8Array = js.lib.Uint8Array; 7 | #else 8 | typedef UInt8Array = Dynamic; 9 | #end 10 | -------------------------------------------------------------------------------- /tests/application.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | com.example.OpenFLTests 4 | OpenFLTests 5 | OpenFL Tests 6 | 1.0.0 7 | 8 | Test.swf 9 | true 10 | 11 | -------------------------------------------------------------------------------- /tests/application/Tests.hx: -------------------------------------------------------------------------------- 1 | import utest.Runner; 2 | import utest.ui.Report; 3 | 4 | class Tests 5 | { 6 | public static function main() 7 | { 8 | var runner = new Runner(); 9 | runner.addCase(new ClipboardFormatsTest()); 10 | runner.addCase(new ClipboardTest()); 11 | runner.addCase(new ClipboardTransferModeTest()); 12 | runner.addCase(new FPSTest()); 13 | runner.addCase(new LibTest()); 14 | runner.addCase(new PreloaderTest()); 15 | runner.addCase(new ClipboardRTFTest()); 16 | Report.create(runner); 17 | runner.run(); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /tests/application/assets/hello.rtf: -------------------------------------------------------------------------------- 1 | {\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang1033{\fonttbl{\f0\fnil\fcharset0 Calibri;}} 2 | {\*\generator Riched20 10.0.17134}\viewkind4\uc1 3 | \pard\sa200\sl276\slmult1\f0\fs22\lang9 Hello World\par 4 | } 5 | -------------------------------------------------------------------------------- /tests/application/src/ClipboardFormatsTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.desktop.ClipboardFormats; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class ClipboardFormatsTest extends Test 8 | { 9 | public function spec() 10 | { 11 | switch (ClipboardFormats.HTML_FORMAT) 12 | { 13 | case ClipboardFormats.HTML_FORMAT, ClipboardFormats.RICH_TEXT_FORMAT, ClipboardFormats.TEXT_FORMAT 14 | #if air, ClipboardFormats.BITMAP_FORMAT, ClipboardFormats.FILE_LIST_FORMAT, ClipboardFormats.FILE_PROMISE_LIST_FORMAT #end: 15 | Assert.isTrue(true); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /tests/application/src/ClipboardTransferModeTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.desktop.ClipboardTransferMode; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class ClipboardTransferModeTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (ClipboardTransferMode.CLONE_ONLY) 12 | { 13 | case ClipboardTransferMode.CLONE_ONLY, ClipboardTransferMode.CLONE_PREFERRED, ClipboardTransferMode.ORIGINAL_ONLY, 14 | ClipboardTransferMode.ORIGINAL_PREFERRED: 15 | Assert.isTrue(true); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /tests/application/src/FPSTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.display.FPS; 4 | import openfl.events.Event; 5 | import utest.Assert; 6 | import utest.Test; 7 | 8 | class FPSTest extends Test 9 | { 10 | public function test_new_() 11 | { 12 | var fps = new FPS(); 13 | Assert.isTrue(true); 14 | 15 | // Assert.isTrue(fps.hasEventListener(Event.ENTER_FRAME)); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/application/src/PreloaderTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | #if !flash 4 | import openfl.display.Preloader; 5 | #end 6 | import utest.Assert; 7 | import utest.Test; 8 | 9 | class PreloaderTest extends Test 10 | { 11 | #if flash 12 | @Ignored 13 | #end 14 | public function test_new_() 15 | { 16 | // TODO: Confirm functionality 17 | 18 | #if !flash 19 | var preloader = new Preloader(); 20 | var exists = preloader; 21 | 22 | Assert.notNull(exists); 23 | #end 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /tests/assets/Tests.hx: -------------------------------------------------------------------------------- 1 | import utest.Runner; 2 | import utest.ui.Report; 3 | 4 | class Tests 5 | { 6 | public static function main() 7 | { 8 | var runner = new Runner(); 9 | runner.addCase(new AssetsTest()); 10 | Report.create(runner); 11 | runner.run(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /tests/assets/src/assets/1x1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/tests/assets/src/assets/1x1.png -------------------------------------------------------------------------------- /tests/bitmapdata/Tests.hx: -------------------------------------------------------------------------------- 1 | import utest.Runner; 2 | import utest.ui.Report; 3 | 4 | class Tests 5 | { 6 | public static function main() 7 | { 8 | var runner = new Runner(); 9 | runner.addCase(new BitmapDataChannelTest()); 10 | runner.addCase(new BitmapDataTest()); 11 | runner.addCase(new JPEGEncoderOptionsTest()); 12 | runner.addCase(new PNGEncoderOptionsTest()); 13 | runner.addCase(new BitmapDataFileIOTest()); 14 | Report.create(runner); 15 | runner.run(); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/bitmapdata/src/BitmapDataChannelTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.display.BitmapDataChannel; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class BitmapDataChannelTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (BitmapDataChannel.ALPHA) 12 | { 13 | case BitmapDataChannel.ALPHA, BitmapDataChannel.BLUE, BitmapDataChannel.GREEN, BitmapDataChannel.RED: 14 | Assert.isTrue(true); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/bitmapdata/src/JPEGEncoderOptionsTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.display.JPEGEncoderOptions; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class JPEGEncoderOptionsTest extends Test 8 | { 9 | public function test_quality() 10 | { 11 | var jpegEncoderOptions = new JPEGEncoderOptions(); 12 | var exists = jpegEncoderOptions; 13 | 14 | Assert.notNull(exists); 15 | Assert.equals(80, jpegEncoderOptions.quality); 16 | 17 | var jpegEncoderOptions = new JPEGEncoderOptions(100); 18 | Assert.equals(100, jpegEncoderOptions.quality); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /tests/bitmapdata/src/PNGEncoderOptionsTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.display.PNGEncoderOptions; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class PNGEncoderOptionsTest extends Test 8 | { 9 | public function test_fastCompression() 10 | { 11 | var pngEncoderOptions = new PNGEncoderOptions(); 12 | var exists = pngEncoderOptions; 13 | 14 | Assert.notNull(exists); 15 | Assert.isFalse(pngEncoderOptions.fastCompression); 16 | 17 | var pngEncoderOptions = new PNGEncoderOptions(true); 18 | Assert.isTrue(pngEncoderOptions.fastCompression); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /tests/displayobject/Tests.hx: -------------------------------------------------------------------------------- 1 | import utest.Runner; 2 | import utest.ui.Report; 3 | 4 | class Tests 5 | { 6 | public static function main() 7 | { 8 | var runner = new Runner(); 9 | runner.addCase(new BitmapTest()); 10 | runner.addCase(new BlendModeTest()); 11 | runner.addCase(new DisplayObjectContainerTest()); 12 | runner.addCase(new DisplayObjectTest()); 13 | runner.addCase(new FocusEventTest()); 14 | runner.addCase(new InteractiveObjectTest()); 15 | runner.addCase(new PixelSnappingTest()); 16 | runner.addCase(new ShapeTest()); 17 | runner.addCase(new SpriteTest()); 18 | Report.create(runner); 19 | runner.run(); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /tests/displayobject/src/BlendModeTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.display.BlendMode; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class BlendModeTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (BlendMode.SUBTRACT) 12 | { 13 | case BlendMode.ADD, BlendMode.ALPHA, BlendMode.DARKEN, BlendMode.DIFFERENCE, BlendMode.ERASE, BlendMode.HARDLIGHT, BlendMode.INVERT, 14 | BlendMode.LAYER, BlendMode.LIGHTEN, BlendMode.MULTIPLY, BlendMode.NORMAL, BlendMode.OVERLAY, BlendMode.SCREEN, BlendMode.SUBTRACT, 15 | BlendMode.SHADER: 16 | Assert.isTrue(true); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /tests/displayobject/src/PixelSnappingTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.display.PixelSnapping; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class PixelSnappingTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (PixelSnapping.NEVER) 12 | { 13 | case PixelSnapping.ALWAYS, PixelSnapping.AUTO, PixelSnapping.NEVER: 14 | Assert.isTrue(true); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/displayobject/src/ShapeTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.display.Shape; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class ShapeTest extends Test 8 | { 9 | public function test_new_() 10 | { 11 | var shape = new Shape(); 12 | 13 | var g1 = shape.graphics; 14 | var g2 = shape.graphics; 15 | 16 | Assert.notNull(g1); 17 | Assert.notNull(g2); 18 | 19 | Assert.equals(g1, g2); 20 | } 21 | 22 | public function test_graphics() 23 | { 24 | var shape = new Shape(); 25 | 26 | var g1 = shape.graphics; 27 | var g2 = shape.graphics; 28 | 29 | Assert.notNull(g1); 30 | Assert.notNull(g2); 31 | 32 | Assert.equals(g1, g2); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /tests/errors/Tests.hx: -------------------------------------------------------------------------------- 1 | import utest.Runner; 2 | import utest.ui.Report; 3 | 4 | class Tests 5 | { 6 | public static function main() 7 | { 8 | var runner = new Runner(); 9 | runner.addCase(new ArgumentErrorTest()); 10 | runner.addCase(new AsyncErrorEventTest()); 11 | runner.addCase(new EOFErrorTest()); 12 | runner.addCase(new ErrorEventTest()); 13 | runner.addCase(new ErrorTest()); 14 | runner.addCase(new IllegalOperationErrorTest()); 15 | runner.addCase(new IOErrorEventTest()); 16 | runner.addCase(new IOErrorTest()); 17 | runner.addCase(new RangeErrorTest()); 18 | runner.addCase(new SecurityErrorTest()); 19 | runner.addCase(new TypeErrorTest()); 20 | Report.create(runner); 21 | runner.run(); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /tests/errors/src/ArgumentErrorTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.errors.ArgumentError; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class ArgumentErrorTest extends Test 8 | { 9 | public function test_new_() 10 | { 11 | // TODO: Confirm functionality 12 | 13 | var argumentError = new ArgumentError(); 14 | Assert.notNull(argumentError); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /tests/errors/src/AsyncErrorEventTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.events.AsyncErrorEvent; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class AsyncErrorEventTest extends Test 8 | { 9 | public function test_error() 10 | { 11 | // TODO: Confirm functionality 12 | 13 | var asyncErrorEvent = new AsyncErrorEvent(AsyncErrorEvent.ASYNC_ERROR); 14 | var exists = asyncErrorEvent.error; 15 | 16 | Assert.isNull(exists); 17 | } 18 | 19 | public function test_new_() 20 | { 21 | // TODO: Confirm functionality 22 | 23 | var asyncErrorEvent = new AsyncErrorEvent(AsyncErrorEvent.ASYNC_ERROR); 24 | 25 | Assert.notNull(asyncErrorEvent); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /tests/errors/src/EOFErrorTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.errors.EOFError; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class EOFErrorTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | // TODO: Confirm functionality 12 | 13 | var eofError = new EOFError(); 14 | Assert.notNull(eofError); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /tests/errors/src/ErrorEventTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.events.ErrorEvent; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class ErrorEventTest extends Test 8 | { 9 | public function test_errorID() 10 | { 11 | // TODO: Confirm functionality 12 | 13 | var errorEvent = new ErrorEvent(ErrorEvent.ERROR); 14 | var exists = errorEvent.errorID; 15 | 16 | Assert.notNull(exists); 17 | } 18 | 19 | public function test_new_() 20 | { 21 | // TODO: Confirm functionality 22 | 23 | var errorEvent = new ErrorEvent(ErrorEvent.ERROR); 24 | Assert.notNull(errorEvent); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /tests/errors/src/IOErrorEventTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.events.IOErrorEvent; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class IOErrorEventTest extends Test 8 | { 9 | public function test_new_() 10 | { 11 | // TODO: Confirm functionality 12 | 13 | var ioErrorEvent = new IOErrorEvent(IOErrorEvent.IO_ERROR); 14 | Assert.notNull(ioErrorEvent); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /tests/errors/src/IOErrorTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.errors.IOError; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class IOErrorTest extends Test 8 | { 9 | public function test_new_() 10 | { 11 | // TODO: Confirm functionality 12 | 13 | var ioError = new IOError(); 14 | Assert.notNull(ioError); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /tests/errors/src/IllegalOperationErrorTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.errors.IllegalOperationError; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class IllegalOperationErrorTest extends Test 8 | { 9 | public function test_new_() 10 | { 11 | // TODO: Confirm functionality 12 | 13 | var illegalOperationError = new IllegalOperationError(); 14 | Assert.notNull(illegalOperationError); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /tests/errors/src/RangeErrorTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.errors.RangeError; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class RangeErrorTest extends Test 8 | { 9 | public function test_new_() 10 | { 11 | // TODO: Confirm functionality 12 | 13 | var rangeError = new RangeError(); 14 | Assert.notNull(rangeError); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /tests/errors/src/SecurityErrorTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.errors.SecurityError; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class SecurityErrorTest extends Test 8 | { 9 | public function test_new_() 10 | { 11 | // TODO: Confirm functionality 12 | 13 | var securityError = new SecurityError(); 14 | Assert.notNull(securityError); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /tests/errors/src/TypeErrorTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.errors.TypeError; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class TypeErrorTest extends Test 8 | { 9 | public function test_new_() 10 | { 11 | // TODO: Confirm functionality 12 | 13 | var typeError = new TypeError(); 14 | Assert.notNull(typeError); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /tests/eventdispatcher/Tests.hx: -------------------------------------------------------------------------------- 1 | import utest.Runner; 2 | import utest.ui.Report; 3 | 4 | class Tests 5 | { 6 | public static function main() 7 | { 8 | var runner = new Runner(); 9 | runner.addCase(new DataEventTest()); 10 | runner.addCase(new EventDispatcherTest()); 11 | runner.addCase(new EventPhaseTest()); 12 | runner.addCase(new EventTest()); 13 | runner.addCase(new ProgressEventTest()); 14 | runner.addCase(new TextEventTest()); 15 | Report.create(runner); 16 | runner.run(); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /tests/eventdispatcher/src/DataEventTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.events.DataEvent; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class DataEventTest extends Test 8 | { 9 | public function test_data() 10 | { 11 | // TODO: Confirm functionality 12 | 13 | var dataEvent = new DataEvent(DataEvent.DATA); 14 | var exists = dataEvent.data; 15 | 16 | Assert.notNull(exists); 17 | } 18 | 19 | public function test_new_() 20 | { 21 | // TODO: Confirm functionality 22 | 23 | var dataEvent = new DataEvent(DataEvent.DATA); 24 | 25 | Assert.notNull(dataEvent); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /tests/eventdispatcher/src/EventPhaseTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.events.EventPhase; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class EventPhaseTest extends Test 8 | { 9 | public function test() 10 | { 11 | switch (EventPhase.CAPTURING_PHASE) 12 | { 13 | case EventPhase.CAPTURING_PHASE, EventPhase.AT_TARGET, EventPhase.BUBBLING_PHASE: 14 | Assert.isTrue(true); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/eventdispatcher/src/TextEventTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.events.TextEvent; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class TextEventTest extends Test 8 | { 9 | public function test_text() 10 | { 11 | // TODO: Confirm functionality 12 | 13 | var textEvent = new TextEvent(TextEvent.LINK); 14 | var exists = textEvent.text; 15 | 16 | Assert.notNull(exists); 17 | } 18 | 19 | public function test_new_() 20 | { 21 | // TODO: Confirm functionality 22 | 23 | var textEvent = new TextEvent(TextEvent.LINK); 24 | Assert.notNull(textEvent); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /tests/externalinterface/Tests.hx: -------------------------------------------------------------------------------- 1 | import utest.Runner; 2 | import utest.ui.Report; 3 | 4 | class Tests 5 | { 6 | public static function main() 7 | { 8 | var runner = new Runner(); 9 | runner.addCase(new ExternalInterfaceTest()); 10 | Report.create(runner); 11 | runner.run(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /tests/filereference/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/tests/filereference/.gitignore -------------------------------------------------------------------------------- /tests/filters/Tests.hx: -------------------------------------------------------------------------------- 1 | import utest.Runner; 2 | import utest.ui.Report; 3 | 4 | class Tests 5 | { 6 | public static function main() 7 | { 8 | var runner = new Runner(); 9 | runner.addCase(new BitmapFilterQualityTest()); 10 | runner.addCase(new BitmapFilterTest()); 11 | runner.addCase(new BitmapFilterTypeTest()); 12 | runner.addCase(new BlurFilterTest()); 13 | runner.addCase(new ColorMatrixFilterTest()); 14 | runner.addCase(new DropShadowFilterTest()); 15 | runner.addCase(new GlowFilterTest()); 16 | runner.addCase(new ShaderFilterTest()); 17 | Report.create(runner); 18 | runner.run(); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /tests/filters/src/BitmapFilterQualityTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.filters.BitmapFilterQuality; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class BitmapFilterQualityTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (BitmapFilterQuality.HIGH) 12 | { 13 | case BitmapFilterQuality.HIGH, BitmapFilterQuality.MEDIUM, BitmapFilterQuality.LOW: 14 | Assert.isTrue(true); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/filters/src/BitmapFilterTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.filters.BlurFilter; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class BitmapFilterTest extends Test 8 | { 9 | public function test_new_() 10 | { 11 | // TODO: Confirm functionality 12 | 13 | var bitmapFilter = new BlurFilter(); 14 | Assert.notNull(bitmapFilter); 15 | } 16 | 17 | public function test_clone() 18 | { 19 | // TODO: Confirm functionality 20 | 21 | var bitmapFilter = new BlurFilter(); 22 | var exists = bitmapFilter.clone; 23 | 24 | Assert.notNull(exists); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /tests/filters/src/BitmapFilterTypeTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.filters.BitmapFilterType; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class BitmapFilterTypeTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (BitmapFilterType.FULL) 12 | { 13 | case BitmapFilterType.FULL, BitmapFilterType.INNER, BitmapFilterType.OUTER: 14 | Assert.isTrue(true); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/functional/.gitignore: -------------------------------------------------------------------------------- 1 | build -------------------------------------------------------------------------------- /tests/functional/assets/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/tests/functional/assets/.gitignore -------------------------------------------------------------------------------- /tests/functional/assets/BlendCircle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/tests/functional/assets/BlendCircle.png -------------------------------------------------------------------------------- /tests/functional/assets/BlendSquare.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/tests/functional/assets/BlendSquare.png -------------------------------------------------------------------------------- /tests/functional/assets/OwlAlpha.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/tests/functional/assets/OwlAlpha.png -------------------------------------------------------------------------------- /tests/functional/assets/data.utf8: -------------------------------------------------------------------------------- 1 | abc~¢ߡmnoऐऑ豈xyzퟠ裂123 -------------------------------------------------------------------------------- /tests/functional/assets/openfl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/tests/functional/assets/openfl.png -------------------------------------------------------------------------------- /tests/functional/assets/scale9Grid.fla: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/tests/functional/assets/scale9Grid.fla -------------------------------------------------------------------------------- /tests/functional/assets/scale9Grid.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/tests/functional/assets/scale9Grid.swf -------------------------------------------------------------------------------- /tests/functional/assets/unifont-8.0.01.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/tests/functional/assets/unifont-8.0.01.ttf -------------------------------------------------------------------------------- /tests/functional/build.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import hxp.*; 4 | 5 | class Build extends Script 6 | { 7 | public function new() 8 | { 9 | super(); 10 | 11 | // TODO: Headless run? 12 | 13 | if (command == "default") 14 | { 15 | // command = "test"; 16 | command = "build"; 17 | } 18 | 19 | if (commandArgs.length == 0) 20 | { 21 | commandArgs.push("neko"); 22 | } 23 | 24 | System.runCommand("", "haxelib", ["run", "lime", command].concat(commandArgs)); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /tests/functional/project.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /tests/geom/Tests.hx: -------------------------------------------------------------------------------- 1 | import utest.Runner; 2 | import utest.ui.Report; 3 | 4 | class Tests 5 | { 6 | public static function main() 7 | { 8 | var runner = new Runner(); 9 | runner.addCase(new ColorTransformTest()); 10 | runner.addCase(new Matrix3DTest()); 11 | runner.addCase(new MatrixTest()); 12 | runner.addCase(new Orientation3DTest()); 13 | runner.addCase(new PerspectiveProjectionTest()); 14 | runner.addCase(new PointTest()); 15 | runner.addCase(new RectangleTest()); 16 | runner.addCase(new TransformTest()); 17 | runner.addCase(new Utils3DTest()); 18 | runner.addCase(new Vector3DTest()); 19 | Report.create(runner); 20 | runner.run(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /tests/geom/src/Orientation3DTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.geom.Orientation3D; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class Orientation3DTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (Orientation3D.AXIS_ANGLE) 12 | { 13 | case Orientation3D.AXIS_ANGLE, Orientation3D.EULER_ANGLES, Orientation3D.QUATERNION: 14 | Assert.isTrue(true); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/geom/src/Utils3DTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.geom.Utils3D; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class Utils3DTest extends Test 8 | { 9 | public function test_projectVector() 10 | { 11 | // TODO: Confirm functionality 12 | 13 | var exists = Utils3D.projectVector; 14 | 15 | Assert.notNull(exists); 16 | } 17 | 18 | public function test_projectVectors() 19 | { 20 | // TODO: Confirm functionality 21 | 22 | var exists = Utils3D.projectVectors; 23 | 24 | Assert.notNull(exists); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /tests/globalization/Tests.hx: -------------------------------------------------------------------------------- 1 | import utest.Runner; 2 | import utest.ui.Report; 3 | 4 | class Tests 5 | { 6 | public static function main() 7 | { 8 | var runner = new Runner(); 9 | runner.addCase(new DateTimeFormatterTest()); 10 | runner.addCase(new DateTimeNameContextTest()); 11 | runner.addCase(new DateTimeNameStyleTest()); 12 | runner.addCase(new DateTimeStyleTest()); 13 | runner.addCase(new LastOperationStatusTest()); 14 | Report.create(runner); 15 | runner.run(); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/globalization/src/DateTimeNameContextTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.globalization.DateTimeNameContext; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class DateTimeNameContextTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (DateTimeNameContext.FORMAT) 12 | { 13 | case DateTimeNameContext.FORMAT, DateTimeNameContext.STANDALONE: 14 | Assert.isTrue(true); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/globalization/src/DateTimeNameStyleTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.globalization.DateTimeNameStyle; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class DateTimeNameStyleTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (DateTimeNameStyle.FULL) 12 | { 13 | case DateTimeNameStyle.FULL, DateTimeNameStyle.LONG_ABBREVIATION, DateTimeNameStyle.SHORT_ABBREVIATION: 14 | Assert.isTrue(true); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/globalization/src/DateTimeStyleTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.globalization.DateTimeStyle; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class DateTimeStyleTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (DateTimeStyle.CUSTOM) 12 | { 13 | case DateTimeStyle.CUSTOM, DateTimeStyle.LONG, DateTimeStyle.MEDIUM, DateTimeStyle.NONE, DateTimeStyle.SHORT: 14 | Assert.isTrue(true); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/graphics/src/CapsStyleTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.display.CapsStyle; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class CapsStyleTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (CapsStyle.SQUARE) 12 | { 13 | case CapsStyle.ROUND, CapsStyle.NONE, CapsStyle.SQUARE: 14 | Assert.isTrue(true); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/graphics/src/GradientTypeTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.display.GradientType; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class GradientTypeTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | // Assert.equals (0, Type.enumIndex (GradientType.LINEAR)); 12 | // Assert.equals (1, Type.enumIndex (GradientType.RADIAL)); 13 | 14 | switch (GradientType.RADIAL) 15 | { 16 | case GradientType.LINEAR, GradientType.RADIAL: 17 | Assert.isTrue(true); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /tests/graphics/src/GraphicsEndFillTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.display.GraphicsEndFill; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class GraphicsEndFillTest extends Test 8 | { 9 | public function test_new_() 10 | { 11 | // TODO: Confirm functionality 12 | 13 | var endFill = new GraphicsEndFill(); 14 | 15 | Assert.notNull(endFill); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/graphics/src/GraphicsPathCommandTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.display.GraphicsPathCommand; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class GraphicsPathCommandTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (GraphicsPathCommand.NO_OP) 12 | { 13 | case GraphicsPathCommand.NO_OP, GraphicsPathCommand.MOVE_TO, GraphicsPathCommand.LINE_TO, GraphicsPathCommand.CURVE_TO, 14 | GraphicsPathCommand.WIDE_MOVE_TO, GraphicsPathCommand.WIDE_LINE_TO /*, GraphicsPathCommand.CUBIC_CURVE_TO*/: 15 | Assert.isTrue(true); 16 | default: 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /tests/graphics/src/GraphicsPathWindingTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.display.GraphicsPathWinding; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class GraphicsPathWindingTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (GraphicsPathWinding.NON_ZERO) 12 | { 13 | case GraphicsPathWinding.EVEN_ODD, GraphicsPathWinding.NON_ZERO: 14 | Assert.isTrue(true); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/graphics/src/InterpolationMethodTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.display.InterpolationMethod; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class InterpolationMethodTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (InterpolationMethod.RGB) 12 | { 13 | case InterpolationMethod.LINEAR_RGB, InterpolationMethod.RGB: 14 | Assert.isTrue(true); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/graphics/src/JointStyleTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.display.JointStyle; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class JointStyleTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (JointStyle.ROUND) 12 | { 13 | case JointStyle.BEVEL, JointStyle.MITER, JointStyle.ROUND: 14 | Assert.isTrue(true); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/graphics/src/LineScaleModeTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.display.LineScaleMode; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class LineScaleModeTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (LineScaleMode.VERTICAL) 12 | { 13 | case LineScaleMode.HORIZONTAL, LineScaleMode.NONE, LineScaleMode.NORMAL, LineScaleMode.VERTICAL: 14 | Assert.isTrue(true); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/graphics/src/SpreadMethodTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.display.SpreadMethod; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class SpreadMethodTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (SpreadMethod.REPEAT) 12 | { 13 | case SpreadMethod.PAD, SpreadMethod.REFLECT, SpreadMethod.REPEAT: 14 | Assert.isTrue(true); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/graphics/src/TriangleCullingTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.display.TriangleCulling; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class TriangleCullingTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (TriangleCulling.NEGATIVE) 12 | { 13 | case TriangleCulling.NEGATIVE, TriangleCulling.NONE, TriangleCulling.POSITIVE: 14 | Assert.isTrue(true); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/input/Tests.hx: -------------------------------------------------------------------------------- 1 | import utest.Runner; 2 | import utest.ui.Report; 3 | 4 | class Tests 5 | { 6 | public static function main() 7 | { 8 | var runner = new Runner(); 9 | runner.addCase(new ActivityEventTest()); 10 | runner.addCase(new GameInputEventTest()); 11 | runner.addCase(new KeyboardEventTest()); 12 | runner.addCase(new KeyboardTest()); 13 | runner.addCase(new MouseEventTest()); 14 | runner.addCase(new MouseTest()); 15 | runner.addCase(new MultitouchInputModeTest()); 16 | runner.addCase(new MultitouchTest()); 17 | runner.addCase(new TouchEventTest()); 18 | Report.create(runner); 19 | runner.run(); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /tests/input/src/ActivityEventTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.events.ActivityEvent; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class ActivityEventTest extends Test 8 | { 9 | public function test_activating() 10 | { 11 | // TODO: Confirm functionality 12 | 13 | var activityEvent = new ActivityEvent(ActivityEvent.ACTIVITY); 14 | var exists = activityEvent.activating; 15 | 16 | Assert.notNull(exists); 17 | } 18 | 19 | public function test_new_() 20 | { 21 | // TODO: Confirm functionality 22 | 23 | var activityEvent = new ActivityEvent(ActivityEvent.ACTIVITY); 24 | 25 | Assert.notNull(activityEvent); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /tests/input/src/GameInputEventTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.events.GameInputEvent; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class GameInputEventTest extends Test 8 | { 9 | public function test_device() 10 | { 11 | // TODO: Confirm functionality 12 | 13 | var gameInputEvent = new GameInputEvent(GameInputEvent.DEVICE_ADDED); 14 | var exists = gameInputEvent.device; 15 | 16 | Assert.isNull(exists); 17 | } 18 | 19 | public function test_new_() 20 | { 21 | // TODO: Confirm functionality 22 | 23 | var gameInputEvent = new GameInputEvent(GameInputEvent.DEVICE_ADDED); 24 | 25 | Assert.notNull(gameInputEvent); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /tests/input/src/KeyboardTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.ui.Keyboard; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class KeyboardTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | var exists = Keyboard.A; 12 | 13 | Assert.notNull(exists); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /tests/input/src/MouseTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.ui.Mouse; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class MouseTest extends Test 8 | { 9 | public function test_hide() 10 | { 11 | // TODO: Confirm functionality 12 | 13 | var exists = Mouse.hide; 14 | 15 | Assert.notNull(exists); 16 | } 17 | 18 | public function test_show() 19 | { 20 | // TODO: Confirm functionality 21 | 22 | var exists = Mouse.show; 23 | 24 | Assert.notNull(exists); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /tests/input/src/MultitouchInputModeTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.ui.MultitouchInputMode; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class MultitouchInputModeTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (MultitouchInputMode.GESTURE) 12 | { 13 | case MultitouchInputMode.GESTURE, MultitouchInputMode.NONE, MultitouchInputMode.TOUCH_POINT: 14 | Assert.isTrue(true); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/loader/Tests.hx: -------------------------------------------------------------------------------- 1 | import utest.Runner; 2 | import utest.ui.Report; 3 | 4 | class Tests 5 | { 6 | public static function main() 7 | { 8 | var runner = new Runner(); 9 | runner.addCase(new LoaderContextTest()); 10 | runner.addCase(new LoaderInfoTest()); 11 | runner.addCase(new LoaderTest()); 12 | runner.addCase(new UncaughtErrorEventsTest()); 13 | runner.addCase(new UncaughtErrorEventTest()); 14 | Report.create(runner); 15 | runner.run(); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/loader/src/UncaughtErrorEventTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.events.UncaughtErrorEvent; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class UncaughtErrorEventTest extends Test 8 | { 9 | public function test_info() 10 | { 11 | // TODO: Confirm functionality 12 | 13 | var uncaughtErrorEvent = new UncaughtErrorEvent(UncaughtErrorEvent.UNCAUGHT_ERROR); 14 | var exists = uncaughtErrorEvent.error; 15 | 16 | Assert.isNull(exists); 17 | } 18 | 19 | public function test_new_() 20 | { 21 | // TODO: Confirm functionality 22 | 23 | var uncaughtErrorEvent = new UncaughtErrorEvent(UncaughtErrorEvent.UNCAUGHT_ERROR); 24 | 25 | Assert.notNull(uncaughtErrorEvent); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /tests/loader/src/UncaughtErrorEventsTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.events.UncaughtErrorEvents; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class UncaughtErrorEventsTest extends Test 8 | { 9 | public function test_new_() 10 | { 11 | // TODO: Confirm functionality 12 | 13 | var uncaughtErrorEvents = new UncaughtErrorEvents(); 14 | 15 | Assert.notNull(uncaughtErrorEvents); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/movieclip/Tests.hx: -------------------------------------------------------------------------------- 1 | import utest.Runner; 2 | import utest.ui.Report; 3 | 4 | class Tests 5 | { 6 | public static function main() 7 | { 8 | var runner = new Runner(); 9 | runner.addCase(new FrameLabelTest()); 10 | runner.addCase(new MovieClipTest()); 11 | runner.addCase(new SimpleButtonTest()); 12 | Report.create(runner); 13 | runner.run(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /tests/printing/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/tests/printing/.gitignore -------------------------------------------------------------------------------- /tests/renderer-dom/Tests.hx: -------------------------------------------------------------------------------- 1 | import utest.Runner; 2 | import utest.ui.Report; 3 | 4 | class Tests 5 | { 6 | public static function main() 7 | { 8 | var runner = new Runner(); 9 | runner.addCase(new DOMElementTest()); 10 | Report.create(runner); 11 | runner.run(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /tests/renderer-dom/src/DOMElementTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.display.DOMElement; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class DOMElementTest extends Test 8 | { 9 | public function test_new_() 10 | { 11 | // TODO: Confirm functionality 12 | 13 | var domElement = new DOMElement(null); 14 | var exists = domElement; 15 | 16 | Assert.notNull(exists); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /tests/security/Tests.hx: -------------------------------------------------------------------------------- 1 | import utest.Runner; 2 | import utest.ui.Report; 3 | 4 | class Tests 5 | { 6 | public static function main() 7 | { 8 | var runner = new Runner(); 9 | runner.addCase(new ApplicationDomainTest()); 10 | runner.addCase(new SecurityDomainTest()); 11 | runner.addCase(new SecurityErrorEventTest()); 12 | Report.create(runner); 13 | runner.run(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /tests/security/src/SecurityDomainTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.system.SecurityDomain; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class SecurityDomainTest extends Test 8 | { 9 | public function test_currentDomain() 10 | { 11 | // TODO: Confirm functionality 12 | 13 | var exists = SecurityDomain.currentDomain; 14 | 15 | Assert.notNull(exists); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/security/src/SecurityErrorEventTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.events.SecurityErrorEvent; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class SecurityErrorEventTest extends Test 8 | { 9 | public function test_new_() 10 | { 11 | // TODO: Confirm functionality 12 | 13 | var securityErrorEvent = new SecurityErrorEvent(SecurityErrorEvent.SECURITY_ERROR); 14 | Assert.notNull(securityErrorEvent); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /tests/sensors/Tests.hx: -------------------------------------------------------------------------------- 1 | import utest.Runner; 2 | import utest.ui.Report; 3 | 4 | class Tests 5 | { 6 | public static function main() 7 | { 8 | var runner = new Runner(); 9 | runner.addCase(new AccelerometerEventTest()); 10 | runner.addCase(new AccelerometerTest()); 11 | Report.create(runner); 12 | runner.run(); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /tests/shader/Tests.hx: -------------------------------------------------------------------------------- 1 | import utest.Runner; 2 | import utest.ui.Report; 3 | 4 | class Tests 5 | { 6 | public static function main() 7 | { 8 | var runner = new Runner(); 9 | runner.addCase(new ShaderDataTest()); 10 | runner.addCase(new ShaderInputTest()); 11 | runner.addCase(new ShaderJobTest()); 12 | runner.addCase(new ShaderParameterTest()); 13 | runner.addCase(new ShaderParameterTypeTest()); 14 | runner.addCase(new ShaderPrecisionTest()); 15 | runner.addCase(new ShaderTest()); 16 | Report.create(runner); 17 | runner.run(); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /tests/shader/src/ShaderDataTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.display.ShaderData; 4 | import openfl.utils.ByteArray; 5 | import utest.Assert; 6 | import utest.Test; 7 | 8 | class ShaderDataTest extends Test 9 | { 10 | #if flash 11 | @Ignored 12 | #end 13 | public function test_new_() 14 | { 15 | // TODO: Confirm functionality 16 | 17 | #if !flash 18 | var shaderData = new ShaderData(new ByteArray()); 19 | var exists = shaderData; 20 | 21 | Assert.notNull(exists); 22 | #end 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /tests/shader/src/ShaderPrecisionTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.display.ShaderPrecision; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class ShaderPrecisionTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (ShaderPrecision.FAST) 12 | { 13 | case ShaderPrecision.FAST, ShaderPrecision.FULL: 14 | Assert.isTrue(true); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/sharedobject/Tests.hx: -------------------------------------------------------------------------------- 1 | import utest.Runner; 2 | import utest.ui.Report; 3 | 4 | class Tests 5 | { 6 | public static function main() 7 | { 8 | var runner = new Runner(); 9 | runner.addCase(new SharedObjectFlushStatusTest()); 10 | runner.addCase(new SharedObjectTest()); 11 | Report.create(runner); 12 | runner.run(); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /tests/sharedobject/src/SharedObjectFlushStatusTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.net.SharedObjectFlushStatus; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class SharedObjectFlushStatusTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (SharedObjectFlushStatus.FLUSHED) 12 | { 13 | case SharedObjectFlushStatus.FLUSHED, SharedObjectFlushStatus.PENDING: 14 | Assert.isTrue(true); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/socket/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/tests/socket/.gitignore -------------------------------------------------------------------------------- /tests/sound/Tests.hx: -------------------------------------------------------------------------------- 1 | import utest.Runner; 2 | import utest.ui.Report; 3 | 4 | class Tests 5 | { 6 | public static function main() 7 | { 8 | var runner = new Runner(); 9 | runner.addCase(new ID3InfoTest()); 10 | runner.addCase(new SampleDataEventTest()); 11 | runner.addCase(new SoundChannelTest()); 12 | runner.addCase(new SoundLoaderContextTest()); 13 | runner.addCase(new SoundTest()); 14 | runner.addCase(new SoundTransformTest()); 15 | Report.create(runner); 16 | runner.run(); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /tests/sound/src/SoundChannelTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.media.SoundChannel; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class SoundChannelTest extends Test 8 | { 9 | public function test_leftPeak() 10 | { 11 | Assert.isTrue(true); 12 | } 13 | 14 | public function test_position() 15 | { 16 | Assert.isTrue(true); 17 | } 18 | 19 | public function test_rightPeak() 20 | { 21 | Assert.isTrue(true); 22 | } 23 | 24 | public function test_soundTransform() 25 | { 26 | Assert.isTrue(true); 27 | } 28 | 29 | public function test_new_() 30 | { 31 | Assert.isTrue(true); 32 | } 33 | 34 | public function test_stop() 35 | { 36 | Assert.isTrue(true); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /tests/sound/src/SoundLoaderContextTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.media.SoundLoaderContext; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class SoundLoaderContextTest extends Test 8 | { 9 | public function test_bufferTime() 10 | { 11 | Assert.isTrue(true); 12 | } 13 | 14 | public function test_checkPolicyFile() 15 | { 16 | Assert.isTrue(true); 17 | } 18 | 19 | public function test_new_() 20 | { 21 | Assert.isTrue(true); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /tests/stage/Tests.hx: -------------------------------------------------------------------------------- 1 | import utest.Runner; 2 | import utest.ui.Report; 3 | 4 | class Tests 5 | { 6 | public static function main() 7 | { 8 | var runner = new Runner(); 9 | runner.addCase(new FullScreenEventTest()); 10 | runner.addCase(new StageAlignTest()); 11 | runner.addCase(new StageDisplayStateTest()); 12 | runner.addCase(new StageQualityTest()); 13 | runner.addCase(new StageScaleModeTest()); 14 | runner.addCase(new StageTest()); 15 | Report.create(runner); 16 | runner.run(); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /tests/stage/src/StageAlignTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.display.StageAlign; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class StageAlignTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (StageAlign.TOP_RIGHT) 12 | { 13 | case StageAlign.BOTTOM, StageAlign.BOTTOM_LEFT, StageAlign.BOTTOM_RIGHT, StageAlign.LEFT, StageAlign.RIGHT, StageAlign.TOP, StageAlign.TOP_LEFT, 14 | StageAlign.TOP_RIGHT: 15 | Assert.isTrue(true); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /tests/stage/src/StageDisplayStateTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.display.StageDisplayState; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class StageDisplayStateTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (StageDisplayState.NORMAL) 12 | { 13 | case StageDisplayState.FULL_SCREEN, StageDisplayState.FULL_SCREEN_INTERACTIVE, StageDisplayState.NORMAL: 14 | Assert.isTrue(true); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/stage/src/StageQualityTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.display.StageQuality; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class StageQualityTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (StageQuality.MEDIUM) 12 | { 13 | case StageQuality.BEST, StageQuality.HIGH, StageQuality.LOW, StageQuality.MEDIUM: 14 | Assert.isTrue(true); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/stage/src/StageScaleModeTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.display.StageScaleMode; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class StageScaleModeTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (StageScaleMode.SHOW_ALL) 12 | { 13 | case StageScaleMode.EXACT_FIT, StageScaleMode.NO_BORDER, StageScaleMode.NO_SCALE, StageScaleMode.SHOW_ALL: 14 | Assert.isTrue(true); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/stage3d/src/Context3DBufferUsageTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.display3D.Context3DBufferUsage; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class Context3DBufferUsageTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (Context3DBufferUsage.DYNAMIC_DRAW) 12 | { 13 | case Context3DBufferUsage.DYNAMIC_DRAW, Context3DBufferUsage.STATIC_DRAW: 14 | Assert.isTrue(true); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/stage3d/src/Context3DClearMaskTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.display3D.Context3DClearMask; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class Context3DClearMaskTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (Context3DClearMask.ALL) 12 | { 13 | case Context3DClearMask.ALL, Context3DClearMask.COLOR, Context3DClearMask.DEPTH, Context3DClearMask.STENCIL: 14 | Assert.isTrue(true); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/stage3d/src/Context3DCompareModeTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.display3D.Context3DCompareMode; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class Context3DCompareModeTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (Context3DCompareMode.ALWAYS) 12 | { 13 | case Context3DCompareMode.ALWAYS, Context3DCompareMode.EQUAL, Context3DCompareMode.GREATER, Context3DCompareMode.GREATER_EQUAL, 14 | Context3DCompareMode.LESS, Context3DCompareMode.LESS_EQUAL, Context3DCompareMode.NEVER, Context3DCompareMode.NOT_EQUAL: 15 | Assert.isTrue(true); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /tests/stage3d/src/Context3DMipFilterTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.display3D.Context3DMipFilter; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class Context3DMipFilterTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (Context3DMipFilter.MIPLINEAR) 12 | { 13 | case Context3DMipFilter.MIPLINEAR, Context3DMipFilter.MIPNEAREST, Context3DMipFilter.MIPNONE: 14 | Assert.isTrue(true); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/stage3d/src/Context3DProfileTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.display3D.Context3DProfile; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class Context3DProfileTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (Context3DProfile.BASELINE) 12 | { 13 | case Context3DProfile.BASELINE, Context3DProfile.BASELINE_CONSTRAINED, Context3DProfile.BASELINE_EXTENDED, Context3DProfile.STANDARD, 14 | Context3DProfile.STANDARD_CONSTRAINED, Context3DProfile.STANDARD_EXTENDED #if air, Context3DProfile.ENHANCED #end: 15 | Assert.isTrue(true); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /tests/stage3d/src/Context3DProgramTypeTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.display3D.Context3DProgramType; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class Context3DProgramTypeTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (Context3DProgramType.FRAGMENT) 12 | { 13 | case Context3DProgramType.FRAGMENT, Context3DProgramType.VERTEX: 14 | Assert.isTrue(true); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/stage3d/src/Context3DRenderModeTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.display3D.Context3DRenderMode; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class Context3DRenderModeTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (Context3DRenderMode.AUTO) 12 | { 13 | case Context3DRenderMode.AUTO, Context3DRenderMode.SOFTWARE: 14 | Assert.isTrue(true); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/stage3d/src/Context3DStencilActionTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.display3D.Context3DStencilAction; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class Context3DStencilActionTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (Context3DStencilAction.DECREMENT_SATURATE) 12 | { 13 | case Context3DStencilAction.DECREMENT_SATURATE, Context3DStencilAction.DECREMENT_WRAP, Context3DStencilAction.INCREMENT_SATURATE, 14 | Context3DStencilAction.INCREMENT_WRAP, Context3DStencilAction.INVERT, Context3DStencilAction.KEEP, Context3DStencilAction.SET, 15 | Context3DStencilAction.ZERO: 16 | Assert.isTrue(true); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /tests/stage3d/src/Context3DTextureFilterTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.display3D.Context3DTextureFilter; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class Context3DTextureFilterTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (Context3DTextureFilter.ANISOTROPIC16X) 12 | { 13 | case Context3DTextureFilter.ANISOTROPIC16X, Context3DTextureFilter.ANISOTROPIC2X, Context3DTextureFilter.ANISOTROPIC4X, 14 | Context3DTextureFilter.ANISOTROPIC8X, Context3DTextureFilter.LINEAR, Context3DTextureFilter.NEAREST: 15 | Assert.isTrue(true); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /tests/stage3d/src/Context3DTextureFormatTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.display3D.Context3DTextureFormat; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class Context3DTextureFormatTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (Context3DTextureFormat.BGRA) 12 | { 13 | case Context3DTextureFormat.BGRA, Context3DTextureFormat.BGRA_PACKED, Context3DTextureFormat.BGR_PACKED, Context3DTextureFormat.COMPRESSED, 14 | Context3DTextureFormat.COMPRESSED_ALPHA, Context3DTextureFormat.RGBA_HALF_FLOAT: 15 | Assert.isTrue(true); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /tests/stage3d/src/Context3DTriangleFaceTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.display3D.Context3DTriangleFace; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class Context3DTriangleFaceTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (Context3DTriangleFace.BACK) 12 | { 13 | case Context3DTriangleFace.BACK, Context3DTriangleFace.FRONT, Context3DTriangleFace.FRONT_AND_BACK, Context3DTriangleFace.NONE: 14 | Assert.isTrue(true); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/stage3d/src/Context3DVertexBufferFormatTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.display3D.Context3DVertexBufferFormat; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class Context3DVertexBufferFormatTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (Context3DVertexBufferFormat.BYTES_4) 12 | { 13 | case Context3DVertexBufferFormat.BYTES_4, Context3DVertexBufferFormat.FLOAT_1, Context3DVertexBufferFormat.FLOAT_2, 14 | Context3DVertexBufferFormat.FLOAT_3, Context3DVertexBufferFormat.FLOAT_4: 15 | Assert.isTrue(true); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /tests/stage3d/src/Context3DWrapModeTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.display3D.Context3DWrapMode; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class Context3DWrapModeTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (Context3DWrapMode.CLAMP) 12 | { 13 | case Context3DWrapMode.CLAMP, Context3DWrapMode.CLAMP_U_REPEAT_V, Context3DWrapMode.REPEAT, Context3DWrapMode.REPEAT_U_CLAMP_V: 14 | Assert.isTrue(true); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/system/Tests.hx: -------------------------------------------------------------------------------- 1 | import utest.Runner; 2 | import utest.ui.Report; 3 | 4 | class Tests 5 | { 6 | public static function main() 7 | { 8 | #if (!flash && lime) 9 | openfl.utils._internal.Lib.current = openfl.Lib.current; 10 | #end 11 | 12 | var runner = new Runner(); 13 | runner.addCase(new CapabilitiesTest()); 14 | runner.addCase(new SystemTest()); 15 | Report.create(runner); 16 | runner.run(); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /tests/system/src/SystemTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.system.System; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class SystemTest extends Test 8 | { 9 | public function test_totalMemory() 10 | { 11 | // TODO: Confirm functionality 12 | 13 | var exists = System.totalMemory; 14 | 15 | Assert.notNull(exists); 16 | } 17 | 18 | public function test_exit() 19 | { 20 | // TODO: Confirm functionality 21 | 22 | var exists = System.exit; 23 | 24 | Assert.notNull(exists); 25 | } 26 | 27 | public function test_gc() 28 | { 29 | // TODO: Confirm functionality 30 | 31 | var exists = System.gc; 32 | 33 | Assert.notNull(exists); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /tests/telemetry/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/tests/telemetry/.gitignore -------------------------------------------------------------------------------- /tests/textfield/src/AntiAliasTypeTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.text.AntiAliasType; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class AntiAliasTypeTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (AntiAliasType.ADVANCED) 12 | { 13 | case AntiAliasType.ADVANCED, AntiAliasType.NORMAL: 14 | Assert.isTrue(true); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/textfield/src/FontStyleTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.text.FontStyle; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class FontStyleTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (FontStyle.BOLD) 12 | { 13 | case FontStyle.BOLD, FontStyle.BOLD_ITALIC, FontStyle.ITALIC, FontStyle.REGULAR: 14 | Assert.isTrue(true); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/textfield/src/FontTypeTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.text.FontType; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class FontTypeTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (FontType.DEVICE) 12 | { 13 | case FontType.DEVICE, FontType.EMBEDDED, FontType.EMBEDDED_CFF: 14 | Assert.isTrue(true); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/textfield/src/GridFitTypeTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.text.GridFitType; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class GridFitTypeTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (GridFitType.NONE) 12 | { 13 | case GridFitType.NONE, GridFitType.PIXEL, GridFitType.SUBPIXEL: 14 | Assert.isTrue(true); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/textfield/src/TextFieldAutoSizeTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.text.TextFieldAutoSize; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class TextFieldAutoSizeTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (TextFieldAutoSize.CENTER) 12 | { 13 | case TextFieldAutoSize.CENTER, TextFieldAutoSize.LEFT, TextFieldAutoSize.NONE, TextFieldAutoSize.RIGHT: 14 | Assert.isTrue(true); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/textfield/src/TextFieldTypeTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.text.TextFieldType; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class TextFieldTypeTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (TextFieldType.DYNAMIC) 12 | { 13 | case TextFieldType.DYNAMIC, TextFieldType.INPUT: 14 | Assert.isTrue(true); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/textfield/src/TextFormatAlignTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.text.TextFormatAlign; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class TextFormatAlignTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (TextFormatAlign.CENTER) 12 | { 13 | case TextFormatAlign.CENTER, TextFormatAlign.JUSTIFY, TextFormatAlign.LEFT, TextFormatAlign.RIGHT, TextFormatAlign.START, TextFormatAlign.END: 14 | Assert.isTrue(true); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/tilemap/Tests.hx: -------------------------------------------------------------------------------- 1 | import utest.Runner; 2 | import utest.ui.Report; 3 | 4 | class Tests 5 | { 6 | public static function main() 7 | { 8 | var runner = new Runner(); 9 | runner.addCase(new TilemapTest()); 10 | runner.addCase(new TilesetTest()); 11 | runner.addCase(new TileTest()); 12 | Report.create(runner); 13 | runner.run(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /tests/urlloader/Tests.hx: -------------------------------------------------------------------------------- 1 | import utest.Runner; 2 | import utest.ui.Report; 3 | 4 | class Tests 5 | { 6 | public static function main() 7 | { 8 | var runner = new Runner(); 9 | runner.addCase(new URLLoaderDataFormatTest()); 10 | runner.addCase(new URLLoaderTest()); 11 | Report.create(runner); 12 | runner.run(); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /tests/urlloader/src/URLLoaderDataFormatTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.net.URLLoaderDataFormat; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class URLLoaderDataFormatTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (URLLoaderDataFormat.BINARY) 12 | { 13 | case URLLoaderDataFormat.BINARY, URLLoaderDataFormat.TEXT, URLLoaderDataFormat.VARIABLES: 14 | Assert.isTrue(true); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/urlrequest/Tests.hx: -------------------------------------------------------------------------------- 1 | import utest.Runner; 2 | import utest.ui.Report; 3 | 4 | class Tests 5 | { 6 | public static function main() 7 | { 8 | var runner = new Runner(); 9 | runner.addCase(new HTTPStatusEventTest()); 10 | runner.addCase(new NetStatusEventTest()); 11 | runner.addCase(new URLRequestHeaderTest()); 12 | runner.addCase(new URLRequestMethodTest()); 13 | runner.addCase(new URLRequestTest()); 14 | runner.addCase(new URLVariablesTest()); 15 | Report.create(runner); 16 | runner.run(); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /tests/urlrequest/src/NetStatusEventTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.events.NetStatusEvent; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class NetStatusEventTest extends Test 8 | { 9 | public function test_info() 10 | { 11 | // TODO: Confirm functionality 12 | 13 | var netStatusEvent = new NetStatusEvent(NetStatusEvent.NET_STATUS); 14 | var exists = netStatusEvent.info; 15 | 16 | Assert.isNull(exists); 17 | } 18 | 19 | public function test_new_() 20 | { 21 | // TODO: Confirm functionality 22 | 23 | var netStatusEvent = new NetStatusEvent(NetStatusEvent.NET_STATUS); 24 | 25 | Assert.notNull(netStatusEvent); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /tests/urlrequest/src/URLRequestMethodTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.net.URLRequestMethod; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class URLRequestMethodTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (URLRequestMethod.DELETE) 12 | { 13 | case URLRequestMethod.DELETE, URLRequestMethod.GET, URLRequestMethod.HEAD, URLRequestMethod.OPTIONS, URLRequestMethod.POST, URLRequestMethod.PUT: 14 | Assert.isTrue(true); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/urlrequest/src/URLVariablesTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.net.URLVariables; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class URLVariablesTest extends Test 8 | { 9 | public function test_new_() 10 | { 11 | // TODO: Confirm functionality 12 | 13 | var urlVariables = new URLVariables(); 14 | Assert.notNull(urlVariables); 15 | } 16 | 17 | public function test_decode() 18 | { 19 | // TODO: Confirm functionality 20 | 21 | var urlVariables = new URLVariables(); 22 | var exists = urlVariables.decode; 23 | 24 | Assert.notNull(exists); 25 | } 26 | /*public function toString () { 27 | 28 | 29 | 30 | }*/ 31 | } 32 | -------------------------------------------------------------------------------- /tests/urlstream/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/tests/urlstream/.gitignore -------------------------------------------------------------------------------- /tests/utils/Tests.hx: -------------------------------------------------------------------------------- 1 | import utest.Runner; 2 | import utest.ui.Report; 3 | 4 | class Tests 5 | { 6 | public static function main() 7 | { 8 | var runner = new Runner(); 9 | runner.addCase(new ByteArrayTest()); 10 | runner.addCase(new CompressionAlgorithmTest()); 11 | runner.addCase(new DictionaryTest()); 12 | runner.addCase(new EndianTest()); 13 | runner.addCase(new MemoryTest()); 14 | runner.addCase(new NamespaceTest()); 15 | runner.addCase(new QNameTest()); 16 | runner.addCase(new TimerEventTest()); 17 | runner.addCase(new TimerTest()); 18 | runner.addCase(new VectorTest()); 19 | // runner.addCase(new TimerAsyncTest()); 20 | Report.create(runner); 21 | runner.run(); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /tests/utils/src/CompressionAlgorithmTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.utils.CompressionAlgorithm; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class CompressionAlgorithmTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (CompressionAlgorithm.DEFLATE) 12 | { 13 | case CompressionAlgorithm.DEFLATE, CompressionAlgorithm.ZLIB, CompressionAlgorithm.LZMA: 14 | Assert.isTrue(true); 15 | default: // CompressionAlgorithm.GZIP: 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /tests/utils/src/EndianTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.utils.Endian; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class EndianTest extends Test 8 | { 9 | public function test_test() 10 | { 11 | switch (Endian.BIG_ENDIAN) 12 | { 13 | case Endian.BIG_ENDIAN, Endian.LITTLE_ENDIAN: 14 | Assert.isTrue(true); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tests/utils/src/MemoryTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import utest.Assert; 4 | import utest.Test; 5 | 6 | class MemoryTest extends Test {} 7 | -------------------------------------------------------------------------------- /tests/utils/src/TimerEventTest.hx: -------------------------------------------------------------------------------- 1 | package; 2 | 3 | import openfl.events.TimerEvent; 4 | import utest.Assert; 5 | import utest.Test; 6 | 7 | class TimerEventTest extends Test 8 | { 9 | public function test_new_() 10 | { 11 | // TODO: Confirm functionality 12 | 13 | var timerEvent = new TimerEvent(TimerEvent.TIMER); 14 | Assert.notNull(timerEvent); 15 | } 16 | 17 | public function test_updateAfterEvent() 18 | { 19 | // TODO: Confirm functionality 20 | 21 | var timerEvent = new TimerEvent(TimerEvent.TIMER); 22 | var exists = timerEvent.updateAfterEvent; 23 | 24 | Assert.notNull(exists); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /tests/video/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/underdoggit1/openfl/b2ccee0c355b34db09037d5f356dff9060d2e070/tests/video/.gitignore --------------------------------------------------------------------------------