Metadata-Version: 2.4
Name: as3lib
Version: 13
Summary: Partial implementation of ActionScript3 in Python
Author-email: ajdelguidice <ajdelguidice@gmail.com>
License-Expression: MIT AND (Apache-2.0 OR MIT)
Project-URL: Homepage, https://github.com/ajdelguidice/python-as3lib
Keywords: actionscript,air,flash,flashplayer
Classifier: Development Status :: 4 - Beta
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.10
Classifier: Topic :: Utilities
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: otherlicenses/LICENSE-ruffle.md
Requires-Dist: numpy
Requires-Dist: tkhtmlview
Requires-Dist: Pillow
Requires-Dist: as3lib-miniAMF
Provides-Extra: windows
Requires-Dist: pywin32; extra == "windows"
Dynamic: license-file

# 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 <a href="https://ruffle.rs">ruffle</a> instead.
- Some stuff will be impossible to implement in python because <a href="https://docs.python.org/3/glossary.html#term-global-interpreter-lock">python is a fish</a>.
- 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

> <a href="https://pypi.org/project/numpy">numpy</a>
> <br><a href="https://pypi.org/project/Pillow">Pillow</a>
> <br><a href="https://pypi.org/project/tkhtmlview">tkhtmlview</a>
> <br><a href="https://pypi.org/project/tomli/">tomli</a> (python < 3.11)
> <br><a href="https://pypi.org/project/as3lib-miniAMF/">as3lib-miniAMF</a>

Windows specific<br>
> PyLaucher
> <br> <a href="https://pypi.org/project/pywin32/">pywin32</a>

Unix specific<br>
> a posix compatible shell
> <br> grep
> <br> which
> <br> xwininfo
> <br> 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

<b>&lt;library-directory&gt;/as3lib.toml</b> - 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.

<b>&lt;library-directory&gt;/mm.cfg</b> - Migration path for adobe flash player <a href="https://web.archive.org/web/20180227100916/helpx.adobe.com/flash-player/kb/configure-debugger-version-flash-player.html">mm.cfg</a>. Only used on first run or if migrateOldConfig is true in as3lib.toml.

<b><u>DEPRECATED</u> &lt;library-directory&gt;/as3lib.cfg</b> - The config file used by version 0.0.11.

<b><u>DEPRECATED</u> &lt;library-directory&gt;/wayland.cfg</b> - 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 <a href="https://opensource.org/license/MIT">MIT License</a>, however some parts are under a different license. These are:
- as3lib/tests. Most of these tests are based on tests from <a href="https://github.com/ruffle-rs/ruffle">ruffle</a> 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](otherlicenses/LICENSE-ruffle.md)
