Outlook Tasks

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’t immediately see it you can open it by clicking on View->To-Do Bar. Select “Normal” and make sure the “Task List” is checked in that list. When a work email comes in that needs attending to, I usually Flag it by clicking the flag icon to the right of each email in my inbox.

1180: Call to a possibly undefined method getURL. Actionscript 3

Hello all actionscripters, you can’t use getURL anymore in Actionscript 3. Below is how you should now start doing it: 1 2 3 var request:URLRequest = new URLRequest("http://www.ataiva.com/"); try { navigateToURL(request, '_blank');} catch (e:Error) { trace("Error occurred!");}

Online Flash IDE Anybody?

Anyone up for an online Flash IDE? Take a look at this: http://antimatter15.com/ajaxanimator/build/ Nice work!

Papervision Event Listener Idea

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’m about to add a new EventListener to the back button movieclip I call the function “delBB()” and then add my event listener using addBB(with the event here).

Don’t cache my swf files!

I often have issues where ‘dumb browsers’ cache my published swf files and when they dynamically populate they don’t always update. This is SUPER annoying and I have found a solution. I will demonstrate the technique with a LoadsVars example 1 2 3 var nc = Math.floor(random(1000000) / random(1000)); var send_lv:LoadVars = new LoadVars(); send_lv.sendAndLoad(_root.siteURL+"profile.php?action=showallimages&nc="+nc, result_lv, "POST"); So let me describe what is happening here. The really ‘dumb browsers’ like IE7 in this case decide that seeing as the URL in question has the exact same name, it will be clever and just use the last version it saw and be totally lazy and not attempt to get the data again.

Clear an array in Actionscript 3

I personally really like this way of clearing an array’s elements: Declare your array to use: 1 var myArray:Array=new Array(); Add elements: 1 2 3 for (var i:Number;i<10;i++) { myArray[i] = "an item"; } Clear the array:

Change combobox font size in Flash Actionscript

Ever needed to change the font size of a standard flash combobox component? You will need to give it an instance name e.g. “myCombobox” and then add the following code: 1 myCombobox.setStyle("fontSize", 10);

Wordwrap that PRE!

Ever used a <PRE> in a limited width div container? You will notice that the line gets cut off almost as if word-wrap was not enabled. To correct this you can add the following code into your CSS file. 1 2 3 4 5 pre{ white-space: pre-wrap; /* CSS2.1 compliant */ white-space: -moz-pre-wrap; /* Mozilla-based browsers */ white-space: o-pre-wrap; /* Opera 7+ */ } This code was originally found somewhere else online but I found it really useful so reposted it!

Barclays ePDQ Payment Gateway

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’ 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 products in your basket and returns a result that is sent with your HTML form on your site.

BrainWHAT? programming language

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

Transparent swf in html

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: 1 <object data="flash/home_side_left.swf" type="application/x-shockwave-flash" width="40px" height="550px"><param name="movie" value="flash/home_side_left.swf" /><param name="bgcolor" value="#ffffff" /><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="always" /></object> Notice that by just adding the wmode and setting it as ‘transparent’ does everything for you!

Constant updates?

I just hate it how everything always wants to update… and then restart all the damn time! First things first: This pops up telling me it’s doing a 309.6MB Adobe Reader Update! Which to me is just crazy… Surely the constant updates shouldn’t be a million times larger than the actual initial install file for the application? I just click Cancel and then do this.. Not a minute later and this little guy pops up!

What is CWS>+?

So what the heck kind of file starts with the characters “CWS>+” ? That would be a flash swf file!

Papervision error 1046

Error: “1046: Type was not found or was not a compile-time constant: InteractiveScene3DEvent.” 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….. Who is? Right? Anyways… I tried to publish my swf and I got loads of errors like the one above.

azupnpav_0.2.23

So what the heck is “azupnpav_0.2.23.zip”? It appears to be a plugin for Vuze(Azureus) the torrent client. Filesize: 198.1 kB

How to Save a Dreamweaver document as UTF8!

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’ll never know, so I had to do it myself. If you encounter this then do the following to convert the document: Click on the Modify main menu item and select Page Properties. Change the Encoding/Document Encoding dropdown to say “Unicode (UTF-8)” or “Unicode 4.

16000 Limit!

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 movies togetherusing a method such as the ActionScript 2 loadMovie() command. 16,000 layers: Flash is not capable of working with more than 16,000 layers in a movie.

htaccess ErrorDocument

Create a file called .htaccess in the root of your public_html/htdocs of your domain. Inside add the following text: 1 2 3 4 5 6 7 8 9 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.

How to correctly form HTML

1 2 3 4 5 6 7 8 9 10 11 12 <!DOCTYPE html PUBLIC ?-//W3C//DTD XHTML 1.0 Strict//EN? ?http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd?> <html xmlns=?http://www.w3.org/1999/xhtml?> <head> <meta http-equiv=?Content-Type? content=?text/html; charset=UTF-8? /> <script type=?text/javascript? src=?javascript/javascriptfilename.js?></script> <title>Title goes here</title> <link href=?stylesheetname.css? rel=?stylesheet? type=?text/css? /> </head> <body> Page content goes here </body> </html>