而国内公司代理的版本还在为flash续命,但其广告捆绑,让人十分的厌恶。
这不我们的英雄ruffle来了,其是用rust语言实现的一个flash模拟器,安全高性能且跨平台。
项目地址: https://github.com/ruffle-rs/ruffle
二进制可执行文件: https://github.com/ruffle-rs/ruffle/releases
使用方式:
ruffle --help
代码: 全选
Usage: ruffle [OPTIONS] [FILE]
Arguments:
[FILE]
Path or URL of a Flash movie (SWF) to play
Options:
-P <PARAMETERS>
A "flashvars" parameter to provide to the movie. This can be repeated multiple times, for example -Pkey=value -Pfoo=bar
-g, --graphics <GRAPHICS>
Type of graphics backend to use. Not all options may be supported by your current system. Default will attempt to pick the most supported graphics backend
[default: default]
[possible values: default, vulkan, metal, dx12, gl]
--width <WIDTH>
Width of window in pixels
--height <HEIGHT>
Height of window in pixels
-p, --power <POWER>
Power preference for the graphics device used. High power usage tends to prefer dedicated GPUs, whereas a low power usage tends prefer integrated GPUs
[default: high]
[possible values: low, high]
-q, --quality <QUALITY>
Default quality of the movie
[default: high]
Possible values:
- low:
No anti-aliasing, and bitmaps are never smoothed
- medium:
2x anti-aliasing
- high:
4x anti-aliasing
- best:
4x anti-aliasing with high quality downsampling. Bitmaps will use high quality downsampling when scaled down. Despite the name, this is not the best quality setting as 8x8 and 16x16 modes were added to Flash Player 11.3
- high8x8:
8x anti-aliasing. Bitmaps will use high quality downsampling when scaled down
- high8x8-linear:
8x anti-aliasing done in linear sRGB space. Bitmaps will use high quality downsampling when scaled down
- high16x16:
16x anti-aliasing. Bitmaps will use high quality downsampling when scaled down
- high16x16-linear:
16x anti-aliasing done in linear sRGB space. Bitmaps will use high quality downsampling when scaled down
-s, --scale <SCALE>
The scale mode of the stage
[default: show-all]
Possible values:
- exact-fit:
The movie will be stretched to fit the container
- no-border:
The movie will maintain its aspect ratio, but will be cropped
- no-scale:
The movie is not scaled to fit the container. With this scale mode, `Stage.stageWidth` and `stageHeight` will return the dimensions of the container. SWF content uses this scale mode to resize dynamically and create responsive layouts
- show-all:
The movie will scale to fill the container and maintain its aspect ratio, but will be letterboxed. This is the default scale mode
--force-scale
Prevent movies from changing the stage scale mode
--proxy <PROXY>
Proxy to use when loading movies via URL
--upgrade-to-https
Replace all embedded HTTP URLs with HTTPS
--fullscreen
Start application in fullscreen
--timedemo
--dont-warn-on-unsupported-content
Start application without ActionScript 3 warning
--load-behavior <LOAD_BEHAVIOR>
[default: streaming]
Possible values:
- streaming: Allow movies to execute before they have finished loading
- delayed: Delay execution of loaded movies until they have finished loading
- blocking: Block Ruffle until movies have finished loading
--letterbox <LETTERBOX>
Specify how Ruffle should handle areas outside the movie stage
[default: on]
Possible values:
- off: The content will never be letterboxed
- fullscreen: The content will only be letterboxed if the content is running fullscreen
- on: The content will always be letterboxed
--spoof-url <SPOOF_URL>
Spoofs the root SWF URL provided to ActionScript
--player-version <PLAYER_VERSION>
The version of the player to emulate
-h, --help
Print help (see a summary with '-h')
-V, --version
Print version
ruffle {flash文件的地址}
代码: 全选
ruffle 201802261519648435684503.swf