Answered
am trying to use an indirect reference
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.
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.