# Visual Basic setvariable in swf

**URL:** <https://forum.kirupa.com/t/visual-basic-setvariable-in-swf/83298>\
**Category:** flash\
**Created:** [March 17, 2005, 4:09pm UTC](https://forum.kirupa.com/t/visual-basic-setvariable-in-swf/83298 "2005-03-17T16:09:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mieras](https://avatars.discourse-cdn.com/v4/letter/m/0ea827/32.png) [@mieras](https://forum.kirupa.com/u/mieras)\
**Post date:** [March 17, 2005, 4:09pm UTC](https://forum.kirupa.com/t/visual-basic-setvariable-in-swf/83298/1 "2005-03-17T16:09:35Z")

</div>

Hello,

I’m working on a project, i have to make a progress bar, wich have to communicate with visual basic.

I made some buttons before, that worked in VB, using the FScommand.

But i can’t get the variables from visual basic in my flash file.  
I’m using the following script.

balk.stop();  
loading = function () {  
\_root.balk.gotoAndStop(percentage);  
}  
laden ();

percentage is the variable, wich i can’t get it flash.

Hope somebody has a sort of solution, never worked with VB before… :hangover:
