View Full Version : Lzx4 support animate gif in flash runtime?
sword
07-16-2007, 02:28 AM
I find lzx support animate gif in DHTML runtime but don't in Flash runtime.why?Don't Adobe flash player support it? Would you tell me the reason?Thanks!
rcyeager
07-16-2007, 10:48 AM
For DHTML, animated GIFs are being rendered natively by the browser.
For SWF mode, the Flash runtime cannot render animated GIFs, as far as I know. You would need to convert it into a SWF animation, which can be loaded and played by the Flash player.
sword
07-16-2007, 07:59 PM
Thanks rcyeager!But I cann't use animate swf because My Lzx APP must run in two runtimes(flash and other,not DHTML).Maybe I must try other way.
rcyeager
07-16-2007, 08:10 PM
OL v4 currently only supports SWF and DHTML runtimes, so I don't know what you mean by "other".
The technique I would use is something like this:
<switch>
<when runtime="dhtml">
<resource name="myAnim" src="anim.gif"/>
</when>
<otherwise>
<resource name="myAnim" src="anim.swf"/>
</otherwise>
</switch>
<view resource="myAnim"/>
sword
07-16-2007, 10:46 PM
O,yes,why I forget it!Thanks for your suggest.The other is a runtime of my company designed.It is extended runtime by our.But we don't finish it now.
senshi
07-17-2007, 03:03 AM
The other is a runtime of my company designed.It is extended runtime by our.
Sounds interesting, but I guess you cannot give any further information, can you?
sword
07-17-2007, 06:15 PM
:p ,It run in mobile.We already meeted the Vice President of Professional Services at Laszlo Systems.She agree our idea.Maybe I just tell you these.Because My English is poor,I maybe don't say clearly.So I say nothing.:)
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.