Splash will be a lot different in SWF9, I expect. Better and easier to
implement.
It may be that to implement Splash, we need to create a tiny wrapper
app that puts up the splash and then (1) loads the LFC, (2) loads the
main app, while animating as per the splash spec.
On Jan 9, 2008, at 10:33 AM, P T Withington wrote:
We are compiling the LFC as a separate library, so it is
theoretically possible to load/share. We know there is a secret
library cache in the player, but I think you have to get special
dispensation from Adobe to use that. At least we can share in the
browser cache.
As to splash... <bleah />.
On 2008-01-09, at 13:23 EST, David Temkin wrote:
as you design this, are you thinking about separately loading the
LFC?
the whole splash/LFC/startup process will need some thought
On Jan 9, 2008, at 10:11 AM, Henry Minsky wrote:
Here's the handwritten code I am currently using for a compiling a
an application. It extends an LFC class called LFCApplication,
which is in the LFC and responsible for initializing the runtime.
package {
import flash.display.*;
public class LzApplication extends LFCApplication {
public function LzApplication () {
canvas = new LzCanvas({__LZproxied: "true",
bgcolor: 0xffffff,
embedfonts: true,
fontname: "Verdana,Vera,sans-serif",
fontsize: 11,
fontstyle: "plain",
height: 600,
lpsbuild: "7726 C:\\users\\hqm\
\openlaszlo\\devildog",
lpsbuilddate:
"2008-01-04T13:11:50-0500",
lpsrelease: "Latest",
lpsversion: "4.1.x",
runtime: "swf9",
width: 800});
addChild(canvas.sprite);
LzInstantiateView(..., 6);
LzInstantiateView(..., 2);
LzInstantiateView(..., 2);
...
canvas.initDone ()
}
}
}
I'd like to make the script compiler emit this when compiling an
app. I guess all the top level statements from the
script code should be collected up and put into this LzApplication
class' constructor, or a method like appStartup()
which the LFCApplication constructor can call.
I'm looking at SWF9Generator.flexCompile, and it seems like it
always compiles the LFC as a library with compc, which it seems like
we don't want to do each time we compile an app.
Maybe we should just have separate flexCompileApp and
flexCompileLibrary methods?
--
Henry Minsky
Software Architect
[EMAIL PROTECTED]