python-as3lib
A partial implementation of ActionScript 3 and the adobe flash api in python. This project is developed for the purpose of making game porting easier and is currently developed by one person.
Notes
- If you want to run an swf files, use ruffle instead.
- Some stuff will be impossible to implement in python because python is a fish.
- Undocumented things can not be implemented unless I am informed about them.
- Versions of this library before 0.0.6 are broken on windows.
- Use of multiple displays has not been tested yet.
- interface_tk is a testing module, it does not function like actionscript and is only there to work things out. Do not expect consistency between versions and do not expect it to be kept around.
- The toplevel module is now deprecated and only remains for backwards compatibility. Import the library instead.
Requirements
numpy
Pillow
tkhtmlview
tomli (python < 3.11)
as3lib-miniAMF
Windows specific
PyLaucher
pywin32
Unix specific
a posix compatible shell
grep
which
xwininfo
xrandr
This library also makes use of the following python builtin modules: tkinter, re, math, io, platform, subprocess, random, datetime, os, pwd (unix), pathlib, configparser, webbrowser, typing, tomllib
Config Files
<library-directory>/as3lib.toml - This library's config file. This includes mm.cfg and wayland.cfg that were included in previous versions. Old config files will only be migrated if this file does not exist or if "migrateOldConfig" is set to true.
<library-directory>/mm.cfg - Migration path for adobe flash player mm.cfg. Only used on first run or if migrateOldConfig is true in as3lib.toml.
DEPRECATED <library-directory>/as3lib.cfg - The config file used by version 0.0.11.
DEPRECATED <library-directory>/wayland.cfg - Generated on versions before 0.0.11 to hold the values that can not be fetched automatically on wayland (linux). Now integrated into as3lib.toml.
License
as3lib is licensed under the MIT License, however some parts are under a different license. These are:
- as3lib/tests. Most of these tests are based on tests from ruffle and are only modified to make them run in python. They are under their original license (Apache 2.0 or MIT) which is located in otherlicenses/LICENSE-ruffle.md
Metadata
Release files for as3lib 13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| as3lib-13.tar.gz | 140.5 kB | Without provenance | Details for as3lib-13.tar.gz |
Release files / as3lib-13.tar.gz
| Download URL | as3lib-13.tar.gz |
|---|---|
| Size | 140.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ab2a539897f27ea08e1b85936723de09ae6239dec534a38f602758ff73cdb9a8
|
|
BLAKE2b-256 checksum How to use checksums |
f42130005bc362ee420edcc93f9a859151a10173e407f8d955dbe8ca5f1217d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Security for as3lib 13
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.