Do I have to use the method :
BindFormatFunction from the DataGlue-class in the same movie as wherein I
pulled in the data?
This is the problem I have :
I have a form-based movie in which the first childscreen pulls in data from
the server. I have no problem binding that data using the above method to any
combobox, on whichever screen, that resides within this (parent)movie.
My app. is however build up out of many child-screens that load an external
swf (also form-based) on reveal. When I try to bind the data to a combobox in
this loaded movie nothing happens.
However, the data is available trough a _global.recordset that gets the
server-data assigned when the data is in.
This means I can build a small for-loop from 0 to _global.recordset.length and
add the data to the combox by means of an addItemAt-command.
So bassicaly there is a workaround but still.
I find is strange that I can't use the dataGlue.BindFormatString() even when
I import the dataglue class in my loaded (child)movie and knowing that the
recordset is available.
What I'm I overlooking?
feiloiram - 19 Aug 2004 15:00 GMT
It took me 8 hours to figure -out why this wasn't working.
the:
import mx.remoting.DataGlue; command
should be in the movie-clip AND AND AND AND AND in the frame wherein the
BindfFormatString -method is called.
Not in the parent-movie nor in the parent movieclip nor in the preceding
frame!!!!
They have to stick together!!! on the same frame!