the text file should read:
pic=babe.jpg
then:
babewindow.loadMovie(pic)
as long as babewindow is at the root and not nested deeper
[quoted text, click to view] Stckman wrote:
> Hi im trying to load a dynamic image. but i want to define the image filename
> thru a variable created in a text file. babewindow.loadMovie('babe.jpg'); <---
> this loads the pic 'babe.jpg' then i made a text file and in the text file it
> says &pic=babe.jpg now i want to apply this variable to the loadmovie so
> i wrote babewindow.loadMovie((pic)); what am i doing wrong? i know my
> textfile variable is being read cause ive applied it to text boxes in the
> running movie and they show the variable contents... what do i need to do to
> have a txt file variable applied to this particular function? Thanks. -stick
Hi im trying to load a dynamic image. but i want to define the image filename
thru a variable created in a text file. babewindow.loadMovie('babe.jpg'); <---
this loads the pic 'babe.jpg' then i made a text file and in the text file it
says &pic=babe.jpg now i want to apply this variable to the loadmovie so
i wrote babewindow.loadMovie((pic)); what am i doing wrong? i know my
textfile variable is being read cause ive applied it to text boxes in the
running movie and they show the variable contents... what do i need to do to
have a txt file variable applied to this particular function? Thanks. -stick
Try adding an ampersand to the right end of the line, also, just in case the
editor you are using is appending a carriage return (if it does, that
becomes part of the value, which then does not match the filename, as a
return is an illegal character for a filename):
&pic=babe.jpg&