Archive for April, 2007

The class or interface ‘yourClass’ could not be loaded.

Friday, April 27th, 2007

This happens when you try to acces an external class on a frame that doesn't have the import statement for the class. ie:

Actionscript:
  1. // On frame 1:
  2. import yourClass;
  3.  
  4. //On frame 5:
  5. var something:yourClass = new yourClass();

The solution is to put the import statement (also) on frame 5.

Friday the 13th

Friday, April 13th, 2007

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

Thursday, April 12th, 2007

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.

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