Scrolling menu panel scrolls whole stage content, how to restrict EventListener to mouse.y 90 ?

hei folks,
the snippet attached works great, it scrolls (parallaxed) my
menu horizontally left to right, when I move my mouse horizontally
over the menu panel.
But if I klick on the menu buttons nested inside this menu
panel, they do appear, unfortunatly does the content also scrolls
horizontally if I move to the menu to select another Button :(
I am not able to modify this code-snippet from user kglad,
that it doesnt scroll the whole stage but the panel itself.
Can someone please give me a hint, on this menu I have spent
hours, bloody learn curve.
source of this code: user
kglad - thank you very much kglad btw.
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=15&catid=665&threadid =1324923&highlight_key=y&keyword1=scroll#4807043

thank you very much, even though the following problem
remains, I'm sure that there is just a minor misconception of mine:
this mc is horizontally scrolling a menu if the mousesY is 90
and 250 (its row of buttons is longer than the stage) the buttons
and their common timeline are nested inside the front_mc. if I go
sidewards over the menu and its scrolling left/right & I hit a
button the content is drawn, but when I head back to the menu and
it's scrolling, so does the drawn content analogue to the menu
(synched).
I must have organized it wrong.
front_mc.addEventListener(MouseEvent.MOUSE_MOVE,f);
var t:Timer=new Timer(30,0);
t.addEventListener(TimerEvent.TIMER,moveF);
function f(e:MouseEvent) {
if(root.mouseY > 90 && root.mouseY < 250) {
t.start(); }
else {
t.stop();
var speed:Number = .9;
function moveF(e:TimerEvent) {
front_mc.x
=speed*front_mc.x+(1-speed)*(stage.stageWidth-front_mc.width)*root.mouseX/stage.stageWidt h;
back_mc.x =
speed*back_mc.x+(1-speed)*(stage.stageWidth-back_mc.width)*root.mouseX/stage.stageWidth;
if (Math.abs(front_mc.x-
(stage.stageWidth-front_mc.width)*root.mouseX/stage.stageWidth)<1
Math.abs(back_mc.x-(stage.stageWidth-back_mc.width)*root.mouseX/stage.stageWidth)<1)
front_mc.x =
(stage.stageWidth-front_mc.width)*root.mouseX/stage.stageWidth;
back_mc.x =
(stage.stageWidth-back_mc.width)*root.mouseX/stage.stageWidth;
t.stop();
e.updateAfterEvent();

Similar Messages

  • How do I create a scrolling menu?

    I have a very long list of items to be put in a sub menu. I'd like the menu to have the option to scroll. Any ideas or creative solutions on how to build this? Here is a website that has a scrolling menu.
    http://www.faustltd.com/#/work/featured/katrin-schnabl/look-book
    I know that I can insert a HTML scrolling textbox but the standard scrollbar is very outdated looking and not very designer friendly when I'm having to link each item to a page or slide.
    Another scrolling menu option is a popup menu that scrolls like the attached screen shot.
    I'm open to creative solutions! Much thanks!

    In my opinion depending on what content you have for your menu you may be best off using the tooltip widget where you can make the drop menu as large or small as you need.
    You can take a look at the way Muse Grid did it this widget ... I think it would work quite well for almost any situation.
    http://www.musegrid.com/adobe-muse-widgets/menu-pack-one

  • I need to restore my 3Gs to a previous date not reported on the scroll menu : how can I do it ?

    I need to restore my iPhone 3GS to e previous date than that reported on the scroll menu : how can i do that ?
    I lost all my contacts because , due to a my mistake , I sincronized iPhone with the empty Outlook inside of my Windows cmptr .
    Is there any chance available ?
    Thanks : db

    No.
    If there is no backup available for that date, then there is nothing you can do.
    Your contacts should be on your computer in whatver contact program you use.

  • When I select a local adjustment, how do I make the new adjustment panel scroll with the default panels

    In lightroom, in the Develop module. When I select a local adjustment for example the brush tool or the gradient tool, the adjustment panel for the particular tool comes up in the sidebar where I can make adjustments to these tools (shown in figure below).
    Now my question is with this adjustment panel, it seems to be overlaying on top of the other default adjustments (e.g. the "Basic panel" - the exposure, contrast etc.) and when I scroll down on the other adjustments, the brush tool or the gradient tool adjustment panel is always on top and does not scroll with the default adjustments.
    I would like to change the setting of this so that the adjustment panel is part of the other default adjustments in the develop module and scrolls with them,
    I know this is possible because I've seen videos online where this is the case and my lightroom on another machine does this.
    Would anyone know how would I change the setting for this?

    It seems to depend on the actual size of the Lightroom window. Just messing around with both LRCC and LR5 on my MBP 15" retina, with a 1920 x 1200 external monitor, and both Lightroom versions will happily scroll the Adjustments panel as well as the others, but only if the size (i.e. height) of the Lightroom window is below a certain level. So on the retina screen, when the display is set to "Best for Retina", the adjustments panel scrolls with the others. But if I change to the native 2880 screen resolution, and expand the LR window to fit, then the adjustments panel does not scroll.
    Similarly if I move LR to the external monitor, same thing, i.e. adjustments panel does NOT scroll when the LR window in maximised, but it does scroll when I lower the height of the LR window (seems to be round about the 1600 pixel mark)
    It's the same using LR5, and the same on the Windows platform. I suspect it's somehow based on the height of the adjustments panel in relation to the overall height of the LR window, i.e. the adjustments panel does not scroll when there's sufficient overall space in the right-hand panel to allow sight of the one or more of the other tools below. 

  • Help with a scrolling flash panel

    Hello, Ive used the excellent tutorial to create a scrolling thumb panel (http://library.creativecow.net/articles/brimelow_lee/scrolling_thumbnail_panel/video-tutor ial.php)
    It works brilliantly and I have movie thumbs linking to a flash player. It all works fine, what Im needing help with is to change the scrolling.
    At current it scrolls up and down according to where I have set the 'line', I would like it to scroll up and down near the top and the bottom, rather than all the time (effectively creating a dead zone in the middle). I cant figure out how to change the code to get this to behave as required.
    Please Help!
    Below is the code used:
    panel.onRollOver = panelOver;
    function panelOver() {
    this.onEnterFrame = scrollPanel;
    delete this.onRollOver;
    var b = stroke.getBounds(_root);
    function scrollPanel() {
    if(_ymouseb.yMax || _xmouseb.xMax) {
    this.onRollOver = panelOver;
    delete this.onEnterFrame;
    if(panel._y >= 278) {   //FIRST BUTTON 'Y' POSITION
    panel._y = 278;
    if(panel._y <= -177) { //CHANGE '229' TO THE 'Y' POSITION OF THE LAST BUTTON IN THE 'PANEL' MOVIE, POSITIONED VISIBLE WITHIN THE BOARDERS.
    panel._y = -177;
    var ydist = _ymouse - 251; //POSITION ON STAGE OF UP/DOWN SCROLLING 'LINE'
    panel._y += -ydist / 150;   //SPEED OF SCROLLING (LOWER = HIGHER)

    use:
    panel.onRollOver = panelOver;
    function panelOver() {
    this.onEnterFrame = scrollPanel;
    delete this.onRollOver;
    var b = stroke.getBounds(_root);
    function scrollPanel() {
    if(_ymouseb.yMax || _xmouseb.xMax) {
    this.onRollOver = panelOver;
    delete this.onEnterFrame;
    if(panel._y >= 278) {   //FIRST BUTTON 'Y' POSITION
    panel._y = 278;
    if(panel._y <= -177) { //CHANGE '229' TO THE 'Y' POSITION OF THE LAST BUTTON IN THE 'PANEL' MOVIE, POSITIONED VISIBLE WITHIN THE BOARDERS.
    panel._y = -177;
    var ydist = _ymouse - 251; //POSITION ON STAGE OF UP/DOWN SCROLLING 'LINE'
    if(_ymouse>lowerY || _ymouse<upperY){
    if((_ymouse>lowerY){
    ydist=_ymouse-lowerY;  // define lowerY
    } else {
    ydist=_ymouse-upperY;  // define upperY
    } else {
    ydist=0;
    panel._y += -ydist / 150;   //SPEED OF SCROLLING (LOWER = HIGHER)

  • Help With Scrolling Menu / Button Rollovers

    First thank you to anyone who can answer and help with this
    question.
    http://paragon.sortismarketing.com
    - at this link I have created a site with a simple scrolling menu.
    Now what I want to happen is when you rollOver the buttons on the
    scrolling menu they get larger and then smaller again after you
    roll off them.
    I know how to do this with tweening in a non moving
    environment, by making them a movie clip instead of button. But for
    some reason when I did this in this case it screwed the menu all up
    and made it go crazy. Is there a way to do this with action script
    that isn't going to screw up the underlying code for the
    scrolling?

    You can use the below code also. As your mouse pointer goes
    over the down, it will scroll down.
    on(rollOver){
    scrolltext.scroll -= 1;

  • Scrolling menu with indpendent static text

    I was hoping someone would be able to help me, im not very
    experienced, but i learn pretty quickly.
    This
    is a screenshot of my menu, it is a horizontal scrolling menu. Upon
    rollover, the icons glow red. I copied the actionscript from
    something i found online.
    I need static text to appear in the bottom section when each
    icon is selected, thus labeling the icon. I've tried different
    things, but each time the text would move horizontally as the icons
    do. I need the text to exsist independently from the menu, but i
    have no idea how to do this. Any help would be greatly appreciated.
    I can provide the FLA file if needed.
    this is the action script i have placed on the menu, i dont
    know if it will help
    xm = 0;
    //function to set the xpos of the movieclip
    function xpos(bar_length,mul)
    hpos = 0;
    scroll_length = 490;
    incr = bar_length/scroll_length;
    xm = _xmouse;
    if(_xmouse <= 10){xm = 10;}
    if(_xmouse >= 400){xm = 400;}
    scroll_x = hpos - xm;
    scroll_x = scroll_x * mul;
    x_pos = scroll_x * incr;
    x_pos = x_pos + hpos;
    return x_pos;
    _root.onEnterFrame = function ()
    // call function xpos
    x_pos = xpos(700,.20);
    with (bar)
    _x += (x_pos - _x)*.4;
    // call function xpos
    x_pos = xpos(950,.75);
    with (menu)
    _x += (x_pos - _x)*.4;
    thanks it advance

    you will need to create a 'dynamic' text field in the
    position that you want there, and then assign text to the field on
    rollOver of the button clip. You can control the text assignment
    from within the onRollOver and onRollOut handlers. Something like
    this from the main timeline:

  • Scrolling menu with independent static text

    I was hoping someone would be able to help me, im not very
    experienced, but i learn pretty quickly.
    This
    is a screenshot of my menu, it is a horizontal scrolling menu. Upon
    rollover, the icons glow red. I copied the actionscript from
    something i found online.
    I need static text to appear in the bottom section when each
    icon is selected, thus labeling the icon. I've tried different
    things, but each time the text would move horizontally as the icons
    do. I need the text to exsist independently from the menu, but i
    have no idea how to do this. Any help would be greatly appreciated.
    I can provide the FLA file if needed.
    this is the action script i have placed on the menu, i dont
    know if it will help
    xm = 0;
    //function to set the xpos of the movieclip
    function xpos(bar_length,mul)
    hpos = 0;
    scroll_length = 490;
    incr = bar_length/scroll_length;
    xm = _xmouse;
    if(_xmouse <= 10){xm = 10;}
    if(_xmouse >= 400){xm = 400;}
    scroll_x = hpos - xm;
    scroll_x = scroll_x * mul;
    x_pos = scroll_x * incr;
    x_pos = x_pos + hpos;
    return x_pos;
    _root.onEnterFrame = function ()
    // call function xpos
    x_pos = xpos(700,.20);
    with (bar)
    _x += (x_pos - _x)*.4;
    // call function xpos
    x_pos = xpos(950,.75);
    with (menu)
    _x += (x_pos - _x)*.4;
    thanks in advance

    you will need to create a 'dynamic' text field in the
    position that you want there, and then assign text to the field on
    rollOver of the button clip. You can control the text assignment
    from within the onRollOver and onRollOut handlers. Something like
    this from the main timeline:

  • Nokia N8 with Belle : where is the scroll menu to ...

    It may sound like a dumb question but after the troublesome update to Belle ( it deleted many apps from my phone, and also my phonebook and mixed up things here and there), I am not able anymore to find the scroll menu where you can see the open apps (so that you can close them too). Where is it?
    Solved!
    Go to Solution.

    What is your product code?  Also you can visit nokia site and see the availability for your product code. if it is a swap phone, you may have to take it to Nokia Care to get it updated.
    thopstar wrote:
    helo people how did you upgrade to belle i cannot and yes i have updated my pc suite to the new version 3.3 but the phones update doesnt upload the belle software it says my phone is up to date. im using n8 by the way
     MODERATORS NOTE: Links/References to illegal software has been removed. Discussion of illegal third party software is not allowed on the forums as it could potentially damage Nokia devices and void any existing warranty. Please do not discuss or distribute illegal software on the official Nokia forums.
    If you like the above or it solves the problem, do not forget to click on the star/Kudos :-)

  • I loaded OS X Lion , changed 2 finger scrolling, i want to revert scrolling back to scrolling down is movement towards me, not moving my 2 fingers away from me, I did this by accident , how do i change this 2 finger scroll movement back to original

    I loaded OS X Lion ,  I changed the 2 finger scrolling once OS X Lion was loaded to the movement of moving your 2 fingers towards the screen to move screen down  , i want to revert the moving of my screen moving down by scrolling down as the movement towards me , as original when I first received my MAC, not moving my 2 fingers towards the screen , I did this by accident , how do i change this 2 finger scroll movement back to original
    in other words - scroll towards me moves screen down
    scroll away from me or towards screen moves screen up. this is what I want
    now its the opposite
    scroll towards me screen screen moves up
    scroll towards screen makes screen gone down
    how do I fix this mistake i did when I loaded OS X Lion, it asked me to move my 2 fingers on mouse pad, I just moved it towards the screen not knowing this was going to change the scrolling to the opposite of how it scrolled when I first got my MAC, please help I prefer the original 2 finger scroll being towards me is screen moving down, HELP

    Apple menu > System Preferences > Trackpad > Scrolling & Zoom > Scroll direction: natural -- uncheck.

  • Front panel scroll bars are missing

    Hi
    Can somebady tell me how to get my front panel scroll bars back. Block diagram is showing them but front panel is not. i can probably open another vi and copy and paste my application. Thanks

    suni wrote:
    Can somebady tell me how to get my front panel scroll bars back. Block diagram is showing them but front panel is not. i can probably open another vi and copy and paste my application. Thanks
    What is your LabVIEW version?
    All the above responses only apply if your front panel does NOT contain splitter bars. Once you have splitter bars, things get a bit more complicated and you can easily create a situation where the scroll bars are also off in edit mode and the VI properties cannot get them back directly.
    What you need to do is right-click in the splitter bar and select e.g. right pane (or whatever) as follows:
    Message Edited by altenbach on 09-17-2008 03:56 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    recoverScrollers.png ‏17 KB

  • Rotating Menu/Panels. How to stop them onRelease?

    Hi all,
    I got this script from a tutorial site (
    http://www.actionscript.org/showMovie.php?id=1284).
    It's a 3D rotating menu/panels, reacting to mouse movement. On
    mouse click, it will expand to a certain size, but I can't stop the
    rotation. How can I stop the rotation with the specified panel
    facing front when mouse release, and return to rotating and its
    original size upon second mouse click??
    And, I notice it's a little buggy, the panel shink to a size
    smaller than original size when you do a quick click while it's
    still expanding. :S
    I don't know how I can attach the codes here because all the
    codes are all over the instance and frames. Perhaps you can check
    out the original tutorial
    http://www.actionscript.org/showMovie.php?id=1284
    Many thanks!! I really appreciated it!

    Not sure if it helps, here are the codes from the FLA file:
    this._visible = false;
    var numrotos = 3;
    for (n = 0; n < numrotos; n++){
    newroto = "roto" + String(n);
    this.attachMovie("roto", newroto, n + 1);
    this[newroto].theta = n * 360 / numrotos;
    this[newroto].panel = 31;
    this[newroto].radius = 100;
    this[newroto].contents.gotoAndStop(n + 1);
    } // end of for
    this.title.swapDepths(100);
    if (_root._ymouse < 120 || _root._ymouse > 280) {
    speed = speed * 0.950000;
    } else {
    speed = -_xmouse / 50;
    this._visible = true;
    on (press)
    if (out)
    _parent.pressv = -2;
    out = false;
    else
    _parent.pressv = 2;
    out = true;
    } // end if
    if (pressv != 0)
    this.panel = this.panel + pressv;
    pressv = pressv * 0.95;
    if (pressv < 0.200000 && pressv > -0.200000)
    pressv = 0;
    } // end if
    } // end if
    theta = theta + _parent.speed;
    xbit = Math.sin(0.017453 * theta);
    ybit = Math.cos(0.017453 * theta);
    this._xscale = ybit * this.panel;
    this._x = xbit * this.radius;
    this._alpha = 30 + (ybit + 1) * 50;
    this._yscale = this.panel + (ybit + 1) * 3;
    stack = Math.round((ybit + 1) * radius * 2);
    if (stack == 100)
    stack = 101;
    } // end if
    this.swapDepths(stack);

  • How to Print the whole view content from a button on the View Layout

    Dear All,
    Good Morning All
    I am New to WebDynPro.Solution needed Urgently
    How to take print whole view content(lay out) in
    webdynpro application.i.e whatever it may be tablecontent or label or inputfield .
    Could you send the coded part briefly step by step from the beginning itself i.e
    i put the button in the view lay out below the printed parts(label or inputfield) name like show preview .
    Now my Question is what should i write in show preview function to take the print in label fields in the webdynpro view lay out
    B'cos i am new to webdynpro.Help me
    Thx in advance
    Regards
    Dhinakar

    Web Dynpro by default does not provide the option of printing the view content.
    However still you have a round about way of doing it. Create the an html page similar to the Web Dynpro page. Store the code into a String variable.
    String html="<html> ....<scripts>window.print()</scripts></html>";
    bytes[] source=html.getBytes();
    try{
    byte[] b=new byte[1];
    IWDCachedWebResource res=WDWebResource.getWebResource(b,WDWebResourceType.HTML);
    String url=res.getURL();
    }catch (WDURLException e) {
              // TODO: handle exception
    Now open the url in a new window and that would print the content of the html page.
    Regards,
    Noufal

  • How to Print the whole view content  from a button on the view

    Dear All,
    Good Morning All
    I am New to WebDynPro.Solution  needed Urgently
    How to take print whole view content(lay out) in
    webdynpro application.i.e whatever it may be tablecontent or label or inputfield .
    Could you  send the coded part briefly  step by step from the beginning itself i.e
    i put the button in the view lay out below the printed parts(label or inputfield) name like show preview .
    Now my Question is what should i write in show preview function to take the print in label fields in the webdynpro view lay out
    B'cos i am new to webdynpro.Help me
    Thx in advance
    Regards
    Dhinakar

    Web Dynpro by default does not provide the option of printing the view content.
    However still you have a round about way of doing it. Create the an html page similar to the Web Dynpro page. Store the code into a String variable.
    String html="<html> ....<scripts>window.print()</scripts></html>";
    bytes[] source=html.getBytes();
    try{
    byte[] b=new byte[1];
    IWDCachedWebResource res=WDWebResource.getWebResource(b,WDWebResourceType.HTML);
    String url=res.getURL();
    }catch (WDURLException e) {
              // TODO: handle exception
    Now open the url in a new window and that would print the content of the html page.
    Regards,
    Noufal

  • All web pages appear with a blinking cursor like in a "word document". i can't scroll down or up using the buttons of my key board. i have to pull down the scroll bar. something in settings has changed. how to correct it??

    all web pages appear with a blinking cursor like in a "word document". i can't scroll down or up using the buttons of my key board. i have to pull down the scroll bar. something in settings has changed. how to correct it??
    == This happened ==
    Just once or twice
    == 2 days ago.

    See also this article about caret browsing: http://kb.mozillazine.org/Scrolling_with_arrow_keys_no_longer_works
    In Firefox 3.6 and later versions you can disable the F7 shortcut that toggles caret browsing by setting the pref accessibility.browsewithcaret_shortcut.enabled to false.
    To open the ''about:config'' page, type '''about:config''' in the location (address) bar and press the Enter key, just like you type the url of a website to open a website.
    If you see a warning then you can confirm that you want to access that page.

Maybe you are looking for

  • Alv oops raising error message

    Hi, iam displaying output using alv oops. one of the char field is editable i want to give only numeric values only.i cannot change datatype to numc for that field.if user enters char value(like abc) and click on any button in alv output i want to ra

  • I sign in under my account and when i go to update something it pops up as someone else's account how do i fix that.?

    I got to the ap store to update my aps and it comes up as someone elses username , but when i go to the itunes store its under my account how do i fix this?

  • Material Type LEIH - LEER

    Dear All, I have a empty drum scenario, which goes with finish material, finish material is stock able and valuated, but empty material is only stock able having no value. System explode the BOM at sales order level. With main and sub material, sub m

  • CC that is not showing up as included in my BK

    Hello all. I have a Chase CC that I'm pretty sure was included in my BK, but doesn't show that on my credit reports.  It is showing Purchased by another lender or Charged off account.  It's also showing many late pays when my attorney told me to stop

  • Items style

    How can i do to make a border to an item? Like portlets border! Thank you, Gabriel