Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using txt file variable as path to image, can it be done?

Status
Not open for further replies.

WhitsendStudios

Programmer
Dec 12, 2001
3
GB
Hi all,

I'm very new to flash programming, so bear with me.

I have a .txt file where I'm keeping information to be displayed on my web page (it holds everything as variables), it cycles through the 3 news items fine, each news item has a variable holding a URL for an associated image (jpg file).

I have added a image "box" using the "import jpg" generator object/extension.

Is it possible to change the URL for the image that is loaded into this "box". So I can use the "same" box to cycle through all the pictures (as a sort of slide show).

If so how?

Many thanks,

Rob
 
if you save all your images as .swf files you could do it by loading them on top of your movie using loadMovie().

it'd probably be easier to use a frame and load the jpg's in standard html pages.
 
My movie at the moment "fades" each news item in and out, I would like to fade the picture in and out as well in sync with the news, not sure if this is possible as a seperate .swf file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top