Mouse Scroll Instead Of Drag Scroll
Hello everyone,
i want to change my scroll effect from a drag to a mouse scroll.
i have an example of the drag scroll, anyone know what bits of the code I have to change?
ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 07-12-2005, 07:20 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Mouse Scroll Instead Of Drag Scroll
Hello everyone,
i want to change my scroll effect from a drag to a mouse scroll.
i have an example of the drag scroll, anyone know what bits of the code I have to change?
[scroll] Scroll That Reacts To The Mouse Wheel
Hy guys,
Do you know how can I make a scrollable text that reacts to the mouse wheel. Here you can see an example: link here
Look at the news section, or at the about us section.
The majority oh the text scrollers on the web didn't react at the mouse wheel. I found this site and I was surprised when I found that I can scroll with my mouse wheel.
Hope some one knows how they do that.
Thx.
I Want The Mouse Scroll For My SCroll Pane
Hey all,
This one is my favorites that Ive found, but you can't scroll with your little scroller on the mouse.
Is there something I need to set to true to allow this, I was going to post the code for this but it was too long, so I attached the file.
I Want The Mouse Scroll For My SCroll Pane
Hey all,
This one is my favorites that Ive found, but you can't scroll with your little scroller on the mouse.
Is there something I need to set to true to allow this, I was going to post the code for this but it was too long, so I attached the file.
[F8] Freezing An "Infinite Scroll" Menu When The Mouse Exits The Scroll Area?
Hey folks,
I found this great script that adds a fun "infinite scroll" menu to my page. Problem is, the scroll continues to spin even when the mouse cursor moves outside of the scroll's box area. Can anyone recommend an amendment to the script which would allow me to freeze the scroll menu in place when a user moves the cursor outside of the box? I'm new at this stuff, is this a job for "if" and "else if" statements? Any help would be appreciated.
The scroll box is sized to 157 px wide x 355.2 px high. I've uploaded the file I'm working, if that helps at all.
Also, here's the address to the page -
http://seanmurphydesigns.com/illus_page.html
...and the script...
onClipEvent (load) {
ycenter=285;
speed=1/20;
}
onClipEvent (enterFrame) {
var distance=_root._ymouse-ycenter;
_y-=(distance*speed);
}
onClipEvent (enterFrame) {
var distance=_root._ymouse-ycenter;
_y-=(distance*speed);
if (_y > 0) _y=-355.2;
if (_y < -355.2) _y=0;
}
Drag Scroll
Does anyone know off a flash5 drag scroll. What I mean is you have a textMc that its length is longer than the window that it is been displayed in
, and you have a drag bar that is the length of the window display . Now when you drag the drag bar vertically up and down it should move the
text Mc accordingly to the drag bars up and down length . I hope someone can understand . I think its not too hard to do I just cant get my head
to think around this . can anyone help.
Dynamic Drag/scroll ?
Does anybody know how this is made or has an example FLA.
LINK
I found something like this but its not so dynamic!
THX
NOD
Scroll/drag Clash
hi. a small but tricky problem. i've have my menu in a dragable mc. using start drag etc. this works fine. however within this mc my menu loads a swf witha scroll pane. when i move the scroll bar the menu moves with it. arrgh!
Drag And Drop From A Scroll Box
Ok I have some drag and drop items in a scroll box.
I have a movie called 'drag' inside that movie there are lots of objecta that are drag and drop items.
On the main stage _root I have some targets for the drag and drop movies to go in.
The movie 'Drag' needs to be scrolled so all of the items fit on the stage like a menu with all the objects.
It all works fine but Im having trouble with the scroll.
If I scroll through the item it will also scroll the objects Ive dragged onto the stage (moving the position).
Because its dragging the Whole movie.
Is there anyway I can scroll an area of a movie clip so that it doesnt move the items Ive dragged.
Or can anyone suggest another way of doing it that will work.
Here is a link to the file:
http://www.imagegalore.com/images/u7Z90815.swf
[AS2] Scroll Bar - Problems With Drag
Analyze my fla, please:
http://rapidshare.com/files/17955690...llBar.rar.html
I'm trying to make my first scroll bar, but i'm having problems on making the text follow the bar's drag.
Can you help me?
Scroll Box And Drag And Drop
Hi.
I've posted a thread related this. Gibberish thanksfully modified my file. I have one more question. have you ever seen a fla file using scroll box and drag and drop of objects within the scroll box?
I found that after draggin the MC to outside a clip, when i scroll up and down, the object move with scroll box. How can i solve this problem?
Thank you in advance.
quiltkim
Registered User
Join Date: Nov 2004
Posts: 3 Drag & Drop to outside box
--------------------------------------------------------------------------------
Could you check this file out, please?
how can the red box within movie clip using mask move to the outside movie clip called board?
Thank you so much.
I've tried to expand the mask but when i scroll down, other clips also scroll up.
Attached Files sample.zip (4.9 KB, 5 views)
quiltkim
View Public Profile
Send a private message to quiltkim
Find More Posts by quiltkim
Add quiltkim to Your Buddy List
03-11-2004, 07:59 PM #2
Gibberish
WHAT!?
Join Date: Aug 2004
Location: San Diego, CA
Posts: 352 crude but easy
Attached Files sample.zip (5.7 KB, 13 views)
Drag And Scroll PLEASE HELP Im Desperate
a script that does this:
movieClip clicked = start drag
if it is dragged to the LEFT 100pixels it stops drag and scrolls to the left that is -800pixels if it is dragged to the RIGHT 100pixels it stops drag it scrolles +800pixels.
movieClip on release = stop drag
it returns to its position before dragging.
I made this so far (DOESN'T WORK):
stop();
background.onPress = function () {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.startDrag();
}
mouseX= _xmouse;
onMouseMove = function () {
mouseX2 = mouseX - _xmouse;
if (mouseX2 > 100) {
this.stopDrag();
_root.lokacija1 = _root.background.targetx = background._x - Stage.width;
mouseX= 0;
mouseX2 = 0;
play();
} else if (mouseX2 < -100) {
this.stopDrag();
_root.lokacija1 = _root.background.targetx = background._x + Stage.width;
mouseX = 0;
mouseX2 = 0;
play();
}
}
}
background.onRelease = function () {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.stopDrag();
delete (mouseX2);
mouseX = 0;
mouseX2 = 0;
}
}Text
Drag And Scroll PLEASE HELP Im Desperate
a script that does this:
movieClip clicked = start drag
if it is dragged to the LEFT 100pixels it stops drag and scrolls to the left that is -800pixels if it is dragged to the RIGHT 100pixels it stops drag it scrolles +800pixels.
movieClip on release = stop drag
it returns to its position before dragging.
I made this so far (DOESN'T WORK):
Code:
stop();
background.onPress = function () {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.startDrag();
}
mouseX= _xmouse;
onMouseMove = function () {
mouseX2 = mouseX - _xmouse;
if (mouseX2 > 100) {
this.stopDrag();
_root.lokacija1 = _root.background.targetx = background._x - Stage.width;
mouseX= 0;
mouseX2 = 0;
play();
} else if (mouseX2 < -100) {
this.stopDrag();
_root.lokacija1 = _root.background.targetx = background._x + Stage.width;
mouseX = 0;
mouseX2 = 0;
play();
}
}
}
background.onRelease = function () {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.stopDrag();
delete (mouseX2);
mouseX = 0;
mouseX2 = 0;
}
}
Mouse Direction Scroll With Mouse Over Image Enlargement...
Hi all..
Haven't had much luck finding a tutorial to help me do this one so any help locating it would be good.. I'm trying to design an image gallery where the images scroll left to right depending on mouse movement. Once a mouse is over an image it enlarges then returns to normal shape with mouse off.
any help appreciated..
cheers!
Drag &drop From Mc To Mainstage W/scroll
i want to know how to drag an object from a mc onto an object on the main stage; the mc is set to scroll through various items. The problem is when you drag the object onto the mainstage and then scroll to grab another object within the mc, the first object disappears.
The other problem is having the dragged object snap back to orginal position in the mc when done using it???
[Edited by zoolu on 07-25-2001 at 10:18 AM]
Drag-scroll Through Main Timeline
Hi all,
i want to have a horizontal/dragging scroll bar that will "scrub" through my main time line. Any tutorials or suggestions out there for this one?
thanks in advance
Click And Drag Scroll Not Working
Hello all,
I am uploading an example of this problem...
I found a tutorial on how to make a click and drag scroll. I built my elements on top of the origonal movie's to figure out how it works. It works fantatically UNTIL I out in inside a movie clip on my main timeline. Can anyone tell me why it won't work? I know it's something little.... it always is.
Thanks,
jessicuh
Help Adding Buttons To ALSO Scroll My MC (currently Uses Drag-bar)
Hi,
I created a scrollable mc that moves when the user drags a bar. Because I had the help of a tutrial to create this, I dont understand it 100%. What I need to do is add buttons that the user could press instead of the drag bar if they choose, to scroll the mc instead, but for the drag-bar to be affected when the buttons are pressed also).
To see the exact example of my movieclip, and to download the fla, please visit this page:
http://www.lucid-life.com/scroll-mc.html
I would really appreciate some help with this...
Thanks in advance
Francesca
Drag And Scroll Ala Google Maps
I'm trying to figure out a way to allow a user to click and drag their mouse, which scrolls the Flash stage. I'm pretty new to AS, so not sure where to start.
My background image that the user will be scrolling around is 1920x1380 pixels. The player window will be however large the user's web browser window is. Ideally the stage would stop scrolling outside of the image size, but have some sort of tiled background image if the user's browser window is larger than 1920x1380. Thanks!
Buttons In A Scroll-drag Scrollpane?
Hi all
I'm working on a project that involves having a scrollpane with an interactive movieclip inside. The scrollpane has no scrollbars and is set to be dragable. However, doing this seems to render any buttons in the child movieclip to be unusable.
Is there any way around this? I don't really want to use scrollbars if I can avoid it.
Thanks!
Selected Button On Top In Start Drag Scroll
i'm trying to figure this out
I'm trying to make this movie have scrolling thumbnail buttons that enlarge when you click on them like the ones on http://www.airforce.com
so far i've figured out how to make the buttons scroll with my mouse and enlarge when I roll over them, but sometimes they enlarge behind the smaller thumbnails.
so now i'm trying to figure out
1. how to get the selected button to always be on top of all the other images
2. how to get the other images to scrunch closer together allowing room for the larger image
also, currently i have the buttons scrolling with my mouse, I still want to do this, but is there also a way I can get the scroll to slow down and almost stop as i approach a button to click on it.
I know that's a lot of questions, but i've been strugling with this for about a week
thank you
:() Horizontal Drag-scroll Nav AND Jump Buttons? ():
'ello board...
i am searching for a tutorial/source file for a horizontal-scrolling navigation which includes a draggable scrollbar AND jump buttons that allow you to jump to specified places in the nav.
can ANYONE point me in the direction of this?
i've found great files for drag-scroll navs, and great files for jump buttons, but when i put them together and mix'n'match they always end up knocking each other out with conflicting code.
i've already scoured ultrashock, were-here, flashkit...
pleeeease! help me!
louise (
[MX04] Help: Drag Button To Move Scroll
I am trying to drag a button to make a scroll bar move. I have made it scrollable by hover. The button moves when the scroll info does but not vice versa. There are a million ways to write a scroll bar in Action Script and I think the way I did it, from a different tutorial, I am unable to control such a feature.
P.S. my file size is too big to load, any suggestions.
Flash Image Drag And Scroll Probelm
I have a problem with my full screen portfolio gallery... I cant make the final touch work good... Here is the link http://demo.smartsheep.net/portfolio.swf
You drag the image left and right and then it scrolls when u drag 90pixels to one side...
I have a problem with looping the 2 images...
Drag to one side and you will see that it doesn't loop...
Here is my FLA file demo.smartsheep.net/portfolio.zip
PLEASE HELP!
Button Scroll Works But Drag Bar Doesn't (Scrolling MC)
Hi there,
I followed a tutorial that enabled me to scroll an MC with buttons and a drag-able bar. The original tutorial was for a vertical scroll, but I changed everything Y to X and modified what I thought were the correct things, to convert it all to a horizontally scrolled MC, but alas, only the buttons work. The drag bar does a weird thing when you click it, and scrolls vertically and moves up on the stage. I have been experimenting for hours but my brain is squish. Can anyone pleeeaasse help me figure out what Im going wrong?
Here is a link to a page that shows the SWF, and you can download and please look at my FLA:
http://www.lucid-life.com/scroll-mc.html
Many many many thanks in advance,
Cheska
Mouse Over Scroll Help
I'm trying to put multiple images on one page and have it scroll left or right to the next images when you mouse over the left or right side. Any ideas on how to script such a monster?
Please Help!
Mouse Scroll
Hey there!
I really want to make a background that works exactly like this: This link
I have seperated my 'background forest' and made it so if the correct actionscript is put in, it will loop (i don't know how to do this)
I have also seperated all the different layers and stuff the way it would be if I were to put it in, but I basically want like 3 or 4 layers of images moving all at different speeds exactly the way this forest moves in this link.
Like, you go right, it goes right, and it eases too etc etc....I have no clue how this is done!
If someone could tell me, or better yet, mock one up using dummy images or something for me, that would be great!!!!
Thanks!!!
Mouse Scroll
Is there any example to scroll the content using mouse wheel?
Mouse Scroll
OK, so I have a swf file that is 750px X 1400px embeded in an html page. My problem is that most people have a screen resolution that will not show the entire swf within their browser window, which is fine. However, when I want to scroll the window I have to click outside the swf file and use my mouse wheel to scroll down or up. this is the only way the mouse wheel will function I can't click on a button within the swf and then scroll. I would like to know if there is a way that I can place a code within either the swf file or in the html that will allow the funtionality to scroll by mouse wheel no matter where the cursor is within the browser window.
Would I use Java Script, how? Or is there something I can place in the html code for the page that will allow this?
Thanx in advance.
BiGg RiE
Mouse-Scroll FLV
Hello all,
is there a tutorial or file I could look at somewhere showing the best way to load and external FLV and have the mouse movement scroll through that movie? I'm doing a time-lapse project and would like the user to be able to move back and forth through the movie. Thanks!
Mouse Scroll MC
Hi All,
I have my stage set at 500px x 500px. I have a map mc on stage that is 2500px x 2500px and I am trying to mouse scroll the entire map mc inside the bounds of the 500px x 500px stage. The map mc xy ref coordinate is in the center of the graphic. This is a math problem for me. An example would be http://www.diesel.com/#/denim/. Would some please lend a hand at the math and some possible example code. Easing would be a bonus :-)
Mouse Scroll On PC
Hi- new to the forum/flash and having problems with a custom scroll bar.
Website: www.whitedesignstudio.com/Kaplan
Click on Why Choose Us (it takes a second to load)
I would like the mouse on a PC to scroll the text the same way as the scrollball does when you click it and drag up and down on the scrollbar. Right now the text and scrollball move in the right direction when you mouse scroll but they do not stop and they do not move at the right speed to each other.
Any ideas? It's driving me nuts so any help is appreciated.
The text is not dynamic and just has a mask over it. Instance name is auconent for text and scrollball for the scrollball.
Code:
var scrollUpper:Number = 148.5;
var scrollLower:Number = 352.4;
var textLower:Number = 148;
var textUpper:Number = -129;
var scrollRange:Number = scrollLower-scrollUpper;
var textRange:Number = textLower-textUpper;
function scroll() {
var moved:Number = scrollball._y-scrollUpper;
var pctMoved:Number = moved/scrollRange;
var textMove:Number = pctMoved*textRange;
aucontent._y = textLower-textMove;
}
scrollball.onPress = function() {
this.startDrag(false, this._x, scrollUpper, this._x, scrollLower);
this.onMouseMove = scroll;
};
scrollball.onRelease = scrollball.onReleaseOutside=function () {
this.stopDrag();
this.onMouseMove = null;
var mouseListener:Object = new Object();
mouseListener.onMouseWheel = function(delta) {
aucontent._y += delta;
scrollball._y -= delta;
}
Mouse.addListener(mouseListener);
}
Thank you!!
Mouse Scroll
Hello everyone, In flash 5 I'm scrolling some text with a home made "scroller" using a mask and action scripting, I was wondering if anyone had examples or info of incorporating the mouse scroll wheel into a scroller.
Thanks
Scroll With Mouse
I'm looking to make a scrollable area capable of being scrolled by a Mouse Wheel, I saw it in forums before, but since it wont search anymore I'm stuck. Any help would be nice. Thanks.
Scroll Bar Show Up If Needed And Only Scroll To Dynamic Text Input Bottom... HOW
I have attached a copy of my scroll bar that i am currently using how can i make the scroll bar not show up unless needed (really not all that important but would be nice.)
The important thing is that i can setup a dynamic text box inside my item_holder movie clip but my scroller always scrolls to the bottom of the scroll box not matter if inside my scroll box i have on line of text loaded dynamicly or i have 100. So if i have 1 line of text and a large dynamic text box the scroll bar will scroll to the bottom of the scroll box even though it only has one line. See attachment and see if anyone can help. Thanks in advance. Brian
Scroll Text > Button > Load Txt File > Reset Scroll Bar...?
Hi i am looking for a tutorial or an explanation of how you can load an external text file into a text field and have...let's say 3 buttons that load the .txt files...when they are loaded...i want the scroll bar to be reset to the top of the text field/box....
any help...welcome...
ta...tiger...
Linking Text Buttons In Scroll To Image Outside Scroll Area
Hi,
I am desperately hitting my head against a brick wall - so please help me!
I have created a flash area that is divided up with an image on top and a scroll area under.
I am trying to get the text buttons in the scroll area to each change the image above and cant seem to get it to work because of the masking.
I have tried heaps and heaps of different ways and am going crazy!
PLEASE HELP ME!!!!
thanks,
kova
Mouse Scroll Y Axis Help
hello
i have set up a mouse scroll that pulls a movie left/right according to mouse position on x axis. however, this is on level 1 and uses whole of the movie area, therefore obscuring my buttons that show through from level 0
my question, can i limit the y axis for the mouse action to function with an if statement:
if (y_mouse>300)&&(y_mouse<350) {
therefor, if you are not in this 50 pixel gap the rest of the code will not funtion and my buttons from level 0 will function. will this code work? i ask because i cannot test it for a few days but need to know whether this is what i should do.
thanks
How Can I Get A MC To Scroll Continuously On Mouse Down?...
I have a movie clip that I want to scroll horizontally inside a mask. The scroll mechanism is triggerd by two buttons for left and right. Currently this is the action I have attached to the buttons
For the left button:
on (press) {
tellTarget ("scrollMov") {
prevFrame();
}
}
For the right button:
on (press) {
tellTarget ("scrollMov") {
nextFrame();
}
}
This works, but the obvious drawback is that you have to repeatedly click to get it to scroll anywhere. What I really want is for it to continue scrolling for as long as the button is down or until it reaches the end of the movie clip. I obviously need some more actionscripting to accomplish this, but I'm having a mental block figuring this one out. Any help is appreciated.
Scroll Only When Mouse Is In A Certain Area Help
Ok, i've been wondering how this can be done. I have a navigation, the scrolling and stuff works the way I want. But the window for the scroller is kinda small. And I want other content on my site to the left of the navigation. I dont want my scroller to move with the mouse if i'm not in the navigation window. Heres my site so far http://www.jcn.net/bryan/test/main.htm
This post was given to me by "Jamescover" (I need you to help me if you can )
http://board.flashkit.com/board/show...hreadid=305374
The code he suggested I use was this:
mouse_x = _xmouse;
if ( _root._ymouse <= 440 && _root._ymouse >= 385 ){
if ( _root._xmouse <= 740 && _root._xmouse >= 10 ){
setProperty(_root.mc_buttons, _x, -(mouse_x+((getProperty(_root.mc_buttons, _x)-mouse_x)/2)));
}
}
The only problem is I dont understand some of it. If anyone can shed some light on the code and how it might be able to help with my site i'd really appreciate it. Thanks in advance
Scroll Only When Mouse Is In A Certain Area Help
Ok, i've been wondering how this can be done. I have a navigation, the scrolling and stuff works the way I want. But the window for the scroller is kinda small. And I want other content on my site to the left of the navigation. I dont want my scroller to move with the mouse if i'm not in the navigation window. Heres my site so far http://www.jcn.net/bryan/test/main.htm
This post was given to me by "Jamescover" (I need you to help me if you can )
http://board.flashkit.com/board/show...hreadid=305374
The code he suggested I use was this:
mouse_x = _xmouse;
if ( _root._ymouse <= 440 && _root._ymouse >= 385 ){
if ( _root._xmouse <= 740 && _root._xmouse >= 10 ){
setProperty(_root.mc_buttons, _x, -(mouse_x+((getProperty(_root.mc_buttons, _x)-mouse_x)/2)));
}
}
The only problem is I dont understand some of it. If anyone can shed some light on the code and how it might be able to help with my site i'd really appreciate it. Thanks in advance
Mouse Auto Scroll
I'm not even sure if this is the right category but I was wondering if someone could point me in the direction of a tutorial or something, to do the effect shown on the matrix website and the warner brothers website
goto: http://whatisthematrix.warnerbros.com/
then enter the flash site then on the reloaded box click the top right box (all the way right) to view the gallery.
and the scrolling images at:
http://www2.warnerbros.com/web/movie...u_movies_item0
What I would like to do is have thumbnails of some pictures (for a gallery) and then when the mouse is placed in the center of the rectangle containing the pictures the scrolling stops but when it is put farther towards the ends it scrolls that way, faster as it gets closer to the edge of the rectangle. Then when the mouse is outside the rectangle containing the images the scrolling slows to a slow scroll.
I have seen this on websites but I cannot remember where.
If anyone knows how to do this, it would be awesome if you would enlighten me!
Thanks so much for your time!
-Nathan
Using The MS Mouse Roller To Scroll
Has anyone had any success using action scitp to detect the mouse roller button for scrolling text?
Macs don't have this facility - as far as I'm aware it's a Microsoft OS thing?
Mouse Scroll Button
is it possible to create a scrollable text box than can be scrolled with the mouse´s third button (scroll button).
Thanks!
Mouse Scroll Button
is it possible to create a scrollable text box than can be scrolled with the mouse´s third button (scroll button).
Thanks!
|