Old 03-20-2006   #1 (permalink)
Registered User
 
Join Date: Apr 2005
Location: antwerp, belgium
Posts: 51

php and flash headers

does anyone know how to fix it so that a header made in flash will ony load once?
so if the page is refreshed or another page is loaded wth the same header, that the flash movie wont start playing from the start again?

(example http://www.hellfest.fr/fr/index.html)
__________________
sneeuwbal is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 03-20-2006   #2 (permalink)
Sheep Worrier
 
Man1c M0g's Avatar
 
Join Date: Sep 2003
Location: Portsmouth, UK.
Posts: 4,105
Blog Entries: 14

Send a message via ICQ to Man1c M0g Send a message via MSN to Man1c M0g Send a message via Skype™ to Man1c M0g
Quote:
Originally Posted by sneeuwbal
does anyone know how to fix it so that a header made in flash will ony load once?
so if the page is refreshed or another page is loaded wth the same header, that the flash movie wont start playing from the start again?

(example http://www.hellfest.fr/fr/index.html)
I'm going to say a dirty word.... FRAMES!

Yep, thats right - you can either have the header in one frame and the content loading in another... or you can use Iframes and have the flash movie URL's using the iframe target. Both have their own ups and downs. Personally I hate iframes... but thats just me!
__________________
Man1c M0g is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 03-20-2006   #3 (permalink)
Registered User
 
Join Date: Apr 2005
Location: antwerp, belgium
Posts: 51

yeah frames are an option but they do have the disadvantage not to scrolldown with the rest of the page
could try to do the iframe but, I do think there must be an probably more complex but better way to integrate them
__________________
sneeuwbal is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 03-20-2006   #4 (permalink)
Recursively call who?
 
GoldNetX's Avatar
 
Join Date: Nov 2003
Location: Pittsburgh, PA
Posts: 294

Send a message via AIM to GoldNetX
You could try using either <div>s or PHP/MySQL and the XML HTTPRequest.

Using the <div> you can stack all of the content of your pages into <div> tags that are essentially on top of one another. And then depending on which link is clicked only the div specific to the link will be shown. Using this technique, you are building one monolithic .html page, that will should not need to be refreshed.

Here is an example of javascript code to show and hide <div> tags:

To Hide a <div>:
Code:
document.getElementById('divId').style.display = 'none';
To Show a <div>:
Code:
document.getElementById('divId').style.display = 'block';
The other way that I know of is storing your information in a database such as MySQL and then calling a server-side language, such as PHP, to extract from the database on the fly and have javascript to update your page without refreshes. This method would as well result usually in a single monolithic .php page. If you want more information on this, do some searches for XML HTTPRequest. It is a very powerful tool, and though I can use it for my pages, I am not 100% sure on the working parts behind it.

There are other solutions such as Ruby On Rails, but like the XML HTTPRequest, they would most likely require quite a bit of re-coding for the page.

Of all the solutions I think frames in this case would be the easiest to set up, though they may become bothersome later on.
__________________

www.gusmayo.com
- Maybe a story or two -


www.jaloobie.com
... your new home ...

www.webinkproductions.com
- professional web application design -

Last edited by GoldNetX; 03-20-2006 at 10:09 PM..
GoldNetX is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 03-20-2006   #5 (permalink)
Registered User
 
Join Date: Apr 2005
Location: antwerp, belgium
Posts: 51

Quote:
Originally Posted by GoldNetX
The other way that I know of is storing your information in a database such as MySQL and then calling a server-side language, such as PHP, to extract from the database on the fly and have javascript to update your page without refreshes. This method would as well result usually in a single monolithic .php page. If you want more information on this, do some searches for XML HTTPRequest. It is a very powerful tool, and though I can use it for my pages, I am not 100% sure on the working parts behind it.
think I'll try the javascript, seeing as t already works on an sql database it might be the most effective way to solve the problem without having serious problems in the future
__________________
sneeuwbal is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 03-21-2006   #6 (permalink)
Registered User
 
Ontani's Avatar
 
Join Date: Mar 2006
Posts: 7

you can make Flash work with cookies.
so you can save the cookie after the movies has played once.
the next time you check if the cookie exists if not just play the movie.
Ontani is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Login Help Space Cowboy HTML / PHP / ASP / JS 11 06-01-2005 10:02 AM
flash and mysql ahmedtheking Flash & Dynamic Media 12 08-11-2004 06:15 PM
flash help again. with buttons LimitLess Flash & Dynamic Media 8 06-18-2004 11:44 PM


All times are GMT +1. The time now is 05:42 PM.
Content Relevant URLs by vBSEO 3.2.0

Design & Content © BioRUST 2008 :: PRIVACY STATEMENT :: LEGAL INFORMATION :: ADVERTISING MEDIA KIT