Click here to Skip to main content
15,891,513 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello, I'd like to make an 'autologin' app between my vb.net app and a swf online game.

How could I interract those 2?

The login sequence in the swf file is this:
private function login(event:MouseEvent)
       {
           if (this.m.dropdown.length > 0)
           {
               Main.userName = this.m.nameBox.text;
               Main.userPass = this.m.passBox.text;
               Main.remember = this.m.rememberMe_chk.selected;
               Main.server = this.m.dropdown.selectedItem.server;

           }
           return;
       }// end function


Thanks!

What I have tried:

Everything found on google and non of them worked...
Posted
Updated 2-Oct-20 13:06pm

1 solution

Have a look at this: Integration Flash with VB[^]

Would also suggest you to go through these CP articles (though they are in C#, would give you more idea):
Sending Data from a Flash Movie to the Hosting C# Application[^]
Fun with C# and the Flash Player 8 External API[^]

Similar discussion: vb.net - Passing data/variable from a Visual Basic form to a Flash Object[^]

BTW, why flash? It's out of support now and dead. Try other platforms, would suggest HTML5.
 
Share this answer
 
Comments
Piticu97 3-Oct-20 1:29am    
Thanks, I went through all of these, non of them was helpful...

Why flash, because it's an old game, and for me it is an old project left over, and I'm trying now to accomplish it. Thanks!
Sandeep Mewara 3-Oct-20 3:28am    
You were looking for communication between the two and the articles do share so.
Piticu97 3-Oct-20 4:43am    
All I want is to send data from vb, to swf, like so:
- send 'stringuser' to nameBox.text
- send 'stringpwd' to passBox.text
- simulate 'login' button
Sandeep Mewara 3-Oct-20 4:52am    
And this does not help: https://pages.cpsc.ucalgary.ca/~saul/vb_examples/tutorial12/index.html

For variable assignment: Simply use the SetVariable method of the Shockwave Player:

xWin.SetVariable "stringuser", nameBox.Text
xWin.SetVariable "stringpwd", passBox.Text

then invoke a remote method == simulate button click.
Piticu97 4-Oct-20 8:02am    
Doesn't work that way, tried it...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900