Tuesday, January 27th, 2009
var currentURL:String = ExternalInterface.call("window.location.href.toString");
Monday, March 3rd, 2008
AS3 has brought a lot of new functionality and complexity to flash development. It has also brought some new problems.
Pop up blocking is simple principle where only user initiated events can open a new window. In the case of AS2 when creating a link it had to be triggered from an onRelease/Click event. Other wise in AS2 “getURL” was adequate in any browser. Unfortunately “navigateToURL” in AS3 does not seem to be useful across all browsers as even on Click it can still be pop up blocked.
In my mission to get a flash only solution for opening URLs that don’t get pop up blocked, I found ExternalInterface call to “window.open” works as long as its available in the browser. The basics of the code I used is below.
//set the desired URL here
var url_str:String = "http://www.yoururl.com"
//checks to see if the browser has JS on and
//if ExternalInterface is compatible with the browser
//calls the JS function "window.open" in a new window
ExternalInterface.call( "window.open", url_str, "_blank" );
//the fall back call is "navigateToURL"
var urlRequest:URLRequest = new URLRequest(url_str);
Monday, July 16th, 2007
Well after working with flex for a little I started to get a little nostalgic. I was in eclipse, I was writing ActionScript so what was missing I thought to my self. FDT was what I was missing. Checked out the site and FDT 3.0 is nearly out. They are currently on an unplanned second round of closed beta release. The open beta will be out soon wouldn’t mind taking a peak at that. Flex, Apollo and FDT are all eclipse based so i am real keen to see if FDT can still hold its ground as a leading AS editor.
Thursday, April 26th, 2007
Well this came out of no where. Flex going open source. Sounds good to me look at how far Firefox has gotten with a solid developer community behind it. Now ActionScript developers are some of the most devoted I know so I think we are going to see some very interesting things over the next few months. Between this and the affects it will have on Apollo development only time can tell how far it can be taken.