# Help needed with shared object :-(

**URL:** <https://forum.kirupa.com/t/help-needed-with-shared-object/79691>\
**Category:** Uncategorized\
**Created:** [February 16, 2005, 12:13pm UTC](https://forum.kirupa.com/t/help-needed-with-shared-object/79691 "2005-02-16T12:13:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![niunpelodetonto](https://avatars.discourse-cdn.com/v4/letter/n/34f0e0/32.png) [@niunpelodetonto](https://forum.kirupa.com/u/niunpelodetonto)\
**Post date:** [February 16, 2005, 12:13pm UTC](https://forum.kirupa.com/t/help-needed-with-shared-object/79691/1 "2005-02-16T12:13:19Z")

</div>

Situation:  
After reading Shared Object Turotial on [kirupa.com](http://kirupa.com) i want to store a file  
name in a shared object, then open a new window, and retrieve this file name.  
I try to use this to read/write comments on a weblog.

To set up the sahred object i use this code on a button:

on (release) {  
//save comments\_file name in a shared object  
user = SharedObject.getLocal(“fechacomentario”);  
user.data.entrada = “[http://xxxxxxxxxxxxxxxxxxxxxxxx.txt](http://xxxxxxxxxxxxxxxxxxxxxxxx.txt)”;  
user.flush();  
//open comments windows  
\_level0.getURL(“javascript:contacto(’…/diario/comentarios.htm’)”);  
}

And in the new window y put this on a keyframe:

//load shared object  
user2 = SharedObject.getLocal(“fechacomentario”);  
entrada = user2.data.entrada;

then i’d use ‘fechacomentario’ to load a dinamyc text, but it seems not  
to work.

Any suggestions? Thanks!
