-
FEATURED COMPONENTS
First time here? Check out the FAQ!
hi,
in zk flash component, why setAutoPlay and setloop don't work? setSrc work correctly,
why?
as i know ,setsrc use invalidate event, but setsrc and setautoplay use smartupdate event.
in the click event below,setAutoPlay and setloop won't work, somebody can help me?
thanks! the below is my test zul file:
<?page title="new page title" contentType="text/html;charset=UTF-8"?>
<zk>
<window title="new page title" border="normal" id="win">
<attribute name="onCreate">
Flash f = new Flash();
f.setWidth("800px");
f.setHeight("300px");
f.setSrc("http://www.zkoss.org/Steps/learn.swf");
f.setAutoPlay(false);
f.setLoop(false);
f.setVisible(true);
f.setParent(self);
</attribute>
</window>
<button label="click">
<attribute name="onClick">
Flash ff= (Flash)win.getFirstChild();
ff.setLoop(false);
alert(ff.isLoop());
</attribute>
</button>
<button label="click2">
<attribute name="onClick">
Flash ff= (Flash)win.getFirstChild();
ff.setAutoPlay(false);
ff.setLoop(false);
ff.setSrc("http://www.zkoss.org/Steps/learn.swf");
alert(ff.isAutoPlay());
</attribute>
</button>
</zk>
seems you didn't set it to true?
Asked: 2009-04-25 11:19:21 +0800
Seen: 151 times
Last updated: Apr 28 '09