[Laszlo-dev] Re: [Laszlo-user] why flash in 3.1 not showed!
dl.lists at ntlworld.com
Sun Nov 20 07:07:47 PST 2005
On 19 Nov 2005 at 20:11, Max Carlson wrote:
> Hi There,
> I just updated an old windows 2000 box to 5.00.2195 service pack 4 and
> IE 6.2800.1106. I am running the latest version of the Flash player
> (8.0.22) from:
> The very first application I looked at didn't download - because the
> player updated. When I hit reload, it worked. Every Laszlo application
> works now. I was testing the URL
> Perhaps there's something else going on? Where did you get Flash 8.5?
> Max Carlson
We appear to be in a minority of two here .. so I guess it is our call for some more
detailed diagnosis to prove the theory ...
Summary of findings set out below:
object part of embed script (generated by embed.js) is not written in var = o; thus
SWF does not render correctly in IE (which uses <object script>), but SWF does
render in Firefox (which uses <embed script>).
Flashobject.js works reliably as an alternative to embed.js.
Perhaps later versions of IE 6 do not require the object part of embed script in body?
I do not believe that this quirk is only related to Flash 8 since I experienced the same
symptoms much earlier with Flash 7 (see laszlo-dev thread).
I have just installed openlaszlo-3.2(alpha).war to create a brand new webapp -
openlaszlo-3.2 .. running in Tomcat server in c:\tomcat5\.
And when launching openlaszlo-3.2/my-apps/copy-of-hello.lzx .. there is a blank
screen as reported by rabbit69 and myself.
I then tried the same app as Max ..
and there was no swf displayed.
Same blank swf rendering results with the openlaszlo site
and also here ..
This is in Win XP Pro - IE 6.0.2800.1106.xpsp2.030422-1633
However, running the same weather.html app in Firefox 1.0.6, does render correctly
and here ...
and here ...
The reported non rendering of SWF problem seems to be evident only in older
Internet Explorer (not Firefox) so I focused on troubleshooting the IE browser.
First I started by clearing the cache in Internet Explorer.
I used SWF Cache Viewer to clear cache and inspect SWF files in browser caches.
SWF Cache Viewer can be obtained (free) from here ..
Then, after launching the copy-of-hello.lzx, again viewed the Internet Explorer cache
.. using SWF cache viewer.
The cache contained just two files.
dev-console.lzx.swf can be seen in the browser.
only Hello Laszlo! swf is not rendered.
Next I tried SOLO deployment in dev-console.
The wizard page opened
and in my-apps folder there was now a compiled copy-of-hello.swf which could be
clicked on and viewed correctly in the Macromedia Flash Player 8.
but in the Internet Explorer Cache there were still only two files
After viewing the SOLO copy-of-hello.lzx.html the Hello Laszlo! was rendered
correctly and the swf could be seen in Internet Explorer cache.
This failure to render occurs when launching the openlaszlo lzx apps in server, not in
The failure occurs with IE browser, not Firefox.
The copy-of-hello.lzx.swf does not appear in browser cache.
Tested copy-of-hello.lzx again, this time uncommenting the alerts in embed.js ..
Here follows the outputs (embed scripts are summarised) ..
[alert message 1]
[alert message 2]
win: true, ns false, safari false
[alert message 3]
embed script for src="copy-of-hello.lzx?lzt=swf"
[alert message 4]
[alert message 5]
win: true, ns false, safari false
[alert message 6]
embed script for src="/openlaszlo-3.2/lps/admin/dev-console.lzx.swf?lzt=swf"
Next experiment was to take the embed script (generated as object "o" by embed.js)
and place this script manually into body of a new HTML page ....
This is incorrect and does not render in IE.
The embed part of script is correct (which explains why it can be rendered in Firefox
which uses embed).
But IE Explorer expects the object part of the script.
The only object part of the script refers to h.swf.
Testing with flashobject - an alternative to embed.js
Next experiment was to abandon embed.js and switch to using flashobject.js (which
works reliably). This renders copy-of-hello.lzx correctly.
flashobject.js can be placed anywhere so I placed it in lps/includes (same location as
Note how easily vars can be added to flashobject script in body. And alternative
content can be added in div for those without Flash plugin installed.
Here is the full HTML content ...
This is replaced by the Flash content.
Place your alternative content here and users without the Flash plugin or with
Content here allows you to leave out <code>noscript</code>
tags. Include a link to <a href="flashobject.html?detectflash=false">bypass the
detection</a> if you wish.
var fo = new FlashObject("copy-of-hello.lzx?lzt=swf", "lzapp", "100%", "100%", "7",
More on flashobject.js here ..
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Laszlo-dev