Delaying script execution inside a function ...
hi there,
i'm in need of delaying execution of code in function (or function call) writing .txt file 1 2 seconds code 'as is' reading , writing not last value on click of button text input box, second last value.
any ideas appriciated! in advance aktell2007
click='saverunsetmsgone(event)'
<mx:script> <![cdata[ protected function saverunsetmsgone(event:event):void { var localfile:file = file.desktopdirectory.resolvepath('.... /.... .txt'); var localfilestream:filestream = new filestream(); localfilestream.open(localfile, filemode.append); localfilestream.writemultibyte("running: " + runset1txt.text + " @ " + runset1dt.text, "utf-8"); localfilestream.close(); } ]]> </mx:script>
settimeout(function,3000); easy if can think of !
More discussions in Flex (Read Only)
adobe
Comments
Post a Comment