• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 495
  • Last Modified:

How to stop a Flash movie from reloading when a link is selected on a Joomla site.

Good evening,

I am new to content management and have just discovered Joomla. I have a site that has a Flash movie that plays once on the entry page, at least that's all I want it to do.

Each time a link is selected, the new page loads and the Flash movie plays again. Is there any way to specify that the move only plays when the index.php page is loaded?

Here's the site link which is under construction:
http:///www.trahancustomsystems.com/joomla/

Any advice will be greatly appreciated!

Thanks.
0
trahan
Asked:
trahan
  • 4
  • 2
1 Solution
 
pepsichrisCommented:
I'd say the best way to do it is to use a shared object (it's like a cookie for Flash), so you'd only play the SWF if it's not set.

Did you write the Flash movie, or at least have the source to it?
0
 
trahanAuthor Commented:
Yes, I have the source to the movie. I'm just not that handy with Actionscript. If you're interested, the original Flash file is attached in a zip. I had to change the .fla extension to .doc for upload compatibility purposes.

Thanks!
TDPNewIntro4.zip
0
 
pepsichrisCommented:
Something like this should work - you probably want it on the first frame of the movie:
myLocalSO = sharedobject.getLocal("flashcookie");
if (myLocalSO.data.viewed == null) {
	trace('Not Seen');
	myLocalSO.data.viewed = "true";
	myLocalSO.flush();
} else {
        stop();
}

Open in new window

0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
trahanAuthor Commented:
I added that code to the first frame of the first scene just under the preloader, but it still replays each time a link is hit. Is the preloader code an issue? Thanks.
0
 
trahanAuthor Commented:
I have incorporated the Flash move into Joomla by using the wrapper module. The wrapper is pointed to the URL with the flash movie.

Whenever the front page of my Joomla site is loaded it plays the animation and is not on any other page which is exactly how we wanted it.

Thanks for your help.
0
 
trahanAuthor Commented:
These suggestions were tried but did not work. A solution is no longer needed. Thanks.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now