Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0

Reply
 
Thread Tools Rate Thread Display Modes
Old 04-10-2012, 07:48 PM   #1
zombience
Registered User
 
Join Date: Apr 2012
Posts: 9
Default need URL requests to NOT open browser, stay local instead

Hello,
I am building an application for an installation.
This application will be running as a standalone on a computer.

I have various clickable targets set to send URL requests to another program running simultaneously on the computer.

Currently, when I click on the items, flash automatically requests a browser to open and tries to access the URL.


How can I prevent it from opening a browser, but instead just pass the request to the local IP address directly?

Thank you in advance
zombience is offline   Reply With Quote
Old 04-10-2012, 09:40 PM   #2
henke37
Senior Member
 
henke37's Avatar
 
Join Date: Mar 2009
Location: Sweden
Posts: 10,682
Send a message via Skype™ to henke37
Default

Stop using navigateToURL and use the URLLoader class instead.
__________________
Signature: I wrote a pair of articles about the timeline.
henke37 is online now   Reply With Quote
Old 04-10-2012, 09:54 PM   #3
zombience
Registered User
 
Join Date: Apr 2012
Posts: 9
Default

Ah, I see. I'm new to as3, so I'm still figuring things out... but it looks like URLLoader is used to get info FROM a url INTO flash, is that right? I'd like flash to send a url string out to a separate application that uses URLs to navigate.

I need to click on a button in the flash interface sends out a URL to something like a local map program that navigates to a location based on the URL it receives.
zombience is offline   Reply With Quote
Old 04-11-2012, 11:00 AM   #4
henke37
Senior Member
 
henke37's Avatar
 
Join Date: Mar 2009
Location: Sweden
Posts: 10,682
Send a message via Skype™ to henke37
Default

flash.net.navigateToURL
__________________
Signature: I wrote a pair of articles about the timeline.
henke37 is online now   Reply With Quote
Old 04-13-2012, 09:45 PM   #5
zombience
Registered User
 
Join Date: Apr 2012
Posts: 9
Default

Hmm, I'm now in a situation where I am getting caught between 'local' file access and 'network' file access. Basically I need to load a few .swf files that are part of my main .fla. But then I have various targets that need to shoot off URLs to a separate app (that app requires a URL as it's location info input) that is hosted locally. So when I am setting the publishing settings, I can only access either the local files or the URLs, but not both.

As I said, I'm new to as3 so I apologize if this is basic info, but I haven't found the answer to this after looking around.

Again, these two apps are running locally on one machine with no internet access.
zombience is offline   Reply With Quote
Old 04-16-2012, 03:21 PM   #6
zombience
Registered User
 
Join Date: Apr 2012
Posts: 9
Default

*bump*
Still looking for help on this. Can anyone help me out?
zombience is offline   Reply With Quote
Old 04-16-2012, 03:46 PM   #7
abeall
Senior Member
 
Join Date: Feb 2006
Location: Washington, DC
Posts: 2,796
Send a message via AIM to abeall
Default

I think henke meant to say flash.net.sendToURL as the way to send data to a URL, however URLLoader is also capable of sending data to a URL as well as getting a response, you don't have to do anything with the response or show anyway in the UI.

As for your sandbox issue, yes, the only SWF publish sandboxes allow local files only or network only, not both at once. However you can add a SWF to a local trusted sandbox if you can get the user to run an installer which sets the desired SWF as local trusted (I've never done this personally), read more here:
http://help.adobe.com/en_US/ActionSc...8a9b90204-7c8d

Probably the best route for a local application, though, is to use AIR. AIR applications must be installed by the user and can access both local and network.
__________________
Aaron Beall | Flash portfolio | Fireworks extensions | Twitter
abeall is offline   Reply With Quote
Old 04-16-2012, 08:31 PM   #8
henke37
Senior Member
 
henke37's Avatar
 
Join Date: Mar 2009
Location: Sweden
Posts: 10,682
Send a message via Skype™ to henke37
Default

I know the difference between sendToURL and navigateToURL. I did not mix them up.
__________________
Signature: I wrote a pair of articles about the timeline.
henke37 is online now   Reply With Quote
Old 04-16-2012, 08:45 PM   #9
abeall
Senior Member
 
Join Date: Feb 2006
Location: Washington, DC
Posts: 2,796
Send a message via AIM to abeall
Default

I certainly didn't doubt you know the difference! Thought you might have typo. Didn't zombioence want to send data to a URL, not navigate to a URL?
__________________
Aaron Beall | Flash portfolio | Fireworks extensions | Twitter
abeall is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:56 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.