-
Play Intro for 1st time users only
Does anybody know of a way or technique in FLASH MX to Play Flash intro only for first time users?
In other words i have someone who wants to play the animation 1 time for the first time user for that day.
I've tried to set cookies but the problem with that is when you hit the back button it plays again anyway.
any tips would be greatly appreciated.
Thanks
RegGFX
-
Re: Play Intro for 1st time users only
Play once:
Code:
_root.stop();
_so = SharedObject.getLocal("introCheck");
if (_so.data.playedIntro) {
//skip intro
} else {
//play intro
_so.data.playedIntro = true;
_so.flush();
}
Originally posted by RegGFX
1 time for the first time user for that day.
Play Once per day:
Code:
_root.stop();
_so = SharedObject.getLocal("introCheck");
today = new Date().getDate();
if (_so.data.playedToday == today) {
//skip intro
} else {
//play intro
_so.data.playedToday = today;
_so.flush();
}
-
-
This Shared Object approach is REALLY Great....however does anyone know how too, For testing purposes HOW you can delete or RESET the Shared Object value of introCheck so that i don't have to change the
_so = SharedObject.getLocal("introCheck"); variable everytime i do a test?
You know, kind of like when you clear your browser cache or delete your cookies in your browser to re-run the file when you make a change?
Here is a better example: Lets say i made a change and wanted to see the intro again....i would have to change "intoCheck" to a new value of "introCheck01"
So again Does anyone know how too or have a suggestion on how to clear the shared object value for Testing Purposes?
Suggestions or Work-arounds appreciated.
Thanks
RegGFX
http://www.extremefx.net
-
put _so.data.playedToday = null; somewhere...
-
You can search your system for "*.sol", and simply delete the relevant one.
-
-
So where's the hidden button? I want to pretend I'm the client!
-
Here is a CLUE $$
Try HOVERING your mouse over the large BLUE dotted circle line in the lower right hand corner until you get the traditional MOUSE Finger
then click
This will reset the flash cookie
Best Regards,
RegGFX
-
Talking about your own site? Or your zip? Can't find it on your site?
-
and g_SOLO_01 shows us once again tht i have miles to go b4 i sleep!!
CooL "N" CalM
my body is sore
my eyes are red
i still itch for more
before i hit the bed
-
And what if I disable shared objects writing on my system?
-
then i'll have even more miles to go b4 i sleep!!!
CooL "N" CalM
my body is sore
my eyes are red
i still itch for more
before i hit the bed
-
FK's Geezer Mod
To delete a shared object cookie, look in Windows/Application Data/ Macromedia/Flash Player. If it's from your online site, it'll be in a folder named after the site. If it's from testing, then it's in a subfolder of Flashplayer/Local Host/Mx/Test/ or, Flashplayer/Local Host/Mx/Windows/Temp, if you tested it from a download like I just did.
-
Much easier, as I posted earlier... To just search your system for "*.sol", and simply delete the relevant one. Or for that matter, ALL of them! And set your player settings to not allow anymore of them.
-
FK's Geezer Mod
I have 2 hard drives and 7 drive letters, not including A/ and the 2 CD burners. Searching the whole systems takes a minute or more. I know where they are and it's faster to just go there and get them with the vacuum cleaner. But how do you set the player not to allow them?
-
Limit your search on c:, they won't be written anywhere else!
If that fails, get a faster machine!
On any site, your's for example, right-click and hit Settings. Hit the Folder icon, and check the Never box!
-
FK's Geezer Mod
Ha! You just inadvertently found the way to delete them.
Set it to never and OK, then close. No more shared object. Set it to Allow and give it some space and it's back.
Great for testing, I don't have to comment them out anymore.
Added: And I mean they are deleted. Refresh the view in explorer, and the whole folder is gone. I like that.
Last edited by iaskwhy; 03-12-2003 at 03:09 AM.
-
Inadvertently? Nah!
Problem is that you have do it site by site. Have yet to find the way to disabled them all together!
Maybe something here:
http://www.macromedia.com/support/fl...e_storage.html
-
FK's Geezer Mod
>>Have yet to find the way to disabled them all together!
Naw, that's it, I just deleted all my folders from flash sites I visited before. On that page you linked to, there is another link to set the global settings on your player so you never get one again.
http://www.macromedia.com/support/fl...l_storage.html
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|