Use new way to instantiate Flash and Session objects.