macromedia flash flash remoting:
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
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
Don't see what you're looking for? Try a search.
|