Joe,

You were right from the get go - I didn't read your post carefully
enough. You were talking about using the mouse wheel, and I totally
missed that part. Duh.

Nice work around.

On Fri, Feb 29, 2008 at 6:58 PM, Joseph Kevin Breuer
<[EMAIL PROTECTED]> wrote:
> Sorry for all of the messages in one day.
>
> Besides corresponding with Darin I was trying to come up with a solution.  I
> found one using javascript and an ExternalInterface callback.
>
> You need to include the prototype.js file found at
> http://www.prototypejs.org/ in your html wraper.
>
> <script type="text/javascript" src="prototype.js"></script>
>
> <script type="text/javascript">
> function createMouseEvent(event)
> {
>     var delta = 0;
>     if (!event) event = window.event;
>      if (event.wheelDelta) {
>         delta = event.wheelDelta/120;
>         if (window.opera) delta = -delta;
>     } else if (event.detail) { delta = -event.detail/3;    }
>     delta = Math.round(delta);
>     x = event.screenX;
>      y = event.screenY;
>     document.getElementById('${application}').createMouseEvent(x,y,delta);
>     return true;
> }
>
> // isIE is a variable created by the AC_OETags.js script
> if(isIE == false)
>  {
>     Event.observe(document, "DOMMouseScroll", createMouseEvent, false); //
> Firefox
> }
> </script>
>
> Next add the following to your Flex application.
>
>         //Put the next line in an initialization method.
>          ExternalInterface.addCallback('createMouseEvent',createMouseEvent);
>
>         public function createMouseEvent(x:int,y:int,delta:int):void
>         {
>             var mwe:MouseEvent = new MouseEvent(MouseEvent.MOUSE_WHEEL,
> true, false, x, y, null, false, false, false, false, delta);
>              dispatchEvent(mwe);
>
>             var p:Point = new Point(x,y);
>             var objects:Array = this.getObjectsUnderPoint(p);
>             for(var i:int; i < objects.length; i++)
>             {
>                  (objects[i] as DisplayObject).dispatchEvent(mwe);
>             }
>         }
>
> Thanks,
> Joseph
>
>
>
> On Fri, Feb 29, 2008 at 6:48 PM, Joseph Kevin Breuer
> <[EMAIL PROTECTED]> wrote:
>
> > Hmm Darin.  Maybe I am missing something.  I just created an account and
> added some awards to my cart.  I next went to my account to review the
> order.  When I hover my mouse over the list and scroll up or down over your
> list the list does not scroll.  I have tried this in FF and IE.
> >
> > I have attached a small video demonstrating the list does not scroll.
> >
> > Joseph
> >
> >
> >
> >
> >
> >
> > On Fri, Feb 29, 2008 at 6:08 PM, Darin Kohles <[EMAIL PROTECTED]> wrote:
> >
> > > Scrolling works fine. Add something to the cart (there's an event
> > > registration item on the home page), then increase the item count to
> > > around 11-12, log in and go to the order review tab. Perfect scrolling
> > > IE, FF, Safari, with the html menu on top of the swf object.
> > >
> > > Sounds like you might have overlapping html content that masks your
> scroll bar.
> > >
> > > On Fri, Feb 29, 2008 at 5:49 PM, Joseph Kevin Breuer
> > >
> > >
> > >
> > > <[EMAIL PROTECTED]> wrote:
> > > > Darin,
> > > >
> > > >  Thank you for the reply, but I do not think you are fully understand
> the
> > > > problem I am experiencing.  That is no doubt my fault for not
> explaining it
> > > > clearly.  I am not having a problem layering the swf movies with html.
> The
> > > > issue I am experiencing is the inability to scroll using the mouse
> wheel on
> > > > scroll bar enabled components in FF.  Your page does not appear to
> have any
> > > > flash components that require or use a scroll bar.
> > > >
> > > >  I think I am close to finding a workaround.  I will let you know when
> I am
> > > > done.
> > > >
> > > >  Joseph
> > > >
> > > >
> > > >
> > > > On Fri, Feb 29, 2008 at 4:47 PM, Darin Kohles <[EMAIL PROTECTED]>
> wrote:
> > > > >
> > > > >
> > > > >
> > > > > A work around for this issue is to use absolute, or relative
> > > > > positioning on your containers (div) in conjunction with z-index.
> For
> > > > > an example see here: http://dp07prsa.d-p.com - this site is not yet
> > > > > live, but you can at least get and idea.
> > > > >
> > > > > The main html page lies beneath the Flash object, and the html menu
> > > > > that exposes the flash lies above. There is a lot more going on here
> > > > > (there's an iframe that comes into play as well) but you can at
> least
> > > > > see a method for working around this issue.
> > > > >
> > > > > I'm hoping to set up a blog soon, and give an example with code.
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > On Fri, Feb 29, 2008 at 2:53 PM, Joseph Kevin Breuer
> > > > > <[EMAIL PROTECTED]> wrote:
> > > > > > Often times you need to embed your swf inside of an html page and
> still
> > > > > > interact with html within the page.  In these cases you add the
> > > > attribute
> > > > > > wmode='opaque' or wmode='transparent' to your object and embed
> tags for
> > > > your
> > > > > > swf.  This allows the html to be layered over the swf.  For
> instance if
> > > > you
> > > > > > wanted to popup a div over your swf you would need to do this.
> > > > > >
> > > > > > One unpleasant side effect of using the wmode attribute is that in
> > > > Firefox
> > > > > > the components in your flash application seem to lose the ability
> to
> > > > gain
> > > > > > focus when you mouse over them.  Specifically if you have a list
> or
> > > > datagrid
> > > > > > with a scroll bar, normally you can mouse over the component and
> mouse
> > > > wheel
> > > > > > up or down to scroll.  In FF this is no longer possible.  The
> scrolling
> > > > > > works fine in IE however.
> > > > > >
> > > > > > If you are not familiar with this problem then you can recreate it
> by
> > > > making
> > > > > > a new Flex project in FB.  Create a new application
> > > > > >
> > > > > > <?xml version="1.0" encoding="utf-8"?>
> > > > > > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
> > > > > > creationComplete="init()">
> > > > > >
> > > > > > <mx:Script>
> > > > > >     <![CDATA[
> > > > > >         import mx.collections.ArrayCollection;
> > > > > >
> > > > > >         [Bindable] public var myData:ArrayCollection = new
> > > > > > ArrayCollection();
> > > > > >
> > > > > >         public function init():void
> > > > > >          {
> > > > > >             for(var i:int=0;i<300;i++)
> > > > > >             {
> > > > > >                 myData.addItem(i);
> > > > > >             }
> > > > > >         }
> > > > > >
> > > > > >     ]]>
> > > > > > </mx:Script>
> > > > > >
> > > > > > <mx:List dataProvider="{myData}" wordWrap="false" width="100" />
> > > > > >
> > > > > > </mx:Application>
> > > > > >
> > > > > > Then edit the index.template.html to add the "wmode",
> "transparent",
> > > > > > attribute to each of the calls to AC_FL_RunContent.
> > > > > >
> > > > > > Any ideas?
> > > > > >
> > > > > > Thanks,
> > > > > > Joseph Breuer
> > > > > >
> > > > > > -------------------------------------------------------------
> > > > > > To unsubscribe from this list, simply email the list with
> unsubscribe in
> > > > the
> > > > > > subject line
> > > > > >
> > > > > > For more info, see http://www.affug.com
> > > > > > Archive @ http://www.mail-archive.com/discussion%40affug.com/
> > > > > > List hosted by FusionLink
> > > > > > -------------------------------------------------------------
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Darin Kohles
> > > > > RIA Application Developer
> > > > >
> > > > >
> > > > > -------------------------------------------------------------
> > > > > To unsubscribe from this list, simply email the list with
> unsubscribe in
> > > > the subject line
> > > > >
> > > > > For more info, see http://www.affug.com
> > > > > Archive @ http://www.mail-archive.com/discussion%40affug.com/
> > > > > List hosted by http://www.fusionlink.com
> > > > > -------------------------------------------------------------
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > > -------------------------------------------------------------
> > > >
> > > > To unsubscribe from this list, simply email the list with unsubscribe
> in the
> > > > subject line
> > > >
> > > > For more info, see http://www.affug.com
> > > > Archive @ http://www.mail-archive.com/discussion%40affug.com/
> > > > List hosted by FusionLink
> > > > -------------------------------------------------------------
> > >
> > >
> > >
> > > --
> > > Darin Kohles
> > > RIA Application Developer
> > >
> > >
> > > -------------------------------------------------------------
> > > To unsubscribe from this list, simply email the list with unsubscribe in
> the subject line
> > >
> > > For more info, see http://www.affug.com
> > > Archive @ http://www.mail-archive.com/discussion%40affug.com/
> > > List hosted by http://www.fusionlink.com
> > > -------------------------------------------------------------
> > >
> > >
> > >
> >
> >
>
>
> -------------------------------------------------------------
> To unsubscribe from this list, simply email the list with unsubscribe in the
> subject line
>
> For more info, see http://www.affug.com
> Archive @ http://www.mail-archive.com/discussion%40affug.com/
> List hosted by FusionLink
> -------------------------------------------------------------



-- 
Darin Kohles
RIA Application Developer


-------------------------------------------------------------
To unsubscribe from this list, simply email the list with unsubscribe in the 
subject line

For more info, see http://www.affug.com
Archive @ http://www.mail-archive.com/discussion%40affug.com/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------


Reply via email to