Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Scroller Mouse Wheel Problem



Hey guys,

was trying to use this verticle mouse scroller I found and it has the mouse wheel actionscript on it, is there an updated version where the mouse wheel works or anyone know why it doesnt work?

it seems to output correctly but the "content" never moves.

Thanks.



ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 04-14-2006, 09:26 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Ultimate Scroller And Mouse Wheel
can u tell me how to make the mouse wheel work with my ultimate scroll bar? or any kind of dynamic text that has a scroller?

i havent found answer to this question here in the forums

thanks

I Can Scroll Text & Trace The Mouse Wheel But Not Move The Text With The Mouse Wheel
Can u help me scroll some loaded text with the mouse wheel?

This code is great but I just cant get the mouse wheel to scroll. I have set up the mouse wheel trace but need help from here on please


Code:
scrollmcMaxY = tmask._height-scrollmc._height;
scrollmc.onRollOver = function() {
this.gotoAndPlay("over");
if (this._y>=22 && this._y<=scrollmcMaxY-22) {
this.arrowup._visible = true;
this.arrowdown._visible = true;
} else if (this._y<22) {
this.arrowup._visible = false;
this.arrowdown._visible = true;
} else {
this.arrowup._visible = true;
this.arrowdown._visible = false;
}
// end else if
};
scrollmc.onRollOut = function() {
this.gotoAndPlay("out");
};
scrollmc.onPress = function() {
this.gotoAndPlay("press");
endy = _ymouse-this._y;
this.onMouseMove = function() {
if (_ymouse>=endy && _ymouse<=scrollmcMaxY+endy) {
this._y = _ymouse-endy;
} else if (_ymouse<endy) {
this._y = 0;
} else {
this._y = scrollmcMaxY;
}
// end else if
ratio = (chpTexteHauteur-tmask._height)/scrollmcMaxY;
this.onEnterFrame = function() {
var _loc2 = -this._y*ratio;
chpTexte._y = chpTexte._y+int(_loc2-chpTexte._y)*2.000000E-001;
};
};
};
scrollmc.onRelease = function() {
delete this.onMouseMove;
delete this.onEnterFrame;
};
scrollmc.onReleaseOutside = function() {
this.gotoAndPlay("out");
delete this.onMouseMove;
delete this.onEnterFrame;
};




var mouseListener:Object = new Object();
mouseListener.onMouseWheel = function(wheelNum:Number)
{
if (wheelNum> 0)
{
trace("towards computer");
}
else if (wheelNum< 0)
{
trace("away from computer");
}
}
Mouse.addListener(mouseListener);

Wheel Scroller
Hi all,
I'm having this problem, currently I created a scrollbar, this swf will be place inside the HTML. What I want to do is, I try to use my mouse wheel to scroll my scrollbar, it doesn't work!! Anyone can solve my problem??

Thx.

Scroller Wheel
Is it normal for the wheel on your mouse to not be able to scroll a text box w/ scroller component?

Max Speed For Scroller Wheel
I am using this scroller wheel and a weird things seems to happen. When
you click over on the masthead image to the left of the swf, it goes
really fast! That part is not even Flash file anymore. Is that something
that can be caped? How can this be?
File is here:
http://www.diversenet.com/new/

The speed inside the file gets set like so:

this._visible = true;
// speed at start
var speed=.5;

// speed by mousemove
if ((_root._ymouse<100) || (500<_root._ymouse)) {
speed = speed*0.9;
} else {
speed = (0-_xmouse)/150;
}



Is there a way to create a maxspeed that the file will not go beyond?

And why could clicking outside the file affect the file?

Thanks for any help!
Brian

Wheel Scroller Problem With Scrollpane
I am using scrollpane on a movie clip full of links but cannot use my mouse wheel scroller. I have downloaded the 7.2 update because Macromedia said it supports it in 7.2 but I don't know how to enable it.

