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>

Trying to get variables into flash from the browser!

Ever wondered how to get variables from an html page to a flash element? Well, it’s quite easy using the following actionscript 2 example: I use javascript to embed my flash elements: _ <embed src="somefilename.swf?varname=varvalue&vartwo=var2value" width="550" height="400"></embed>_ Now in Flash I can just call: 1 2 _root.varname and it will give us `varvalue` _root.vartwo will give us `var2value` Wasn’t that easy?

Flash Tweening

tween is an actionscript class and can be used after importing the core files. 1 2 3 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. 1 var myRot:Tween = new Tween(myText, "_rotation", Elastic.easeOut, 0, 360, 3, true);

Cube Desktop on Ubuntu

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 --type int --set /apps/compiz/general/screen0/options/hsize 4 😉

Animate with Actionscript [part1]

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 // 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.

To Install IIS 7.0 on Windows Vista – script

1 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

Kill Adobe Updater

So adobe updater keeps doing updates eventhough you’ve said ‘NEVER DO IT AGAIN!!!’. The fix is to physically remove the dir with the info in. On a windows system go to ‘c:\program files\common files\adobe&#8217;, there is a nasty little folder called UPDATER5 in there that you can DELETE! PROBLEM SOLVED 😉

Apache Cannot be Run. Another web server is using the web port or port is blocked by firewall.

Tried to start EasyPHP: “Apache Cannot be Run. Another web server is using the web port or port is blocked by firewall.” I was running Skype! And it was blocking the using the port. Check in options->advanced->connection for the setting on port 80. Another way to stop this from happening and solve the problem quicker is to go into the “Configuration->EasyPHP” [Ctrl+E] and make sure that the “Check server’s TCP port before starting” checkbox is not checked.

How to load xml into flash using actionscript 2

Create an xml object: 1 var myXmlObject = new XML(); Perform action when xml file has been loaded: 1 2 3 myXmlObject.onLoad = function(success) { if (success) trace("XML File has been read."); } Load the xml file into the object: 1 myXmlObject.load("myXmlFile.xml");

TypeError: node is null message=node is null

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’re needed, an example would be with the ShareThis control/component that is often added to blogs and etc.

How to Temporarily Edit the Text of Any Website

Have you ever wanted to temporarily edit a webpage displayed in Chrome or another browser? How it works Let’s take a look at the Google homepage quickly. The Google homepage! Now, after we apply our little “page hack”, let’s look at it again! The Google homepage changed! How to temporarily edit a webpage Go to a website of your choice that you would like to edit. Enter the following javascript into the address bar: javascript:document.

PHP __autoload function

When PHP encounters a class that hasn’t been defined yet, you can use __autoload to automatically add them instead of including masses of included at the top of your files. e.g. 1 2 3 function __autoload($class_name) { require_once $class_name . '.php'; }