Away3d between 2 2d layers

Software: Away3D 4.x

J. Neerhof, Newbie
Posted: 10 May 2012 08:12 AM   Total Posts: 8

Hi,

I’m not sure if it’s possible, but can I have a 3d ‘layer’ between 2 2d layers?
I’m creating a penalty shooting game and i need a number of movieclips, such as boarding and the stadium audience, to be behind the 3d layer (which contains the ball, goal and ground).
On top of the 3d layer there is a 2d interface that keeps track of the score.

I’ve tried to add the 3 layers to the stage in the correct order, but the 3d layer stays behind the 2 2d layers.

Is there a way to pushback the audience 2d layer so that the 3d layer can be on top of it?

Regards,

Jochem

   

J. Neerhof, Newbie
Posted: 11 May 2012 06:42 AM   Total Posts: 8   [ # 1 ]

I’ve been Googling and searching the forum for some time now and so far no useable results. Is there another way to go around this problem? Or a trick to get the result I need?

   

Avatar
theMightyAtom, Sr. Member
Posted: 11 May 2012 07:39 AM   Total Posts: 669   [ # 2 ]

The way to put graphics behind your 3D is to use the view3d.backgroundImage.
The backgroundImage is a BitmapData, and can be manipulated in realtime if you need to adjust scoreboard, etc.

Hope that helps,

Good Luck!

   

J. Neerhof, Newbie
Posted: 11 May 2012 09:17 AM   Total Posts: 8   [ # 3 ]

Thanks for the info.
I’ll give it a go smile

   

J. Neerhof, Newbie
Posted: 15 May 2012 12:09 PM   Total Posts: 8   [ # 4 ]

I’ve managed to create my background, but is it also possible to have an swf as background?
So far I haven’t got any luck with that.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X