Skip to main content
March 31, 2010
Question

How do you load a URL in .exe flash file without popping up in new window.

  • March 31, 2010
  • 1 reply
  • 645 views

Hi

I have developed a full screen .exe flash file in actionscript 2. It  controls physical lights (e.g. turn on and off) by simply calling a URL for each  action.  However, I don't want the called URL's to open in  front of the interface. Is there a way to call a hidden URL in flash?  Any advice would be much appreciated.

Thanks

This topic has been closed for replies.

1 reply

Inspiring
April 1, 2010

By calling a URL you will trigger the default registered browser to open.

Can you go into any more detail with respect to "It  controls physical lights (e.g. turn on and off) by simply calling a  URL for each  action"? as there might be other ways of triggering the action initiated through the calling of the URL.

April 1, 2010

Hi Daz

Cheers for getting back to me. Each light is controlled by calling a URL e.g.getURL("http://modelpc/LightControl/controllights.aspx?id=17&status=on");

Currently the code looks like this:

on (release) {
    getURL("http://modelpc/LightControl/controllights.aspx?id=1&status=on");

}

The action is working when I use get(), but the URL pops up in a new window. I want to prevent this from happening. I am looking into using send (LoadVars.send method) at the moment...would this work? I have little experience with actionscript and its prooving to be a challenge.

Thanks

Inspiring
April 1, 2010

The "sendAndLoad" function is a good approach and potentialy would work as this would call the page and in turn trigger the server side functions withough openning the page in a browser window.

If you are trying to call serverside functions you might want to look at using webServices in Flash.

http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00003723.html

Let me know if this helps.