MACROMEDIA FLASH 8-FLASH Manual de usuario Pagina 20

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 22
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 19
20 About Flash Asset Xtra for Flash Player 8
propDirectAccess
Usage
spriteObjRef.propDirectAccess
Description
Flash sprite property; controls whether you can use dot syntax to directly access ActionScript
variables with a sprite reference. If the value is 1, you can access ActionScript variables with
dot syntax; if the value is 0, you cannot. The default value is 0 for movies created with all
versions of Director.
Example
The following code creates a variable called aPie and gives it the value 3.14159. The
subsequent statements can use dot syntax to access the value of the variable.
-- Lingo syntax
sprite(1).createVariable(#aPie, 3.14159)
put sprite(1).propDirectAccess
-- 1
put sprite(1).aPie
-- 3.1416
sprite(1).propDirectAccess = 0 put sprite(1).aPie
-- This code generates a "property not found" script error.
// Javascript syntax
sprite(1).createVariable(symbol("aPie"), 3.14159);
trace(sprite(1).propDirectAccess);
// 1
trace(sprite(1).aPie);
// 3.14159
sprite(1).propDirectAccess = 0;
trace(sprite(1).aPie);
// [function aPie]
createVariable()
Usage
-- Lingo syntax
spriteObjRef.createVariable(varNameSymbol, varValue)
NOTE
Macromedia added this property in Director version 10.1.
Vista de pagina 19
1 2 ... 15 16 17 18 19 20 21 22

Comentarios a estos manuales

Sin comentarios