Flash ABI
From OpenLaszlo
If the Laszlo ABI to Flash is documented, it is easier to mix & match technologies.
Relevant technologies to produce Flash content include:
- ActionScript (using Flash or mtasc)
- Flasm
- Neoswiff
- Xamlon
- haXe
These are the questions that needs to be answered:
- Using Laszlo .swf's in other .swf's
- Using other .swf's with code in a Laszlo .swf
- Variable & function ABI
- GUI ABI
Contents |
[edit]
Including Laszlo .swf's in other .swf's
You can load a .swf in another .swf using the loadMovie call. In ActionScript:
_root.createEmptyMovieClip("swfHolder", 1);
swfHolder.loadMovie("externalSwf.swf");
_root.createEmptyMovieClip("loadMonitorMc", 2);
loadMonitorMc.onEnterFrame = function() {
if (_root.swfHolder.isLoaded) {
// What is the correct syntax to access variables in Laszlo compiled .swfs?
var myVariable = swfHolder.myVariable;
trace("SWF has loaded and has value " + myVariable);
// What is the correct syntax to access functions in Laszlo compiled .swfs?
swfHolder.myMethod(2); } }
[edit]
Using other .swf's with code in a Laszlo .swf
How to do this in Laszlo?
[edit]
Variable & function ABI
How can I access a Laszlo variable, objects and functions from another .swf? I.e. look at the example above.
And of course the other way: How can I access variables, objects and functions from another .swf in Laszlo?
[edit]
GUI ABI
How can I interface the GUI loop from Laszlo into another Flash host, which has it's own GUI system? And the other way: How can Laszlo be extended to use another Flash files' GUI loop?

