# Can VB call a Flash's user defined function?

**URL:** <https://forum.kirupa.com/t/can-vb-call-a-flashs-user-defined-function/149640>\
**Category:** flash\
**Created:** [May 31, 2005, 9:38am UTC](https://forum.kirupa.com/t/can-vb-call-a-flashs-user-defined-function/149640 "2005-05-31T09:38:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arrsathish](https://avatars.discourse-cdn.com/v4/letter/a/b5ac83/32.png) [@arrsathish](https://forum.kirupa.com/u/arrsathish)\
**Post date:** [May 31, 2005, 9:38am UTC](https://forum.kirupa.com/t/can-vb-call-a-flashs-user-defined-function/149640/1 "2005-05-31T09:38:26Z")

</div>

Hello,

I know there are a lot of questions about VB-flash communication, but unfortunately, they don’t match my problem

I have a function in Flash, named processIt()

I want to call this function by VB.  
Code:

Call ShockwaveFlash1.processIt(); =\> doesn’t work  
but:  
Call ShockwaveFlash1.SetVariable(“myVar”, “aaa”); =\> will work

Could you explain me why? An please give me an example of calling user defined function.

Thanks a lot,  
Sathish
