How to put a Sprite below the View

Software: Away3D 4.x

manuelbujes, Newbie
Posted: 04 November 2011 12:42 PM   Total Posts: 10

How can i put a sprite below the view?

I tried:

addChildAt(Sprite, 0);

but dont work!!

THanks

   

Avatar
mrpinc, Sr. Member
Posted: 04 November 2011 12:51 PM   Total Posts: 119   [ # 1 ]

Flash Player renders Stage3D below the display list so content added to the display list will appear above Stage 3D content no matter what.  If you want content to appear below your viewport, it need to be rendered to Stage 3D as well.

   

John Wilson, Member
Posted: 07 November 2011 01:21 PM   Total Posts: 62   [ # 2 ]

You can add a bitmap to the Away3d view:

[Embed(source="assets/background.png")]
private var BackgroundMap:Class;
.
.
.
.
var 
bd:BitmapData = new BackgroundMap().bitmapData;
view.backgroundImage bd

Hope this helps.

   
   
‹‹ render to a bitmap

X

Away3D Forum

Member Login

Username

Password

Remember_me



X