If you changes the segments of Plane or Cube which I have noticed, the result may have UV mapping error.
I have the following code
plane = new Plane();
plane.width = 500;
plane.height = 500;
plane.bothsides = true;
plane.segmentsH = 1;
plane.segmentsW = 1;
plane.material = new BitmapFileMaterial(”“);
scene.addChild(plane);
StartToRender();
stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown);
}
protected function onKeyDown(E:KeyboardEvent):void{
if(E.keyCode == Keyboard.F3){
plane.width += 3;
plane.segmentsW ++
}
if(E.keyCode == Keyboard.F4){
plane.height += 3;
plane.segmentsH ++
}
}