Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Flex > Flex 1

Reply
 
Thread Tools Rate Thread Display Modes
Old 05-25-2005, 10:10 AM   #1
lovewind
Registered User
 
Join Date: May 2005
Posts: 2
Default how to use the setInterval() in flex actionscript

the code run normally in swf,
ActionScript Code:
function checkOut() {     TextToCheck = spellCheck_txt.text;     url_string = "javascript:SpellCheck();";     getURL(url_string, "");     checkOut_interval = setInterval(function ()     {         if (spellResult != undefined)         {             spellCheck_txt.text = spellResult;             clearInterval(checkOut_interval);         } // end if     }, 100); }


and how to use setInterval() in flex actionscript

as referred in flex actionscript reference:

setInterval(functionName:Function, interval:Number [, param1:Object, param2, ..., paramN]) : Number
setInterval(objectName:Object, methodName:Function, interval:Number [, param1:Object, param2, ..., paramN]) : Number
Parameters
functionName A function name or a reference to an anonymous function.

interval The time in milliseconds between calls to the functionName or methodName parameter.

param1, param2, ..., paramN Optional parameters passed to the functionName or methodName parameter.

objectName An object containing the method methodName. You must include this parameter when using setInterval() in an <mx:Script> block in Flex applications.



thanks
lovewind is offline   Reply With Quote
Old 05-25-2005, 01:23 PM   #2
hangalot
lala
 
hangalot's Avatar
 
Join Date: Feb 2002
Location: on the road
Posts: 2,859
Default

needs to be inside a <mx:Script> tag
__________________
oi poloi
http://www.memorphic.com/news/
hangalot is offline   Reply With Quote
Old 11-16-2007, 01:52 PM   #3
Annaleewe
Registered User
 
Join Date: Nov 2007
Posts: 1
Default

Thanx! I have same problem! Anna

ABCDEFGHIGKLMNOPQRSTVUWXYZ

Last edited by Annaleewe; 11-18-2009 at 05:45 PM..
Annaleewe is offline   Reply With Quote
Old 08-26-2008, 04:22 AM   #4
sesey
Registered User
 
Join Date: Aug 2008
Posts: 1
Default

Thank you for your info! I know it now! Thanks!
sesey is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:48 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.