A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Sharing Shared Objects between swfs?

  1. #1
    Junior Member
    Join Date
    Sep 2010
    Posts
    1

    Sharing Shared Objects between swfs?

    Hi All, Im new here and hoping that this is in the correct section of the forum!
    Anyway, Im currently making a flash game in a group as part of a university assignment. We have made several sections to this game in different swf files and need them to all be able to access the same sharedObject. Is this possible? At the moment, the two seperate swf's im using both have the same name for the object, so we assumed this would mean it would work between the two?

    Any help is greatly appreciated!
    Daniel

  2. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    Yes it is possible but you need to make sure that the sharedObject is at the same location by placing it at the root.

    var so:SharedObject = SharedObject.getLocal("localpath","/");

    The slash will allow access the of other swfs to the object.
    - The right of the People to create Flash movies shall not be infringed. -

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center