Results 1 to 2 of 2

Thread: random loading problem plz help

  1. #1
    Join Date
    Jan 2007
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default random loading problem plz help

    hai to all

    i did 5 swf's and one main movie. i had loaded the small swf's into main movie. everthing is right and loading.

    what i want is -> assume no 4th swf is loaded in main swf again when random the same 4th one should not load which is the previously loaded. it should again do ranod and load the corresponding swf

    here is the code which i did here it is again loading the previous one plz help
    var x:Number = random(5);
    swf = "swf/" add "main" add x add ".swf";
    _roothold_mc.loadMovie(swf, 1);
    var secs = 3;
    var id = setInterval(function () {
    clearInterval(id);
    play();
    }, secs*1000);
    stop();

  2. #2
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Code:
    var x:Number = random(5);
    swf = "swf/" + "main" + x + ".swf";
    _root.hold_mc.loadMovie(swf, 1);
    var secs:Number = 3;
    var id = setInterval(function () {
    clearInterval(id);
    play();
    }, secs*1000);
    stop();
    Untested, just correcting some mistakes, still not sure this will work. I don't quite understand exactly what you are trying to do...
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •