BitmapFileMaterial is not to be used like this.
it requires an url.
the material loads, and set the material source when its loaded automatically

if you want to set a material with source embeded or from your library,
use BitmapMaterial(myBitmapdata);

yes has AS changed a lot... glad the AS1 and 2 times are over!

Fabrice

On Jun 25, 2009, at 10:00 PM, DesignByLefty wrote:


Your right :))    Brain is burned.

i've tried to puts 2 mapgen.normalmap as colorsource because
first i've tried that and got error about BitmapFileMaterial in the
Dot3BitmapMaterial creation

**********************************************************************
var earthMaterial:BitmapFileMaterial = new BitmapFileMaterial
("checker.jpg");

var mat:Dot3BitmapMaterial = new Dot3BitmapMaterial
(earthMaterial,mapgen.normalmap);

var plane:Object3D = new Plane({material:"yellow#", name:"plane",
y:-100, width:1000, height:1000, pushback:true});
var sphere:Object3D = new Cylinder({material:earthMaterial,
name:"sphere", segmentsH:6,segmentsW:15,heigth:670,radius:70});
********************************************************************
All the example i found on the net seems to be flex - i gess - because
it's load material   via []

i found how to load a material but not how to convert it to
BitmapData  -  i'm very very newbie in AS3.0 too, was good before
AS2.0
but it was a loooong time ago, and AS changed a lot.

But thanks for the all the info, i gess once i step the material
things, i will help a lot to progress.



Reply via email to