Example complied ok but don’t display content when running

Software: Away3D 4.x

bconline2002, Newbie
Posted: 05 November 2013 11:37 AM   Total Posts: 2

Hi ladies and gentlemen
I just download away3d 4.14 example source.

I open it in flash builder 4.7 premium trial
complied and run some examples such as basic_skybox,
with this,its run without any error message,but I can’t look nothing in the opening html window(only the background color,if I right click in the center of page ,the flash player’s popmenu shows,with the menuitem away3d4.15 and flash player version 11.9—-I think this means the away3d engine was running),

then I trid the example—advanced_terrianDemo,this time,the page appear with the away3d’s logo and frame statistic data,but the content area still is a blank….

I had tried many example and changed my system(from win7 64 to winxp,flash builder and flash cs6) but all got a same result——a crazy blank!

But I can view some online demos,It looks work fine.only when I complied the source code by my self,I can’t look anything! that’s the problem.
and without any error message!)

hope got help

any oppion will be appreciate!

   

bconline2002, Newbie
Posted: 06 November 2013 02:56 AM   Total Posts: 2   [ # 1 ]

Sorry,
I solved it by myself

I set vmode=“direct”,it work

   

r189, Newbie
Posted: 17 November 2013 01:44 AM   Total Posts: 2   [ # 2 ]

where did you place wmode=“direct” to make it work?

   

Avatar
SharpEdge, Member
Posted: 19 November 2013 09:13 AM   Total Posts: 94   [ # 3 ]

If you are creating AIR app you must set this tags inside the application descriptor xml:

<renderMode>direct</renderMode>
 <
depthAndStencil>true</depthAndStencil

if you are creating web swf you must set wmode=“direct” inside the html that’s loading the swf
I.E.

<object data="path_to_file/file.swf" type="application/x-shockwave-flash" width="insert_width_of_movie" height="insert_height_of_movie">

            <
param name="movie" value="path_to_file/file.swf">

            <
param name="quality" value="high" />
            <
param name="wmode" value="direct" />

</
object
   

r189, Newbie
Posted: 20 November 2013 01:16 AM   Total Posts: 2   [ # 4 ]

Thank you, I will try your suggestions

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X