You could try a LocalConnection with a crossdomain policy, and an allowDomain set, (I know you can do it with two different open webpages, haven't tested web 2 desktop, but as long as both are open, they should talk. But I could stand corrected.) I think LocalConnection is just AS2 though. Not sure of the equiv. in AS3. Might be a less hacky work-around though. If I understand your situation that is.. :)

HTH,

Best,
Karl

On Jun 13, 2011, at 12:26 PM, Steve Abaffy wrote:

It is not an exe. I am accessing the swf file via webpage. I tried adding
Security.LOCAL_TRUSTED; to the code but that didn't work either. Tried
making it a exe file but then it won't run from the CD because the link to it is via a web page and the browser objects as the exe file does not have a
digital signature.


-----Original Message-----
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Glen Pike
Sent: Monday, June 13, 2011 4:03 AM
To: Flash Coders List
Subject: Re: [Flashcoders] Strange Button Behavior

Hmm, an exe should be exempt from the "local vs network" restrictions,
but maybe something else is failing.

Have you tried tracing the error?

I vaguely rememeber having problems with "_blank", etc. in the past.
See if it works without those?

Here are some links I found that may help.
http://probertson.com/articles/2006/10/11/geturl-flash-projector- firefox-pro
blem/
http://www.adobe.com/devnet/flash/articles/local_network_playback.html
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/ flash/net
/package.html#navigateToURL%28%29

Glen


On 11/06/2011 19:35, Steve Abaffy wrote:
Hello,



After some more investigation I have found that the buttons not working problem I was having is not a browser malfunction. I have found that when
I
put the site on a web server all works well regardless of the browser. But
when I put the site on a CD a run it from there, all calls to outside
sources do not work.

All calls to local sources such as url:String = "/Documents/ some.pdf" in
the
below function works just fine.

And insight to this problem would be appreciated.



function GotoURLAustinMopac(e:MouseEvent):void{

                 var url:String =

"http://maps.google.com/maps?f=q&hl=en&geocode=&q=6836+Austin+Center +Blvd.+A
ustin+TX+78731";

                 var request:URLRequest = new URLRequest(url);

                 try {

                 navigateToURL(request,'_blank');

                 } catch (e:Error) {

                  //Do Nothing

                 }

}

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Karl DeSaulniers
Design Drumm
http://designdrumm.com

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to