A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: link images in swf movie

  1. #1
    Junior Member
    Join Date
    Aug 2002
    Posts
    1
    Q!

    Need to know is it possible to link images in swf movie.

    I want to weekly change the image inside the swf movie without opening it in Flash. I would upload image on to server and swf movie would automaticaly refresh the content. So, possible? if, how to do it?

    TNX

  2. #2
    Senior Member
    Join Date
    Apr 2000
    Location
    Northern Ireland
    Posts
    2,146
    You can do it pretty easily by using "loadMovie()", and loading the image into a movieClip. Simply make a container MC, and put these actions on it:
    Code:
    onClipEvent (load) {
     this.loadMovie("image.jpg");
    }
    When you run the movie it will load whatever pic is entitled "image.jpg" in the same folder as the SWF. Just swap the JPGs weekly. One thing you have to be careful about - this will only work with version 6 of the Flash Player plugin. If you need to develop for lower than that, you could just make a swf of the image, and do exactly as above, except change the file extension:
    Code:
    onClipEvent (load) {
     this.loadMovie("image.swf");
    }

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center