how best to use a flash menu on web page?
Hi guys,
I have been dabbling with flash for a while now, but want to start doing things properly.
I've volunteered to do the website for my local sports council, this is what i have so far:
http://www.pc16.net/chris/test/div.php
(I'm trying to improve my prototype http://sportstevenage.co.uk)
How can I load the unique content without using iframes? It really goes pair-shaped for users with small resolutions (for this reason, I've decided to use <div>s instead).
Can I use javascript (or FSObject) to replace a <div> ?
What's best here?
Thanks in advance,
Chris
wanted the flash menu not to reload
Sorry,
I could do that, but it's an awful lot of work. If you look at my site, the menu moves and changes depending on what page is loaded (into the iframe).
http://www.pc16.net/chris/test/div.php
I'd rather just use css than have to make a whole array of swf files which would each need updating whenever the site changes.
I was hoping that someone tell me something about using Flash and javascript together.
Thanks,
Chris
hmm... we're getting close...
Hi Whispers,
Thanks for trying to help!
How does a SWF read variables? Are these php variables?
That would solve my problem if the reloaded menu could go straight to a particular "state".
( I've used getURL with "post" and "get" before, so I understand what happens the other way round ;) )
...However, what I was thinking was to use javascript - much like the SWFObject.js for embedding SWFs available on these boards. Instead of replacing the contents of the <div> with the swf file, I could replace the MAIN <div> with other pages. I'd have to use FSObject in making the .fla files, though, right?
Does that make sense? (I'm pretty tired now!)
Anyone know how to do this?
ps - I've been changing things, but here's the link:
http://www.pc16.net/chris/test/div.php
Note: Clicking on "About Us" loads the old Flash menu. This is like what I want to happen with the main <div> but with the proper content.
Thanks,
Chris