It's unclear what is different between "execute the exe and just
click twice in the swf form" versus "execute the exe and access the
online swf form." Perhaps if you break down precisely what files are
involved, including html wrappers and locations, and precise
execution order, it would help.
The documentation for LocalConnection.send states the syntax for the
third argument is an Object, and you've put in a string literal. This
probably doesn't make a difference as Flash seems to do a lot of
behind the scenes casting, but it wouldn't hurt to change your code
to conform.
On 2007-05-03, at 11:35 AM, Rodrigo Augusto Guerra wrote:
Hi all,
I'm having some problems with local connection.
I have a stand alone EXE file created in Flash that runs in the
client machine. This exe requires a password. The user has to
access a site and get his password in a swf form that is online. I
want that this online swf send the password to the local EXE file,
exactly in the password text box.
if I execute the exe and just click twice in the swf form, it
works, and the text box is filled with the string.
if I execute the exe and run the html in the browser (not using
localhost just clicking in the html and opening from it's
location), it works too.
but if I execute the exe and access the online swf form it won't
pass the values to the exe password box.
I'm using the following code:
exe:
receiving_lc = new LocalConnection();
receiving_lc.action = function(param1) {
pass_txt.text = param1
};
receiving_lc.allowDomain = function (sendingDomain){
//just to see if works.
return (true);
}
receiving_lc.allowInsecureDomain = function (sendingDomain){ //
just to see if works.
return (true);
}receiving_lc.connect("tunnel");
online swf form frame 1:
sending_lc = new LocalConnection();
sending_lc.send("tunnel", "action ", "password text");
thanks in advice,
rodrigo.
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com