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 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.

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-12.tar.gz (66.6 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for as3lib-12.tar.gz
Algorithm Hash digest
SHA256 a5c67d3c19a8d4c96a276cda37c52c5f422f8df34847faeaf0ccfa7bd9caea82
MD5 dddedc9f468e898b020abc61767164a7
BLAKE2b-256 a69a4459c378fe3b980bb34e17daaf6e79fd2ea2b3e2d8f35c948cbff91e5716

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