Wheel Scroller Problem With Scrollpane
I am using scrollpane on a movie clip full of links but cannot use my mouse wheel scroller. I have downloaded the 7.2 update because Macromedia said it supports it in 7.2 but I don't know how to enable it.

Text Scroller With Easing And Wheel Usability
Hello
Trawling through the many scroller / text box tutes out there, I have found a couple of good ones :
here

and here

but what i would love to read is a tutorial that offers both easing capability with the option of having the wheel move the text as well.

any guides out there for this ? (I will only be using static text)

DJ

Mouse Wheel ?
I use a lot of scroll bar in my flash site, I want to know more about the mouse wheel use in flash, I have found a tips but i think it's incompled (onClipEvent (enterFrame) {
rButton = Key.isToggled(4);
if (rButton != old) {
trace ("scroll-whell detected");
old = rButton;}

Please Help!!!

Mouse Wheel?
Is there any way to use the mouse wheel to do stuff in Flash? Xcuse me if this is a dumb question (newbie).

Mouse Wheel
Can flash detect the movement of the mouse wheel, or the "third button" as it's sometimes called?

If so, how can this be done?

Intravenus.

Mouse Wheel
hi,

how can i disable the mouse wheel in a ScrollPane ?
My problem is, that I set the ScrollPane.vScrollPolicy =”off”
And so no ScrollBar is displayed. But if I use the mouse wheel the ScrollPane content is scrolled (even if no scrollbars are displayed)

Please help
thanks
David

Mouse Wheel In F8+
Hi,

Is there any way to get the mouse wheel to scroll the browser window, when the Flash movie has focus in Flash 8 of higher? because it doesn't seem to work.

thanks for any advice
boombanguk

Mouse Wheel
Hi,

Can someone explain to me why publishing in AS1, allows me to use my mouse wheel (PC, IE 7) to scroll the browser window up/down, but when I publish in AS2 it stops working? and is there a work around for this in AS2.0?

thanks for any advice
boombanguk

[CS3] Cannot Use Mouse Wheel
I have a really strange problem,
when I add an Image Loader to my Flash project
I cannot use the mouse wheel to scroll in Internet Explorer

anyone knows a solution for this?

by the way, I use Actionscript v2 and Flash CS3

Mouse Wheel
Please guide me in the right direction. I want the user to be able to control the text with the wheel of their mouse. Where can I find a tutorial on this, or the code to enable this function?

Thanks.

Mouse Wheel
//yello everyone i am trying to emulate the way you scroll down a page in this case text with a

mouseListener = new Object();

//I have found this code on the help file and cant find it easily on google.

mouseListener.onMouseWheel = function(delta) {
clip_mc._x += delta;
clip_mc._y += delta;
}
Mouse.addListener(mouseListener);


//this code makes the text move diagonaly upwards and downward on its + and - values is that the delta.?i have the text scrolling with buttons that have linking functions to this code

