OpenFL 8.0.0 已正式发布,OpenFL 是一个使用 TS,Haxe 和 JS 实现的游戏和应用程序交互开发库。OpenFL 包含两个版本,第一种版本主要是使用 haxelib 分发的,并混合了对 Windows,MacOS,Linux,iOS,Android,Flash,HTML5 和 WebAssembly 的原生支持;另一种是使用 NPM 进行分发,并且可用于 TypeScript,JavaScript(EcmaScript 5 或 6+)或 Haxe,OpenFL 的 NPM 版本旨在用于浏览器环境。
OpenFL 8.0.0 包含大量修复和改进,详情如下:
Deprecated
DOMSprite
,OpenGLView
andTileArray
Updated to Lime 6.3.*
Added
DisplayObjectShader
,GraphicsShader
,BitmapFilterShader
Added
graphics.drawQuads
andgraphics.beginShaderFill
Added
DOMElement
,GraphicsQuadPath
andGraphicsShaderPath
Added
displayObject.shader
anddisplayObject.invalidate()
Added support for inheritance within
Shader
classesAdded initial support for
displayObject.cacheAsBitmapMatrix
Added missing "NetStream.Seek.Complete" event in
NetStream
(Beta) Added
RenderEvent
for customDisplayObject
renderingImproved the behavior of
PerspectiveProjection
to be more accurateImproved
graphics.drawTriangles
to support running in OpenGLImproved
cacheAsBitmap
to support OpenGL render-to-textureImproved filters to support OpenGL shader-based filters
Improved
Shader
to support uploading of custom attributesImproved
Shader
to support enabling or constant valuesImproved the behavior of
buttonMode
onMovieClip
objectsImproved the performance of
openfl.Vector
on native targetsImproved
Shader
to generate strictly-typed fieldsImproved
Graphics
to upscale only (to prevent reallocation)Improved updating of object transform information internally
Improved behavior of window focus on desktop targets
Improved the behavior of numpad
ENTER
to be more consistentImproved the playback of nested
MovieClip
animationsImproved the performance of
displayObject.getBounds
Improved the handling of inputs to
beginGradientFill
Improved support for
byteArray.readObject
andwriteObject
Fixed the return type of
BitmapData.fromBytes
on JSFixed missing
password
field in SWF-basedTextField
objectsFixed some minor issues in
colorTransform.concat
Fixed some incorrect values in
TextField
scrollV
/scrollH
Fixed use of current
defaultTextFormat
when usingsetTextFormat
Fixed the behavior of
restrict
/maxChars
to affect user input onlyFixed use of
context.resetTransform
for certain browsersFixed support for use of
matrix
andclipRect
inbitmapData.draw
Fixed some issues in mask support in the OpenGL and Canvas renderers
Fixed a minor issue in
DisplayObject
event bubblingFixed initialization of socket flags if a socket is lost on IPv6
Fixed setting
colorTransform
in someMovieClip
animationsFixed some discrepancies in the externs for the OpenFL API
Fixed an additional render that occurred on some
drawTriangles
callsFixed performance regression in
Tilemap
Fixed initialization of some AGAL register values
Fixed ignoring of up/down key events in single-line
TextField
objectsFixed the value of
textWidth
/textHeight
when not typeINPUT
Fixed use of
cacheAsBitmap
onTextField
objectsFixed support for transparent backend in OpenFL preloader class
Fixed possible errors in HTML parser on text with invalid HTML
Fixed incorrect bounds when rendering
SimpleButton
on canvasFixed JPEG2 and JPEG3 tag parsing in older SWF versions
Fixed support for
graphics.drawRect
with negative coordinatesFixed an issue where EOF on sockets could close the socket prematurely
Fixed concatenation of two empty
openfl.Vector
objects
更多更新说明请查看:https://github.com/openfl/openfl/blob/develop/CHANGELOG.md#800-03042018
源码下载:https://github.com/openfl/openfl/releases/tag/8.0.0