From: jclegs on
Thanks for the quick reply. Can I change that line of code you give me so director will open a new "open" dialog window like the code I quoted earlier?
From: Mike Blaustein on
I suspect so. Give it a shot and find out. You;ll need to chaneg the
FileIO box to look for images instead of text files... I don;t use
FileIO, so I can;t help you with that part. Then the bits about the
reading and setting of the text can be removed and replaced with what I
posted a minute ago.
From: jclegs on
put theFile into field "myField"

when I change this to put theFile into #bitmap "myImage" it says expected end of statement. Don't know what I'm doing wrong. Any ideas?

Thanks
From: UdoGre on
Hi,

just use what Mike told you:

member("myImage").filename=filename

That should do. And maybe use another name for filename, since it's also a reserved property name.
From: Andrew Morton on
UdoGre wrote:
> just use what Mike told you:
>
> member("myImage").filename=filename
>
> That should do. And maybe use another name for filename, since it's
> also a reserved property name.

Also, it will change the member's name during authoring, so it's neater to
do

m=member("myImage")
savedName=m.name
m.filename=newFilename
m.name=savedName

Andrew


First  |  Prev  | 
Pages: 1 2
Prev: Pan zoom in and out with sprites
Next: Quiz Project