function scrollText () {
_root.onEnterFrame = function () {
if (scrollDirection == "up") {
loadedInfo.scroll += -1;
} else if (scrollDirection == "down") {
loadedInfo.scroll += 1;
}
}

//i have made onReleaseOutside, onRelease, OnPress functions that work.


Could someone please help me understand what is going on with the mouse wheel functions and a possible path to a solution?


Cheers for any help ^_^

Scrolling With A Mouse Wheel
I have made a scroll bar that works with loaded .txt files. It has the usual arrows and a drag bar but i dont know how to make it work with the wheel on my mouse. Dioes anyone know the input address for the wheel and is it possibble to do this in flash.

Scrolling With Mouse Wheel?
i dont know if this has been brought up before, but.

is it possible in FlashMX to make the text boxes in Flash scrollable with my mouse wheel? i like my mouse wheel, it makes browsing easier, and i'd like to make scrollable text areas able to use my wheel.

ive looked thru the demo, but i didnt see anything about enabling it. is it possible thru actionscript or javascript maybe? does it use the mouse wheel natively?

any and all feedback is welcome

Mouse Wheel In Flash
I'm trying to get the wheel on the mouse to work in flash in IE6 with Flash MX.

I tried the following example -
http://www.philterdesign.com/blog/archives/2002_06.html
but couldn't get it to work.


and I looked at http://board.flashkit.com/board/show...hreadid=283550 - but didn't try it because I'm loading up 20 scrollpane movies with different names - maybe I didn't understand the example though.

Does anyone know where I can download the fla and html for a working example - or a tutorial?

Thank you

Wheel Mouse In Scrollpane.
I'm trying to get the wheel on the mouse to work in flash in IE6 with Flash MX. (I posted this there just in case it was an MX question).

I tried the following example -
http://www.philterdesign.com/blog/archives/2002_06.html
but couldn't get it to work.


and I looked at http://board.flashkit.com/board/show...hreadid=283550 - but didn't try it because I'm loading up 20 scrollpane movies with different names - maybe I didn't understand the example though.

Does anyone know where I can download the fla and html for a working example - or a tutorial?

Thank you

Mouse Wheel And Scrolling
Does the Flash Player detect mouse wheel?

If so, how can I get it to work on Scroll Panes or other components?

Scrolling With Mouse Wheel?
can the wheel, found on most mice, be used to scroll(or anything else) in a flash movie? Am i dumb or have i never ever seen the scroll wheel incorporated with a flash movie? I mean, seriously, even macromedia's site could use this, most of you probably agree, no?... so what gives?

Mouse Wheel Scroll?
Any way to scroll a scrollbar with the mousewheel?

Mouse Wheel Problems
Is there any other way to use the mouse wheel than the method explained on this page?:

http://www.j3r.com/?page=mouse_wheel

I have three problems with that method:

1) That page is posted everywhere, kinda like Microsoft
2) It only works in IE6
3) It only works in IE6


Thanks!
Rick

Handling The Mouse Wheel
how can i create a simple scroll bar that will handle the mousewheel?

i mean, how can i create a scrollbar that will scroll up or down, based on the mouse wheel, apart from the clicking?

Wheel Mouse Zoom
Anyone know if you can set the wheel mouse to be zoom in and out when using the flash editing environment? The default for the wheel is to scroll the current scene up and down which is pretty useless, but if it could be zoom ( similar to Photoshop ) it would be very handy.


Thanks

James

Scroll With The Mouse Wheel
I need to make the followin' thing: the scoll wheel must scroll the dynamic text field. Any ideas on the script, guys?

Scroll Bar And Mouse Wheel
Hello Flashers.

How many times have you read that one???

Okay here's the thing;

How do you get the "mouse wheel" to work just like it does on a regular html page, is there a code for this?

And

Since I'm still learning, I geuss I'll always be learning and I'm okay with that, I don't know how to make the scroll bar component that comes with FLAS MX work on a Movie Clip like it does on a text field so I kind of made my own, well almost.

I got the top and bottom buttons of the scroll bar to work, it's the center bar part that's a pain. I looked at one of the Samples that comes with Flash MX, "Movement-sliders.fla" and it was kind of helpful but I'm still lost when it comes to the advamce coding. I got the intended target to scroll but I couldn't control it like I can the buttons, and I also couldn't make the bar move up or down when clicking on the bottuns.

Any daring soul/flasher want to take a shot at this?

Thank You

Peace
Jose Antonio

Scrolling MC With Mouse Wheel.
Hi Everyone,

I was wondering if anyone knows any helpful tutorials or examples of scrolling an MC, dynamic text by using both a scrollbar but the mouse wheel too!

I have tried a few things but didnt managed to figure out how its done

Chris

Mouse Wheel On My Scrollpane
Hi my friends,
can someone help, I desperatly try to enable the mouse wheel on this scrollpane: link to fla

Does somebody has an idea of how to doing this

thanks for your help.

Mouse Wheel ZOOM?
Hi I would like to apply a zoom feature where the user can scroll the mouse wheel to zoom in and out on a movieclip. I currently have zoom implemented as buttons. How would I go about implementing the wheel action?


