FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

flash with sharedObjects.

 


m-productions
ok i know the basics of using sharedObjects. my site is based around them, however, im using them in a new way on my site, and i am having a problem, i open up one .swf, on that swf theres a button to open another swf on another webpage. in this swf it sets the sharedObjects varible "email" to 1. now back in the main swf, it knows that mail now = 1,(if you trace it, it shows it as a 1 now and not undefined) however a mc with the code

Code:

onClipEvent(enterFrame) {
   var info:SharedObject = SharedObject.getLocal("mainsite", "/");
   if (info.data.email == undefined) {
      gotoAndStop(1);
   } else {
      gotoAndStop(2);
   }
}

will not send it to frame 2, even tho it knows it no longer is = to undefined.

however i posted my problem at flashkit.com, and the problem was solved, however, the method only works when the mc is on the main frame.... my mc is not, and can not be. i was wondering if anyone knows how to fix this. A better explination is here, where i started this topic.

http://board.flashkit.com/board/showthread.php?t=711831
you can read the full post here, on my last post i have the .fla
Reply to topic    Frihost Forum Index -> Scripting -> Others

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.