all groups > flash actionscript > july 2007 >
You're in the

flash actionscript

group:

flush()ing shared object from a function


flush()ing shared object from a function avonova
7/7/2007 10:15:32 PM
flash actionscript:
i seem unable to flush/save to file the 'data' items of a shared object from
within a function, any ideas please folks?

i can get the code to work from the 'main body' of the script BUT if i try the
same/similar thing from within a function it doesn't want to play! could it be
due to some consideration regarding scope of variable (which i kinda understand
- and kinda don't?!?)
Re: flush()ing shared object from a function kglad
7/7/2007 11:10:36 PM
Re: flush()ing shared object from a function avonova
7/8/2007 12:05:54 AM
yo kglad,

code attached to original post as requested/instructed

regards

Re: flush()ing shared object from a function kglad
7/8/2007 12:58:56 AM
try:



cipherXpos[counter] = CiphersClip_mc._x;
cipherYpos[counter] = CiphersClip_mc._y;
// record and save x,y co-ordinates of CiphersClip_mc
lsoXords.data.cipherXpos = cipherXpos;
lsoYords.data.cipherYpos = cipherYpos;
lsoXords.flush();
lsoYords.flush();
Re: flush()ing shared object from a function avonova
7/8/2007 3:16:14 AM
o-k-a-y kglad

you da man, my man, we have a right result mon ami.

it worked first time, thank you.

i suspect i wouldn't have found that 'configuration' in a long time - it's
easy when you know how, but getting there can be hard work.

many thanks for your time and contribution, i appreciate both.

best wishes,

avonova
Re: flush()ing shared object from a function kglad
7/8/2007 3:29:49 AM
AddThis Social Bookmark Button