button zoom code:

code:
small.onPress = function(){
ROOT.onEnterFrame = function(){
zoom._xscale*=0.9;
zoom._yscale*=0.9;
checkBounds(0,0,0,0);
}
}

small.onRelease = function() {
delete ROOT.onEnterFrame;
}

small.onReleaseOutside = function() {
delete ROOT.onEnterFrame;
}

big.onPress = function(){
ROOT.onEnterFrame = function(){
zoom._xscale*=1.1;
zoom._yscale*=1.1;
checkBounds(0,0,0,0);
}
}

big.onRelease = function() {
delete ROOT.onEnterFrame;
}

big.onReleaseOutside = function() {
delete ROOT.onEnterFrame;
}

I Want To Disable The Mouse Wheel..
I searched on the forums, but all the topics I found were trying to activate them...

My problem is if you go here -> http://movfactory.com/vforum/biocom/about.html


and focus in the text box, it scrolls once and messes up the links in there. How would I go about disabling it?

Mouse Wheel Question
hello all,

can someone please help me figure out the MOUSE_WHEEL event.

In a small experiment I have:

Code:

public var box:Box = new Box();
public function Main(){
init();
}

private function init(){
stage.addEventListener(MouseEvent.MOUSE_WHEEL, onWheel);
addChild(box);
}

private function onWheel(event:MouseEvent){
trace("mouse wheel");
}
}
It seems that this code should work just fine. When I change the MOUSE_WHEEL to some other event like, MOUSE_MOVE, it works just fine.

Any idea why his might not be working? could it be my mouse? or browser?
cheers

Scroll With Mouse Wheel
can anyone point the direction on how to make a scroller with ease and mousewheel
thanks

Mouse Wheel And Flash Mx
I'm trying to make the mouse wheel work for flash MX. I know that you can use this using actionscript and javascript but i'm not sure how. Does anyone have any examples or tutorials on how to do this. Thanks for the help.

Transitioning With Mouse Wheel
I am new to Flash and would like to be able to transition in my Flash presentation from slide to slide with the middle mouse wheel. Is there a way to do this? Do I have to set the entire slide as a hit area and add the behavior? I will have other buttons on my slides and wasn't sure if that would interfer.

Any help is greatly appreciated. Thanks.

Mouse Wheel Capture
Why is it that some Flash plug-ins eat up the mouse wheel events and some don't.
By eat it up I mean taking the event from the browser and processing it itself.

Example of plug-ins that do eat up the mouse wheel:
http://www.mediacollege.com/flash/media-player/720x360/demo.html
http://www.swffix.org/swfobject/testsuite/test_com.html

Example of plug-ins that don't eat up the mouse wheel:
http://flowplayer.org/
http://www.swffix.org/swfobject/testsuite/test_api_createswf.html

I have not been able to find any reason why these two differ and how. Please help.

Thanks!

Mouse Wheel Scrolling
each time i load a page into my flash site, the mouse wheel scrolling action becomes faster. has anyone else had this problem? also, if i have my pop up window open above my scrolling text box, when i scroll the pop up window with the mousewheel both the pop up window and my scrolling text box will begin scrolling . any thoughts on this?





























Edited: 08/25/2007 at 03:27:39 PM by _name

Mouse Wheel OnPress?
hello

is there any chance to find out if the MouseWheel / Right Mouse Button got pressed? (flash 8 / windows)
maybe javascript or something? any wired workaround is welcome! :)

thanks
p

































Edited: 07/29/2008 at 03:08:38 PM by xpurex

Mouse Wheel Handler
Using the following code I cannot seem to get the textfield to scroll - in fact i cannot even see my trace in the output window (yes I have a mouse wheel). what am i doing wrong? this code is located in the first frame of my fla.







Attach Code

stage.addEventListener(MouseEvent.MOUSE_WHEEL, mouseWheelHandler);

