GuiVBr 0 Denunciar post Postado Setembro 27, 2004 Qual eh a funcao real... de _globaloque isso faz?Ajuda ae Compartilhar este post Link para o post Compartilhar em outros sites
SWORDFISH 0 Denunciar post Postado Setembro 27, 2004 _globalAvailabilityFlash Player 6. Usage_global.identifier ParametersNone. ReturnsA reference to the global object that holds the core ActionScript classes, such as String, Object, Math, and Array. DescriptionIdentifier; creates global variables, objects, or classes. For example, you could create a library that is exposed as a global ActionScript object, much like the Math or Date object. Unlike Timeline-declared or locally-declared variables and functions, global variables and functions are visible to every Timeline and scope in the Flash movie, provided they are not obscured by identifiers with the same names in inner scopes. ExampleThe following example creates a top-level function factorial that is available to every Timeline and scope in a Flash movie: _global.factorial = function (n) { if (n <= 1) { return 1; } else { return n * factorial(n-1); }}------------------------SWORDFISH Compartilhar este post Link para o post Compartilhar em outros sites