August 2009 Archives

Aug 21, 2009

getDefinitionByName, ReferenceError and the Frame metadata tag

Posted by Dennis in ActionScript, Flex 1 comment

The hard-working, unstoppable Meister Wanja came to me with the following problem involving getDefinitionByName and interfaces. Say you have the following class:

package {
import flash.display.Sprite;
import flash.utils.getDefinitionByName;

public class Blah extends Sprite
{
public function Blah()
{
var ref : String = “YourMama”;
var ClassRef : Class = getDefinitionByName( ref ) as Class;

var booh : IMama = new ClassRef();
}
}
}

Build it, run it and [...]


Aug 20, 2009

3D, ribbons, vertices, uv coordinates

Posted by Dennis in 3D, ActionScript, Flash 1 comment

Yesterday I helped my friend Tudor with a problem. When we solved it he got excited and told me to blog about it. Whatever Tudor says has to be done so here we go :-).
He was using the Ribbon3D class which is based on Papervision3D. Instead of using a color material he wanted to use [...]


Aug 6, 2009

“Blender to Flash workflow” article now available for free

Posted by Dennis in 3D, ActionScript, Blender, Flash 3 comments

The March issue of Flash & Flex Developer’s magazine features an article written by me called “Blender to Flash Workflow”. This article explains how to:

create a simple 3D object in Blender
create a material in Blender
export the primitive and the material so that it can be used in Flash
set up a basic 3D scene using the [...]