Hi, Stephen,

right now I'm trying to simulate the problem and find out if Attila's tip (the underscore) works.

"execute the exe and just  click twice in the swf form"
this will execute the exe in the client machine and if you click twice in the swf form (as i have flash installed) it will open in a flash projector too. this way I can see the text populed in my stand alone app from the swf form that is running in the other player. both are local.

"execute the exe and access the  online swf form."
this is different because I will have the swf form online in a domain. it's the same swf tht work above but now it´s online and not in my machine, and in this situation the text is not passed.


----- Original Message ----- From: "Stephen Downs" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, May 03, 2007 4:48 PM
Subject: Re: [Flashcoders] local connection,online swf -> local stand alone projector.


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




_______________________________________________
[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

Reply via email to