AS3 have buttons remember their state on load of external swf

hi

first of all thanks for looking,

problem brief: ok i have a container swf which loads external swfs into container_mc they go as follows > = loads

container swf > start swf > preloader swf > main swf

ok so ive managed to make a button which i thought would be ok, i put it on the main timeline and had the other swf load into a movieclip container.

this button resizes the screen much the same as you would your browser at the top (the squares)

so this button has a toggle effect going on in which we have an maximise off state, a maximise off over state, a minimise on state and a minimise on over state

so ive gotten it to work

except when a new swf loads it doesnt remember what state the button was at and so reverts to frame one which is wrong especially if the screen has already been maximised

ive tried onenterframe listener and can get it going to an extent

the problem is how to have a constant button on screen remembering whether the stage was fullscreen or normal and passing that to the loaded swf so that the button is in the correct state also

hmm as3 really is a pain in the a**

any help very much appreciated as always

thanks
fonzio