1 Reply Latest reply on Jun 18, 2009 12:47 PM by kglad

    random image on screen location

    heazle Level 1

      I have six images of different sizes (jpg files) that I am loading on screen with a basic random image loader

       

      choise=math.round(math.andom()*5;

      switch (choise) (

      case0;

      location.loadMovie("image0.jpg");

      break;

       

       

      my movie clip (loadimages) is loacted at 0,0 and all the jpg's of different sizes align the top left corner of the image at point at the 0,0 point.

      How do I edit this so that the images always load in the center of the screen and each image loads at midpoint relative to each other?