Discussion Locked

Flash 5.0 - Help with the Intro Screen

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Flash 4.0/ 5.0

I have a flash, which after some animation the menu screen appears (1 swf file)

What I'am look for is that
If the user / customer visits my site for the first time then the animation followed by the menu should be played, BUT
After visiting other section / pages & returned to the index page only the menu should appear.

I hope I'am clear :-)

Thanks

5 replies

by medievaldude

Personally, I'd create a second Flash movie that starts with the menu screens. That's simple enough to start with.

Then, for a simple solution, keep your index page as it is now but add a "Main" page that is identical to your index page exceptthat it uses your new Flash movie (the one with only the menu screens). All of your other sections should link to the "Main" page instead of the Index page.

A slight variation would involve modifying the Index page to use server-side scriptingto dynamically use the long or short Flash movie based on where the user was before coming to your index page (within your website or someplace else).

So depending on your preferences, you have some options...

by madestroitsolutions

The easiest way to do it is to use cookies. Put a cookie on the user that tells you if he has been on the site. However, cookies are not reliable, since your user might have turned them off, or it may not be the first time he is visiting, and you would have to do a lot of housekeeping. On the other hand, you could do it with ASP, assuming you run on a windows server. The trick here would be that the part of the Javascript code that passes values to Flash, would have to be written from ASP, uponpage execution. First, you would check the HTTP_REFERER variable,and if they are coming from within your side, you would write a certain value, Eg:

<%
if instr(HTTP_REFERER, "yourdomain.com")>0 then
FlashStartFrame = 10
else
FlashStartFrame = 1
end if %>

Then you make your flash movie retrieve this value from the page every time it loads.

I hope that helps.

Good Luck!

This discussion is closed to new replies.