Log in

View Full Version : Cookies with Flash



ReadyToLearn
05-02-2008, 10:30 PM
Hi again,

Sorry for the multiple questions but I just discoverd FWA and am very inspired by the works of great Flash people

On this website (this one: http://www.uliheckmann.com/#/Gallery/Portfolio/People/140) when you view the portfolio, i know which images you have already seen.

How is this done? Through cookies?

Medyman
05-03-2008, 12:11 AM
Sorry for the multiple questions but I just discoverd FWA and am very inspired by the works of great Flash people

Now it make sense....
The FWA can be addicting but most of those sites have a specific purpose. Most companies/people can't afford the kind of servers you need to serve up that kind of media. Also, most companies/people don't have the need for full flash sites. Most full flash sites on the Internet are a total waste.


To that website...
I find the navigation to be really annoying! But regardless...it could be done with cookies. Though, that's a more complicated way to go. What I suspect might be happening is that when you view a certain image, that image is added to an array of viewed images.

So then you can easily check against that array to see which images to show inside the hollowed out letters.

Does that help?

thumbslinger
05-06-2008, 04:11 PM
It doesn't take as much as one would think. Shared libraries can cut-down on processor resources enormously.

As for knowing what images have been seen, look into SharedObjects. That's what you will reference in ActionScript to know how to set that code up.

Medyman
05-06-2008, 04:56 PM
It doesn't take as much as one would think. Shared libraries can cut-down on processor resources enormously.

As for knowing what images have been seen, look into SharedObjects. That's what you will reference in ActionScript to know how to set that code up.

Yeah but SharedObjects can be turned off client side. I know many people don't do it. But it's just like JavaScript, a great majority of people don't turn it off but it's still good practice to code for non-javascript environemnts.

Doing the same thing in Flash is more trouble that it's worth. For this sort of simple application (storing which images are viewed) can be done with one array and it doesn't rely on client-side settings.

ReadyToLearn
05-09-2008, 12:04 AM
Thanks for the info guys. I'll keep that in ind when I get to this part

- Nidhi