I cannot replicate your problem:

Development environment: Flex (flashbuilder)
Flash player version:  10.1 r82 - debug
Location: C:\Windows\SysWOW64\Macromed\Flash\NPSWF32.dll
SWF Compiled for version: 10.1.0
Flex SDK version: 3.6


Tests carried out:


   - Compile to SWF player direct  - Screen grabbed
   - Compile to html default html embed for flex output (flashbuilder)
   - Chrome screen grabbed and overlayed  onto compiled to swf screen grab -
   result no position or size difference
   - Firefox screen grabbed and overlayed  onto compiled to swf screen grab
   - result no position or size difference
   - IE9 Beta screen grabbed and overlayed  onto compiled to swf screen grab
   - result no position or size difference

Here is my code:

<?xml version='1.0' encoding='utf-8'?>
<mx:Application xmlns:mx='http://www.adobe.com/2006/mxml' layout='absolute'
addedToStage='init()' frameRate='30'>
<mx:Script>
<![CDATA[
import away3d.materials.WireColorMaterial;
import away3d.materials.ShadingColorMaterial;
import away3d.materials.WireframeMaterial;
 // Imports
import mx.core.UIComponent;
import away3d.containers.View3D;
import away3d.primitives.*;
 // Var ini
public var view:View3D
public var primitive:Cube;
 // when this is added to the stage we start this up (see mc:application
tag)
public function init():void {
// Setup Away3D
this.view = new View3D({x:0, y:0});
 // Add Away3D to its container UIComponent
away3dContainer.addChild(view);
 // Setup material
var mat:WireColorMaterial = new WireColorMaterial(0xFFCC00);
 // Setup the primitive
this.primitive = new Cube();
this.primitive.width = 200;
this.primitive.height = 200;
this.primitive.depth = 200;
this.primitive.segmentsW = 10;
this.primitive.segmentsH = 10;
this.primitive.segmentsD = 10;
this.primitive.material = mat;
this.primitive.yaw(45);
this.primitive.pitch(45);
 // Add primitive to the Away3D view
this.view.scene.addChild(this.primitive);
 // Setup camera to look at the object
this.view.camera.lookAt(this.primitive.position);
 // Resize handler
this.addEventListener(Event.RESIZE,handleBrowserResize);
handleBrowserResize();
 // Enter frame handler (make things move)
this.addEventListener(Event.ENTER_FRAME, onEnterFrame);
}
  // Enter frame handler for animation
private function onEnterFrame(event:Event):void {
this.view.render();
//this.primitive.rotationX += 1;
//this.primitive.rotationY -= 1;
}
  // Browser resize handler (simply adjust view3d center x:0 y:0 at browser
1/2 width and height to keep things in the middle
private function handleBrowserResize(e:Event=null):void
{
this.view.x = stage.stageWidth/2;
this.view.y = stage.stageHeight/2;
}
 ]]>
</mx:Script>
 <mx:UIComponent id='away3dContainer' visible='true'/>
<mx:Label x='10' y='10' text='[email protected] developer code
snippets' fontWeight='bold'/>
</mx:Application>








On 20 October 2010 11:20, WhiteWeedow <[email protected]> wrote:

> I really can not solve this problem, I updated all(browser players,
> debuger, projector) and still have the same problem please HELP!!!

Reply via email to