2 Replies Latest reply on Jul 14, 2007 3:48 PM by avonova

    am trying to use an indirect reference

    avonova
      hi folks,

      here is an example line of code i'm currently using where "clipXords" is a 'string literal' and everything works fine:-
      var LsoXords:SharedObject = SharedObject.getLocal("clipXords");

      HOWEVER
      i'd like to use something along the lines of:-
      var clipXords:String = anyDynamicFilename
      var lsoXords:SharedObject = SharedObject.getLocal( clipXords );

      SO NOW clipXords is not a 'string literal' but is an indirect reference to anyDynamicFilename.

      trouble is i'm not sure if that is just a dumb question; or whether it's 'off limits'; or whether it is possible but i'm coming at it 'half coc-ed'.

      any suggestions greatly appreciated.