MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 336

Director scripting reference
Table of Contents

Advertisement

To see an example of
the Learning/Lingo folder inside the Director application folder.
Parameters
Required. The URL to the file that contains the text to get.
URL
Optional. Specifies a property list used for CGI queries.
propertyList
serverOSString
Optional. Specifies character settings.
characterSet
Example
This script retrieves text from the URL http://BigServer.com/sample.txt and updates the field cast
member the mouse pointer is on when the mouse button is clicked:
property spriteNum
property theNetID
on mouseUp me
theNetID = getNetText ("http://BigServer.com/sample.txt")
end
on exitFrame me
if netDone(theNetID) then
sprite(spriteNum).member.text = netTextResult(theNetID)
end if
end
This example retrieves the results of a CGI query:
getNetText("http://www.yourserver.com/cgi-bin/query.cgi?name=Bill")
This is the same as the previous example, but it uses a property list to submit a CGI query, and
does the URL encoding for you:
getNetText("http://www.yourserver.com/cgi-bin/query.cgi", [#name:"Bill"])
See also
netDone(), netError(),
getNormalized
Usage
getNormalized(vector)
vector.getNormalized()
Description
3D vector method; copies the vector and divides the x, y, and z components of the copy by the
length of the original vector. The resulting vector has a length of 1 world unit.
This method returns the copy and leaves the original vector unchanged. To normalize the original
vector, use the
normalize
336
Chapter 12: Methods
used in a completed movie, see the Forms and Post movie in
getNetText()
Optional. Specifies the encoding of return characters in
netTextResult()
command.
.
propertyList

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?

This manual is also suitable for:

Director mx 2004

Table of Contents