Well, take that back. Looks like you want the delay for a refresh rate. myTimer.delay = valuesMilliseconds; should work.
-TH --- In [email protected], "Tim Hoff" <[EMAIL PROTECTED]> wrote: > > > Hi David, > > Looks like you're constructing the Timer wth a delay: Timer > <http://127.0.0.1:52378/help/topic/com.adobe.flexbuilder.help/langref/fl\ \ > ash/utils/Timer.html#Timer()> (delay:Number > <http://127.0.0.1:52378/help/topic/com.adobe.flexbuilder.help/langref/Nu\ \ > mber.html> , repeatCount:int > <http://127.0.0.1:52378/help/topic/com.adobe.flexbuilder.help/langref/in\ \ > t.html> = 0) > > Try var myTimer:Timer = new Timer(0.valuesMilliseconds); > > or myTimer.repeatCount = valuesMilliseconds; > > -TH > > --- In [email protected], "sailorsea21" sailorsea21@ > wrote: > > > > Hey everyone, I have a value of 30000 stored in a MySQL database. > > > > I call this value and import it in flex via HTTPService (PHP & XML): > > > > <mx:HTTPService url="value.php" method="POST" id="rate" > > useProxy="false" result="getRate(event)"/> > > > > > > I now have a timer: > > var myTimer:Timer = new Timer(30000); > > > > > > Can I replace the hard-coded value of "30000" with the value that is > > stored in my database? > > > > This is my script: > > > > [Bindable] > > public var valuesMilliseconds:int; > > > > private function getRate(event:ResultEvent):void > > { > > valuesMilliseconds = event.result.database.row.Refresh_Rate; > > } > > > > > > I tried the following but it didn't work: > > > > var myTimer:Timer = new Timer(valuesMilliseconds); > > > > Thanks. > > > > -David > > >

