Can you try this
main.lzx:
<canvas>
<import href="mylib.lzx"/>
</canvas>
mylib.lzx:
<library>
<script when="immediate">
foo = 259;
</script>
</library>
If you compile the main.lzx, it should produce an auxiliary
library file
named build/main/mylib.lzx.swf, or maybe mylib.swf, I forget,
but that library file should have basically just the code in the
script
block, plus a little footer which calls back to the main movie after
loading.
On 2/26/07, strk <address@hidden> wrote:
Just to ping again on this thread...
I'm still at the point of being unable to produce a simple SWF with
OpenLaszlo.
Doing so will allow me to proceed in steps by
compiling parts of the runtime lib separately to try
at finding the problem preventing Gnash from playing *any*
OpenLaszlo-generated movie.
Last attempt was with revision 3927 (Feb 25 2007).
Source code is still the same:
<canvas> <script when="immediate"><![CDATA[
trace('hello world');
]]> </script> </canvas>
What am I doing wrong ?
--strk;
On Thu, Feb 15, 2007 at 11:32:53AM +0100, strk wrote:
On Wed, Feb 14, 2007 at 06:49:56PM -0500, Henry Minsky wrote:
Try this link
http://download.openlaszlo.org/nightly/legals/
Ok, got 4.0.x revision 3813.
Turned content of lps-4.0.x/Server/lps-4.0.x/lps/includes in
all empty
SWFs.
Compiled this script:
<canvas> <script when="immediate"><![CDATA[
trace('hello world');
]]> </script> </canvas>
But still find non-action tags in the resulting SWF:
Offset: 26 (0x001a) Block type: 32 (SWF_DEFINESHAPE3)
Offset: 58 (0x003a) Block type: 34 (SWF_DEFINEBUTTON2)
Offset: 155 (0x009b) Block type: 26 (SWF_PLACEOBJECT2) [
__offscreenkeyclip ]
...
--strk;
It was linked from the page
http://www.openlaszlo.org/download#legals
I'll try and get that patch in tomorrow for the PLACEOBJECT2 bug.
On 2/14/07, strk <address@hidden> wrote:
On Wed, Feb 14, 2007 at 04:08:06PM -0500, Henry Minsky wrote:
Basically all the tags in an lzx file compile down to function
calls to
LzInstantiateView which is defined in the LFC.
You can get an app which contains code which doesn't depend on
the LFC
by
making an app which looks like
<canvas>
<script when="immediate">
<![CDATA[
some javascript here
]]>
</script>
</canvas>
Note that we only added the when="immediate" feature a couple
weeks ago,
so
you need a new build to do this.
Are nightly builds available ? (build instruction are wrong,
refer
to a
directory
not available in SVN: jakarta-ant-1.5.1)
--strk;
--
Henry Minsky
Software Architect
address@hidden
_______________________________________________
Gnash-dev mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/gnash-dev
--
() ASCII Ribbon Campaign
/\ Keep it simple!
_______________________________________________
Gnash-dev mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/gnash-dev
--
() ASCII Ribbon Campaign
/\ Keep it simple!
--
Henry Minsky
Software Architect
address@hidden