|
From: Jordi 'I. M. <jmi...@or...> - 2000-11-29 09:52:44
|
If you only want to drag the Flash place keep a pair of variables inside your
Movie.
oldX oldY
and then, when you detect movement inside the movie and the mouse is pressed:
GetURL("javascript:myHolder.moveBy("+(_xmouse-oldX)+","+(_ymouse-oldY)+")")
oldX = _xmouse
oldY = _ymouse
It should do the trick. I think
I hope my Flash knowledge doesn't get me banned from the project :)
Tim Royal wrote:
> Howdy howdy.
>
> Anyone have an idea how to create an event and pass it to an object through
> the DynAPI events stuff? Here's what I'm trying to do. I have draggable
> layers that can be moved around and set by the user. There are three layers.
> Each one has a Flash object imbedded in it (hence, moving around Flash
> objects on the screen). We used Flash because of its smoother animation and
> its smaller size.
>
> The problem is that as we drag, the mouse moves over the Flash object and
> the events are no longered triggered by the browser (instead, the Flash
> object itself 'eats' the event). This makes dragging a tricky, not so fun
> process.
>
> What I'd *like* to happen is to have the user be able to click on the Flash
> file background, and when the mouse moves (with the LMB depressed), have the
> Flash object send out a message to a function which creates a drag event on
> the housing DynLayer and moves the Flash object.
>
> Any thoughts?
>
> Thanks!
> Tim
>
> _______________________________________________
> Dynapi-Dev mailing list
> Dyn...@li...
> http://lists.sourceforge.net/mailman/listinfo/dynapi-dev
|