Sebastian,
Looks like I found the source of the problem.
With swf8, loading a swf from another server is working. With swf10, it's
working either. But when a swf8 is called from a swf10 program, then it failed.
A simple test:
File test_frame.lzx (compiled as swf8)
<canvas debug="false">
<view name="test" y="50" x="50" play="false">
<handler name="oninit">
this.setSource("http://someurl/somefile.swf");
this.setAttribute("frame",1);
this.stop();
</handler>
</view>
<view name="control">
<inputtext name="framenum" bgcolor="grey" width="30"/>
<button
onclick="canvas.test.setAttribute('frame',parseInt(parent.framenum.text))"
x="50" text="go to page "/>
</view>
</canvas>
File uploadswf.lzx (compiled as swf10):
<?xml version="1.0" encoding="UTF-8" ?>
<canvas width="100%" height="100%" title="OpenMeetings" debug="false">
<switch>
<when property="$as3">
<passthrough>
import flash.net.*;
import flash.display.*;
</passthrough>
</when>
</switch>
<view name="mainComponent" width="${canvas.width}"
height="${canvas.height}">
</view>
<handler name="oninit"><![CDATA[
var tSWFURL = "test_frame.lzx.swf8.swf?lzproxied=solo";
var request:URLRequest = new URLRequest(tSWFURL);
var loader:Loader = new Loader();
loader.load(request);
this.mainComponent.sprite.addChild(loader);
]]></handler>
</canvas>
When you run the uploadswf.lzx, you get a non-stop playing swf.
Have you the same behavior?
Alban Elziere
-----Message d'origine-----
De : [email protected] [mailto:[email protected]]
Envoyé : mercredi 2 mai 2012 16:18
À : [email protected]
Objet : Re: pdf files : only one slide is shown
Hi Alban,
could you please verify that with a nightly snapshot of OpenMeetings?
And please make sure the SWFTools version you're using is the latest public
available version.
Sebastian
2012/4/27 Alban Elziere <[email protected]>
> Hello,
> I'm facing a strange behavior with pdf (and others) files. I'm using
> openlaszlo on my local machine, connecting to a red5 server elsewhere.
> With openmeetings v1.9, if I run everything on the distant server,
> viewing files doesn't make any trouble (you can change the page). But
> if I run the client code from my machine, only the first page is shown.
> With an older version (no as3), it was working well.
> I've also tried to modify the pdf2swf option (using -T 9). Then the
> pages are shown, but rotating at a high rate...
> Other problem : after having modified the client code, I can't change
> the page of a pdf file (converted), even if I move the client code on
> the red5 server.
>
> With the debugger, I've seen some strange parameters for _swfView (in
> swfResourceView.lzx): the onload event is called, but loadratio is 0
> and frameloadratio is 1. With older version, we had loadratio=1 and
> frameloadratio=1...
>
> BR,
> Alban Elziere
>
>
--
Sebastian Wagner
https://twitter.com/#!/dead_lock
http://www.openmeetings.de
http://www.webbase-design.de
http://www.wagner-sebastian.com
[email protected]