A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Loading Images into Movie clip

  1. #1
    Member
    Join Date
    Dec 2000
    Posts
    61
    I would like to know how to automatically load an image from a directory into a movie clip the way you load variables from a text file. I just dont want to have to pachage each image as an swf before importing.

    I just want to put the jpg into the directory and access it from there.

    Can one do that on the fly

    Cheers
    DogGone I.T

  2. #2
    President, save the
    New Zealand dollar foundation

    Join Date
    Jun 2000
    Posts
    1,743
    with Flash MX and the Flash 6 player, yes you can.

    Use the loadMovie() action, the same way you would if you were loading a .swf :
    Code:
    yourMovieClip.loadMovie("yourfile.jpg");
    only jpg's (and .mp3 files) at this time.


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