Hi,
thank you!

But, there are two other problems:
1.each time I close the page and open it again, the shared object data is no 
longer persistent and a new one is created. However I have set the persistent 
to be true.

2.here I write:
soChat.setProperty("history",txtChatBox.text);

but in somewhere else I cannot get the msg by using:
txtChatBox.text=soChat.data["history"];

Is there something wrong with the syntax?

Finally, I am using Flex2 to develope Red5 application. A sprite is attached to 
the application and drawcircle and fill the circle are done within it, but the 
rollover and rollout events both are triggered each time the mouse moves aross 
the circle border and inside the circle. It is unbelievable that the rollover 
and rollout event in Sprite seems crazy...

Regards,
Sand

----- Original Message ----- 
From: "Yoshiaki Kawazu" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, February 27, 2007 7:11 PM
Subject: Re: [Red5] How to store a sharedobject in red5?


> Hello,
> 
> sand wrote:
>> I try to use: so.data.txt=txtArea.text, but the size of the files in 
>> "persistence\SharedObject" does not increase.
> 
> Instead of so.data.txt=..., try this code: so.setProperty('txt', 
> txtArea.text);
> 
> If so = SharedObject.getLocal(...), so.data.foo = bar; is work.
> 
> But if so = SharedObject.getRemote(...), so.data.foo = bar; is not work.
> It change only local data property. Its change don't transmit to remote.
> 
> so.data.foo = bar; //this don't transmit change to server.
> so.setDirty('foo'); //this transmit change of 'foo' to server.
> 
> so.setPrperty('foo', bar); //this update data and transmit change to server.
> setProperty method is similar to update data and setDirty.
> (setProperty update value and transmit only when that value has changed, but 
> setDirty is always.)
> 
> The way I understand these spec will be all for performance.
> 
>


--------------------------------------------------------------------------------


> _______________________________________________
> Red5 mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to