[Flashcoders] SharedObject always undefined

2006-04-06 Thread Jeff Mastropietro
I'm trying to use a SharedObject to save and restore the state of my 
flash movie.  However, everytime I try to create a SharedObject, it 
returns undefined.  Does anyone have any experience using 
SharedObjects?  Have any ideas what could be causing getLocal to return 
undefined?


var player_so:SharedObject= ShareObject.getLocal(player, /);
trace(player_so);

The trace prints undefined

I'm publishing my movie for Flash 6, and I have Optimize for Flash 
Player 6 r65 enabled.  I've tried publishing in Flash 7, and I have the 
same trouble.


Thanks,
Jeff
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] SharedObject always undefined

2006-04-06 Thread Lanny McNie
try SharedObject instead of ShareObject (note the 'd')


On 4/6/06, Jeff Mastropietro [EMAIL PROTECTED] wrote:

 I'm trying to use a SharedObject to save and restore the state of my
 flash movie.  However, everytime I try to create a SharedObject, it
 returns undefined.  Does anyone have any experience using
 SharedObjects?  Have any ideas what could be causing getLocal to return
 undefined?

 var player_so:SharedObject= ShareObject.getLocal(player, /);
 trace(player_so);

 The trace prints undefined

 I'm publishing my movie for Flash 6, and I have Optimize for Flash
 Player 6 r65 enabled.  I've tried publishing in Flash 7, and I have the
 same trouble.

 Thanks,
 Jeff
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com




--
-
Lanny McNie
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] SharedObject always undefined

2006-04-06 Thread Jeff Mastropietro

Lanny,

D'oh.  You're a life saver.  I sure wish Flash threw an error or 
something on that one.


Thanks,
Jeff


Lanny McNie wrote:


try SharedObject instead of ShareObject (note the 'd')


On 4/6/06, Jeff Mastropietro [EMAIL PROTECTED] wrote:
 


I'm trying to use a SharedObject to save and restore the state of my
flash movie.  However, everytime I try to create a SharedObject, it
returns undefined.  Does anyone have any experience using
SharedObjects?  Have any ideas what could be causing getLocal to return
undefined?

var player_so:SharedObject= ShareObject.getLocal(player, /);
trace(player_so);

The trace prints undefined

I'm publishing my movie for Flash 6, and I have Optimize for Flash
Player 6 r65 enabled.  I've tried publishing in Flash 7, and I have the
same trouble.

Thanks,
Jeff
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

   





--
-
Lanny McNie
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



 



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com