[AS 3] Shared Object between Multiple SWF Files
1 comment so farI have been working on my .mp3 player that requires two .swf movies, one to play the music and another to control it (like a remote control to your stereo). This implementation is required so as the user navigates from one page to another the music will not be interrupted. The good thing is that the SharedObject can be retrieved by other movies if you use a line of code such as:
_so = SharedObject.getLocal(”SharedObjectID”,”/”);
One thing to be careful of is to not allow the ability of other .swf movies (other than your own) to retrieve/edit/delete this object.
Wednesday, April 2nd, 2008 at 10:10 am and is filed under Actionscript 3, Data Sharing. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Thanks for this bit of code! I couldn’t find anything that said the “/” would work in AS3.