Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 01-03-2006, 08:47 AM   #1
stef
Registered User
 
Join Date: Sep 2001
Location: Bristol
Posts: 46
Default shared objects quick question

Hello,

Happy new year!!
I have a very quick questions about shared objects, are they created only when used with a browser? as the project I'm working is going to be redesigned into a projector file will shared objects still be created and set?

thanks for your help

Stefan

Last edited by stef; 01-03-2006 at 08:52 AM.
stef is offline   Reply With Quote
Old 01-03-2006, 10:21 AM   #2
mambenanje
da clone in the house
 
mambenanje's Avatar
 
Join Date: Jun 2004
Location: cameroon
Posts: 326
Send a message via Yahoo to mambenanje
Default

shared object is for the client system and works no matter where the flash file comes from be it from a webserver or from a cdrom or from the hard disk
check it out at livedocs.macromedia.com
mambenanje is offline   Reply With Quote
Old 01-03-2006, 12:19 PM   #3
stef
Registered User
 
Join Date: Sep 2001
Location: Bristol
Posts: 46
Default

maybe you can help me some more??

I have a shared object that doesn't want to share I am hitting a brick wall and am not sure why?

For a test I am using two files one with a movieclip loader and one with nothing but a trace statement code is as follows.


Movie 1 (sandwiche_base.fla)
var lsoUser:SharedObject = SharedObject.getLocal("userdata", "/");
lsoUser.data.userid = 100;
lsoUser.data.sandwiches = "pickle";
trace(lsoUser.data.sandwiches);
// <!-- MovieClipLoader Object --> \\
var myMCL:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
myMCL.addListener(myListener);
myMCL.loadClip("sandwichSelector.swf", 10);
// <!-- MovieClipLoader Object --> \\

Movie 2 (sandwichSelector.fla)
trace(lsoUser.data.sandwiches);

The strange thing is the statement traces the value on the sandwich_base movie but not on the sandwichselector movie, I was thinking that shared objects are global in scope.

Stefan
stef is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
remote shared objects problem matt poole Flash Media Server 1 11-30-2007 10:01 AM
Shared Objects, visibility preperty vard3000 ActionScript 2.0 0 03-10-2005 06:08 PM
quick question regardin the addressing of instances and objects antonyx ActionScript 2.0 1 03-06-2005 04:59 PM
Shared Objects Yvonne ActionScript 1.0 (and below) 3 11-18-2003 07:43 PM
Shared Objects (useful for my situation) Mutty Other Flash General Questions 6 03-24-2003 04:59 AM


All times are GMT. The time now is 09:04 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.