Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
An open source flash player implementation
C++ C CMake ActionScript Shell Assembly Other

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
debian
plugin
COPYING
Makefile
README
TODO
abc.cpp
abc.h
abc_codesynt.cpp
abc_opcodes.cpp
actions.cpp
actions.h
asobjects.cpp
asobjects.h
flashdisplay.cpp
flashdisplay.h
flashevents.cpp
flashevents.h
flashgeom.cpp
flashgeom.h
flashnet.cpp
flashnet.h
flashsystem.cpp
flashsystem.h
flashtext.h
flashutils.cpp
flashutils.h
frame.cpp
frame.h
geometry.cpp
geometry.h
input.cpp
input.h
lightspark.frag
logger.cpp
logger.h
main.cpp
streams.cpp
streams.h
swf.cpp
swf.h
swftypes.cpp
swftypes.h
tags.cpp
tags.h
tags_stub.cpp
test.sh
tests.knowfailures
textfile.cpp
textfile.h
thread_pool.cpp
thread_pool.h
tightspark.cpp
vm.cpp
vm.h

README

Lightspark second Technical demo README

First of all I'd like to thank you for testing the lightspark project,
the current status is quite primitive, but I'd like to showcase the technology of this project

Be aware that the following feature are not yet supported or stable enough to be include in the demo

-) Sound support
-) Input support
-) Antialiasing
-) Alpha blending (Trasparency)

This demo already includes a lot of cool features

-) GLSL based rendering of fill styles (eg. gradients)
-) LLVM based ActionScript execution. Code is compiled just in time
-) A few tricks are also played to decrease the stack traffic tipical of stack machines.
-) First, although simple, framerate timing
-) Framework to handle ActionScript asynchronous events. Currently only the enterFrame event works.


INSTALLATION:
To compile this software you need to install development packages for llvm-2.5, sdl and opengl.
To build the software please follow those steps.

1) cd lightspark
2) make

EXECUTION:
This demo aims at rendering a simple SWF file from Adobe.

1) wget http://www.adobe.com/devnet/flash/samples/drawing_1/1_coordinates.swf
2) ./lightspark 1_coordinates.swf

The results may not seem really interesting. But a lot is going on under the hood. The rotating object is animated 
using ActionScript 3.0, which is a first class citizen in the design of the project.

You're warmly invited to send feedback and error report on the project mailing list (lightspark-devel@lists.sourceforge.net)
or bug tracker on sourceforge
Something went wrong with that request. Please try again.