awayfl / swf-loader Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
In AwayJS UIComponents like "InputText" or "ComboBox" are not supported yet.
Often they export and render ok, but the interactivity is broken.
Workaround: use custom-components instead.
In AwayJS we have no default fonts yet.
So when a Textfield is not connected to a embed font, it will fail to render any chars. If it is connected to a embed font, but uses chars that arenot part of the char-range set for the font, the char will be missing.
Workaround: make sure all textfield are connected to embed fonts, and that all chars that are used by the textfield are embed in the font.
In AwayJS static textfields with vertical alignment are not yet supported.
The XML package is not yet supported.
Textfields with AA-settings other than "AA for animation" do scale different in AwayJS.
They strech, rather than adjusting the textfields bounds.
Workaround: Only use textfields with "AA for animation"
The constructors of a custom class / symbol is not executed at the correct time.
It should be executed immediatly, but instead AwayJS first finishes executing the current framescripts, before the constructors are executed.
Workaround: Use a "init" function and call it from framescript instead of using the constructor. Than manually call the "init" function after the symbol / class is created.
when objects are grouped, in AwayJS their transforms sometimes seem to be wrong.
Workaround: break apart groups if they make problems.
In AwayJS timeline sounds with sync=stream behave different to how they behave in FlashPlayer.
They can be auto-converted to snyc=event sounds, but sometimes some additional manual fixes need to be applied in order to get to the correct behavior (manually adding sound-commands to stop the sound at certain position on the timeline)
using graphic instances on mask-layers is not always workign correctly.
Workaround: use MC-instances when gmasked graphics-instances make problems.
In AwayJS, instances with duplicate names do not behave exactly the same as in FlashPlayer.
Workaround: Make sure all instances have their own unique name.
In AwayJS a return isnide a with statement does not only return from the with statement, but also from the function that calls the with statement.
Workaround: Do not use return in with statement.
When exporting a gif, it doesnt render correctly.
Looks like only part of the image gets rendered.
Workaround: Replacing the images in the FLA with PNG.
Calling gotoAndStop with 2 arguments gotoAndPlay("Scene 2", 5)
does not behave the same as in FlashPlayer.
Workaround: use framelabels to navigate to specific frames.
subj.
https://codesandbox.io/s/swf-cow-fdl69
Here in the console you can see list of instance names.
The cow on screen is created through iterating in _definitions and searching instance with certain className
.
In latest swf-test, the static textfield do not work.
It looks like something goes wrong with connecting the font to the static textfield.
When the textfield is converted to dynamic text, it works
In AwayJS we currently not support children to be used as mask for their parent.
Workaround: Dont use children to mask a parent.
Both JS and FlashPlayer suffer from the float number rounding issue.
var test = 0.1 * 10 might result in 0.999999998 instead of 1.
This can lead to nasty bugs (for example if-conditions failing, when they should not)
Both Flash and AwayJS suffer from this problem, but not both behave exactly the same.
Workaround: Round numbers to a int, or a float with fixed precision before using them in a if-condition.
Some complex graphics / shapes are not rendered correctly.
Workaround: Distribute the subshapes of complex shapes to different layers. This should make it easier for our graphics-api to render the shape correctly,
if a setInterval creates another setInterval, in the second setInterval function the _parent property will not be available.
Workaround use a absolute path starting with "_root" to access the parent
In some edge cases, the order of executions do not seem to be 100% exactly as in FlashPlayer.
We have only seen this error very rarly.
Using BitmapData.draw to render a MC into a BitmapData does not work correctly.
Issue with @awayjs/scene/SceneImage2D.
When PNG images are exported with jpg settings, in FlashPlayer the transparency is still working ok.
In AwayJS the transparency is lost.
Fixable by setting the image to export as png/loseless.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.