2 random swf

Posted on 2005-04-27
Last Modified: 2010-05-18

I have the following code that I'm trying to use to randomize 2 swfs inside a html page.

The code below I'm putting it on the first movie of 2 total movies (header.swf and header2.swf) *are the movie that I'm trying to randomize



movieNumber = Math.ceil(Math.random()* numberOfMovies);
movieToBeLoaded = "header" + movieNumber +".swf";
trace (movieToBeLoaded);
loadMovieNum("header" + movieNumber + ".swf", 0)


I've placed this code on "header.swf" and when I preview the movie it actually shows "header2.swf" and when I preview the html...only "header2.swf" shows.

Question by:johanwilches
    1 Comment
    LVL 30

    Accepted Solution

    your first file needs to be "header1.swf" and not "header.swf"

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    XSLT 5 29
    video playback resume on webpages 2 52
    selectSingleNode in Access 2013 11 37
    ColdFusion Rereplace 3 52
    Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System ( introduces the Login System and shows how to implement a login page. The EE Collaborative Logiā€¦
    Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
    Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
    The viewer will learn how to dynamically set the form action using jQuery.

    754 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

    19 Experts available now in Live!

    Get 1:1 Help Now