AS3 AIR question
Hi
I have a desktop AIR app that sends vars to a php page, which then rewrites a new css style file. After the vars are uploaded, I set off a refresh function in AIR that refreshes an html display pane, so you can see the css style changes on the html page.
I was working great, but since I have changed hosts, I find I have to send the vars twice to see changes.
I thought maybe the problem was that AIR was displaying the new page before php had a chance to write the new css file, but even after putting a 2 second delay timer on the refresh, the problem still exists.
I have also made the refresh function URL request append date and time as in:
varSend2 = new URLRequest("http://www.blah.com/"?time=" + new Date().getTime());
Is there a trick to force the html display in AIR to display the new CSS settings first time around?
Thanks guys.
Shaun