|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I have a FFishScript custom object like this
In FFishScript: function customObject () { this.property = 123; this.getProperty = function() {return(this.property)} } In FFishScript: var myObject = new customObject(); trace (myObject.getProperty()); // Returns 123 In AS: (I've tried -) import SWFKit.* var g = new Global(); trace (g.myObject.getProperty()); // undefined Question. How best to synchronously access methods like this from Actionscript? Thanks. |
|
|||
|
Any global method in ffish script can be called with the external interface in as. So you need to first write a method in ffish script to return the custom object, and then call the method in as:
Code:
var customobj = ExternalInterface.call("createCustomObject", params);
|
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|