ActionScript 3.0 :: Make Mouse Scroll Map And Not Page When Over Map?
Jul 13, 2010
scroll wheel works fine on screens where webpage has no scroll bar. On a 1024x768 res screen the webpage with map requires scroll bars at side, design beyond my control. This situation will no doubt occur regularly so ...What needs changing to make it such that maps zooms when cursor over map, )page doesnt scroll) and page scrolls and map doesnt zoom when cursor off the map ?scroll zoom code is in blue, I left in the entire code.
// ******** Public vars ******** \// The percentage of the map to be shown// Basically, it limits the width and height of the map (because of excess graphics)// Change these values to 1 if you see flickering of the map on the first zoomvar widthPercentage:Number = 1;var heightPercentage:Number = 1;// ******** Private vars ******** \var stageWidth:int = stage.stageWidth;var stageHeight:int = Map_Collection.height;
[code]....
View 2 Replies
Similar Posts:
Jun 15, 2010
Is there a code that will make the scroll pane operate with input from the mouse's scroll wheel?
View 2 Replies
Mar 13, 2011
When drawing on the stage, any upward movement of my scroll wheel scrolls the screen by at least half a screen width, if not more. Scrolling down works as normal, equivilent to a few lines at a time.This problem seems to only exist in Adobe Flash. No issue in Chrome, Adobe Reader, Inkscape or any other program I've run. I've attempted to adjust the mouse settings, but they have no effect. Even disabling verticle scroll does not nothing. Currently I'm using a Microsoft Wireless Mouse 6000 with Windows 7. I've tried using other mice and they've suffered the same fate. I've also tried updating the drivers as well as cleaning them out and reinstalling them. Nothing works. I've googled and searched these forums but have found nothing related to this.
View 10 Replies
Oct 22, 2009
I'm building a site that have 4000 pixels in width and 1024 pixels in height. I'm having trouble to make the page scroll automatically when the mouse reach the vry end of the page but isn't working. How to get the script so that when I put the mouse on the end of the page it will scroll automatically?
View 0 Replies
Mar 14, 2010
I have an AS2 site where all the pages are different lenghts and have navigation at the top and the bottom.
When you click on the bottom navigation on one of the longer pages in order to get to another shorter page, you land on the same place where the bottom navigation was on the page before; ie you land at the bottom of the page.
How can I get around this so that every time you land on a new page it has scrolled to the top?
View 1 Replies
Jun 24, 2007
I'm trying to achieve a scrolling effect like this one.[URL].. I'm trying to achieve a scrolling effect similar to that where the page will scroll with the mouse and rotate like that, also have a maximum scroll and rotation, but also be able to be pushed aside for sub content.
I'm obviously not asking anyone to build the whole thing for me, just point me in the right direction.
View 2 Replies
Feb 16, 2009
I am trying to make a vertical mouse-sensitive scroll that I created a while back work going horizontally. You can see the one I created at [URL] and click on the "CUSTOM" link. I have been fiddling with the x and y coordinates but can seem to make it work. If I sent someone the FLA file, could you possibly help me make it work scrolling HORIZONTALLY?
View 1 Replies
Feb 5, 2011
This one's been irking me for a while. When I'm using the mouse scroll wheel to scroll up and down in a webpage, and a flash movie comes into the path of the cursor, the scroll wheel stops working. Also, when a flash movie has focus, you can't use browser shortcuts like Ctrl + L or Ctrl + R.
I'm writing a flex application now and I'd like to find a solution, so that at least my users aren't plagued by this inconsistency of the user interface behavior.
I should think there would be a way to tell flash to propagate such events as the mouse scroll wheel and keyboard input back up to the browser unless they occur in an element for which they are useful, like in a flex textarea. I can't find any solutions out there though, nor even anyone talking about it.
Specifically, how can I make it so that:
When the user is scrolling with the mouse, the browser scrolls unless the mouse is over a flex container with scrollbar, or another component that wants to scroll.When the user presses a button or combination of buttons on the keyboard, it will be propagated to the browser unless there is an active keyboard listener, or the cursor is in a text field, etc.
View 3 Replies
Nov 5, 2009
someone told me you cant have the page scroll up and down , but i just seen a template that has it URL...Any idea on how i would put that into my work? Is there a tutorial , or something im missing ?
View 6 Replies
Jul 30, 2007
I know you can use the mouse wheel to scroll through text in the flash componenet scroll pane, but is there a way to set it up to work with the code I have posted below?
fscommand("allowscale", "false");
bar.useHandCursor = dragger.useHandCursor=false;
space = 5;[code].....
View 4 Replies
Apr 12, 2011
I have one more script in that only mouse drag works i want also scroll works on mouse over event.
onClipEvent(load)
{
buttonSize = 0;[code]..........
View 1 Replies
Apr 20, 2009
I wrote a short AS program to create a tileList and it functions fine, but I need to be able to scroll the list of pics according to the position of the mouse with out actually moving the scroll bar.... example of what I mean: the farther to the right mouseX is on stage, the faster my tileList scrolls to the right, if mouseX moves to the left of the stage, so does the scroll bar...Here`s my code so far:
import flash.display.Sprite;import fl.controls.TileList;import fl.controls.ScrollBarDirection;import flash.text.TextFormat;
var tlc:TileList;[code]........
View 1 Replies
Jun 30, 2003
is there anyway when i use scroll bar component in flash... how do i make it so that i can be controlled by your mouse scroll button.. thing.... ( if its possible )
View 3 Replies
Jun 16, 2010
I am having endless trouble trying to get flash to scroll with a mouse scroll wheel on both PC and Mac. Pixel Breakers code "swfmacmousewheel" seems to be the way to go but despite everyone raving about how amazing it is and showing many version of it working very nicely, I cant get it to work. I've followed all the instructions I can find as carefully as possible but I get nothing. I just want something similar to this > [URL]
View 2 Replies
Jan 27, 2004
how to use the mouse scroll to scroll up and down in a dynamic text field.
View 2 Replies
Apr 25, 2007
Im working on a website for school, and im doing it through flash. The server ive been given is being taken up by thousands of pages, so its slow. Instead of loading each page through HTML, ive decided i could do a seperate frame for each page. However, to reach the menu at the bottom, you have to scroll down. Is there any way to make it so that when you click a button to load a different page for the flash player to scroll up all the way to the top of the page itself?
View 1 Replies
Apr 15, 2009
I have created a dynamic menu with scroll(Horizontal).
Is there any way to scroll a menu, by using mouse scroll.
View 5 Replies
Jul 12, 2005
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?
View 1 Replies
Mar 26, 2011
I have just wrote a code for vertical scroll of image through mouse scrolling. It works... but It works only after click on the image or inner space of the window..
var obj:Object = new Object(img);
var over:Boolean = false;
var lim:Number = 0 - (img._height - Stage.height);
[Code].....
View 1 Replies
Jan 29, 2011
How do make a movieclip visible false when a scroll bar starts to scroll?
//I tried this and had no luck.
this.onEnterFrame = function(){
obj_mc._visible=false;
}
View 1 Replies
Jun 14, 2009
i recently doing a custom scroll bar with mouse wheel,i succes to make it scroll and wheel in internet explorer, but when it come to firefox, it can't wheel but can scroll. I wonder how can i solve this problem.Here is the script ( it actually the tutorial from kirupa, i remember some people have post it before, but i wonder he/she can wheel in firefox.)
scrolling = function () {
var scrollHeight:Number = scrollTrack._height;
var contentHeight:Number = contentMain._height;[code]....
View 1 Replies
Jul 23, 2010
Been trying to solve this problem for quite a while. Can anyone of you make "arrow up" "arow down" and the "mouse scroll button" work with this scroll code:
[Code]...
View 0 Replies
Jul 7, 2009
I was looking at this site:[URL]and i noticed that on a smaller screen with a lower resolution, the page simply moves in, instead of it staying at the normal size and having a scroll bar on the bottom. what extra code would i need to insert in order to do this?
View 1 Replies
Jul 22, 2011
Im making a simple website tutorial using flash.
I have all the frames within a Movie symbol with a scrollbar to navigate the page as its quite long.
The trouble i'm having is when you are at the bottom of a page and click to the next page it will show the next page at the exact same position as the previous.
Is there a script so where when you click to the next page it returns the top?
I have included a simple fla file to explain what I mean. (CS3)
[URL]
View 4 Replies
Oct 29, 2011
I have five buttons in my site which means five pages. I want to put auto scroll down effect in one of the page. So that, when one of the button is clicked on, it automatically scroll down to a place in the page, without the user scrolling down by himself. I'm using flash and actionscript 2.0
View 1 Replies
Mar 22, 2011
I'm using actionscript 2.0, trying to make my text scroll across the page like a "news headline". Thsi is the code that I have been using (see below), which works. However, I want my text to scroll continuously (non stop). The code that I have right now, once text leaves the zone, it's gone.
onClipEvent(enterFrame) {_root.scrolling._x = _root.scrolling._x + 3;}
View 2 Replies
Jun 29, 2011
My basic aim is to create a newspaper that consists of four pages. Each page i have created and are sitting in the library as sprites. Each page has buttons that need linking so that when pressed it loads the next page or page that i want. This is the part i am confused with =/ how do i make the buttons on each page load the next page (sprite) from the library??
View 2 Replies
Oct 13, 2009
So I am doing a flash intro page, but the intro becomes the home page, as in all the pieces come together to create the Flash home page, so that there is just one file for the home page that includes the intro from Flash..how do I make it so that all the parts on the page stay there indefinitely, because right now after a certain amount of time, they disappear due to using the timeline in Flash.
View 4 Replies
Jun 16, 2009
I'm working on building a personal portfolio site right now. I wanted to add a scroll feature to one the pages. I wasn't sure how to build it, so I down loaded one off here [URL] and just plugged my own graphics into it. It scrolls up and down just fine, but when I try to put a mask over it, it doesn't work. In the content the author wrote for his movie he says "Note: If you want to have a mask over the content: copy MC:frame and make it a mask for MC:Page. If you do so, notice that "non-anti-alias text" is not possible anymore. This is a common thing in a Flash Movie. I keep trying that and it just blocks everything out all together. So what am I doing wrong?
View 1 Replies
Jul 29, 2010
I have a canvas with its verticalScrollPolicy = "auto" and whenever I reload data into the canvas I want to set the position of the scroll bar back to the top of the page.
View 1 Replies