February 2008
3 posts
Javascript & XML
Recently I’ve been working with Javascript in combination with XML and I found these methods quite usefull to switch between a string and a xml object.
function stringToXML( pString ){
var lXML;
// IE
if( window.ActiveXObject ){
lXML = new ActiveXObject( 'Microsoft.XMLDOM' );
lXML.async = 'false';
lXML.loadXML( pString );
// no IE
} else {
var lParser = new DOMParser();
lXML...
Papervision3D - FrustumCamera3D
Yesterday I updated the FrustumCamera3D class of Papervision3D. Time for a short tutorial on this camera!
The main difference between this camera and the other 2 cameras (Camera3D and FreeCamera3D) is that this camera uses a ‘real’ projection matrix, analogue to OpenGL. The FrustumCamera3D has 2 types of projection matrices: perspective and orthographic.
Checkout the example...
Loading swf’s faster
Last week we wanted to see if we could speed up the loading of the Floorplanner Flash app. The Flash app (AS2) consists of 1 main app that loads several swf forms (the windows you see, like the library). The library itself holds a lot of furniture elements, which are separate swf files that are loaded one by one.
When a user creates a floor plan and adds furniture to it, it’s not strange...