Web Hosting Talk







View Full Version : frames !@#!@$!@$


GotGameServers
04-11-2005, 01:33 AM
Ok someone tell me if this is unfixable or not lol...

Heres what im designing for a customer

webpage with flash header (the flash has the navigation for the site)

It seems kind of annoying to reload and rewatch the flash anim every time they click a link so I decided to try frames....

(insert long string of obscenities here)

Fixed top frame (rows="247,*")

The top frame contains the header (src="top.html" name="topFrame" scrolling="no" noresize frameborder="0" marginheight="0" marginwidth="0")

The bottom frame contains the rest (src="top.html" name="topFrame" scrolling="yes" noresize frameborder="0" marginheight="0" marginwidth="0")

The problem is that the frames arent centered properly because the top frame doesnt have a scroll bar.

Is there any way to fix it or make it work? Or should I just use static pages and make a non-animated menu with flash for all the other pages?

Rman2003
04-11-2005, 02:07 AM
Instead of using god awful frames.... :) Why not use a bit of PHP magic to do the trick.

The concept would be simple, on first view of the page, set a cookie, or.. if you don't want to use cookies, set a session variable. Then on page reload, before displaying the flash movie, check to see if that variable has been set. If it has, display some static content in its place. Shouldn't take you more than 10 minutes tops.

Ackoo-jt
04-11-2005, 02:22 AM
You have a couple options, the one as rman stated would be one. However, why not put some actionscript into the flash movie to not return to the beginning of the movie, however, have it return to another point in the movie where it is stable. This is after a full load or a link click.

do not use frames. however, you can fix that problem of which you speak with frames. no one can understand what you mean though, kinda need to see a link.

GotGameServers
04-11-2005, 02:42 AM
The action script options looks good. So how do I go about doing that? Im not that good with flash, I have the frame up now that has stop(); in it, I assume you know some way of making it skip back to the lastframe on sequential pages if the movie has been viewed once for the session?

Ackoo-jt
04-11-2005, 02:47 AM
just tell it to go to the proper frame number at the proper points. I would have to sit infront of the movie to actually spell it out. I don't use flash that much, I don't like it personally.

You can create clips as well and have an intro clip that follows to the second clip which is the menu. Then you can just have the menu stop() at the end. Then on a link click, have it go to clip 2 not clip 1. Don't recall if they are called clips or what, but you get the point.

BTW, I need the domain to see ;)

GotGameServers
04-11-2005, 03:49 AM
Ok i just taught myself the basics of php session variables lol...

im still working it out how to put it all together but im pretty sure I just need to make a version of my flash header that is without all the anim to use as a header as well...

heres my test so far...

go to www.gotgameservers.com/2.php (http://www.gotgameservers.com/2.php)

then visit www.gotgameservers.com/1.php (http://www.gotgameservers.com/1.php) to set the session variable and visit www.gotgameservers.com/2.php (http://www.gotgameservers.com/2.php) again to see the difference

This will beat the hell out of frames lol...

Ackoo-jt
04-11-2005, 01:36 PM
that is a quite nice header. did you make it or download it from one of the template sites?

GotGameServers
04-11-2005, 02:34 PM
templatemonster lol

GotGameServers
04-11-2005, 02:36 PM
yeah i got it set up correctly btw- I did the php session variable thing and set it to check for the variable first then if the variable was set then it loads one flash and if not set then it loads the other flash and sets the variable. Now i dont have to use frames lol. I modified the flash to go to the end of the file and play from there so it just appears without all the loading anims.

Rman2003
04-11-2005, 02:42 PM
Glad to see you finally got this worked out.

GotGameServers
04-11-2005, 05:00 PM
If anyone is interested in seeing it in action lol

http://www.nextgen1.com/~children/

the only link that works is the programs link - seems to do ok. If anyone is good at optimizing flash so that I can shrink the flash for the basic menu i would love the help. So far I just set up gotoframe(54) (whatever the syntax is you get the idea) at the start of the movie and removed the unneeded parts from the library before exporting it to .swf

Rman2003
04-11-2005, 05:11 PM
Your links are pointing to .html files. Might want to change those to .php in the flash movie. :) Looking good though.

GotGameServers
04-11-2005, 05:22 PM
yeah i just noticed that - you must be using mozilla (firefox or navigator) based browser. It works fine in IE and the links are saying .php in the flash movie lol.

i will work on that later unless anyone knows whats causing it