1 Reply Latest reply on Feb 14, 2008 7:31 AM by robdillon

    Randomly selecting a scene/swf to play

    Black Drop
      Ok, I have two flash movies, both the same size for the same area of my website. I want users to see either flash piece A or B when they go to the site. So basically I want one flash movie with two scenes that chooses which one to display at random. But if there's an alternative way to achieve the same goal I'm game.

      I tried doing this but it didn't really work, I put both advertisements on the same timeline, the first starting at frame 10 and the second one starting at frame 70.

      if(random(100)>50){
      gotoAndPlay(10);
      }else{
      gotoAndPlay(70);
      }