FlashComGuru Home Imediasee Influxis Uvault Akamai
                                                                                       Forum Index | Active Topics | Register
                                                                                                          List Overview | List Archives
                                                                                                                           About this site | Advertise
 

home

Adobe AIR (8)
Applications (32)
Books & Training (9)
Collaboration (9)
Components (6)
Events (50)
Flash Player (10)
Flex (29)
FMS (70)
General (109)
Hosting (5)
Jobs (13)
Off topic (31)
Press Releases (9)
Site Check (8)
Tools (41)
Videos & Players (54)

Flash On the Beach

Alltop, all the cool kids (and me)


Stop the simpleConnect from remembering a username
by

An annoying behaviour of the simpleconnect component is the fact that it will remember your username (and even log you in automatically) between sessions. Some people might not be bothered by this but I never liked it much and decided to hack it a bit, here's how.

The username is stored inside a SharedObject (SO) and that's the bit that needs disabling. Start by selecting the SimpleConnect component in the library and select edit.
The 'else' statement on line 94 of the ActionScript on the Actions layer needs disabling. Commented out the following lines:

else {
   this.local_so = SharedObject.getLocal("FCUsername", "/");
   if (this.local_so.data.username != null) {
   this.username = this.local_so.data.username;
   this.changeName_btn.setEnabled(true);
  }
}

And again there is a reference to the same SO further down, it's best to comment this out as well (line 139):

//this.local_so.data.username = this.username;

And that's it. Happy communicating.

Got a question about this tutorial? You can find the thread for it in our Flashcom Forum.

12/2002