• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 453
  • Last Modified:

Button Action Script 3 / URLRequest

I know that flash and javascript are limit while running locally for security reasons which is why I am trying to use Wampserver for testing.

Open_Link_Button.addEventListener(MouseEvent.CLICK, release);

function release(event:MouseEvent):void
{
    var jscommand:String = "http://localhost/chemtecllc_test_2/test.html','win','height=800,width=800,toolbar=no,scrollbars=no');";
      var url:URLRequest = new URLRequest("javascript:" + jscommand + " void(0);");
      navigateToURL(url, "_self");
}

Anyone know how to make this AC3 button open a sized pop up window from a local emulated web server?


Open-Link-Button.fla
0
jdonaldson1
Asked:
jdonaldson1
  • 2
  • 2
1 Solution
 
blue-genieCommented:
this should help

http://kb2.adobe.com/cps/141/tn_14192.html

bear in mind pop up blockers .
0
 
jdonaldson1Author Commented:
If figured it out. I had to use externalinterface instead of the get url command.

Open_Link_Button.addEventListener(MouseEvent.CLICK, release);

 
function release(event:MouseEvent):void
{
    if (ExternalInterface.available)
    { ExternalInterface.call("window.open", "http://chemtech:8080/flash_objects/Jar_test/Main.html",
                             "win", "height=200,width=300,toolbar=no,scrollbars=yes"); }
}

 This code works perfect for what I need.
0
 
blue-genieCommented:
which is in the link I posted.
0
 
jdonaldson1Author Commented:
Your are correct. I had this page open already. Thanks for the help.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now