check out the MultiMario Away3d examples. basicly, to drag an object3d
you just need these things:
1.- first you need to catch an away3d mouseDown event and an away3d
MouseUp even.
2.- set a drag flag to true when mouseDown is dispatched, set this
drag flag to false when mouse up, in this same part, add a variable
wich holds the object on wich the MouseDown event ocurred (this will
be your draged object)
3.- add a mouseMove event, in this mouseMove, yo can get the x,y,z
cordinates where the MouseMove is beeing dispatched, these coordinates
will be your "3d Mouse position",
4.- then, check if drag == true, and if dragedObject != null, (that
is, an object was clicked on the MouseDown event), and then just keep
updating object's x, y z = to 3d Mouse Position).

and there you have your object dragging.

On 13 mayo, 01:29, Supernaut79 <[email protected]> wrote:
> Ok, but how do i do it? When I use the as3 bitmapdata or bitmap class,
> flash tells me about an implicit coercion between flash and away3d!
>
> Im trying to create a bitmap from an away3d object so that I can then
> use the as3 startDrag & stopDrag classes to move the bitmap around as
> the way of dragging objects in away3d just isnt working for me.
>
> Anymore ideas?
>
> On May 13, 7:20 am,masterkitano<[email protected]> wrote:
>
> > perhaps you could add this object Container to a View, a view extends
> > from Sprite, and sprites can be cached as Bitmaps. so maybe...
>
> > On 12 mayo, 15:28, Supernaut79 <[email protected]> wrote:
>
> > > Hi,
> > > Im wondering if its at all possible to take the contents of an
> > > ObjectContainer3D and pass them to a bitmapdata variable and then
> > > display them to the stage as a bitmap using as3 native classes. Ive
> > > noticed that there is the BitmapRenderSession class in the away3d
> > > documentation but Ive not idea how to use it! or what the purpose of
> > > it is other than to speed up rendering.
>
> > > Is this at all possible and if so can anybody please point me in the
> > > right direction.
>
> > > Thanks :)- Hide quoted text -
>
> > - Show quoted text -

Reply via email to