# Flash Data Persistance

**URL:** <https://forum.kirupa.com/t/flash-data-persistance/22192>\
**Category:** flash\
**Created:** [May 31, 2003, 8:15pm UTC](https://forum.kirupa.com/t/flash-data-persistance/22192 "2003-05-31T20:15:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nyeark](https://avatars.discourse-cdn.com/v4/letter/n/90ced4/32.png) [@nyeark](https://forum.kirupa.com/u/nyeark)\
**Post date:** [May 31, 2003, 8:15pm UTC](https://forum.kirupa.com/t/flash-data-persistance/22192/1 "2003-05-31T20:15:47Z")

</div>

I’m trying to make a flash movie to use on my desktop html page that allows draggable, editable, closable & transparent “Sticky Notes”. Everything works except this: When the desktop gets refreshed, the Notes go away. Is there any way to make the text in them persist between refreshes? I know that I could probably read them in/out of files, but how to delete the data for a note when it’s closed by the user?

I combed the forums/tuts and couldn’t find anything that applied. I’ll attach the swf so you can see what I have so far.  
Any help appreciated!

---

<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:** [May 31, 2003, 10:06pm UTC](https://forum.kirupa.com/t/flash-data-persistance/22192/2 "2003-05-31T22:06:46Z")

</div>

you can use SharedObjects 🙂

---

<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:** [June 1, 2003, 2:39am UTC](https://forum.kirupa.com/t/flash-data-persistance/22192/3 "2003-06-01T02:39:06Z")

</div>

Thanks ahmed, I didn’t know about sharedobjects.

My next problem/question is this: I need to refer to a text box, inside a button, inside a movie clip, inside another movie clip.  
The object structure of Flash eludes my understanding, and I just can’t figure it out.

Do I use the instance names, or the names of the actual objects?  
It boggles my mind. Any help appreciated, again…

---

<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:** [June 1, 2003, 3:13am UTC](https://forum.kirupa.com/t/flash-data-persistance/22192/4 "2003-06-01T03:13:47Z")

</div>

you need to use the instance names of the objects, so you’ll end up with something like this:

```auto
myButton.myFirstMC.mySecondMC.myTextbox.text = "value"

```

but what i would do is assign that textfield a variable like this:

```auto
myButton.myFirstMC.mySecondMC.myTextbox.variable = myVar

```

this way, when you need to change the caption of that textbox, all you need to change is

```auto
myVar = "value"

```

hope this helps 🙂

---

<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:** [June 1, 2003, 4:05am UTC](https://forum.kirupa.com/t/flash-data-persistance/22192/5 "2003-06-01T04:05:13Z")

</div>

Hey man, thanks for the help, but the \*\*\*\*ed thing isn’t working…

Could you perhaps slap together a little demo to show me? I’ve never used Flash extensively before this, and I’ve literally been working all day on this with no results.
