From: Raymond S. <dst...@or...> - 2000-11-29 11:49:27
|
Flash embedded in a layer, moves with the layer.... It just ignores Z relationships as it is moved. It also blinds drag event handlers and can cause havoc if the main doc misses a 'mouseup' that happens over the swf movie. Which, in general is why flash needs to be subrogated to some obscure part of your page or managed very carefully, i.e... if this dynlayer moves, that swf (dom violating) layer;setVisible=false. Personally, I think as libraries like this evolve you will see flash dissolve more and more into a 'background' roll that serves very explicit and temporal functions... SWF will never be about interface in the long-run. Though integrated SVG may. Besides... planet earth grows tired of the 'wiggling line' already. It was vogue, it became soooo pervasive that it's vogue not to have it now. Cheers ----- Original Message ----- From: "Jordi 'IlMaestro' Ministral" <jmi...@or...> To: <dyn...@li...> Sent: Wednesday, November 29, 2000 1:39 AM Subject: Re: [Dynapi-Dev] Faking Events > 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 > > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://lists.sourceforge.net/mailman/listinfo/dynapi-dev > |