🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.atmosphere
Article #117

trigger function of one script from another

#117
From: Daniel_E._Green
Date: Fri, 20 Aug 2004 13:45
18 lines
1251 bytes



have a handbuilt script, ie myscript.js, that has a function in it, ie

function myfunction()

{
chat.print('my function');

}

would like to call this function from a preset script, but i don't know how to link the preset to the function. i have seen tutorials that use the whip tool to link the one preset script to another via the scene hierarchy pallette, to an action in another preset script. so my problem is how to make the above named function myfunction() appear as an 'action' in the scene hierarchy

or perhaps there is another way to link a function in one script to a function in another?

thanks in advance!
Technical Details
Message-ID: <3bb5902f.-1@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!easynet-quince!easynews.net!easynet-isham!easynet.net!newsfeed01.sul.t-online.de!t-online.de!webx

Show Full Headers
Complete Article Headers
X-Google-Thread: fa820,770ce32bf05f2f36,start
X-Google-Attributes: gidfa820,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Daniel_E._Green@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!easynet-quince!easynews.net!easynet-isham!easynet.net!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.atmosphere
Subject: trigger function of one script from another
Message-ID: <3bb5902f.-1@webx.la2eafNXanI>
Date: Fri, 20 Aug 2004 06:45:17 -0700
Lines: 23
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit