View Full Version : ActionScript help please?
Hey. I'm building a flash shoutbox using PHP and xml with ActionScript. It's like 99% done I just need to refresh the text box with the shouts like every second so that new shouts are brought in, like ajax would do. If anyone knows how to accomplish this in ActionScript it would be awesome if you could share.
Thanks, Jamie.
Florx
28-02-2008, 06:32 PM
[CODE]
repeater = setInterval(ajaxycoolness, 1000);
[/CODE
Same as Javascript :)
Rafiki
28-02-2008, 06:45 PM
[code]
repeater = setInterval(ajaxycoolness, 1000);
[/CODE
Same as Javascript :)
cool :D
answerd for u by flox plus rep for being helpful :D
Opps should have mentioned, I tried that already, it just loaded the shouts in over and over one after the other and didn't replace them any other ideas? Thanks for the help anyway :]
Florx
28-02-2008, 11:52 PM
Umm make the box blank at the start of the function then update it.
Hypertext
29-02-2008, 12:35 AM
and you need to start the function ;). the number is in miliseconds btw
[code]
repeater = setInterval(ajaxycoolness, 1000);
[/CODE
Same as Javascript :)
I think it's that one too?
I made a function to refresh where it clears the shouts and them in again but the loading times make it impossible to read or scroll up or down.
Hypertext
29-02-2008, 10:09 PM
longer interval then ;)
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.