Perhaps I was not clear on my precedent email. The problem occurs only if you request files from another domain: by example, web server hosting the client flash files web1.aname.com and download a file at web2.aname.com. If you request an url on the same server (as for demo.openmeetings.de), no problem at all! For swftools, using -insertstop doesn't make any difference ...
Alban Elziere -----Message d'origine----- De : [email protected] [mailto:[email protected]] Envoyé : mercredi 2 mai 2012 18:36 À : [email protected] Objet : Re: pdf files : only one slide is shown No there is no such behavour. It is working fine from my point of view. You can test on: http://demo.openmeetings.de/openmeetings/ There was an issue 3-4 years ago that leaded to a problem where the SWF did ignore gotoAndStop calls to a certain frams in the SWF. However by using the option "-insertstop" of SWFTools we where able to fix it. Sebastian 2012/5/2 Alban Elziere <[email protected]> > 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] > > -- Sebastian Wagner https://twitter.com/#!/dead_lock http://www.openmeetings.de http://www.webbase-design.de http://www.wagner-sebastian.com [email protected]
