# Scripting wrong for Save/Load-What can I do?

**URL:** <https://forum.kirupa.com/t/scripting-wrong-for-save-load-what-can-i-do/65444>\
**Category:** flash\
**Created:** [September 26, 2004, 2:00pm UTC](https://forum.kirupa.com/t/scripting-wrong-for-save-load-what-can-i-do/65444 "2004-09-26T14:00:11Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![johannes](https://avatars.discourse-cdn.com/v4/letter/j/7ba0ec/32.png) [@johannes](https://forum.kirupa.com/u/johannes)\
**Post date:** [September 26, 2004, 2:00pm UTC](https://forum.kirupa.com/t/scripting-wrong-for-save-load-what-can-i-do/65444/1 "2004-09-26T14:00:11Z")

</div>

Right. I’ve checked out Shared Objects on the forum and that tut didn’t help me…Could anyone take a look at my fla and see what I’m doing wrong, please…I just want to be able to Save content of all **Input Boxes** and then Load them up again! Or does anyone know of any easier ways of doing this?

[I used this tut to produce this.](http://www.flashkit.com/tutorials/Games/SaveLoa-fwe4life-1037/index.php)

I’ve attatched this code to the Save button:

```auto
on (release)
   {
   _root.pos = sharedobject.getLocal("civilrights");
   _root.pos.data.aims = _root.aims._x;
   _root.pos.data.aims = _root.aims._y;
   _root.pos.data.NAME = _root.text1;
   }

```

and this for the Load Button:

```auto
on (release) {
   _root.pos = sharedobject.getLocal("civilrights");
   setProperty(_root.aims, _x, _root.pos.data.aimsx);
   setProperty(_root.aims, _y, _root.pos.data.aimsy);
   _root.NAME = _root.pos.data.text1;
   }

```

Any ideas ? I’m really stuck…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 27, 2004, 7:38pm UTC](https://forum.kirupa.com/t/scripting-wrong-for-save-load-what-can-i-do/65444/2 "2004-09-27T19:38:07Z")

</div>

Post the fla in MX , maybee I can help u, Im not sure but it seems u use same name for diferent things :))

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 27, 2004, 7:57pm UTC](https://forum.kirupa.com/t/scripting-wrong-for-save-load-what-can-i-do/65444/3 "2004-09-27T19:57:41Z")

</div>

> [@lordkiller](#):
>
> Post the fla in MX , maybee I can help u, Im not sure but it seems u use same name for diferent things :))

Thanks mate!

Fla can be found here:

[My Fla](http://www.ahrenfelt.co.uk/flash/)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 27, 2004, 8:01pm UTC](https://forum.kirupa.com/t/scripting-wrong-for-save-load-what-can-i-do/65444/4 "2004-09-27T20:01:51Z")

</div>

Tomorrow at the same time i bee back 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 27, 2004, 8:07pm UTC](https://forum.kirupa.com/t/scripting-wrong-for-save-load-what-can-i-do/65444/5 "2004-09-27T20:07:04Z")

</div>

> [@lordkiller](#):
>
> Tomorrow at the same time i bee back 🙂

Looking forward to it…difficult this one!

J

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 28, 2004, 6:00pm UTC](https://forum.kirupa.com/t/scripting-wrong-for-save-load-what-can-i-do/65444/6 "2004-09-28T18:00:30Z")

</div>

I tell u to save for the MX (flash6) version not for MX2004 :((  
Anyway I find a simple demo for S.O. see the fla,maybee help u, or upload again the MX version…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 28, 2004, 8:03pm UTC](https://forum.kirupa.com/t/scripting-wrong-for-save-load-what-can-i-do/65444/7 "2004-09-28T20:03:18Z")

</div>

Sorry m8!

Now in MX

[My Fla](http://www.ahrenfelt.co.uk/flash/)

Yeah thanks for tut, tried it and still can’t figure out how to do it…have loads of input boxes…

Any ideas?

Really appreciate your help, kind of new at this!

J

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 28, 2004, 8:17pm UTC](https://forum.kirupa.com/t/scripting-wrong-for-save-load-what-can-i-do/65444/8 "2004-09-28T20:17:03Z")

</div>

OKY

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 29, 2004, 6:14pm UTC](https://forum.kirupa.com/t/scripting-wrong-for-save-load-what-can-i-do/65444/9 "2004-09-29T18:14:27Z")

</div>

See the fla and comments, if u realy cant figure with this I assist u 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 29, 2004, 7:12pm UTC](https://forum.kirupa.com/t/scripting-wrong-for-save-load-what-can-i-do/65444/10 "2004-09-29T19:12:09Z")

</div>

Thanks lordkiller!

That makes more sense to me.

Sorry about this…but how can I do the same with let’s say 4 different text boxes? Where and how do I enter that code?

I really appreciate your help man! Sorry for being such an idiot… ;(

Cheers,

J

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 30, 2004, 5:34pm UTC](https://forum.kirupa.com/t/scripting-wrong-for-save-load-what-can-i-do/65444/11 "2004-09-30T17:34:38Z")

</div>

beginner=! idiot, only u fill like 🙂  
I promise, so … see later

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 30, 2004, 8:42pm UTC](https://forum.kirupa.com/t/scripting-wrong-for-save-load-what-can-i-do/65444/12 "2004-09-30T20:42:54Z")

</div>

Is later and is ready

Give me a f… mail address this stupid “to large file to upload” is annoying  
is only 200 k :(((  
send to [bitaikalma@home.ro](mailto:bitaikalma@home.ro)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 30, 2004, 8:47pm UTC](https://forum.kirupa.com/t/scripting-wrong-for-save-load-what-can-i-do/65444/13 "2004-09-30T20:47:19Z")

</div>

[bitaikalman@home.ro](mailto:bitaikalman@home.ro)
