python-as3lib
A partial implementation of ActionScript 3 and the adobe flash api in python. This project aims to have as accurate of an implementation as possible of the implemented features, however anything that isn't documented won't be implemented unless I am informed about it. Some stuff will be impossible to implement in python because python is a fish.
Notes
- If you need acuracy, use ruffle instead. This library is developed for the purpose of making game porting easier and is developed by one person.
- Versions of this library before 0.0.6 are broken on windows.
- Tkinter can not fetch the information needed when used on wayland (linux). It must be manually entered into as3lib.toml. I plan on making this less painfull later.
- 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.
- Using "from as3lib import *" imports all ActionScript toplevel stuff with int renamed to Int so it doesn't conflict with python's int.
- 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
(xorg): xwininfo, xrandr
This library also makes use of the following python builtin modules: tkinter, re, math, io, platform, subprocess, random, time, datetime, os, pwd (linux), pathlib, configparser, webbrowser, textwrap, 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.
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.
DEPRECATED <library-directory>/mm.cfg - Place your mm.cfg file from adobe flash player here before first running this library if you want to automatically migrate it. Will not be deleted after migration.
Metadata
Release files for as3lib 12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| as3lib-12.tar.gz | 66.6 kB | Details |
Release files / as3lib-12.tar.gz
| Download URL | as3lib-12.tar.gz |
|---|---|
| Size | 66.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a5c67d3c19a8d4c96a276cda37c52c5f422f8df34847faeaf0ccfa7bd9caea82
|
|
BLAKE2b-256 checksum How to use checksums |
a69a4459c378fe3b980bb34e17daaf6e79fd2ea2b3e2d8f35c948cbff91e5716
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|