1 Reply Latest reply on May 18, 2006 4:23 PM by sampurtill

    Create an image with ActionScript

    kanag
      How do you create an image with ActionScript? The image is located at an url that is not guaranteed to be on the same server.

      I would prefer something that is compatible with previous versions of the Flash player.

      If you could point me to some tutorial or show me how it is done.

      Thanks
        • 1. Re: Create an image with ActionScript
          sampurtill Level 1
          This is suuuuuuuuuuuuper basic, you just have a movieclip on the stage and the URL of any image on the internet/local computer

          function loadImage(imageUrl:String, holder_mc:MovieClip):Void{
          holder_mc.loadMovie(imageUrl);
          }

          Fill the two parameters with the 1. image url and 2. movieclip that holds the image

          It will load the image into it. Much more in depth tutorials and stuff can be found all over the place, just google it.

          Sam