Hey, if you could please look at the below code... I am trying to use 3 shared objects, each holding 5 pieces of info each.
"five5" works perfectly, but "five6" and "five7" do not work at all... is there something wrong with my shared object coding?
am I going about this all wrong?
code:
five5 = SharedObject.getLocal("five5");
five6 = SharedObject.getLocal("five6");
five7 = SharedObject.getLocal("five7");
/////////////////////// START EDIT BUTTONS //////////////////////////////
_root.edit_five5.onRelease = function(){
save_buttons.gotoAndStop("five5");
rope1 = five5.data.rope1;
rope2 = five5.data.rope2;
rope3 = five5.data.rope3;
rope4 = five5.data.rope4;
rope5 = five5.data.rope5;
}
_root.edit_five6.onRelease = function(){
save_buttons.gotoAndStop("five6");
rope1 = five6.data.rope1;
rope2 = five6.data.rope2;
rope3 = five6.data.rope3;
rope4 = five6.data.rope4;
rope5 = five6.data.rope5;
}
edit_five7.onRelease = function(){
save_buttons.gotoAndStop("five7");
rope1 = five7.data.rope1;
rope2 = five7.data.rope2;
rope3 = five7.data.rope3;
rope4 = five7.data.rope4;
rope5 = five7.data.rope5;
}
//////////////////////////// END EDIT BUTTONS ///////////////////////////////
/////////////////////////// START SAVE BUTTONS //////////////////////
_root.save_buttons.save_five5.onRelease = function(){
five5.data.rope1 = rope1
five5.data.rope2 = rope2
five5.data.rope3 = rope3
five5.data.rope4 = rope4
five5.data.rope5 = rope5
five5.flush();
}
_root.save_buttons.save_five6.onRelease = function(){
five6.data.rope1 = rope1
five6.data.rope2 = rope2
five6.data.rope3 = rope3
five6.data.rope4 = rope4
five6.data.rope5 = rope5
five6.flush();
}
_root.save_buttons.save_five7.onRelease = function(){
five7.data.rope1 = rope1
five7.data.rope2 = rope2
five7.data.rope3 = rope3
five7.data.rope4 = rope4
five7.data.rope5 = rope5
five7.flush();
}
/////////////////////////// END SAVE BUTTONS ///////////////////////