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.
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.
|All times are GMT +1. The time now is 10:50 AM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.