User Guide

311
When downloading files from the Internet, use it to download the file at a specific URL and
set the filename of linked media. (However, to import a file from a URL, its usually more
efficient and minimizes downloading to use the
preloadNetThing command to download the
file to a local disk first and then import the file from the local disk.)
Use it to import both RTF and HTML documents into text cast members with formatting and
links intact.
Use of the
importFileInto command in projectors can quickly consume available memory, so
its best to reuse the same members for imported data if possible.
Also, the
importFileInto command doesnt work with the Director player for Java. To change
the content of a bitmap or sound cast member in a movie playing back as an applet, make the cast
members linked cast members and change the cast members
fileName property.
Note: In Shockwave, you must issue a preloadNetThing and wait for a successful completion of the download
before using importFileInto with the file. In Director and projectors, importFileInto automatically downloads the
file for you.
Example
This handler assigns a URL that contains a GIF file to the variable tempURL and then uses the
importFileInto command to import the file at the URL into a new bitmap cast member:
on exitFrame
tempURL = "http://www.dukeOfUrl.com/crown.gif"
importFileInto new(#bitmap), tempUrl
end
This statement replaces the content of the sound cast member Memory with the sound file Wind:
importFileInto member "Memory", "Wind.wav"
These statements download an external file from a URL to the Director application folder and
then import that file into the sound cast member Norma Desmond Speaks:
downLoadNetThing http://www.cbDeMille.com/Talkies.AIF, the \
applicationPath&"Talkies.AIF" \
importFileInto(member "Norma Desmond Speaks", the
applicationPath&"Talkies.AIF")
See also
downloadNetThing, fileName (cast member property), preloadNetThing()
in
See also
number (characters), number (items), number (lines), number (words)
INF
Description
Lingo return value; indicates that a specified Lingo expression evaluates as an infinite number.
See also
NAN