Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Remoting / October 2004



Tip: Looking for answers? Try searching our database.

When is component fully loaded?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Keith Dodd - 21 Oct 2004 22:41 GMT
Have remoting working fine; but, where I have a Grid component on another frame
in the timeline, I can't get the data to load--looks as if the component isn't
actually loaded before I'm sending the data. The Grid along with a
non-component text box is in a clip that has the linkage set to export in first
frame. I don't actually place the clip until farme 5.

The non-component textbox loads ok in the same function that controls the
grid. (I tried a label component and it didn't work.) I can control the Grid's
visibility and alpha, but not anything with the grid insides itself.

This all worked fine when the grid was was on the initial frame. Also, if I
re-call the function after the Grid first fails, then it works. Seems obvious
that the grid isn't fully loaded on the first function's call.

Appreciate any help about how to sequence this so the grid is all ready to
accept and load data when I have the data ready?

Thanks
Keith Dodd
Keith Dodd - 25 Oct 2004 15:23 GMT
Found answer to this myself:

Problem IS as I suspected that the coomponent isn't fully loaded (althought
there looking alive and well), but it's net ready for data when the data comes.

For the function that is going to work with the grid, I did a doLater() --
love that name!

myGrid.doLater(this, "fillGrid");

Then make sure that there will be at least one more frame that timeline will
go to. If I understand the doLater, it causes the function to wait until the
next frame, assuring that the component is fully loaded.

Keith
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.