#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2001
    Location
    Buenos Aires, Argentina
    Posts
    154
    Rep Power
    14

    Question Importing Images On-the-Fly


    Hi.

    I've got a flash movie and need to display an image within it. This photograph should be a JPEG that is retrieved dynamically (at play time) from a specific URL. So I was thinking I could do something as such...

    Within the HTML object/embed call, place something like...

    <param name="photo" value="http://www.abcdef.com/logo.jpg">

    And then have the flash animation read this parameter, retrieve the image from that URL and display it.

    Can this be done? And if so, how would this be?

    Please help.

    Thanks,
    Ralph
  2. #2
  3. Contributing User
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Apr 2000
    Posts
    1,058
    Rep Power
    22
    Before Flash MX you couldn't do it (AFAIK). With Flash MX you would use:

    loadMovie("image.jpg", target);

    It can be in the main timeline or a clip. Your target is either a _level or a target movie clip.


    Hope this helps,
    wdn2k
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2002
    Location
    Phoenix, Arizona
    Posts
    4
    Rep Power
    0
    in Flash 5 you could have your server side convert the jpg to a swf file in which case it could be imported dynamically.

IMN logo majestic logo threadwatch logo seochat tools logo