Re: [flexcoders] Re: mouse wheel behaviour mxml and actionscript based components
Hi Sorry I didn't get back to you but I couldn't answer this question. The problems are on Firefox 3.0.3 - windows - XP... That is why, I still didn't have confidence to upgrade, I'm still using 2 so I can't see your bug. Mike On Thu, Oct 23, 2008 at 2:32 PM, fotis.chatzinikos [EMAIL PROTECTED] wrote: Jim, you are right! In IE 7 the trees scroll without any extra codes-automagically :-) (no need to attach a mouse wheel event and handle scrolling- the tree does it already...) The problems are on Firefox 3.0.3 - windows - XP... This is strange. Firefox used to be my favorite, but lately i have lots of wierd problems with flash... Videos not playing (youtube and others), audio is mute after a while and i need to restart and now this... Can anybody else test this situation on firefox / windows xp or vista? TIA, Fotis --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Jim Hayes [EMAIL PROTECTED] wrote: 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: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of fotis.chatzinikos Sent: 23 October 2008 12:45 To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com 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 flexcoders@yahoogroups.com flexcoders%40yahoogroups.commailto: flexcoders%40yahoogroups.com flexcoders%2540yahoogroups.com , Fotis Chatzinikos fotis.chatzinikos@ 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,0xFF) ; 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 teoti.graphix@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 fotis.chatzinikos@ 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 flexcoders@yahoogroups.com flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com flexcoders%2540yahoogroups.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
Re: [flexcoders] Re: mouse wheel behaviour mxml and actionscript based components
Hello, adobe's examples (component explorer for example) works ok (with mouse wheel support) even in firefox 3... Maybe it has to do with the way the flex/flash wrapperis implemented inside the container html page... I will investigate as soon as i find some time and let you knowof the results... Fotis On Mon, Oct 27, 2008 at 2:36 PM, Michael Schmalle [EMAIL PROTECTED]wrote: Hi Sorry I didn't get back to you but I couldn't answer this question. The problems are on Firefox 3.0.3 - windows - XP... That is why, I still didn't have confidence to upgrade, I'm still using 2 so I can't see your bug. Mike On Thu, Oct 23, 2008 at 2:32 PM, fotis.chatzinikos [EMAIL PROTECTED] wrote: Jim, you are right! In IE 7 the trees scroll without any extra codes-automagically :-) (no need to attach a mouse wheel event and handle scrolling- the tree does it already...) The problems are on Firefox 3.0.3 - windows - XP... This is strange. Firefox used to be my favorite, but lately i have lots of wierd problems with flash... Videos not playing (youtube and others), audio is mute after a while and i need to restart and now this... Can anybody else test this situation on firefox / windows xp or vista? TIA, Fotis --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Jim Hayes [EMAIL PROTECTED] wrote: 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: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com[mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of fotis.chatzinikos Sent: 23 October 2008 12:45 To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com 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 flexcoders@yahoogroups.com flexcoders%40yahoogroups.commailto: flexcoders%40yahoogroups.com flexcoders%2540yahoogroups.com , Fotis Chatzinikos fotis.chatzinikos@ 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,0xFF) ; 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 teoti.graphix@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 fotis.chatzinikos@ 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 flexcoders@yahoogroups.com flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com flexcoders%2540yahoogroups.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
RE: [flexcoders] Re: mouse wheel behaviour mxml and actionscript based components
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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of fotis.chatzinikos Sent: 23 October 2008 12:45 To: flexcoders@yahoogroups.com 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 flexcoders@yahoogroups.com 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,0xFF) ; 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 flexcoders@yahoogroups.com 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
Re: [flexcoders] Re: mouse wheel behaviour mxml and actionscript based components
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 flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Michael Schmalle [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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 Teoti Graphix Blog 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 Teoti Graphix Blog http://www.blog.teotigraphix.com You can find more by solving the problem then by 'asking the question'.
Re: [flexcoders] Re: mouse wheel behaviour mxml and actionscript based components
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,0xFF) ; 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 flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Michael Schmalle [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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 Teoti Graphix Blog 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 Teoti Graphix Blog 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],