Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4025880
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:54:06+00:00 2026-05-20T10:54:06+00:00

I have a swf that I would like to cookie to control the frame

  • 0

I have a swf that I would like to cookie to control the frame the user see’s depending on whether it is a first time site visit or returned visit. My code is below – it works, it doesn’t bring back any out messages however when I load the swf into my site that uses this technique the page becomes extremely slow and unresponsive – can anyone help out with any reasons why this may occur?

var my_so:SharedObject = SharedObject.getLocal("visited", "/");

if (my_so.data.newVisitor != undefined) {
//object exists: return user
this.gotoAndPlay(2);


} else {
//object doesn't exist: new user
my_so.data.newVisitor = "no";
this.gotoAndStop(1);
} 

Many thanks in advance
Rachel

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T10:54:06+00:00Added an answer on May 20, 2026 at 10:54 am

    SharedObjects in general are extremely slow in Flash. That being said, there is no reason why it should be slowing down your entire site after it has been used.

    When writing to a SO, you have to use flush() to tell Flash to actually write the data.

    my_so.data.newVisitor = "no";
    // Write the data to disk
    my_so.flush();
    

    Another thing to try would be to actively close the connection after you are done with it. So after the else statement you would add:

    // Close the connection
    my_so.close();
    // Clear pointer for GC
    my_so = null;
    

    If that doesn’t work, the next steps would be to put trace statements in and around the SOs and make sure they aren’t being accessed while the program is running.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a flash video called abc.swf that i would like to play when
I would like to have a FLEX SWF Menu in .NET that is animated,
I have a button in a swf file. I would like that when the
I have a tag to include add a SWF but I would like around
I have a flash video(swf) that i'd like to display on my homepage. But,
I have a flash video player that I would like to embed in other
I have a swf that requires flash 9, and I'm trying to show content
I have a swf that loads images from my server and resizes them to
I have a SWF file that connects to a remote flash server and receives
I have an AS2 swf that has an array that is updated when a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.