A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Shared Object - error #1151

  1. #1
    Junior Member
    Join Date
    Nov 2007
    Posts
    8

    Shared Object - error #1151

    Have mulitple scenes in one Flash File (CS3).
    Don't want animation at beginning on each to play once viewed.

    Here's the code:
    var so:SharedObject = SharedObject.getLocal("curator");
    if (so.data.alreadyVisited == true) {
    gotoAndStop(229);
    }


    Curator is the name of the scene - and I have changed each to match the scene. (there isn't more than one named curator)

    Here's the error I'm getting:
    1151: A conflict exists with definition so in namespace internal.

    Can't I have more than one shared object per movie?????
    HELP!!!
    Last edited by sparty91; 03-29-2010 at 12:21 PM. Reason: Added more detail

  2. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    You are redeclaring an existing variable, which you have already declared at other points.
    - The right of the People to create Flash movies shall not be infringed. -

Tags for this Thread

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