1
twitaman
Flash and XOOPS Theme -- movies load every time the page loads
  • 2005/5/10 15:33

  • twitaman

  • Friend of XOOPS

  • Posts: 270

  • Since: 2004/7/28


I want to use a few Flash bits in my site but I have a problem. Every time I click a link the movies reload again. It's not that they're looping it's just that everytime a page loads the movies start over.

Is there a way to have the movies load only once? I was thinking that maybe since I have them in tables in my theme I could somehow set those tables to load only when the home link loads. Then I could have static jpegs (or gifs) representations in their place that would load whenever the other links load. Is that doable? If so how do you do it?

When I used frames it worked, but I don't want to use frames anymore. Here's my old site: www.griotseye.com

Here's the XOOPS redesign that I'm doing:http://www.uneducatedguess.com/modules/open/

2
studioC
Re: Flash and XOOPS Theme -- movies load every time the page loads
  • 2005/5/10 16:12

  • studioC

  • Friend of XOOPS

  • Posts: 922

  • Since: 2003/12/7


hello twitaman,

i#m no flash expert but it is right that everytime you klick on a link the source is generated (parsed) again to show the actual content, and it's sure normal that your flash movie will start again from the beginning.

dunno if you can use chache or something but ..

THIS FAQ will help you to show different headers, images or flash files on different modules (and startpage)...


hope this helps...

michael

3
twitaman
Re: Flash and XOOPS Theme -- movies load every time the page loads
  • 2005/5/10 16:44

  • twitaman

  • Friend of XOOPS

  • Posts: 270

  • Since: 2004/7/28


Thanks so much. I'll give this a shot!

4
damaster
Re: Flash and XOOPS Theme -- movies load every time the page loads
  • 2005/5/10 16:57

  • damaster

  • Just can't stay away

  • Posts: 556

  • Since: 2003/5/11


Well, using cookies and php; set a cookie at the end of the animation to indicate that the user has already seen the intro.

1- set a cookie on load
2- flash use the loadvar() function to check a javascript or php to return the variable/cookie
3- flash use that to control the movie

<?php
//    setcookie("HTTP_COOKIE", "Hello, Cookie Test");
      
$cookie $_COOKIE["HTTP_COOKIE"];
//    $cookie = str_replace("; ", "&", $cookie);
//    $cookie = "&".$cookie;
      
print "data=$cookie";
//    print_r($_COOKIE);
?>




P.S. There was none of this flash in my day, we made our own entertainment... Hihihi!
I like people more than machines or money. But that's me!
Lets do something good and great: Lets do open source!

5
twitaman
Re: Flash and XOOPS Theme -- movies load every time the page loads
  • 2005/5/10 17:19

  • twitaman

  • Friend of XOOPS

  • Posts: 270

  • Since: 2004/7/28


Quote:

Damaster wrote:
Well, using cookies and php; set a cookie at the end of the animation to indicate that the user has already seen the intro.

1- set a cookie on load
2- flash use the loadvar() function to check a javascript or php to return the variable/cookie
3- flash use that to control the movie

<?php
//    setcookie("HTTP_COOKIE", "Hello, Cookie Test");
      
$cookie $_COOKIE["HTTP_COOKIE"];
//    $cookie = str_replace("; ", "&", $cookie);
//    $cookie = "&".$cookie;
      
print "data=$cookie";
//    print_r($_COOKIE);
?>


I add this code to the theme.html file at the end of where I placed all the animations?



P.S. There was none of this flash in my day, we made our own entertainment... Hihihi!

6
damaster
Re: Flash and XOOPS Theme -- movies load every time the page loads
  • 2005/5/10 17:28

  • damaster

  • Just can't stay away

  • Posts: 556

  • Since: 2003/5/11


You need to edit your flash anim to check the cookie you've set.
Otherwise, read this,
and this, before you continue !

Check your P.M. for some examples!


P.S. well, i'm not playing with flash for a while due to the lack of accessibility and usuability. I Can't help you much more!..
I like people more than machines or money. But that's me!
Lets do something good and great: Lets do open source!

Login

Who's Online

137 user(s) are online (92 user(s) are browsing Support Forums)


Members: 0


Guests: 137


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits