Posted by Clovis in SWF Studio V3 on Jan 16 2008, 01:00 pm

Hi,

I try to use Script and VBS but I have something that I can't understand. So I need some help.

Here is my VB function :

Function myFunc(tx)
    
    Dim filePath, posX, posY, posEndX, posEndY, ImgID
    filePath = tx(1)
    posX = tx(2)
    posY = tx(3)
    posEndX = tx(4)
    posEndY = tx(5)
    ImgID = tx(6)
    
    Alert filePath
End Function


Here is what I get in return for filePath :
_level0.global.ssCore.__eventObject11.__returnVar1

:confused:

Now, here is how I call this script :
ssCore.VBTest.myFunc( { filePath:pathToImg, posX:tmpArr[1], posY:tmpArr[2], posEndX:tmpArr[3], posEndY:tmpArr[4], ImgID:count }, { callback:'endCrop' }, scriptError_obj);

Thanks for your help,


Posted by Clovis in SWF Studio V3 on Jan 16 2008, 02:21 pm

I really don't search very well in these forums.

Here is the correct VB syntax, to access passed parameters, that mbd explained in this thread a year ago.

Sorry for the post :whip: