View Full Version : Execute code when a component enters the view
CraigL
05-26-2007, 04:17 AM
Here is my problem. I need something like the creationComplete attribute that will call a function when a component becomes visible. creationComplete only does this once, but for component that displays information like a product page I need it to show new info when it is reloaded. I tried enter frame, but of course that called the function 24 times a second.
I just got help with something similiar in this topic: http://www.actionscript.org/forums/showthread.php3?t=137342
Maybe that will help you as well.
Crunchy Cat
05-28-2007, 08:47 AM
I've used:
preinitialize="YourHandler(event)"
in situations that sound like yours and it seemed to do the trick.
dr_zeus
05-28-2007, 08:02 PM
I think you should share some more information such as how the information is loaded into your "product page". Are you using simple binding? You might be able to hook into the "change" event of one of the components in your page to determine when new data is loaded.
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.