<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.9.2" -->
<rss version="0.92">
<channel>
	<title>Andrew Odendaal</title>
	<link>http://www.andrewodendaal.com</link>
	<description>Professional Software Developer</description>
	<lastBuildDate>Wed, 10 Mar 2010 13:55:36 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Embed pound symbol (£) in flash textfield</title>
		<description><![CDATA[If you use a dynamic textbox in Flash and you want to embed the British Pound symbol (£) then you will want to also embed the &#8220;Latin I&#8221; glyphs with your textfield.]]></description>
		<link>http://www.andrewodendaal.com/embed-pound-symbol-in-flash-textfield/</link>
			</item>
	<item>
		<title>Enable / Disable Cursor Hand in Actioncsript 2</title>
		<description><![CDATA[If you have a movieclip that by default has the hand cursor showing on RollOver and you don&#8217;t really want this, you can disable it by doing the following:
myMC.onRollOver = function() {
	this.useHandCursor=false;
}

So the main code here is: this.useHandCursor=false;
False disables it and true shows it.]]></description>
		<link>http://www.andrewodendaal.com/enable-disable-cursor-hand-in-actioncsript-2/</link>
			</item>
	<item>
		<title>USB Device Not Recognized! in Windows</title>
		<description><![CDATA[Believe it or not, this one is super easy to fix!
It&#8217;s actually a temporary problem with your motherboard, all you need to do is:

 turn off your computer
if it&#8217;s a desktop then unplug it from the wall/powersupply
if it&#8217;s a laptop then remove the battery
let it sit for a minute
plug it all in again
reboot
VOILA!

No need to [...]]]></description>
		<link>http://www.andrewodendaal.com/usb-device-not-recognized-in-windows/</link>
			</item>
	<item>
		<title>Calling event functions from movieclips in actionscript 2</title>
		<description><![CDATA[In a flash movie I usually have a frame of actionscript that controls all elements in the file to keep everything in one place.
Sometimes I have an onPress(etc)  function that refers to something happening in the scene when something is pressed, but what happens if we want another element to refer to that event for [...]]]></description>
		<link>http://www.andrewodendaal.com/calling-event-functions-from-movieclips-in-actionscript-2/</link>
			</item>
	<item>
		<title>Sudo install OpenGL &amp; SDL on Ubuntu</title>
		<description><![CDATA[A quick and easy way would be to type the following in one line with single spaces in the Terminal.
This way of installing OpenGL and SDL libraries only applies to Ubuntu.
sudo apt-get install
nvidia-glx-new-dev
libglew1.4-dev
libsdl1.2-dev
libsdl-ttf2.0-dev
libsdl-image1.2-dev
libsdl-mixer1.2-dev]]></description>
		<link>http://www.andrewodendaal.com/sudo-install-opengl-sdl-on-ubuntu/</link>
			</item>
	<item>
		<title>How To Modify Hosts File On Windows</title>
		<description><![CDATA[The hosts file is located at the following address:
C:\windows\system32\drivers\etc\
or
%systemroot%\system32\drivers\etc\
But you will need to open Notepad with &#8220;Run as Administrator&#8221; first and then open it through there otherwise it will give a permissions problem]]></description>
		<link>http://www.andrewodendaal.com/how-to-modify-hosts-file-on-windows/</link>
			</item>
	<item>
		<title>Get all directories in PHP</title>
		<description><![CDATA[I think this may be the fastest way to get a list of all the directories in a given folder/directory using PHP.
$directories = array_filter(glob(&#8216;*&#8217;), &#8216;is_dir&#8217;); 
..and of course you can also add a path to it if you need to:
$directories = array_filter(glob($myPath.&#8217;*'), &#8216;is_dir&#8217;);]]></description>
		<link>http://www.andrewodendaal.com/get-all-directories-in-php/</link>
			</item>
	<item>
		<title>Security error: securitySandboxError with Flash</title>
		<description><![CDATA[You have a flash uploader and you get this error:
security error: securitySandboxError
This means that the flash is not trusted by the domain and you have to place an xml file in the root of the domain.
The file is called &#8220;crossdomain.xml&#8221; and this is what should be inside it:
&#60;?xml version=&#8221;1.0&#8243;?&#62;
&#60;cross-domain-policy&#62;
&#60;allow-access-from domain=&#8221;*&#8221; /&#62;
&#60;/cross-domain-policy&#62;
Solved!  ]]></description>
		<link>http://www.andrewodendaal.com/security-error-securitysandboxerror-with-flash/</link>
			</item>
	<item>
		<title>Component Inspector in Flash has ISSUES!</title>
		<description><![CDATA[I discovered a very annoying bug in the Flash IDE a little while ago, and it has happened to me quite a few times.
Today it happened again and so I write this post..
While in the Flash IDE you select a component on the stage, then you click &#8220;Component Inspector&#8221;.
This opens up into a modal window [...]]]></description>
		<link>http://www.andrewodendaal.com/component-inspector-in-flash-has-issues/</link>
			</item>
	<item>
		<title>Close/Delete Google Checkout Account</title>
		<description><![CDATA[I have used Google Checkout to receive payments in the past and have had problems with some clients not paying and blaming it on Google Checkout that the money did not go through (like the guys over at Peartree DMS).
I decided that this account was not worth the trouble anymore and wanted to close my [...]]]></description>
		<link>http://www.andrewodendaal.com/closedelete-google-checkout-account/</link>
			</item>
	<item>
		<title>Warning: mysql_affected_rows(): supplied argument is not a valid MySQL-Link resource</title>
		<description><![CDATA[Warning: mysql_affected_rows(): supplied argument is not a valid MySQL-Link resource
You have just gotten a warning when trying to check if an inserted row was successful but when calling mysql_affected_rows(mysql_query(&#8220;INSERT INTO&#8230;&#8230;&#8221;)) you get a warning telling you that the supplied argument is not a valid MySQL-Link resource.
This is because mysql_query INSERT actually returns true or false [...]]]></description>
		<link>http://www.andrewodendaal.com/warning-mysql_affected_rows-supplied-argument-is-not-a-valid-mysql-link-resource/</link>
			</item>
	<item>
		<title>Capitalize First Letter in Word &#8211; Actionscript 2</title>
		<description><![CDATA[You have a string and you want to capitalize the first character but have the rest of the word in lowercase.
DO THIS!
myStringVar = myStringVar.substring(0, 1).toUpperCase()+myStringVar.substring(1);]]></description>
		<link>http://www.andrewodendaal.com/capitalize-first-letter-in-word-actionscript-2/</link>
			</item>
	<item>
		<title>HP Pavilion Laptop Madness</title>
		<description><![CDATA[I have got an HP laptop and have started experiencing problems with it starting up for the past few months, it is only about 1.5years old and is supposed to be a decent one.
It is an HP Pavilion dv9700 by the way..
Today the damn thing just didnt want to startup and eventually after trying every [...]]]></description>
		<link>http://www.andrewodendaal.com/hp-pavilion-laptop-madness/</link>
			</item>
	<item>
		<title>Why you should use OpenGl and not DirectX</title>
		<description><![CDATA[Below is a very interesting article I found that proves all the myths about DirectX being better than OpenGL, a very well written paper describing it best.
Thanks for that guys at Wolfire.com!
http://blog.wolfire.com/2010/01/Why-you-should-use-OpenGL-and-not-DirectX]]></description>
		<link>http://www.andrewodendaal.com/why-you-should-use-opengl-and-not-directx/</link>
			</item>
	<item>
		<title>What does __FILE__ in php mean?</title>
		<description><![CDATA[In php there are a few magic constants and I find __FILE__ to be a very useful one.
It returns the full path and filename of the file in question.
Take a look at the PHP Manual &#8211; Magic Constants for more information on the others.]]></description>
		<link>http://www.andrewodendaal.com/what-does-__file__-in-php-mean/</link>
			</item>
	<item>
		<title>Woopra Failed to Connect?</title>
		<description><![CDATA[I have used Woopra for a few months now and have started seeing this warning/error almost everyday now:
Could not enable live functionality at this time. Click to reconnect.
If you click the text/warning/error it seems to go away&#8230; Anybody konw what&#8217;s really going on under the cover?]]></description>
		<link>http://www.andrewodendaal.com/woopra-failed-to-connect/</link>
			</item>
	<item>
		<title>Change PHP Session Time</title>
		<description><![CDATA[The default time for a php session is 1440 seconds.
You can change it by doing the following:
ini_set(&#8220;session.gc_maxlifetime&#8221;,1440);
You can obviously adjust the second parameter (1440) to anything you like to change the timeout limit.]]></description>
		<link>http://www.andrewodendaal.com/change-php-session-time/</link>
			</item>
	<item>
		<title>Stop mouse click in browsers</title>
		<description><![CDATA[There have been multiple ways to stop your user/s from right clicking on your site, but many of them now fail due to the way firefox&#8217;s contextual menu loads.
Below is an example of how to do it:
function _c(e) {if (document.all) {if (event.button==2&#124;&#124;event.button==3) {return false;}} else {if (e.button==2&#124;&#124;e.button==3) {e.preventDefault();e.stopPropagation();return false;}}if (e.which) {}}if (document.all){document.onmousedown=_c;}else{document.onclick=_c;document.ondblclick=_c;}
..and here is the [...]]]></description>
		<link>http://www.andrewodendaal.com/stop-mouse-click-in-browsers/</link>
			</item>
	<item>
		<title>Microsoft apps never care!</title>
		<description><![CDATA[I often seem to have this issue when dealing with Microsoft software.
You click &#8220;Cancel&#8221; and it just carrys on going, so you click it again a few more times and instead of it just stopping in it&#8217;s tracks, decides to rather tell you it&#8217;s cancelling and then shows a cancelling dialog box for the next [...]]]></description>
		<link>http://www.andrewodendaal.com/microsoft-apps-never-care/</link>
			</item>
	<item>
		<title>Place HTML Div on top of Flash</title>
		<description><![CDATA[If you have ever tried to place a div or similar HTML element on top of a swf flash object you will know that it always tries to take precedence.
You will need to do the following:
In the code for the flash add:
&#60;param name=”wmode” value=”transparent”&#62;
and in the embed area add:
wmode=”transparent”
If you are using SWFObject to insert [...]]]></description>
		<link>http://www.andrewodendaal.com/place-html-div-on-top-of-flash/</link>
			</item>
	<item>
		<title>Get current working directory of php script/application</title>
		<description><![CDATA[$myPath = realpath(dirname(__FILE__));
or
$myPath = getcwd();]]></description>
		<link>http://www.andrewodendaal.com/get-current-working-directory-of-php-scriptapplication/</link>
			</item>
	<item>
		<title>Stage align and Stage scale in actionscript 3</title>
		<description><![CDATA[If you want to position the flas top/left and not have it scale when you resize it&#8217;s bounding box window, you can set the following code.
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;

For full documentation from Adobe take a look here.]]></description>
		<link>http://www.andrewodendaal.com/stage-align-and-stage-scale-in-actionscript-3/</link>
			</item>
	<item>
		<title>Error 406?</title>
		<description><![CDATA[So you received an error 406 while trying to upload a file and you have no idea to fix it!
Create a &#8220;.htaccess&#8221; file in the root of your local website and add the following into it:
&#60;IfModule mod_security.c&#62;
SecFilterEngine Off
SecFilterScanPOST Off
&#60;/IfModule&#62;]]></description>
		<link>http://www.andrewodendaal.com/error-406/</link>
			</item>
	<item>
		<title>Firefox error in FeedProcessor.js</title>
		<description><![CDATA[[Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIChannel.contentType]&#8220;  nsresult: &#8220;0&#215;80040111 (NS_ERROR_NOT_AVAILABLE)&#8221;  location: &#8220;JS frame :: file:///C:/Program%20Files/Mozilla%20Firefox/components/FeedProcessor.js :: FP_onStartRequest :: line 1440&#8243;  data: no]
file:///C:/Program%20Files/Mozilla%20Firefox/components/FeedProcessor.js
Line 1440
So what the heck does that all mean?
Basically, there is an exception error on like 1440 of the local Firefox javascript file &#8220;FeedProcessor.js&#8221;.
The line in question is as follows:
channel.contentType = &#8220;application/vnd.mozilla.maybe.feed&#8221;;
The whole [...]]]></description>
		<link>http://www.andrewodendaal.com/firefox-error-in-feedprocessor-js/</link>
			</item>
	<item>
		<title>Average Internet Speeds</title>
		<description><![CDATA[Ok, this is an interesting one!
Internet Speeds and Costs Around the World &#8211; Top 20 Nations in ITIF Broadband Rankings

Click to open a larger image]]></description>
		<link>http://www.andrewodendaal.com/average-internet-speeds/</link>
			</item>
	<item>
		<title>Surl Update</title>
		<description><![CDATA[The URL Shortener Service has been updated to correct some HTTP Headers problems that users were experiencing.
Havn&#8217;t heard of Surl yet? Try it out now, it&#8217;s 100% FREE!]]></description>
		<link>http://www.andrewodendaal.com/surl-update/</link>
			</item>
	<item>
		<title>I hate desktop email clients</title>
		<description><![CDATA[I used to use Mozilla Thunderbird to handle my pop emails accounts and then I started experiencing performance problems when doing almost anything. My email inbox contains a good few thousand items at any given time.
I decided to change to Microsoft Outlook 2007 as I had used a previous version in the past and it [...]]]></description>
		<link>http://www.andrewodendaal.com/i-hate-desktop-email-clients/</link>
			</item>
	<item>
		<title>Modern Warfare 2 Review</title>
		<description><![CDATA[Call of Duty: Modern Warfare 2 is a new game released on 10 November 2009 by the guys at Infinity Ward.
A first person shooter type game that got me going right from the beginning.
I have started my addiction to COD:MW2 using a brandnew PS3 that my fiancé got me for xmas and am quite unable [...]]]></description>
		<link>http://www.andrewodendaal.com/modern-warfare-2-review/</link>
			</item>
	<item>
		<title>Happy new year!</title>
		<description><![CDATA[The year is 2010 and it&#8217;s a NEW YEAR! So a Happy New Year to everybody!
This year is going to be a very interesting one filled with lots of joy and excitment!
Time to take down all those xmas trees and start working again&#8230;&#8230;]]></description>
		<link>http://www.andrewodendaal.com/happy-new-year/</link>
			</item>
	<item>
		<title>mySQL select multiple ids</title>
		<description><![CDATA[SELECT * FROM tablename WHERE `active`=&#8217;1&#8242; AND `id` IN (&#8216;107&#8242; , &#8216;125&#8242; ) ORDER BY `id` DESC LIMIT 12]]></description>
		<link>http://www.andrewodendaal.com/mysql-select-multiple-ids/</link>
			</item>
	<item>
		<title>Force Download in PHP</title>
		<description><![CDATA[This script works in all browsers, including Internet Explorer!  

if (strstr($_SERVER['HTTP_USER_AGENT'],&#8221;MSIE&#8221;)) {
header(&#8220;Pragma: public&#8221;);
header(&#8220;Expires: 0&#8243;);
header(&#8220;Cache-Control: must-revalidate, post-check=0, pre-check=0&#8243;);
header(&#8220;Cache-Control: private&#8221;,false);
header(&#8220;Content-Type: application-download&#8221;);
header(&#8220;Content-Disposition: attachment; filename=\&#8221;".basename($filename).&#8221;\&#8221;;&#8221;);
header(&#8220;Content-Transfer-Encoding: binary&#8221;);
header(&#8220;Content-Length: &#8220;.@filesize($ab_file));
set_time_limit(0);
} else {
header(&#8220;Content-type: application-download&#8221;);
header(&#8220;Content-Length: &#8220;.filesize($ab_file));
header(&#8220;Content-Disposition attachment; filename=&#8221;.$filename);
}
readfile($ab_file);]]></description>
		<link>http://www.andrewodendaal.com/force-download-in-php/</link>
			</item>
	<item>
		<title>Remove an onRelease Handler</title>
		<description><![CDATA[After creating a onRelease handler in Actionscript 2 as follows:
myMovieClip.onRelease = function() { doWhatever(); }
..you then want to remove the handler for whatever reason, you can remove it like this:
delete myMovieClip.onRelease;]]></description>
		<link>http://www.andrewodendaal.com/remove-an-onrelease-handler/</link>
			</item>
	<item>
		<title>Xmas tree!</title>
		<description><![CDATA[Hello everybody!
I have put up my &#8220;work xmas tree&#8221; on my external harddrive at work.
It is a little USB powered Xmas Tree that changes colour every few seconds!
You like?  ]]></description>
		<link>http://www.andrewodendaal.com/xmas-tree/</link>
			</item>
	<item>
		<title>shortText function toggler in php</title>
		<description><![CDATA[function shortText($text, $length){
if( strlen($text) &#38;gt; $length ) return substr(preg_replace('/(&#38;lt;\/?)(\w+)([^&#38;gt;]*&#38;gt;)/', '', $text), 0, $length)."...";
return preg_replace('/(&#38;lt;\/?)(\w+)([^&#38;gt;]*&#38;gt;)/', '', $text);
}]]></description>
		<link>http://www.andrewodendaal.com/shorttext-function-toggler-in-php/</link>
			</item>
	<item>
		<title>ak script</title>
		<description><![CDATA[www.andrewodendaal.com/ak/ ran a webscan today returning results of online sites and has retrieved a list of a few thousand items every half hour.
The test will run until a softcap is reached at 52K.]]></description>
		<link>http://www.andrewodendaal.com/andrewodendaal-comak/</link>
			</item>
	<item>
		<title>Hayley&#8217;s posts!</title>
		<description><![CDATA[After some recent posts to this site, my fiancé recognised the content as something she had talked to me about and asked me lastnight if I had taken the topics from her.
This is actually a high possibility and this post is to tell everyone that Hayley &#8211; my most beautiful fiancé – has all credits [...]]]></description>
		<link>http://www.andrewodendaal.com/hayleys-posts/</link>
			</item>
	<item>
		<title>PHP &#8211; file() lines</title>
		<description><![CDATA[$lines = file('all-words.txt');
foreach ($lines as $line_num =&#38;gt; $line) {
   echo "Line number ".$line_num;
}
]]></description>
		<link>http://www.andrewodendaal.com/php-file-lines/</link>
			</item>
	<item>
		<title>Truck Game!</title>
		<description><![CDATA[]]></description>
		<link>http://www.andrewodendaal.com/truck-game/</link>
			</item>
	<item>
		<title>Windows Live Writer &#8211; Beta2</title>
		<description><![CDATA[Start writing content to your blogs from your Windows Desktop now.
No need to login to your wordpress backend to post items anymore, there is now a decent desktop application that allows you to do exactly that!
I have looked at it before but not until recently when Beta2 came out did I gain more interest for [...]]]></description>
		<link>http://www.andrewodendaal.com/windows-live-writer-beta2/</link>
			</item>
	<item>
		<title>Traffic Rush on iPhone</title>
		<description><![CDATA[Traffic Rush
Traffic safety is at your fingertips as RUSH HOUR is approaching.
Strategically stop and accelerate rushing vehicles that are crossing the intersection!
Sounds easy? Well, wait until you&#8217;ve tried!
I downloaded a game to my iPhone called Traffic Rush by the people at Donut Games, how terribly addictive! I got into it immediately and absolutely LOVE playing [...]]]></description>
		<link>http://www.andrewodendaal.com/traffic-rush/</link>
			</item>
	<item>
		<title>ChronicDistraction.com gets pagination!</title>
		<description><![CDATA[You can now use pagination when viewing ChronicDistraction.com.
This is a new improvement to allow you easier browsing while using the site.
For any other improvements you may have. You can contact ChronicDistraction.com developers by posting on the site.
Nice to see the update!]]></description>
		<link>http://www.andrewodendaal.com/chronicdistraction-com-gets-pagination/</link>
			</item>
	<item>
		<title>Check Gmail another way</title>
		<description><![CDATA[You can view your gmail accounts by going to FreeMailManager.]]></description>
		<link>http://www.andrewodendaal.com/check-gmail-another-way/</link>
			</item>
	<item>
		<title>Reported Attack Site!</title>
		<description><![CDATA[What the heck is that?
So you&#8217;ve just visited a website using Mozilla Firefox and this message has popped up telling you that the site looks suspicious.
Usually the site has been marked as a possible virus containing website and Firefox will show you this message attempting to protect itself against Malware, Spyware or other forms of [...]]]></description>
		<link>http://www.andrewodendaal.com/reported-attack-site/</link>
			</item>
	<item>
		<title>Simple HEX Colour Values</title>
		<description><![CDATA[

Actual Display Colour
HEX Colour



#000000



#FF0000



#00FF00



#0000FF



#FFFF00



#00FFFF



#FF00FF



#C0C0C0



#FFFFFF


]]></description>
		<link>http://www.andrewodendaal.com/simple-hex-colour-values/</link>
			</item>
	<item>
		<title>Send Email PHP Function</title>
		<description><![CDATA[Ever find yourself typing the headers into the php mail() function over and over again?
Try using a standard function and calling it when you need to send mail.
function sendEmail($subject,$content,$from,$to){
$header = "Content-Type: text/html; charset=iso-8859-1\nFrom:$from";
if( mail($to, $subject, $content, $header) );
}]]></description>
		<link>http://www.andrewodendaal.com/send-email-php-function/</link>
			</item>
	<item>
		<title>Are people seriously still using Twitter?</title>
		<description><![CDATA[I don&#8217;t understand why everyone is still so &#8220;in-to&#8221; all these social networking sites.
Surely you have better things to be doing than updating everyone on your exact whereabouts and every second doings.
Do all your friends/aquantances all need to know that you popped down to the shop? Or that you enjoyed that second thing on the [...]]]></description>
		<link>http://www.andrewodendaal.com/are-people-seriously-still-using-twitter/</link>
			</item>
	<item>
		<title>mySQL Development Tools</title>
		<description><![CDATA[I came across a very interesting article about mySQL Development Tools.
http://www.smashingmagazine.com/2009/03/25/mysql-admin-and-development-tools-round-up/]]></description>
		<link>http://www.andrewodendaal.com/mysql-development-tools/</link>
			</item>
	<item>
		<title>Short URLs</title>
		<description><![CDATA[Need a way to share URLs online, but perhaps the URLs are too long?
Have you tried a URL Shortening Service?
Check it out right now! Go to surl.andz.co.uk]]></description>
		<link>http://www.andrewodendaal.com/short-urls/</link>
			</item>
	<item>
		<title>Neobux Maintenance!?</title>
		<description><![CDATA[I always seem to catch neobux.com with a message like this!
Either they are down quite often or I am the one person that keeps seeing the message.
Neobux is a PTC (Payed To Click) scheme where you earn money to while clicking on adverts everyday.
You can join for free and start earning today by signing up [...]]]></description>
		<link>http://www.andrewodendaal.com/neobux-maintenance/</link>
			</item>
	<item>
		<title>Outlook Tasks</title>
		<description><![CDATA[I use Outlook for email and because of that I ended up using the Tasks feature which turns out to be pretty damn useful.
It is called the To-Do Bar and if you don&#8217;t immediately see it you can open it by clicking on View-&#62;To-Do Bar. Select &#8220;Normal&#8221; and make sure the &#8220;Task List&#8221; is checked [...]]]></description>
		<link>http://www.andrewodendaal.com/outlook-tasks/</link>
			</item>
	<item>
		<title>What&#039;s with LOL</title>
		<description><![CDATA[What&#8217;s with retards online that add &#8220;lol&#8221; to everything they say?
Do they not know how to talk properly?
Are they social outcasts that are identified by their inability to converse with people who can speak the English language?
Examples of rediculous timed &#8220;lol&#8221;s:

&#8220;We&#8217;ll be there at 6PM lol&#8221;
How was that funny? Did that really make you laugh [...]]]></description>
		<link>http://www.andrewodendaal.com/whats-with-lol/</link>
			</item>
	<item>
		<title>Popular Logos with Hidden Symbolisms</title>
		<description><![CDATA[SixRevisions goes through a few clever company logos.
Check it out here.]]></description>
		<link>http://www.andrewodendaal.com/popular-logos-with-hidden-symbolisms/</link>
			</item>
	<item>
		<title>Designer Hell!!!!!!!!!</title>
		<description><![CDATA[Oh, I love it!
http://theoatmeal.com/comics/design_hell
Anybody have any suggestions to how to stop this from happening?]]></description>
		<link>http://www.andrewodendaal.com/designer-hell/</link>
			</item>
	<item>
		<title>1180: Call to a possibly undefined method getURL. Actionscript 3</title>
		<description><![CDATA[Hello all actionscripters, you can&#8217;t use getURL anymore in Actionscript 3.
Below is how you should now start doing it:
var request:URLRequest = new URLRequest("http://blog.andrewodendaal.com/");
try { navigateToURL(request, '_blank');}
catch (e:Error) { trace("Error occurred!");}
]]></description>
		<link>http://www.andrewodendaal.com/1180-call-to-a-possibly-undefined-method-geturl-actionscript-3/</link>
			</item>
	<item>
		<title>DevAPI.net Update</title>
		<description><![CDATA[The stats section in the Control Panel for registered users has been worked on quite a bit more than it was and some focus has been given to IP tracking and filtering.
There are still a million features to come so stay tuned!]]></description>
		<link>http://www.andrewodendaal.com/devapi-net-update/</link>
			</item>
	<item>
		<title>Online Flash IDE Anybody?</title>
		<description><![CDATA[Anyone up for an online Flash IDE?
Take a look at this:
http://antimatter15.com/ajaxanimator/build/
Nice work!]]></description>
		<link>http://www.andrewodendaal.com/online-flash-ide-anybody/</link>
			</item>
	<item>
		<title>Papervision Event Listener Idea</title>
		<description><![CDATA[The problem:
While working on a Papervision3D Flash Project I had a problem where a back button that sits above the 3d canvas and acts as a main navigational item was required to change Events according to where the site was in 3d space at the time.
The solution:
Everytime I&#8217;m about to add a new EventListener to [...]]]></description>
		<link>http://www.andrewodendaal.com/264/</link>
			</item>
	<item>
		<title>Don&#039;t cache my swf files!</title>
		<description><![CDATA[I often have issues where &#8216;dumb browsers&#8217; cache my published swf files and when they dynamically populate they don&#8217;t always update.
This is SUPER annoying and I have found a solution.
I will demonstrate the technique with a LoadsVars example
var nc = Math.floor(random(1000000) / random(1000));
var send_lv:LoadVars = new LoadVars();
send_lv.sendAndLoad(_root.siteURL+"profile.php?action=showallimages&#38;nc="+nc, result_lv, "POST");
So let me describe what is happening [...]]]></description>
		<link>http://www.andrewodendaal.com/dont-cache-my-swf-files/</link>
			</item>
	<item>
		<title>Charge iPhone while off</title>
		<description><![CDATA[It&#8217;s a really strange thing. Most phones can charge while they are turned off and for a while I thought the iPhone couldn&#8217;t because it never gave that impression  
So I tried plugging it in to charge and then holding down the power-off button until the red slider appeared. I then dragged the slider [...]]]></description>
		<link>http://www.andrewodendaal.com/charge-iphone-while-off/</link>
			</item>
	<item>
		<title>Clear an array in Actionscript 3</title>
		<description><![CDATA[I personally really like this way of clearing an array&#8217;s elements:
Declare your array to use:
var myArray:Array=new Array();
Add elements:
for (var i:Number;i&#60;10;i++) {
myArray[i] = &#8220;an item&#8221;;
}
Clear the array:
myArray.length = 0;]]></description>
		<link>http://www.andrewodendaal.com/clear-an-array-in-actionscript-3/</link>
			</item>
	<item>
		<title>Cave Dwelling, Issues..?</title>
		<description><![CDATA[I was reading the Metro London Newspaper today and came across an article entitled &#8220;cave dwelling brothers in line to inherit billions&#8221;, so as anyone would, I read on.
It turns out that there were 2 brothers living homelessly in caves in Hungary while their only sister was in the US. In the meantime their mother [...]]]></description>
		<link>http://www.andrewodendaal.com/cave-dwelling-issues/</link>
			</item>
	<item>
		<title>1 December 2009</title>
		<description><![CDATA[The first of December and it only feels like it&#8217;s February!
This year has really flown by quicker than the last!
I&#8217;m quite excited that it is already December, as there are a lot of really interesting things that are coming my/your way over the course of the next few months &#8211; but you will have to [...]]]></description>
		<link>http://www.andrewodendaal.com/1-december-2009/</link>
			</item>
	<item>
		<title>Adidas</title>
		<description><![CDATA[I came across this site today: http://www.adidas.com/campaigns/adidasdfb/content/locale/com/?strcountry_adidascom=uk
It is a game made and run on the adidas site..
Play it, it&#8217;s quite cool. Nice flash site to whoever made it!]]></description>
		<link>http://www.andrewodendaal.com/adidas/</link>
			</item>
	<item>
		<title>Change combobox font size in Flash Actionscript</title>
		<description><![CDATA[Ever needed to change the font size of a standard flash combobox component?
You will need to give it an instance name e.g. &#8220;myCombobox&#8221; and then add the following code:
myCombobox.setStyle("fontSize", 10);]]></description>
		<link>http://www.andrewodendaal.com/change-combobox-font-size-in-flash-actionscript/</link>
			</item>
	<item>
		<title>UK Police are Ponces!</title>
		<description><![CDATA[Today as I was driving to work along the London roads I looked in my rearview mirror to see a bus in the buslane stop a few metres behind me.
There was a car with it&#8217;s left wheels in the buslane. A few minutes before seeing this I had seen 2 police women standing at a [...]]]></description>
		<link>http://www.andrewodendaal.com/uk-police-are-ponces/</link>
			</item>
	<item>
		<title>Wordwrap that PRE!</title>
		<description><![CDATA[Ever used a &#60;PRE&#62; in a limited width div container? You will notice that the line gets cut off almost as if wordwrap was not enabled.
To correct this you can add the following code into your CSS file.
pre{
   white-space: pre-wrap; /* CSS2.1 compliant */
   white-space: -moz-pre-wrap; /* Mozilla-based browsers */
  [...]]]></description>
		<link>http://www.andrewodendaal.com/wordwrap-that-pre/</link>
			</item>
	<item>
		<title>Barclays ePDQ Payment Gateway</title>
		<description><![CDATA[Hello all!
Today we will be talking about Barclays online payment gateway valled ePDQ.
You can take a look at what they have got to say by clicking here to view Barclays&#8217; site or you could keep reading 
Well, for all you php guys out there, this post if for you!
Barclays ePDQ encrypts your data string of [...]]]></description>
		<link>http://www.andrewodendaal.com/barclays-epdq-payment-gateway/</link>
			</item>
	<item>
		<title>BrainWHAT? programming language</title>
		<description><![CDATA[I came across a programming language today that I have never heard of. Go take a look over here:
http://en.wikipedia.org/wiki/Brainfuck]]></description>
		<link>http://www.andrewodendaal.com/brainwhat-programming-language/</link>
			</item>
	<item>
		<title>Transparent swf in html</title>
		<description><![CDATA[So you have now placed a swf file into your html page and you want to be able to see through it.
Lucky for you, this is a very easy thing to do!
The following code does the trick:
&#60;object type='application/x-shockwave-flash' data='flash/home_side_left.swf' width='40px' height='550px'&#62;
    &#60;param name='movie' value='flash/home_side_left.swf' /&#62;
   &#60;param name='bgcolor' value='#ffffff'&#62;
   [...]]]></description>
		<link>http://www.andrewodendaal.com/transparent-swf-in-html/</link>
			</item>
	<item>
		<title>Is anyone any good at Javascript and PHP?</title>
		<description><![CDATA[If any of you are good at Javascript and PHP then you should check out this site, they are just starting out and it seems to be a project that would be nice to have.]]></description>
		<link>http://www.andrewodendaal.com/is-anyone-any-good-at-javascript-and-php/</link>
			</item>
	<item>
		<title>Web API</title>
		<description><![CDATA[Go take a look at devapi.net, signup before January and get a FREE DevAPI Account!]]></description>
		<link>http://www.andrewodendaal.com/web-api/</link>
			</item>
	<item>
		<title>Neobux anybody?</title>
		<description><![CDATA[Anybody here used or heard of Neobux?
For those of you that don&#8217;t know, it is a PTC (Paid To Click) website where you get paid to click on advert links and watch a specific page for 60 seconds.

Click the image above to see what Neobux is all about!
Signup for free today! Click here!]]></description>
		<link>http://www.andrewodendaal.com/neobux-anybody/</link>
			</item>
	<item>
		<title>Constant updates?</title>
		<description><![CDATA[I just hate it how everything always wants to update&#8230; and then restart all the damn time!
First things first:
This pops up telling me it&#8217;s doing a 309.6MB Adobe Reader Update! Which to me is just crazy&#8230; Surely the constant updates shouldn&#8217;t be a million times larger than the actual initial install file for the application?

I [...]]]></description>
		<link>http://www.andrewodendaal.com/constant-updates/</link>
			</item>
	<item>
		<title>Share the mouse and keyboard!</title>
		<description><![CDATA[A very interesting project I found this morning, take a look at this one!
http://synergy2.sourceforge.net/]]></description>
		<link>http://www.andrewodendaal.com/share-the-mouse-and-keyboard/</link>
			</item>
	<item>
		<title>What is CWS&gt;+?</title>
		<description><![CDATA[So what the heck kind of file starts with the characters &#8220;CWS&#62;+&#8221; ?
That would be a flash swf file!]]></description>
		<link>http://www.andrewodendaal.com/what-is-cws/</link>
			</item>
	<item>
		<title>YAHOO AWARD PRIZE NOTIFICATION</title>
		<description><![CDATA[My brother got sent an email the other day and was as follows:
















[Windows Live Logo, Gmail Logo, Yahoo Logo]
 Yahoo Awards Center
From The Desk Of The Promotions Manager
 International Promotions/Yahoo Award Center
 124 Stockport Road, Long sight, 
 Manchester M60 2DB &#8211; United  Kingdom
This is to inform you that you have won a prize [...]]]></description>
		<link>http://www.andrewodendaal.com/yahoo-award-prize-notification/</link>
			</item>
	<item>
		<title>Papervision error 1046</title>
		<description><![CDATA[Error: &#8220;1046: Type was not found or was not a compile-time constant: InteractiveScene3DEvent.&#8221;
I got this this morning when I opened up a project I have been working on. I was using the Flash IDE to compile and FlashDevelop to code in as I am not the biggest fan of the Flash IDE for coding in&#8230;.. [...]]]></description>
		<link>http://www.andrewodendaal.com/papervision-error-1046/</link>
			</item>
	<item>
		<title>azupnpav_0.2.23</title>
		<description><![CDATA[So what the heck is &#8220;azupnpav_0.2.23.zip&#8221;? It appears to be a plugin for Vuze(Azureus) the torrent client.
Filesize: 198.1 kB]]></description>
		<link>http://www.andrewodendaal.com/azupnpav_0-2-23/</link>
			</item>
	<item>
		<title>Paypal chat help! FAIL!</title>
		<description><![CDATA[I was having a problem with a Paypal form that wasn&#8217;t returning customers so after some Google-ing I went to paypal&#8217;s help site found a Chat Feature to speak to a real person.
It turned out to be a chat bot and I had quite a mission asking it anything at all!
I asked it:
Me: how do [...]]]></description>
		<link>http://www.andrewodendaal.com/paypal-chat-help-fail/</link>
			</item>
	<item>
		<title>How to Save a Dreamweaver document as UTF8!</title>
		<description><![CDATA[Today I tried to save arabic text inside a javascript file and on saving encountered a dialog box asking me to first convert the document to UTF8.
Why it didnt just do it for me I&#8217;ll never know, so I had to do it myself.
If you encounter this then do the following to convert the document:

Click [...]]]></description>
		<link>http://www.andrewodendaal.com/how-to-save-a-dreamweaver-document-as-utf8/</link>
			</item>
	<item>
		<title>16000 Limit!</title>
		<description><![CDATA[Today I discovered that Flash truly has a limit!

16,000 frames: Exceeding this limit causes the movie playback to stop. While this limit is rarely reached by most developers, it is possible. If your movie must have more than this number of frames,try creating multiple movies with fewer than 16,000 frames each and then linking the [...]]]></description>
		<link>http://www.andrewodendaal.com/16000-limit/</link>
			</item>
	<item>
		<title>htaccess ErrorDocument</title>
		<description><![CDATA[Create a file called .htaccess in the root of your public_html/htdocs of your domain.
Inside add the following text:
Options +FollowSymLinks
AddDefaultCharset UTF-8
RewriteEngine on
Options +FollowSymLinks
AddDefaultCharset UTF-8
RewriteEngine on
ErrorDocument 404 /index.php
ErrorDocument 301 /index.php
With the index.php files being the pages that get redirected to.]]></description>
		<link>http://www.andrewodendaal.com/htaccess-errordocument/</link>
			</item>
	<item>
		<title>How to correctly form HTML</title>
		<description><![CDATA[&#60;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Strict//EN&#8221; &#8220;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&#8221;&#62;
&#60;html xmlns=&#8221;http://www.w3.org/1999/xhtml&#8221;&#62;
&#60;head&#62;
&#60;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Strict//EN&#8221; &#8220;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&#8221;&#62;
&#60;html xmlns=&#8221;http://www.w3.org/1999/xhtml&#8221;&#62;
 &#60;head&#62;
 &#60;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html; charset=UTF-8&#8243; /&#62;
 &#60;script type=&#8221;text/javascript&#8221; src=&#8221;javascript/javascriptfilename.js&#8221;&#62;&#60;/script&#62;
 &#60;title&#62;Title goes here&#60;/title&#62;
 &#60;link href=&#8221;stylesheetname.css&#8221; rel=&#8221;stylesheet&#8221; type=&#8221;text/css&#8221; /&#62;
 &#60;/head&#62;
 &#60;body&#62;
 Page content goes here
 &#60;/body&#62;
&#60;/html&#62;]]></description>
		<link>http://www.andrewodendaal.com/how-to-correctly-form-html/</link>
			</item>
	<item>
		<title>Trying to get variables into flash from the browser!</title>
		<description><![CDATA[Ever wondered how to get variables from an html page to a flash element?
Well, it&#8217;s quite easy using the following actionscript 2 example:
I use javascript to embed my flash elements:

&#60;embed src=&#8221;somefilename.swf?varname=varvalue&#38;vartwo=var2value&#8221; width=&#8221;550&#8243; height=&#8221;400&#8243;&#62;&#60;/embed&#62;
Now in Flash I can just call:
_root.varname and it will give us `varvalue`
_root.vartwo will give us `var2value`
Wasn&#8217;t that easy?]]></description>
		<link>http://www.andrewodendaal.com/trying-to-get-variables-into-flash-from-the-browser/</link>
			</item>
	<item>
		<title>Flash Tweening</title>
		<description><![CDATA[tween is an actionscript class and can be used after importing the core files.
import mx.transitions.Tween;
import mx.transitions.easing.*;
//Tween( obj:Object, prop:String, func:Function, begin:Number, finish:Number, duration:Number, useSeconds:Boolean);
e.g.
var myRot:Tween 	= new 	Tween(myText, 	&#8220;_rotation&#8221;, Elastic.easeOut, 	0, 360, 	3, true);]]></description>
		<link>http://www.andrewodendaal.com/flash-tweening/</link>
			</item>
	<item>
		<title>Cube Desktop on Ubuntu</title>
		<description><![CDATA[Alright, so I run Ubuntu 7.10 and use the Desktop Effects via compviz, anyhow, I could get the 2d workspace but really wanted the 3d cube, even if I set up 4 desktops, it would still only show 2 sides of the cube(aka not a cube).
The solution is: In Terminal do: gconftool-2 &#8211;type int &#8211;set [...]]]></description>
		<link>http://www.andrewodendaal.com/cube-desktop-on-ubuntu/</link>
			</item>
	<item>
		<title>Animate with Actionscript [part1]</title>
		<description><![CDATA[// Created by Andrew Odendaal
//
// :: DESCRIPTION ::
// Animate a ball moving to the top
// of the screen/stage and back again
//
// :: HOW TO USE ::
// create a circle shape, convert to a movieclip(mc) and
// place the registration point at the bottom center.
// give the circle mc an stage instance name of &#8216;ball&#8217;.
var ball:MovieClip;
var initBallY:Number [...]]]></description>
		<link>http://www.andrewodendaal.com/animate-with-actionscript-part1/</link>
			</item>
	<item>
		<title>To Install IIS 7.0 on Windows Vista &#8211; script</title>
		<description><![CDATA[start /w pkgmgr /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-HttpRedirect;IIS-ApplicationDevelopment;IIS-ASPNET;IIS-NetFxExtensibility;IIS-ASP;IIS-CGI;IIS-ISAPIExtensions;IIS-ISAPIFilter;IIS-ServerSideIncludes;IIS-HealthAndDiagnostics;IIS-HttpLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-HttpTracing;IIS-CustomLogging;IIS-Security;IIS-BasicAuthentication;IIS-URLAuthorization;IIS-RequestFiltering;IIS-IPSecurity;IIS-Performance;IIS-HttpCompressionStatic;IIS-HttpCompressionDynamic;IIS-WebServerManagementTools;IIS-ManagementConsole;IIS-ManagementScriptingTools;IIS-ManagementService;IIS-IIS6ManagementCompatibility;IIS-Metabase;IIS-WMICompatibility;IIS-LegacyScripts;IIS-LegacySnapIn;WAS-WindowsActivationService;WAS-ProcessModel;WAS-NetFxEnvironment;WAS-ConfigurationAPI]]></description>
		<link>http://www.andrewodendaal.com/to-install-iis-7-0-on-windows-vista-script/</link>
			</item>
	<item>
		<title>Kill Adobe Updater</title>
		<description><![CDATA[So adobe updater keeps doing updates eventhough you&#8217;ve said &#8216;NEVER DO IT AGAIN!!!&#8217;.
The fix is to physically remove the dir with the info in.
On a windows system go to &#8216;c:\program files\common files\adobe\&#8217;, there is a nasty little folder called UPDATER5 in there that you can DELETE!
PROBLEM SOLVED  ]]></description>
		<link>http://www.andrewodendaal.com/kill-adobe-updater/</link>
			</item>
	<item>
		<title>Apache Cannot be Run. Another web server is using the web port or port is blocked by firewall.</title>
		<description><![CDATA[Tried to start EasyPHP: &#8220;Apache Cannot be Run. Another web server is using the web port or port is blocked by firewall.&#8221;
I was running Skype! And it was blocking the using the port.
Check in options-&#62;advanced-&#62;connection for the setting on port 80.
Another way to stop this from happening and solve the problem quicker is to go [...]]]></description>
		<link>http://www.andrewodendaal.com/apache-cannot-be-run-another-web-server-is-using-the-web-port-or-port-is-blocked-by-firewall/</link>
			</item>
	<item>
		<title>how to load xml into flash using actionscript 2</title>
		<description><![CDATA[Create an xml object:
var myXmlObject = new XML();
Perform action when xml file has been loaded:
myXmlObject.onLoad = function(success) { 	if (success) trace(&#8220;XML File has been read.&#8221;); }
Load the xml file into the object:
myXmlObject.load(&#8220;myXmlFile.xml&#8221;);]]></description>
		<link>http://www.andrewodendaal.com/how-to-load-xml-into-flash-using-actionscript-2/</link>
			</item>
	<item>
		<title>TypeError: node is null message=node is null</title>
		<description><![CDATA[The following error message occurs in Firefox 3 when using Firebug.
TypeError: node is null message=node is null
The error can be tracked back to script tags being in the head of the document instead of where they&#8217;re needed, an example would be with the ShareThis control/component that is often added to blogs and etc.]]></description>
		<link>http://www.andrewodendaal.com/typeerror-node-is-null-messagenode-is-null/</link>
			</item>
	<item>
		<title>Cant start your browser?</title>
		<description><![CDATA[Cant start your browser?
Try checking if any torrent apps are running.. Close them and retry.]]></description>
		<link>http://www.andrewodendaal.com/cant-start-your-browser/</link>
			</item>
	<item>
		<title>Modify pages in a browser window</title>
		<description><![CDATA[goto a url of your choice.
enter the following into your address bar:
javascript:document.body.contentEditable=&#8221;true&#8221;; document.designMode=&#8221;on&#8221;; void 0
Now you can edit the page.]]></description>
		<link>http://www.andrewodendaal.com/modify-pages-in-a-browser-window/</link>
			</item>
	<item>
		<title>PHP __autoload function</title>
		<description><![CDATA[When PHP encounters a class that hasn&#8217;t been defined yet, you can use __autoload to iautomatically add them instead of including masses of included at the top of your files.
e.g.
function __autoload($class_name) {
require_once $class_name . '.php';
}]]></description>
		<link>http://www.andrewodendaal.com/php-__autoload-function/</link>
			</item>
	<item>
		<title>IE6 on Vista?</title>
		<description><![CDATA[I find myself constantly fighting the microsoft battle of making things work in their browsers (thanks guys).
On one of my machines I have Vista installed and needed to test a newly created site that apparently had some issues under Internet Explorer 6.
HOWEVER, to my horror IE6 was unable to run on Vista. Once again, thanks [...]]]></description>
		<link>http://www.andrewodendaal.com/ie6-on-vista/</link>
			</item>
	<item>
		<title>Guillotine-Bug? Bug</title>
		<description><![CDATA[Yes, it&#8217;s called a Guillotine-Bug and it&#8217;s yet another bug IE users get to look forward too  
So how does it work?
Basically, the hasLayout messes around and elements become invisible and visible according to random things. Rather silly, but a bit of a bitch to initially figure out.
So how do you fix it?
Try this:
in [...]]]></description>
		<link>http://www.andrewodendaal.com/guillotine-bug-bug/</link>
			</item>
	<item>
		<title>Sending data from javascript to php</title>
		<description><![CDATA[If you ever find yourself needing to do some ajax and in turn sending strings of characters via javascript then you should really try encodeURIComponent() to wrap your strings in. The function escape() can also be used, but I would not recommend it as encodeURIComponent() is better, it also escapes your usual ampersand ajax limiters [...]]]></description>
		<link>http://www.andrewodendaal.com/sending-data-from-javascript-to-php/</link>
			</item>
	<item>
		<title>Use Miranda for Gtalk</title>
		<description><![CDATA[Download Miranda here (www.miranda-im.org/download/)

Right click Grey-Man icon in system tray(near clock, bottom right)
Click MainMenu-&#62;Options and then select Jabber in the list and enter as follows:
username: FirstPartOfYourEmailBeforeThe@
password: whatever it is
SAVE PASSWORD(checked)
Priority : 5
Resource: Miranda
login server: gmail.com
port: 5223
USE SSL (checked)
Manually specifiy connection host (checked)
host: talk.google.com
Port: 5223
Keep Connection Alive(checked)
and thats it
should work then  ]]></description>
		<link>http://www.andrewodendaal.com/use-miranda-for-gtalk/</link>
			</item>
	<item>
		<title>What is Eb in firebug?</title>
		<description><![CDATA[Gmail produces the following error/warning in firebug.
 
Eb is not defined
function Bb(a){if(a[sb]&#38;&#38;a[sb](daa)){var&#8230;ents)};f.x2b=c;f.B2b=b;f.y2b=a;return f}
I initially started seeing this while while on clients&#8217; websites, but can now say it&#8217;s a gmail thing. So don&#8217;t stress..  ]]></description>
		<link>http://www.andrewodendaal.com/what-is-eb-in-firebug/</link>
			</item>
</channel>
</rss>
