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

Posted on 2009-02-12
Last Modified: 2013-11-12
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:

Any advice will be greatly appreciated!

Question by:trahan
    LVL 9

    Expert Comment

    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?

    Author Comment

    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.

    LVL 9

    Accepted Solution

    Something like this should work - you probably want it on the first frame of the movie:
    myLocalSO = sharedobject.getLocal("flashcookie");
    if ( == null) {
    	trace('Not Seen');
 = "true";
    } else {

    Open in new window


    Author Comment

    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.

    Author Comment

    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.

    Author Closing Comment

    These suggestions were tried but did not work. A solution is no longer needed. Thanks.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
    Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
    The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
    The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now