Web/Game Dev: Tutorials & Sourcecode

Twitter, Tiny URL, Stumble Upon, Facebook Share, Delicious, Google Buzz, IN FLASH (With Source Files)

DOWNLOAD SOURCE FILE [swfobj src=”http://nathalielawhead.com/sourcefiles/Share_All_FlashToSocial/share.swf” height=”199″ width=”597″] Here’s a quick .fla based on quite a bit of digging I dun did, to figure out what buttons you can put into Flash to best enhance your sites social networking capabilities… Oh shit, ouch! Sorry. That last line sounded like I fell out of the marketing department. Of course this example uses: var pageURL:String = ExternalInterface.call(‘window.location.href.toString’); To get the URL (based on where the swf is). If you’re picky and you know that is a bit iffy then use .php to do that or hardcode your shit in there. Like a boss....

Continue reading...

.htaccess fun

This website: http://tips-scripts.com/undefined Is fucking awesome. I’ve been melting my brain trying to figure out if it’s possible to strip off nonexisting subdomains, and couldn’t get my head around it for the life of me… Turns out the .htaccess file comes in to save the day… again. I came across this: RewriteEngine On RewriteCond %{HTTP_HOST} ^(.+)\.([^\.]+\.[^\.]+)$ RewriteCond %1 !^(www)$ RewriteCond %{HTTP_HOST} !^[0-9\.]+$ RewriteRule ^(.*)$ http://%2/$1 [R,L] And had to repost it just because of it’s pure usefulness, and perhaps it will help someone else out with the same problem. Not only that but here’s more: Mod Rewrite Guide URL Masking...

Continue reading...