Entity/MaterialFlashInvoke

From Blue Mars Developer Guidebook

Jump to: navigation, search
There are security restrictions on this article


This is an Entity function

Contents

Function

MaterialFlashInvoke(slot, materialId, textureSlot, methodName, ...)
Invoke an Actionscript method on the entity Flash Material

Parameters

  • slot: default 0
  • materialId: should be 0 if the .swf is loaded in the material's 1st SubMtl, 1 if in the 2nd SubMtl, etc.
  • textureSlot: default 0
  • methodName, ...: the name of your ActionScript function, plus any parameters that function takes


Usage

Examples

self.golf_display:MaterialFlashInvoke(0,0,0,"clearDisplay"); 


Optional arguments follow the method name, e.g.:

self.display:MaterialFlashInvoke(0, 0, 0, "displayInfo", i, date);


Notes

Use MaterialFlashSetVariable to set an Actionscript variable.

Problems with this wiki page? Contact us either by: Support Email or Support Ticket System

Blue Mars Guidebook Privacy Policy
Blue Mars Guidebook Community Guidelines

Personal tools