Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Thanked 0 Times in 0 Posts

    Flash - dynamic images

    I have created a radio in Flash that streams mp3s. The songs are updated weekly and, as they are called simply track1 - track10 in flash I just need to upload songs of the same titles to write over them on a weekly basis.

    When the songs are playing the album cover is shown as a background to the radio, and this changes for each song. At the moment the backgrounds are images stored in the library of flash but I would like to make them similar to the mp3s, in that Flash just calls the image out of the directory instead of out of it's memory.

    Any suggestions on how this could be done?

    Example of the radio can be seen here:
    http://www.cowandchicken.plus.com/radio/stevieradio.htm - will probably not be great with a slow connection.

    "Imagination is more important than knowledge" A. Einstein's 'Twin Paradox'

  2. #2
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Sydney, Australia
    Thanked 1 Time in 1 Post
    Text file with song name and corresponding image, then do a loadvars in action script.

    I can't remember the syntax coz it's been a while since I have used flash .. should start again soon me thinks.

    But anyways one you get the variables it's really easy to do..

    Text file should be in format:

    track01 = "images/somebands_image.gif"
    track02 = "images/anotherbands_image.gif"


    OR, do you mean that you want it to load track_01.gif like you do with the mp3s?

    You can do loadmovie or loadclip for that I think... buh I'll have to open flash up in a few mins.
    Omnis mico antequam dominus Spookster!


Posting Permissions

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