and the stage listener interacted at startup.
I don't remember the details, but I do remember that this was a tricky bug to find, because it only happened in one of the browsers at one point.
In the LFC views/LaszloCanvas.as, there is some code
// necessary for consistent behavior - in netscape browsers HTML is ignored
Stage.align = global.canvassalign != null ? global.canvassalign : "LT";
Stage.scaleMode = global.canvasscale != null ? global.canvasscale : "noScale";
And then there is a routine which gets called to handle canvas resize events
LzCanvas.prototype.__LZinstallStageListener = function () {
var cnvs = this;
var lstnr = {
onResize: function () {
var width = Stage.width;
cnvs.width = width;
cnvs.onwidth.sendEvent(width);
var height = Stage.height;
cnvs.height = height;
cnvs.onheight.sendEvent(height);
cnvs.__LZrightmenuclip._xscale = width;
cnvs.__LZrightmenuclip._yscale = height;
}
};
Stage.addListener(lstnr);
lstnr.onResize();
}
I don't know if this will be any help, but you might look at what initial dimensions and
params are being passed in the HTML wrapper you are using.
Hello Henry,
Thanks a lot for your reply, this really helped, now splash works for me. However, I have a problem - if I specify splash to be persistent, it stops being centered after the preload phase is done - i.e. it actually moves from the center to the lower left corner as it was centered on a smaller size canvas. Is it a bug? If so, I will log one to JIRA and will provide some examples.
>
You can do this in a pretty straightforward manner however it is not supported
by the system in the sense that you may get unexpected results. We do not really have any API for calling into an external swf.
However if you can get a pointer to the movieclip you can call most actionscript commands directly without any special compiler magic.
A view is backed by a movieclip, usually you can call view.getMCRef() to get a pointer to it, but that is not a guarantee. YOu would have to look at the LFC runtime library source and use the debugger to verify where the pointer to the clip is
stored in your particular usage case.
On 2/26/06, Michael Pliskin <[EMAIL PROTECTED]> wrote:
Hello all,
does anyone know something about this? What I need is to display
some fancy flash movie as a splash screen, and I need to update a
progress bar there using 'onpercentcreated' event. So I need to call
some function defined inside the swf from Laszlo - is there a way to
accomplish that?
MP> Does anyone know if I can interact somehow with flash movies I use
MP> in my Laszlo app as resources? I am particularly interested in
MP> invoking the functions there...
--
Best regards,
Michael mailto:[EMAIL PROTECTED]
_______________________________________________
Laszlo-user mailing list
http://www.openlaszlo.org/mailman/listinfo/laszlo-user
--
Henry Minsky
Software Architect
--
Best regards,
Michael mailto:[EMAIL PROTECTED]
--
Henry Minsky
Software Architect
[EMAIL PROTECTED]
_______________________________________________ Laszlo-user mailing list [email protected] http://www.openlaszlo.org/mailman/listinfo/laszlo-user
