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




MX2004 ScrollPane: How Do You Disable The Mousewheel?



Anyone know how to disable the use of the mousewheel with a scrollPane? Right now it scrolls everything way out of the pane and doesn't stop



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 03-29-2005, 05:54 PM


View Complete Forum Thread with Replies

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

MX2004 ScrollPane: How Do You Disable The Mousewheel?
Anyone know how to disable the use of the mousewheel with a scrollPane? Right now it scrolls everything way out of the pane and doesn't stop

ScrollPane MouseWheel Problem
Ok this is the problem, I've got a scrollPane on stage with a mc in that's bigger than the Pane. This means you'll get scrollbars and it is possible to scroll with the middle mouse button, but only AFTER you've clicked in (on) the scrollPane.

A simple scrollPane.setFocus(); doesn't do the trick.

Any ideas ?

Scrolling A Scrollpane Component With Mousewheel
hi guys, can anyone tell me how to do this? i have a scrollpane component that scroll a long (vertical) movieclip. I want to be able to scroll the content with the mousewheel, but no idea if this is even possible...

thanks!

[mx2004] Disable And Enable Button On Layer 0 When New MC Loaded
Ok, so I have a bunch of thumbnail pics on the stage of my MC with button instances on top of them. I have a piece of code which loads a larger version of each into a new layer. This works fine, except for the fact that the thumbnail buttons are still active behind the large version. This makes users feel that there are Easter eggs available.

Then, I added, "_root.photo1_btn.enabled = false;" which I put in for each button with its specific instance name. This works great to turn all the buttons "off".

I tried, "photoBack_btn.onRelease = function() {
_root.photo1_btn.enabled = true;
}"

to turn the buttons back on from a button on the loaded MC, but this didn't work. I tried "this." and "_parent." in place of "photoBack_btn", but nothing worked.

Can anyone help? Please...

[mx2004] Disable And Enable Button On Layer 0 When New MC Loaded
Ok, so I have a bunch of thumbnail pics on the stage of my MC with button instances on top of them. I have a piece of code which loads a larger version of each into a new layer. This works fine, except for the fact that the thumbnail buttons are still active behind the large version. This makes users feel that there are Easter eggs available.

Then, I added, "_root.photo1_btn.enabled = false;" which I put in for each button with its specific instance name. This works great to turn all the buttons "off".

I tried, "photoBack_btn.onRelease = function() {
_root.photo1_btn.enabled = true;
}"

to turn the buttons back on from a button on the loaded MC, but this didn't work. I tried "this." and "_parent." in place of "photoBack_btn", but nothing worked.

Can anyone help? Please...

New Scrollpane In MX2004 - Where Has Setscrollcontent Gone :(
Lo Gang

As in the title looking at the helpfiles for the new Flash MX2004 there is no set scrollcontent any more to attach our movieclips with. Looking at the helpfiles we now have ContentPath which looks as though it does the same thing however according to the helpfiles you cannot attach something other than a img from the net, another swf file or an item from the library into the scrollpane.

If we are pulling stuff in from a database we used to create an empty movie clip and then use setscrollcontent to put that into the scrollpane. What can we do now? Surely there must be a method for this but at the moment I cant see it/find it in the helpfiles.

Any help would be appreciated

Mx2004 Scrollpane Pain In The ****
Hi guys,
I have started looking into using AS 2
One of the main reasons for moving onto AS 2 is the new scrollBar, well snazzy.

So ok i start off with a section of my site
News blogg:
Load data from database and attachMovie to populate
code:
for (count=0; count<archiveCount; count++) {
// Attach a news MC to the canvas
holder.attachMovie("bloggs", "news"+count, count);
// Set Y positions for t MC
holder["news"+count]._y = nextY;
// Set details
holder["news"+count].newsTitle = this["news"+count+"newsTitle"];
holder["news"+count].newsViews = this["news"+count+"newsViews"];
holder["news"+count].newsID = this["news"+count+"newsID"];
// Set next MC to be put just below this one on canvas
nextY += Math.ceil(holder["news"+count]._height-2);
}
if (count == archiveCount) {
gotoAndStop(10);
}

With the mx scollpane i would have
code:
thePane.setScrollContent(holder);

How do i attach "holder" to the scrollpane 2004

cheers
paul
P.S When i publish the movie the content is loaded into holder but the scrollpane just has na outlined box round the holder
I am publishing player 7 AS 2

[MX2004] SetStyle And The Scrollpane
In the past, I have been able to modify the scrollpane component with some AS in a frame of a movieclip that has the component inside it anywhere.

For this old project, I used the following in the top layer, first frame:


Quote:




scroller.setStyle("themeColor", "0x0089A6");
scroller.setStyle("borderStyle", "none");
scroller.setStyle("scrollTrack","none");
scroller.setStyle("arrow","0xFFFFFF");
scroller.setStyle("background","0xFFFFFF");
scroller.setStyle("backgroundDisabled","0xFFFFFF") ;
scroller.setStyle("foregroundDisabled","0xFFFFFF") ;
scroller.setStyle("face","0x0089A6");
scroller.setStyle("highlight3D","0xFFFFFF");
scroller.setStyle("highlight","0xFFFFFF");
scroller.setStyle("shadow","0xFFFFFF");
scroller.setStyle("darkshadow","0xFFFFFF");
scroller.setStyle("symbolColor","0x0089A6");
scroller.setStyle("focusRectInner","0x0089A6");
scroller.setStyle("focusRectOuter","0x0089A6");
scroller.border_mc._height=0
scroller.border_mc._width=0




the instance name of the scrollpane was titled scroller.

I go to do this with a new project, and it's not changing any of it. Is there something I'm missing? The scrollpane instance is named 'scroller' (case sensitive and all). Really, everything is reflecting this old file. Actionscript 2.0, flashplayer 7 compatibility....

brainfarts.
any help is appreciated. I'm losing sleep.

MX2004, Scrollpane... Pain
hi all,

i'm writing up this page in MX2004 Pro, and i ahve this issue regarding my scrollpane component.

it seems 2 our of 10 users see some weird bug, but i can't reproduce it. i ahve attached a screenshot as well.

when the page loads up, there is a chella versus botox comparison. there is a scrollbox there as te content is longer then the area. for some people, it shows up as outside ofh te box... when they click to another section, then come back, it's fixed!

driving me nuts!!

here is the page - http://www.chellaprofessional.com/flash/

here is what it loosk like when it's broke for those who can't see the problem:

MX2004 ScrollPane Works In A New Movie, But Not In Another
I have a job due in about 12 hours, and one of the revisions changes involved changing the content to have a scrollbar + single column. Because the content's a mix of clips / buttons / text I figured I'd use a ScrollPane.

The ScrollPane is working fine in a new movie, doing just what it's supposed to do. In the new movie I have an instance of the scrollpane sitting on the stage, and its contentPath is set to a shared movieclip "About". It successfully displays it all nice and scrollable.

In the real movie though I get absolutely nothing from it. It just sits there with a big stupid white box regardless of what I do.

I've actually pasted the working example from my new movie into the real movie, and it still just does nothing. It won't display anything.

I've tried physically having the scrollpane on the movie, and also attachMovie'ing it. I've tried setting the contentPath in the properties both with as and in the properties inspector.

I've also tried setting the contentPath to a swf, a jpg and a shared clip, each with no success in the real movie, and complete success in the empty new movie.

Anyone got suggestions as to why it works fine in a new movie, but doesn't work in the movie I need it to work in?

[MX2004] ScrollPane And Preloader Problem
Hello,

I'm working on this site where a ScrollPane is used to build a menu. It used to work fine until I added a very basic preloader to the movie (bytes_loaded/bytes_total style). Now, the first time the movie loads only a blank box appears in the upper left corner where the menu should be. After reload, everything works fine.

Here's the link to the site, select any language and go to "Portfolio"

http://www.reyalfu.com/

This is the code to build the menu:

// << = PORTFOLIO MENUS START = >>

menuPort = new XML();
menuPort.ignoreWhite = true;
menuPort.onLoad = function() {
var rootNode = this.firstChild;
var allCats:Array = rootNode.childNodes;

import mx.containers.ScrollPane;

createClassObject(ScrollPane, "menu_sp", getNextHighestDepth());
with (menu_sp) {
move(40, 44);
setSize(224,98);
hScrollPolicy = "off";
vScrollPolicy = "on";
contentPath = "menuWrap";
}

// IN NESTED 1: SELECT CAT MENU

var i:Number = 0;
var obj:Object = new Object();
obj.interval = function() {
i++;

menu_sp.content.attachMovie("MenuCBtn", "CBtn"+i, i);
menu_sp.content["CBtn"+i]._y = menu_sp.content["CBtn" + (i-1)]._y + menu_sp.content["CBtn" + (i-1)]._height + 2;
menu_sp.content["CBtn"+i].createTextField("nameCats", getNextHighestDepth(), 10, 4, 150, 20);
// "menuCats" is locaded in the included textFormats.as file
menu_sp.content["CBtn"+i].nameCats.setNewTextFormat(menuCats);
menu_sp.content["CBtn"+i].nameCats.text = allCats[i-1].attributes.id;

menu_sp.invalidate(); // optional?: menu_sp.redraw(true);

if (i>allCats.length-1) {
clearInterval(m);
}

var anyCBtn:Array = menu_sp.content["CBtn"+i];
var images:Array = allCats[i-1].childNodes;
var thisCat:XMLNode = allCats[i-1];


(...)

As I said, it works fine withouth the preloader. The problem with the blank box appears when I put this code in the frame 5 (and set movie to export classes in frame 5), with the basic preloader in the first 2 frames:

Frame 1:

bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadBar._width = getPercent*100;
this.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
this.gotoAndStop(5);
}

Frame 2:

gotoAndPlay(1);



Any ideas?

MX2004/8 Preloader Doesn't Work In Scrollpane HELP Please
A seemingly simple one, yet no one seems to have any input.
Simple thing...
While loading a swf with a preloader into a crollpane, the preloader doesn't play until the entire movie is loaded to about 95%, thus making people stare at a blank scrollpane until the whole swf loads.

If I access the swf directly from the server, the preloader works as expected
WHY????

Making Scrollpane For A Page In Flash Mx2004
I want to make a scrollpane in Flash MX 2004, but the browser's scrollpane is still active, I dont want it to be active how do i do that?

Attach Dynamic Movieclip To Scrollpane MX2004
Hi,
How do you attach multiple movie clip to a scrollpane.
I did the following but it doesn't seem to work

1. create an empty movieclip
2. attached multiple movie clip from the library into the previously created empty movie clip
3. set the contenPath of the scrollpane to pint to the empty movie clip (from step 1)

OUTPUT.
movie clip will show up outside the scrollpane.

Did I do smething wrong ?

Thanks:-)

How Can Disable ScrollPane's Border?
sorry for this stupid question, but can anyone tell me how to disable this border around ScrollPane component?

I think I should use the
ScrollPane.setStyleProperty(styleProperty, value);
method, but I dont know the name of the border styleProperty...

is this even available?

Disable/Freze The Scrollpane Component
How can I freeze the scrollpane component so that user can no more drag in any direction?
Thanks

Scrollpane Scrolling When I Press Arrow Keys. How To Disable?
I've assigned keypress actions for the arrow keys. But using them also makes the scrollPain scroll, because often focus doesn't shift away from the scrollPain. Is there a way to prevent this? Thanks.

Dave

Scrollpane Scrolling When I Press Arrow Keys. How To Disable?
I've assigned keypress actions for the arrow keys. But using them also makes the scrollPain scroll, because often focus doesn't shift away from the scrollPain. Is there a way to prevent this? Thanks.

Dave

Aaggh ScrollPane Comp In MX2004 Flash Pro Is Not The Same As Flash MX.
Hello folks.

trying to get a scrollpane working in MX 2004 Pro.
In plain ol MX, you just drag a ScollPane component , enter the scroll content name and that's about it.

In MX2004 Pro, there is no Horizontal Scoll tag nor a Vertical Scroll Tag, in fact it has a loyt more parameters.
I did the same motions to create a scrollpane as mentioned above and all Iget is an empty box show up.

Please help, scoured the web for answers and no luck.

Thanks in advance.

Mousewheel
Yo buddys,
Iīve add the option onMouseWheel to my scroller.
But there are two thinks I donīt know to handle:
1. To make it scroll with the wheel I must click on the scrollbar/mc.
How can I make them scroll directly, by using the wheel without clicking on it ??
2. When I scroll, the scrollbar runs out of his region/the stage.
How can I control the region were he has to move/stop??

Here my script:

var mouseListener:Object = new Object();
mouseListener.onMouseWheel = function(delta) {
bar._y += delta/-10;
}
Mouse.addListener(mouseListener);

Mousewheel
Yo buddys,
Iīve add the option onMouseWheel to my scroller.
But there are two thinks I donīt know to handle:
1. To make it scroll with the wheel I must click on the scrollbar/mc.
How can I make them scroll directly, by using the wheel without clicking on it ??
2. When I scroll, the scrollbar runs out of his region/the stage.
How can I control the region were he has to move/stop??

Here my script:

var mouseListener:Object = new Object();
mouseListener.onMouseWheel = function(delta) {
bar._y += delta/-10;
}
Mouse.addListener(mouseListener);

Mousewheel On Mac OS X
I am aware that flash plugin does not support mouse wheel listeners on Mac OSX. I also found this really nice workaround:
http://blog.pixelbreaker.com/flash/as30-mousewheel-on-mac-os-x/
Unfortunately this needs SWFObject to play. I use SWFObject and everything seems to be okay. Then i set my movie to be 100% in browser width and height and it does not run (throws and error from the FullBrowserBG Class from noponies.com). Really weird stuff...

Anyone has a similar experience? Can you imagine a workaround? I really need FullBrowserBG for this site, but the client would also like mousewheel support in it (tileLists and textAreas).

I guess that's a really common issue, especially now that everyone has a mac

Mac & Mousewheel
So i made a flash game that uses mousewheel as part of command. It works on PC in both FF and IE but i found out it doesn't work on safari. Is it that mousewheel just doesn't work in flash player on MAC or what's the situation?

thanx

MouseWheel On Mac?
Does 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.

Cheers.

Mousewheel On A Mac?
Trying to get a swf with a mousewheel to work on a mac

ran across this but don't quite get how to implement it...

http://blog.pixelbreaker.com/2006/11...fmacmousewheel

thoughts? i get what he's saying, but don't get where he is coding "example"

Scrollign With Mousewheel
Is it possible to activate support for scroll wheels in flash movies?

Scrollbar/mousewheel
hi

I have some problems with the scrollbar component.
all works but you also have to be able to scroll with your mousewheel.

Can it be done only is flash??? or do you work with java??
cause I don't know anything about java.
And I'm also not a 'pro' in Flash
So if you have a solution, could you please say where I have to type the actions.

thx

PS I'm using FLASH MX

Slidebar With Mousewheel
How can you get text to scroll with the mousewheel using a flash text box and scrollbar? Is it a clipevent?

Help With Scrolling Mousewheel
Hi, i'm adjusting my gallery to work on mouse scroll and the following code allows me to scroll though it, however once i am at either the top or the bottom and continue to scroll it freezes up... the slider positions are stored in an array, and my uneducated guess is that as there is nowhere else to go it cannot do anything - the output window starts firing back 'undefined' instead of tracing the array positions back to me - hence my guess. Not sure how to fix it and now its driving me crazy - any help much appreciated.


Code:
var mouseListener = new Object();
mouseListener.onMouseWheel = function(delta) {
jumpTo(delta);
if (delta>0) {
_root.titleClip.sliderpos--;
_root.titleClip.jumpTo(_root.titleClip.sliderpos);
trace("upscroll");
}
if (delta<0) {
_root.titleClip.sliderpos++;
_root.titleClip.jumpTo(_root.titleClip.sliderpos);
trace("downscroll");
}
};
Mouse.addListener(mouseListener);

Scrolling With Mousewheel?
I have a dynamic textbox and a UIScrollbar and if the textbox is set to Selectable the mousewheel works to scroll fine.... if it's NOT set as selectable but it has a LINK inside of it (set as html box) then when i'm OVER the link i can scroll with the mouse scroll wheel....

was just wondering is there some sort of code or something to make it so that if you scroll the scrollbar will work? without having to have a link there or having the text selectable.

thanks,
Dan

Scrolling With Mousewheel
Hey does anybody know the as code to make my scrollbar, scrollable with the mousewheel???

MouseWheel Problem
Hi all, I have got this scrollbar script. I can't get my dragger to move within my bar when i use my mousewheel to scroll. pls help. and once it's done i can submit and share. thx in advance.



Actionscript:
//hide the hand cursor
bar.useHandCursor = dragger.useHandCursor=false;

space = 0;
friction = 1;
speed = 4;
y = dragger._y;
top = contentMain._y;
bottom = contentMain._y+contentMask._height-contentMain._height-space;

// Creating the listener object
var mouseListener:Object = new Object();
// Create onMouseWheel function
mouseListener.onMouseWheel = function(delta) {
dragger._y -= delta*2;
dragger.scrollEase();
}
// Registering the listener to the Mouse object
Mouse.addListener(mouseListener);

// Create dragger function
dragger.onPress = function() {
drag = true;
this.startDrag(false, this._x, this._parent.y, this._x, this._parent.y+this._parent.bar._height-this._height);
dragger.scrollEase();
}
dragger.onMouseUp = function() {
this.stopDrag();
drag = false;
}
moveDragger = function (d) {
if ((dragger._y>=y+bar._height-dragger._height && d == 1) || (dragger._y<=y && d == -1)) {
clearInterval(myInterval);
} else {
dragger._y += d;
dragger.scrollEase();
updateAfterEvent();
}
}

// Create scroll bar function
bar.onPress = function() {
drag = true;
if (this._parent._ymouse>this._y+this._height-this._parent.dragger._height) {
this._parent.dragger._y = this._parent._ymouse;
this._parent.dragger._y = this._y+this._height-this._parent.dragger._height;
} else {
this._parent.dragger._y = this._parent._ymouse;
}
dragger.scrollEase();
}
bar.onMouseUp = function() {
drag = false;
}

upbutton.onPress = function() {
myInterval = setInterval(moveDragger, 18, -1);
}
downbutton.onPress = function() {
myInterval = setInterval(moveDragger, 18, 1);
}
upbutton.onMouseUp = downbutton.onMouseUp=function () {
clearInterval(myInterval);
}

// Create scrollEase function
MovieClip.prototype.scrollEase = function() {
this.onEnterFrame = function() {
if (Math.abs(dy) == 0 && drag == false) {
delete this.onEnterFrame;
}
r = (this._y-y)/(bar._height-this._height);
dy = Math.round((((top-(top-bottom)*r)-contentMain._y)/speed)*friction);
contentMain._y += dy;
}
}

On Mousewheel Question?
Does anybody know if actionscript in mx has the capability to make a movie clip scrollable with the mosue wheel? Iv searched things and found code that pertains to 2004 script but nothing for mx...any help would be appreciated

Flash5 And Mousewheel?
is there a way to make flash5 acknowledge a mouse's scroll wheel?...for vertical scrolling text purposes?

Mousewheel Scroller
Hello!

I would like to find scroller that uses mouse wheel button and usual things (slider) that works not only for text but also for dynamic text, links, pictures and movies. I have one but the problem is it doesn't work in mozilla firefox.
In fact, sometimes it doesn't work at all!

thanks in advance!

MouseWheel Listener
I'm trying to detect the idleness of a mouseWheel function... and it isn't working. If anyone else has tried this another way and gotten it to work plz share

Code:
time_out = .2*100;
mouseListener.onMouseWheel = function(delta:Number) {
mouseScroll = getTimer();
if ((mouseScroll+time_out)<getTimer()) {
trace("stopped");
} else if ((mouseScroll+time_out)>getTimer()) {
if (delta>0) {
new Tween(mouse_scroll_mc, "_alpha", Strong.easeOut, mouse_scroll_mc._alpha, 100, 50);
mc._xscale += delta;
mc._yscale = mc._xscale;
_root._xmouse = mc._xscale/2;
_root._ymouse = _root._xmouse
}
}

Mousewheel On Scrollbar
i 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.

i checked the help function at flash actionscript but i can't get it to work does someone can help me?

kind regards Jos


ActionScript Code:
function scrollUpdate (){    var detailView = this._parent.detailView;        detailView.bodyTxt.autoSize = true;        if (detailView._height < Stage.height)    {        this._visible = false;    }    else    {        this._visible = true;    }    var pxls_cont = detailView._height - Stage.height;

Mousewheel In Firefox
Ok, I attached listener on Mouse and it doesn't work in Firefox... works fine in IE and standalone....

it goes something like this:

Code:
var mouseListener:Object = new Object();
mouseListener.onMouseWheel = function(delta) {
var delta;
if (delta>3) {
delta = 3;
}
if (delta<-3) {
delta = -3;
}
_root.speed += delta/2.5;
if (_root.speed>7) {
_root.speed = 7;
}
if (_root.speed<-7) {
_root.speed = -7;
}
};
//
Mouse.addListener(mouseListener);
I can't find anything on the net nor Kirupa forum... why it doesn't work in FF?
please help...

MouseWheel Height?
Hello everyone.

I got a problem with the following code:

Code:
var mouseListener:Object = new Object();
mouseListener.onMouseWheel = function(delta) {
XmlItems.content_txt._y += delta;
}
Mouse.addListener(mouseListener);
It works great although it doesn't stop when the text finishes,it just keep scrolling.
Any suggestions?

MouseWheel Event
Hi,
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.

Any tips?

Mousewheel Scroller
Hello!

I would like to find scroller that uses mouse wheel button and usual things (slider) that works not only for text but also for dynamic text, links, pictures and movies. I have one but the problem is it doesn't work in mozilla firefox.
In fact, sometimes it doesn't work at all!

thanks in advance!

Mozilla And Mousewheel
I made mousewheel available on my site, but it only works in IE i tried it in Mozilla and it doesn't work, my friend says also in firefox not working. Is there some way to make it work or it's just not available?


p.s.

i also suggest making a section specific for FLASH PLAYER questions

MouseWheel Question
Is there any way to make the mouse wheel to work in firefox when the window is set to opaque ( wmode = "opaque ". )?

Accelerated Mousewheel
Look at this http://www.nagaoka-id.ac.jp/gallery/gallery.html

I was able to make a movieclip scroll with that effect with mc tween (easeOutBack, proly needs a custom equation for accuracy) and the mousewheel.

But how would I achieve the acceleration? The faster you scroll, the faster it becomes. What I understand is a scrollup returns a negative delta, down = positive delta and this delta is determined by your control panel mouse settings.

So am I right to say if we want acceleration, we would have to calculate the total deltas produced by the mouse within a certain time.

If the person scrolls 5 times within 1 sec with a delta of 12. that would produce 60 deltas within 1 sec and we can derive some sort of speed based on this delta/time relation.

The problem is I don't know how. setInterval maybe? I hope this can open up a discussion. :lol:

MouseWheel Works On Mac...
So I was looking at the site of the day on the FWA (http://www.thefwa.com) and this site, http://onehour.jp/ has functionality to use the mouseWheel. which is fine, I know its possible. but it works on the Mac and everything I have read so far says it doesn't work on the Mac. Then I go to that site and it works.

Does anyone have any information on this or know how they are doing it? Is it a Flash Player 9 thing? I can't get it to work in the browser from my files? Thought I would post and see if anyone knew anything about it.

Mousewheel With Mc Tween
I have a 2 buttons that slides a movieclip left and right

Left
Code:

btn4.onPress = function() {
mainmenu_mc.tween("_x", mainmenu_mc._x-Stage.width, 1.5, "easeInOutExpo");
};
Right
Code:

btn5.onPress = function() {
mainmenu_mc.tween("_x", mainmenu_mc._x+Stage.width, 1.5, "easeInOutExpo");
};

How can I use the Mousewheel in place of button clicks?

Disable Right Click(how To Disable 'settings' Item?)
Hi all,
I am trying to disable the standard menu coming on right click.The codes like:
newMenu = new ContextMenu();
newMenu.hideBuiltInItems();
this.menu = newMenu;
It's working but still the 'settings' and 'debugger'(disabled) are coming.Can't we hide
whole the menu or disable the 'settings' item? Please help...

MouseWheel - Scroll Between The Limits
Hello,

I've made a movieclip which can be scrolled by the mouseWheel. The scrolling works, it's just when I try to set some boundaries, it all goes wrong:
I've set the limits but every time it reaches those limits, you just can't scroll anymore. So when the movie has an _y of 56 or 171 it stops and that's it.

Below you find the code, if you have any idea ... please let me know.


mouseListener = new Object();

mouseListener.onMouseWheel = function(delta) {
if (_root.inhoud._y >= 56 && _root.inhoud._y <= 171){ //inhoud = the movieclip to scroll
trace(_root.inhoud._y);
_root.inhoud._y += delta*7;
}
}

Mouse.addListener(mouseListener);


Thanks,

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