Skip navigation
SaneDevil
Currently Being Moderated

Detecting when a variable:URLVariables receives data

Aug 16, 2012 6:34 AM

Tags: #air #event #as3.0 #actionscript3

Hi

 

Is it possible to add a 'Change' event listener to URLVariables similar to adding addEventListener(Event.CHANGE, function) to a textinput?

I'm loading data and need to detect when it has completed and send those variables to another class.

 

Basically I need to know when it's 'safe' to retrieve the data from my URLVariables variable and that means I need to detect a change on URLVariables.

I have a workaround using a textinput that is changed in the complete function and then loads the data into a seperate URLVariables var meaning I have a textinput to dedect change and then another variable that hold the actual data which is a waste...

 

Thanks

 
Replies
  • kglad
    63,043 posts
    Jul 21, 2002
    Currently Being Moderated
    Aug 16, 2012 6:40 AM   in reply to SaneDevil

    you can detect whenever data is received by using the Event.COMPLETE listener and listener function.  whether data is new, changed or previously defined and unchanged, you'll need to code yourself after your complete listener function is called.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points