Thanks for that :) I have already managed to drag the object as you
describe but it didnt achieve the desired effect

Basically im trying to make a text engine using Away3d to curve text
along a path that can be changed dynamically at runtime. Then I want
to send the text to a bitmapdata object from Away3d and then place it
on the stage as bitmap inside a flash movieclip so it can recieve
mouseEvents and all the other native flash as3 classes can be used.

Ive managed to get halfway there and have passed a bitmap from a
textfield3d object, but the bitmap is of the entire stage and not just
my text. So I tried using getColourRectBounds() on the bitmapdata to
extract the coloured text but i cant get it to work which means the
draggable bitmap i have is the full size of the stage. Not ideal when
I have 3 or  of the text fields I want to drag about because the ones
at the bottom cant recieve the mouse click to start the drag function.

Does anybody have any tutorials or anything to point me towards this
sort of thing thats already been done?

On May 15, 11:41 pm, masterkitano <[email protected]> wrote:
> 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 -- Hide quoted text -
>
> - Show quoted text -

Reply via email to