all groups > flash data integration > august 2006 >
You're in the

flash data integration

group:

DataGrid/XMLConnector quirk?


DataGrid/XMLConnector quirk? skylarchalland
8/21/2006 10:52:09 PM
flash data integration:
I am using the Macromedia tutorial on Data Integration to populate a DataGrid
from an XMLConnector:


http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.ht
m?context=LiveDocs_Parts&file=00000756.html

I have it working fine, but when I try to put it in my application I found a
weird quirk. What I have found out is that if you have the DataGrid inside a
movie clip, go to another frame within that clip, and then go back to the frame
(with the data grid) it will NOT load the data. To see what I mean go to:
http://www.idsgn.org/temp/working2.swf

Click load, then hit next, and the back again. Try loading and it won't.

Is this a bug or am I missing something? When I try to dig in the code I find
that the XMLConnector IS getting the xml, but is not populating either the
DataSet or the DataGrid...

Source files:
http://www.idsgn.org/temp/xmlgrid.zip

Any ideas? Thanks!
Re: DataGrid/XMLConnector quirk? The Feldkircher
8/24/2006 12:00:00 AM
G'day

OK!, The problem I think is with the data binding of symbol1 if you remove
symbol 1 and place all components on the stage in frame 1 and #2 in frame 2 of
the Main Timeline the problem goes away.

Hope this helps
Re: DataGrid/XMLConnector quirk? skylarchalland
8/24/2006 1:44:54 PM
I suppose I should have been more clear. I have the components in a movie clip
for a reason (that's how the application works). It works inside the movie clip
as you can see, but not after you switch frames. Am I doing something wrong or
is this a bug in Flash?
Re: DataGrid/XMLConnector quirk? The Feldkircher
8/24/2006 5:09:40 PM
I can't see the need for a symbol, but if thats what you need then I think your
only solution is 'hardwire' in A.S an XMLParser
this will then parse the file everytime you return to frame 1. For some reason
the Dataset never gets refreshed - must be a bug in flash, hey if it was simple
everybody would be doing it..........
Re: DataGrid/XMLConnector quirk? skylarchalland
8/31/2006 4:13:49 PM
AddThis Social Bookmark Button