Moments before being surprised at an anniversary garden party thrown by her husband and their family and friends, Carol Sherwood shocks him by saying she wants a divorce and during the course of the party, she has three separate fantasies with three different men in attendance of being married to them. The first is with egotistical real estate magnate Craig Wyler. The second is with milquetoast English professor David Koenig. The third is with her best friend Elaine's husband Phil.
High School student David Lightman (Matthew Broderick) has a talent for hacking. But while trying to hack into a computer system to play unreleased video games, he unwittingly taps into the Defense Department's war computer and initiates a confrontation of global proportions! Together with his girlfriend (Ally Sheedy) and a wizardly computer genius (John Wood), David must race against time to outwit his opponent.
In late 19th Century Hong Kong the British may rule the land, but the pirates rule the waters. One Coast Guard officer is Dragon Ma, who is determined that his beloved Coast Guard will not be made a fool of.