The mouse wheel events are not getting eaten by the browser before they get to your swf, are they? Perhaps due to some difference in the html embed code? (I've not seen this happen, but what you describe sounds odd) I'm wondering what happens if you were to try publishing your test file as AIR, or perhaps try a different browser ? It might at least help eliminate the possibility? -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of fotis.chatzinikos Sent: 23 October 2008 12:45 To: [email protected] Subject: [flexcoders] Re: mouse wheel behaviour mxml and actionscript based components This is driving me nuts!
Go here: http://examples.adobe.com/flex3/componentexplorer/explorer.html <http://examples.adobe.com/flex3/componentexplorer/explorer.html> open visual components->general controls->Tree mouse wheel works! copy paste the code in a new flex (3) project, run the project, NO MOUSE WHEEL functionality... Any ideas? Can somebody (Mike are you there? :-) have a look at the previous post code and see if there is something wrong with my mouse_wheel handler? Anybody from adobe? --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , "Fotis Chatzinikos" <[EMAIL PROTECTED]> wrote: > > Mike, thinks for the reply, here is some code: > > From the following code we are interested in the following line: > > t.addEventListener(MouseEvent.MOUSE_WHEEL, mouseWheelTreeListener) > ;//noluck > > is there something wrong with what you see? The alert is never called > > TIA, > Fotis > > > private function mouseWheelTreeListener(event:MouseEvent):void > { > Alert.show("wheel"); > } > > //tree code: > > var c:Canvas = new Canvas(); > > c.label = "a string"; > c.width = 185 ; > c.horizontalScrollPolicy=ScrollPolicy.OFF ; > c.verticalScrollPolicy=ScrollPolicy.OFF ; > c.percentHeight = 100 ; > > var t:Tree = new Tree() ; > t.width = c.width ; > t.percentHeight = 100 ; > t.setStyle("backgroundColor",0xFFBBBB) ; > > t.dataProvider = categories.getItemAt(i).children > ;//some tree data > t.addEventListener(ListEvent.CHANGE,categoryChanged) > ;//works > t.addEventListener(MouseEvent.MOUSE_WHEEL, > mouseWheelTreeListener) ;//noluck > c.addChild(t); > > categoriesAccordionID.addChild(c); > > On Tue, Oct 21, 2008 at 7:33 PM, Michael Schmalle > <[EMAIL PROTECTED]>wrote: > > > Hi, > > > > No, it's automatic. > > > > Without an example I can't help. :) > > > > Mike > > > > > > On Tue, Oct 21, 2008 at 12:01 PM, fotis.chatzinikos < > > [EMAIL PROTECTED]> wrote: > > > >> Hello Michael, > >> > >> i just tried your suggestion and i still do not get the mouse wheel to > >> scroll the tree. I also did a quick test to see if it will work on an > >> mxml based tree control and surprisinly it does not scroll.... > >> > >> Do i remember something wrong? I thought i have seen some trees scroll > >> without writting any special code... > >> > >> Do i need to implement listeners to get the tree to scroll via mouse > >> wheel? I thought it was automatically done... :-( > >> > >> --- In [email protected] <mailto:flexcoders%40yahoogroups.com> <flexcoders%40yahoogroups.com>, > >> "Michael Schmalle" > >> > >> <teoti.graphix@> wrote: > >> > > >> > Hi, > >> > Usually the reason for no mouse wheel events is a lack of background > >> color. > >> > > >> > Can you give some examples (mxml/as) of what 'doesn't' work for you? > >> > > >> > Anyway, you need a background color for the control to broadcast mouse > >> > wheel events. > >> > > >> > Other than that it's just a guess what the problem could be without an > >> > example. > >> > > >> > Mike > >> > > >> > On Mon, Oct 20, 2008 at 7:03 PM, fotis.chatzinikos < > >> > fotis.chatzinikos@> wrote: > >> > > >> > > Hello all, > >> > > > >> > > any ideas what is the expected behaviour of the mouse wheel in > >> flex apps? > >> > > > >> > > I have noticed that some mxml based trees scroll with the mouse wheel > >> > > while actionscript based ones do not. > >> > > > >> > > A few minutes ago i also did a test with the main (root / > >> > > mainApplication) making bigger than 100% of the screen (lets assume > >> > > 3000 pixels hight) so a scroll bar would appear. Can only scroll via > >> > > the bar, not the mouse wheel... > >> > > > >> > > Has any of you any pointers, on this? > >> > > > >> > > TIA, > >> > > Fotis > >> > > > >> > > > >> > > > >> > > >> > > >> > > >> > -- > >> > Teoti Graphix, LLC > >> > http://www.teotigraphix.com <http://www.teotigraphix.com> > >> > > >> > Teoti Graphix Blog > >> > http://www.blog.teotigraphix.com <http://www.blog.teotigraphix.com> > >> > > >> > You can find more by solving the problem then by 'asking the question'. > >> > > >> > >> > > > > > > -- > > Teoti Graphix, LLC > > http://www.teotigraphix.com <http://www.teotigraphix.com> > > > > Teoti Graphix Blog > > http://www.blog.teotigraphix.com <http://www.blog.teotigraphix.com> > > > > You can find more by solving the problem then by 'asking the question'. > > > > > > > > -- > Fotis Chatzinikos, Ph.D. > Founder, > Phinnovation > [EMAIL PROTECTED], > ______________________________________________________________________ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. ______________________________________________________________________

