Error checking

I ran into the really nice problem of not being able to use Flash’s build in classes today.

Two things to check when you get an error like “The class or interface ‘flash.display.BitmapData’ could not be loaded.”

  1. Flash player settings in the publish settings
  2. The class paths

Turns out I had the player settings wrong. Pretty easy to overlook and it gives you a lot of aggravation.

IE7 and comments

I ran into the weirdest problem with IE today.

To test some functions I wrote for a Drupal page I outputted some values in a comment area (between ““) before the html-tag. In FireFox this works perfectly fine, but when I tested in IE my layout was ruined. Where the site was supposed to be centerd it was left aligned in IE. Also the min-height was neglected in IE. A strange problem but the solution was to remove the comment and everything worked like a charm again.

command line (my)SQL

Itร‚ย  has been a couple of years since the last time I had to login to a server using SSH and creating my database by using the command line. Today I had the privilege of finding the one hosting provider that doesn’t use a nice control panel for the domain (like plesk or cpanel) combined with phpMyAdmin and other fancy stuff. As you can imagine my SQL had gotten rusty, since I’m so used to creating everything with my friend phpMyAdmin. Luckily the mySQL documentation is very complete and full with tutorials.

Useful link to the mySQL documentation: http://dev.mysql.com/doc/

Friday the 13th

Today is turning out to be a real Friday the 13th! Everything that could go wrong, goes wrong… ๐Ÿ™

Swift3D can’t export object with bitmap textures for vector output, while I desperately needed that. Other than that am I stuck on a weird problem with Flash and not showing some of my MovieClips, not showing the entire SWF in the browser at times AND Flash stopping the playhead at the wrong framelabel…

This day better be over soon! Aaaaaaarrrgghh!!! :p

XML and Latin-1 characters

You should use the decimal character references for these characters to use them in your XML. So instead of writing รƒยก, you should write ‘& # 2 2 5 ;’ (remove the spaces). This way Flash will display the characters correctly.
A list of the char references can be found at: http://www.bbsinc.com/iso8859.html

EDIT: Another way of solving this is setting the XML encoding to UTF-8.

  1. <?xml version="1.0" encoding="utf-8"?>