view3d doesn’t work from swf file directly opened

Software: Away3D 4.x

zoxx, Newbie
Posted: 22 December 2011 05:08 PM   Total Posts: 10

When swf file is opened directly, 3d view doesn’t work, check this out:

away3d . atspace . co . uk / test.html
away3d . atspace . co . uk / test.swf

First link works ok, displays sign Test and yellow sphere, second displays only sign Test, without sphere and view backgroud.

Locally it works ok, both .swf and .html (you can download swf and check on your computer).

away3d . atspace . co . uk / test.rar

Does anybody experienced such problem and know how to solve it?

PS: i cannot publish links, it also doesn’t work on that forum smile
I get error info
Computer says your input might be spam, so it is discarded.

code:

package
{
 import away3d
.containers.View3D;
 
import away3d.core.base.*;
 
import away3d.core.render.*;
 
import away3d.materials.*;
 
import away3d.primitives.*;

 
import flash.display.Sprite;
 
import flash.events.Event;
 
import flash.system.*;
 
import flash.text.TextField;
 
import flash.utils.*;

 
[SWF(width="100"height="100"frameRate="60")]
 
public class test extends Sprite
 {

  
private var view View3D;  
  private var 
out:TextField;

  private function 
onEnterFrame(ev:Event) : void
  {
   view
.render();
  
}

  
public function test()
  
{
   view 
= new View3D();
   
view.backgroundColor 0xff6666;
   
view.visible=true;
   
//view.renderer.swapBackBuffer=true;
   
this.addChild(view);

   var 
material:ColorMaterial=new ColorMaterial(0xccaa00);

   var 
sphere:Sphere = new Sphere(material,900,15,25);
   
sphere.z=1250;
   
//sphere.bothsides=false;
   
view.scene.addChild(sphere);

   
view.render();

   
out = new TextField();
   
this.addChild(out);
   
out.text='Test';
   
out.x=0;
   
out.y=0;
   
out.textColor=0x000000;

   
this.addEventListener(Event.ENTER_FRAMEonEnterFrame);
  
}
 }
   

Avatar
maddog, Sr. Member
Posted: 23 December 2011 09:32 AM   Total Posts: 118   [ # 1 ]

I think you have to use the latest debugger for flash 11 to open them directly.

   

zoxx, Newbie
Posted: 23 December 2011 12:47 PM   Total Posts: 10   [ # 2 ]

when i right click on .swf opened from url i get even newer version than .swf opened locally:

url: 11.1.102.55
local: 11.0.1.152

so will view3d stop work with flash 11.1?

   

zoxx, Newbie
Posted: 23 December 2011 01:04 PM   Total Posts: 10   [ # 3 ]

tested on other computer with exactly inverse configuration

url: 11.0.1.152
local: 11.1.102.55

and still, opened from browser (firefox and ie) not displays view3d, opening url .swf or even if opening local .swf

but, opened from flash player locally or even from url displays view3d

So it looks it is not flash version problem, view3d doesn’t work in browser when opening .swf directly, works only when .swf included in .html file

   

Hector, Sr. Member
Posted: 23 December 2011 02:06 PM   Total Posts: 137   [ # 4 ]

I have the same issue.
Maybe because of the use of ‘wmode = direct’ or ‘wmode = gpu’? It is not specified when loading the swf directly on the browser, so it must be getting a default value that doesn’t enable 3d.

   

zoxx, Newbie
Posted: 24 December 2011 08:38 AM   Total Posts: 10   [ # 5 ]

is there possibility to set it in actionscript or .swf project settings (flash builder)? can’t find any documentation on it

[SWF(width="100"height="100"frameRate="60"wmode="direct")

like above has no effect

   

wience, Newbie
Posted: 27 December 2011 03:37 AM   Total Posts: 1   [ # 6 ]

sadddddddddddddddddd

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X