Partial implementation of ActionScript3 in Python
Project description
python-as3lib
A partial implementation of ActionScript3 and adobe flash in python. This project aims to have as accurate of an implementation as possible of the stuff that I choose to implement, however, due to my limited knowledge of advanced programming and Adobe's subpar documentation, things may not be completely accurate. Some stuff will be impossible to implement in python because python is a fish. The toplevel stuff is mostly implemented but it is very slow at the moment, everything else is hit or miss.Notes
If you need acuracy, use ruffle instead. This is mostly a porting library 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.cfg. 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 have anything from 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 *" currently imports everything from the toplevel module with int renamed to Int so it doesn't conflict with python's int.
Requirements
Linux:a posix compatible shell, echo, grep, awk, loginctl, whoami, which
(xorg): xwininfo, xrandr
Windows:
PyLaucher
pywin32
Python built-ins:
tkinter, re, math, io, platform, subprocess, random, time, datetime, os, pwd (linux), pathlib, configparser, webbrowser, textwrap, typing
Python external:
numpy, Pillow, tkhtmlview
Config Files
<library-directory>/as3lib.cfg - This library's config file. This includes mm.cfg and wayland.cfg that were included in previous versions and will automatically migrate them if found. Wayland.cfg will be deleted but mm.cfg will not. |mm.cfg|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. The migration process is also triggered if as3lib.cfg is missing.
DEPRECATED <library-directory>/wayland.cfg - Generated on the first use of this library in versions before 0.0.11 if you are using wayland. Stores all of the values that can't be fetched automatically (without systemd) so you only have to input them once. They must be changed manually if you want to change them.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
as3lib-0.0.11.tar.gz
(76.5 kB
view details)
File details
Details for the file as3lib-0.0.11.tar.gz.
File metadata
- Download URL: as3lib-0.0.11.tar.gz
- Upload date:
- Size: 76.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5585a7b29f15dd059682073a86bc899125277b28d969e5f6ef39863d2a1dc1c4
|
|
| MD5 |
694720eeefa3ef85c11d64b0c2520331
|
|
| BLAKE2b-256 |
393ea8252da591a95271f6746ceda08f650270f3463fda5cec525264444ec25a
|