This content has been marked as final. Show 10 replies
You can use a #bitmap image and set the .filename to the address of the
image. Make sure you include all the appropriate xtras for import/export
of the file types you are using (e.g bitmap, png, jpeg, etc)
So do I change the field type to #bitmap in the following piece of code that I got from adobe's site to import an image?
That code reads the text from an external text file, so it would not be
correct for use if you want to set the image of a bitmap.
All you need to do is get the path to the bitmap you want to use, then
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?
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.
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?
just use what Mike told you:
That should do. And maybe use another name for filename, since it's also a reserved property name.
> just use what Mike told you:
> 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
To quote the OP:
"I'm trying to import images to a shockwave movie..." (emphasis mine)
So, to everyone else including the OP, if you're going to be creating a shockwave movie to be placed on the web and want the user to click a button to open a dialog window from which he can choose an image from his local computer to upload to the shockwave movie residing on a server somewhere, then none of the other suggestions will work. If this is not what the OP meant, then please clarify - otherwise, refer to the link I previously posted: