ActionScript 2.0 :: MouseWheel+ScrollableText?
Oct 19, 2011i've a scrollable dynamic text attached to a UIscroller, how to i nsync my mouse wheel to the text so that it will scroll?
View 0 Repliesi've a scrollable dynamic text attached to a UIscroller, how to i nsync my mouse wheel to the text so that it will scroll?
View 0 RepliesDoes the mouseWheel command work on a mac? Because various tutorials won't let me use it when I go to see examples. Also I was reading some where, might of been flashkit that it was windows only. Is this true? Because I want to add it to my site if possible.
View 7 RepliesI have created a rotating menu movie from tutorial from here http:[url]....and changed the script a little.i am now trying to add a mouse wheel scroll that I found from here;http:[url]....The code being:
// Import MouseEvent
import flash.events.MouseEvent;
Create MouseWheel Event[code]....
but when I paste the code in, the rotating menu disappears, seems like there is an error with the script somewhere, can anyone help find where?
I'm hosting a flash game on a site on Heroku, built in Ruby on Rails. For some reason, the mouse wheel functionality isn't working in Firefox and Chrome (although it works in IE). This wasn't a problem when hosting the game on other sites.
View 1 Repliesi got a scrollbar script wich works fine for me. it scrolls dynamic content and all.I only tried to add a mousewheel function. i just can get it to work.[code]
View 3 RepliesI am working on a zooming file. I want to zoom using the mousewheel
View 3 RepliesTrying to get a swf with a mousewheel to work on a mac
ran across this but don't quite get how to implement it...
[URL]
thoughts? i get what he's saying, but don't get where he is coding "example"
I'm trying to handle the mouseWheel event in an advancedDataGrid with not success. Without any additional code my adg can be scrolled with the mouse in IE but not in firefox and Chrome, why? Why does it behave different in that browsers?[code]
View 1 RepliesI'm trying to move a scrollRect up and down using the mousewheel. that part i've got fine but now i wanted to add easing and am not sure on the maths..
ActionScript Code:
function handleMouseWheel(event:MouseEvent):void {
var rect:Rectangle = this.scrollRect;
var scrollSpeed:int = 10;
[code]....
I am attempting to use the mouse wheel with the UIScrollBar as3 component. I know the MOUSE_WHEEL event does not work on a MAC, only PC. I would like the user to be able to scroll using the mousewheel and the content as well as the Scrollbar updates (on a PC). The main issue that I can't figure out is how to update the scrollbar.
Code:
Select all//mcBorder is the visible content area
//mcContainer is the content that should scroll
var sb:ScrollBar = new ScrollBar();
addChild(sb);
setScrollBar();
addEventListener(MouseEvent.MOUSE_WHEEL, wheel_event);
[Code] .....
Since last few hours I'm trying to add mouse wheel feature (i.e. scrolling on mouse wheel movement) in MX components (scroll pane, list box) but in vain.
View 2 Repliesget the mousewheel working with my tree component? I have this code - but it doesn't seem to work. hmmmm [AS]var mouseListener:Object = new Object(); mouseListener.onMouseWheel = function(delta) { trace(delta); trace('hello'); } Mouse.addListener(mouseListener);[/AS]
View 3 RepliesDesigning a flash website with a Flash-scrollbar that works with the mousewheel on your mouse. It works on pc, EXCEPT that you have to click the swf first to get focus on the swf. I used an onLoad javascript to set the focus to the swf, but that doesn't work. You still have to click the swf, after that you can use the mousewheel on your mouse to scroll. Here's a working example: [URL].
View 3 RepliesDoes anyone know how to make this scrollbar also function with mousewheel ?[URL]..Ive been looking for a solution for a while, but still didnt find it
* edit: Im sorry for posting this twice admin. The first post didnt show for me the first 10 min, so i made another one :s
However I am using embedded .swf files, and the scrollable image I want to control is on _level10 (within a master file _level0). I am decent with actionscript and based on tests with the example file, I know the code works. BUT my problem is getting it to function within a different flash level. I'm about 99% sure it isn't working because the code is looking for my movieclips or the scroll function on the main timeline and not that of _level10, but I can't figure out where the code I need to change is. Its driving me crazy.Here's the code (from the above link). This goes into the main timeline, where "area1" is the movieclip you hover over to enable the mousewheel and "mc1" is the mc that is moved by the mousewheel:
Actionscript Code:
// IMPORT import FlashCommon.MouseControl;import mx.utils.Delegate;Stage.scaleMode = "noScale";// ADD SCROLL FOR AREAS - addScroll(id, mc, function)//// adding scroll
[code].....
I've a dynamic text field, populated from an external file,and with a scrollbar. I'd also like it to respond to mousewheel or trackpad scrolling. I have tried setting mouseWheelEnabled to true,but that doesn't seem to do the job (and seems to require clicking the field anyway). What else should I be looking at? Would I also need so listen for the mousewheel or scrolling event?
View 13 RepliesI'm working on a menu system in flash. If the mousewheel scrolls up each menu item shift up and visa versa for mouse wheel scrolling down.
The problem I have is there seems to be multiple "steps" going on.
In my mouse wheel handler I trace out the text "wheel" to test. If I mouse the mouse wheel just once "wheel" gets traced out twice. So for every one mouse wheel move my handler is being called twice and thus the scrolling of my menu always skips an item.
I am using the scroll in a swf file.. is there anyway to disable the scroll mousewheel on all browsers. I get it working for IE and FF but Webkit is not working:
$(document).ready(function() {
$("#ebook").hover(
function () {
document.onmousewheel = function(){
[Code]...
I'm trying to change event for mousewheel after leaving / entering flash content.
on flash - I want to scroll flash carousel
on web - I want to scroll web content
My problem is:
Different browsers give different "focus" for flash element and therefore not properly triggered in events: Event.MOUSE_LEAVE, MouseEvent.MOUSE_OVER. I have JS triggered for MOUSE_OVER and MOUSE_LEAVE but this seems not to work.
Also mouseWheel is attributed to the browser, not a flash object.
Firefox 4.x/5.0 - fires them properly, without clicking Chrome 12.0.742.112 - it fires after the grant of "focus" or click on the flash object, like IE 9.0.1
JS code:
function stopWheel(e){
if(!e){ e = window.event; } /* IE7, IE8, Chrome, Safari */
if(e.preventDefault) { e.preventDefault(); } /* Chrome, Safari, Firefox */
[Code]....
How to detect if mousewhell stopped rotating? I need to initiate the behavior when mousewheel stopped rotating.
View 2 RepliesI have made a Photogallery in Flash, which displays one image at a time using the tutorial on this website. Now I want the user to be able to cycle through the images using the Mouse Wheel (scroll up = display previous image, scroll down = next image).Heres what Ive got so far:
Code:
Mouse.addListener(mouseListener);
var mouseListener:Object = new Object();
[code]......
I am using the mousewheel mouse event and keyboard keys to perform certain actions. But how can i check when the user has stopped using either the mouseWheel or keyboard?
View 2 Repliesshow me an example of a horizontal mouse scrolling of a movieclip using the mousewheel?I have code that makes content scroll vertically and i have changed it to be horizontal. The scrollbar works but the mousewheel listener does not. so far it only moves one direction. It seems the delta property only works vertically.
private function mouseWheelListener(event:MouseEvent):void
{
trace(event.delta);[code].....
In Firefox 3, all the mouseWheel events in my haXe/Flash app are firing twice. This only seems to happen in the Windows version of Firefox; it doesn't happen in IE or Opera, and it doesn't happen in Linux.
View 2 RepliesI'm using SWFWheel to get the mousewheel events in actionscript 3, and I have a small flash window amongst a full html page that needs a scrollbar. The flash scrolls properly, but the whole HTML page scrolls with it. How can I disable scroll to html when over the flash?
View 2 RepliesOk I have implemented a zoom feature where you can zoom in/out by scrolling the mouse wheel...in the standard view, if the mouse is over the exhibitor list on the left, the map is not supposed to zoom when the mouse wheel is scrolled, but the list does scroll...this works fine as it should...when you switch to full screen view...when you have the exhibitor tab open, the mouse wheel scroll is only supposed to control the list component and not scroll the main map...this works fine locally from the flash workspace....however once I put it on the server...when the exhibitor tab is open...and you scroll the mouse on the list, the map zooms in and the list scrolls...this is crap and it shouldnt be happening...why does it occur online but not locally? here is the code...
[Code]....
Here is my code in its entirety. It won't trace when I Test Movie, but when I debug, it works fine.
import flash.events.*;
function scrollWheelHandler(e:MouseEvent){
trace(e.delta);
}
stage.addEventListener(MouseEvent.MOUSE_WHEEL, scrollWheelHandler);
I hate flash. This is in a new project btw. wtf is going on?
I have a full screen flex application and I want the user to be able to scroll using browser scrollbars. I don't need mousewheel in the flex application and flex appears to block mousewheel events within itself. So mousewheel events do nothing.
View 2 RepliesI'm building a web app to design and animate simple 3d scenes using the Away3D library, but the design of the interface itself is built around a scrolling menu which takes up the whole height of the screen.
The problem is, on OSX browsers have a silly quirk where if the page is scrolled when it has already gone as far as it can, the page can be dragged slightly further, revealing a brushed metal background. This looks nice and whatnot, but it pretty much ruins scrolling in a swf object. I use flash builder and export to safari, which is just about useable, if pretty annoying (especially with a mac touchpad, which can give a much higher scroll delta than a mousewheel can), but when I open my app in firefox/chrome the same effect happens, and causes the app and browser to slow down drastically.
I've found code which uses ExternalInterface to stop the swf sending mouse events to the page, but they all seem to disable detection in the swf as well, and I can't find anything else which help. If anyone knows of a solution you'll be saving me from throwing a few months' work away for what seems like a suspiciously unnecessary drawback to Flash on OSX!
I'm trying to listen to the mouseWheel event when a user hovers an object and scroll the mouse wheel. My problem is that the event only dispatches when the object with the listener has been clicked.
After the object (or the stage) has been clicked the mouseWheel event dispatches as expected.
How can I make it dispatch witchout clicking the stage/object? I've attached a simple sample file to show you what I mean. Hover the colored box and use the mouse wheel. Then click anywhere on the stage and hover the box again and use the mouse wheel.