source_txt.mouseWheelEnabled = true;
function mouseWheelHandler(event:MouseEvent):void {
trace("mouseWheelHandler delta: " + event.delta);
}

Mouse Wheel Scrolling..
hello,

I have a long textfield with the UIScrollbar working perfectly, but I need to activate the mouse wheel support, however I´m doing something wrong because when I do it the whole text moves up and down but it doesn´t scroll, any idea what I´m doing wroong?

Thanks people.


ActionScript Code:
mouseListener = new Object();mouseListener.onMouseWheel = function(delta) {nuestrafirma._y += delta;}Mouse.addListener(mouseListener);


"nuestrafirma" is the textfield instance name.

Mouse Wheel ZOOM?
Hi I would like to apply a zoom feature where the user can scroll the mouse wheel to zoom in and out on a movieclip. I currently have zoom implemented as buttons. How would I go about implementing the wheel action?


button zoom code:


ActionScript Code:
small.onPress = function(){    ROOT.onEnterFrame = function(){        zoom._xscale*=0.9;        zoom._yscale*=0.9;        checkBounds(0,0,0,0);    }}small.onRelease = function() {    delete ROOT.onEnterFrame;}small.onReleaseOutside = function() {    delete ROOT.onEnterFrame;}big.onPress = function(){    ROOT.onEnterFrame = function(){        zoom._xscale*=1.1;        zoom._yscale*=1.1;        checkBounds(0,0,0,0);    }}big.onRelease = function() {    delete ROOT.onEnterFrame;}big.onReleaseOutside = function() {    delete ROOT.onEnterFrame;}

Mouse Wheel Working...
hi friends ,

I am working with a gallery now.I want to scroll the thumbs.
But the problem is about mouse wheel...
I have no idea about the mouse wheel..
If any one help me to know the basics of mouse wheel...
Partcularly about the "delta" param....

pls help me...

regards,
harilal..

Scrollbar + Mouse Wheel = Possible?
Hi -
I'm learning Flash and have made text scrollers from others' scripts,
which is all fine and good. But when trying the scrollbar Component,
I haven't yet found how one can get the mouse wheel to function with it instead of having the user click 35 times!

Any suggestions?

And, if the wheel won't work, how do you set an 'anchor' to get them
back to the top of the text box?

Thanks in advance,
El

Mouse Wheel ZOOM?
Hi I would like to apply a zoom feature where the user can scroll the mouse wheel to zoom in and out on a movieclip. I currently have zoom implemented as buttons. How would I go about implementing the wheel action?


button zoom code:

[AS]
small.onPress = function(){
ROOT.onEnterFrame = function(){
zoom._xscale*=0.9;
zoom._yscale*=0.9;
checkBounds(0,0,0,0);
}
}

small.onRelease = function() {
delete ROOT.onEnterFrame;
}

small.onReleaseOutside = function() {
delete ROOT.onEnterFrame;
}

big.onPress = function(){
ROOT.onEnterFrame = function(){
zoom._xscale*=1.1;
zoom._yscale*=1.1;
checkBounds(0,0,0,0);
}
}

big.onRelease = function() {
delete ROOT.onEnterFrame;
}

big.onReleaseOutside = function() {
delete ROOT.onEnterFrame;
}
[/AS]

[AS] Mouse-wheel In Flash
Hey everyone,

I searched the forums for this topic but I didnt really find what I was looking for. I know that using the mouse-wheel scroller is possible with Javascript in IE6, but I was wondering if there is a way to use it in Flash. Maybe somebody could clear this up for me.

Thanks

Scroll MC With Mouse Wheel?
I know someone had posted a script to scroll an mc with a mouse wheel.

Can someone point me to that thread por favor?! :D

MC Scrollbar With Mouse Wheel
Hi,

I am looking for a good, customizable scrollbar with mouse wheel ability as well.

Can anyone provide me with URL?

EnigmaticX

Copyright © 2005-08 www.BigResource.com, All rights reserved