I have a piece of code below:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"
initialize="test()">
<mx:RemoteObject id="EJBUserProxy"
source="net.wind.proxy.UserProxy" >
<mx:method name="getUserInfo" result="setCurrentUser
(event.result)"></mx:method>
</mx:RemoteObject>
<mx:Script>
<![CDATA[
function test(){
setInterval(getUser,10000);
}
function getUser(){
EJBUserProxy.getUserInfo("qaz");
}
function setCurrentUser(obj){
if(obj!=null)
mx.controls.Alert.show("execute");
}
]]>
</mx:Script>
</mx:Application>
it seems the setInterval function can't execute remoteobject method,
Who has such experience,wait for your help,
Thanks
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.