i have 7 frames, each frame contain 1 datagrid(instance name “datagrid” for all datagrid.
i put this code in each frame…
frame 1
datagrid.addColumn(“Name”);
datagrid.addColumn(“Address”);
datagrid.addColumn(“Phone”);
datagrid.addItem({Name:“John”, Address:“Washington”, Phone:“899”});
datagrid.addItem({Name:“Luke”, Address:“Penn”, Phone:“909”});
Frame 2
datagrid.addItem({Name:“Sam”, Address:“Washington”, Phone:“999”});
datagrid.addItem({Name:“Mikey”, Address:“Penn”, Phone:“909”});
after put the code in frame 2 action, the arrangement of the columns changed…
exmple:- it should be Name, Address then Phone… but it changed to Address, Name then Phone.
Another thing is, it display all the data inserted twice… so there are two John, Luke, Sam and Mikey
I really have no idea about this; please help…
One more thing, i’ve changed the datagrid parameter Editable = true…
so how can i keep the change that i made to the datagrid?
Anybody have any idea the code should i add to store this change into sharedObject.
Please help, thanks in advance.
FYi, im using Flash CS3/AS3