
59
DEVELOPING
COLDFUSION 9 APPLICATIONS
The CFML Programming Language
Las
t
upda
te
d 8/5/2010
Flash
Yes
A ColdFusion page or ColdFusion component
called by a Flash client.
The ColdFusion Client access. You assign a value
to Flash.You can assign values to the Flash.result
and Flash.pagesize variables.
Form
No
On the action page of a form and in custom tags
called by the action page; cannot be used on a
form page that is not also the action page.
A
form
or cfform tag. Contains the values of
form field tags (such as input) in the form body
when the form is submitted. The variable name
is the name of the form field.
Local
No
Within the body of a user-defined function or
ColdFusion component method, only while the
function executes.
Either of the following:
•
In the function or method definition, a
var
keyword in a cfset tag or a CFScript
var
statement.
•
Specifying the Local keyword when you
create a variable in the function or method.
Request
Yes
On the creating page and in any pages run
during the current HTTP request after the
variable is created, including in custom tags and
nested custom tags.
Specifying the prefix Request when you create
the variable.
Server
Yes
To any page on the ColdFusion server. Surround
all code that uses server variables in
cflock
blocks.
Specifying the prefix Server when you create the
variable.
Session
Yes
For one client in one application and one
browser session. Surround code that uses
Session scope variables in cflock blocks.
Specifying the prefix Session when you create
the variable.
This
Yes
Within a ColdFusion component or the body of a
user-defined function that was created using the
cffunction tag and place in an object, structure,
or scope. In the containing page, through the
component instance or containing object.
Within the component or function by specifying
the prefix This when you create the variable.
In the containing page, by specifying the
component instance or object that contains the
function as a prefix when you create the
variable.
ThisTag
Yes
On the custom tag page.
Specifying the prefix ThisTag when you create
the variable in the tag or using the cfassociate
tag in a nested custom tag.
Thread
The thread name.
Inside the thread
that creates the
variable, you can
also use the
keyword
thread.
Any code in the request.
Using the keyword
thread
or the thread name
as a prefix when you create the variable.
You can create Thread variables only inside the
thread.
Scope prefix
(type)
Prefix required to
reference
Where available
Created by