Viewpoint Forums
Viewpoint Forums
Viewpoint ZoomView & Flash Authoring
actionscript extern-object|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
|
Member |
Hi,
Can I use the extern-object to call vetscript-functions too? And if possible, how do I pass arguments? I tied this: //Actionscript: var mess = "actionscript_param"; extern.new_message(mess); //VETScript:
function new_message(data) {
alert(data);
}
But i didn't work. Maybe someone can tell me how to do something like this... thanks in advance |
||
|
|
Member |
Try
extern.NameOfVETScriptAnimator.new_message() |
|||
|
|
Member |
What do you mean exactly with NameOfVETScriptAnimator?
I tried this: <MTSAction Name="vet_functions" Type="VETScript" >
<!--
function myfunction(){
//debugtext_LayerData.text += 'new message from actionscript\\n';
alert('message from actionscript');
}
-->
</MTSAction>with the refering actionscriptcall: extern.vet_functions.myfunction(); But it didn't work. |
|||
|
|
Member |
When using VETScript, you have to create a VETScriptInterpreter animator type:
<MTSTimeElem Type=”VETScriptInterpreter” /> You can give it a name like so: <MTSTimeElem Type=”VETScriptInterpreter” Name="myVetScriptInterpreter" /> And use it to access your functions: extern.myVetScriptInterpreter.new_message() However this is experimental. Let me know if it works. |
|||
|
| Powered by Eve Community |
| Please Wait. Your request is being processed... |
|
Viewpoint Forums
Viewpoint Forums
Viewpoint ZoomView & Flash Authoring
actionscript extern-object
