Create buttons using AS3 in Adobe CS3 and CS4

How to make a button work in AS3 like AS2

Continue Reading »

Terminal Navigation

How to move in and out of directories inside the terminal.
Continue Reading »

PHP how to find Odd and Even numbers

Here is how to find odd and even numbers in php.
Continue Reading »

Free brand logotypes for download

Free logotypes, brand names, trademarks and logos in EPS format
Continue Reading »

iVisitorStats

Start tracking site visitors in 5 minutes.
Continue Reading »

MySQL DISTINCT to Remove Duplicate Listing

How to select and display records from MySQL table using the DISTINCT keyword for unique data.
Continue Reading »

Sort Directory Listings

Here is some code to help sort the order of your directory output. This is greate for creating PHP FTP applications.
Continue Reading »

PHP Email Form Easy

Now you can send emails from your web sites with full control over design style and functionality. PHP is the way to go for online email form. Here is how to get started.
Continue Reading »

Flash AS3 and IE Popup Blocker Fix

Flash button events are blocked sometimes some internet browsers bult-in popup blockers (ad blockers). I had this problem in the past in AS2 with IE on a PC. I could usably resolve the AS2 popup problem by changing the mouse event from onClick to onRelease or by changing the target from _blank to _self.

As with most AS3 code, the workaround is a bit more complicated. We can resolve this problem by calling a Javascript function via Actionscrip using the ExternalInterfac class.

function getMyURL(url:String, window:String ):void {
	var req:URLRequest=url is String?new URLRequest(url):url;
	if (! ExternalInterface.available) {
		navigateToURL(req, window);
	} else {
		var strUserAgent:String=String(ExternalInterface.call("function() {return navigator.userAgent;}")).toLowerCase();
		if (strUserAgent.indexOf("firefox") != -1 || (strUserAgent.indexOf("msie") != -1 && uint(strUserAgent.substr(strUserAgent.indexOf("msie") + 5, 3)) >= 7)) {
			ExternalInterface.call("window.open", req.url, window);
		} else {
			navigateToURL(req, window);
		}
	}
}
 
// call the getMyURL using a button mouse event
btn_mc.addEventListener(MouseEvent.MOUSE_UP,navClicked);
function navClicked(e:MouseEvent):void {
	trace("clicked");
	getMyURL("http://newsourcemedia.com", "_self");
}

Eject or Unmount a disk through the Terminal

Having problem unmounting your disk. Here is an alternative to restarting your computer to eject your unresponding disk.
Continue Reading »