Skip to main content

Partial implementation of ActionScript3 in Python

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

as3lib-13.tar.gz (140.5 kB view details)

Uploaded Source

File details

Details for the file as3lib-13.tar.gz.

File metadata

  • Download URL: as3lib-13.tar.gz
  • Upload date:
  • Size: 140.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for as3lib-13.tar.gz
Algorithm Hash digest
SHA256 ab2a539897f27ea08e1b85936723de09ae6239dec534a38f602758ff73cdb9a8
MD5 6eaf49d0c420d3304b26cdd27b3f1275
BLAKE2b-256 f42130005bc362ee420edcc93f9a859151a10173e407f8d955dbe8ca5f1217d8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page