with()
Top  Previous  Next


'with' in Flash is identical to tellTarget in SWiSHmax.

Note: In Flash, a 'with' statement does not apply statements to the target. Instead, whenever you refer to a variable, method, or Clip by name, the nominated Object is searched first. If no corresponding name is found, then the search continues the same as outside the 'with'. For example:

with (xxx) {
with (yyy) {
    zzz = 10;
}

}


This will search the yyy Object for a variable called zzz. If it is found, it will set if to 10, if not, then it will search the xxx Object for variable 'zzz', etc.

See Also
tellTarget