MouseOver Change Layers?

Greetings!
I have been tasked to create banner that has four mouseover areas. The main body of the banner--which includes hyperlinks--and the background of the entire banner must change as the user mouses over the four areas. See the diagrams at the following link (it is not working properly):
http://www.miklas.org/forum_questions/mouseover_question.htm
I attempted to complete this task as follows, but it really isn't behaving properly. I created a layer of buttons and text, and set the alpha levels to 0 for the "over" state of each button. I then created four separate layers containing the appropriate content. When the user mouses over a button on the left, the proper layer would be displayed. I planned to use Actionscript to accomplish this; pseudocode here:
IF button1.mouseover == true THEN { display layer1, hide layers 2, 3, and 4 }
IF button2.mouseover == true THEN { display layer2, hide layers 1, 3, and 4 }
IF button3.mouseover == true THEN { display layer3, hide layers 1, 2, and 4 }
IF button4.mouseover == true THEN { display layer4, hide layers 1, 2, and 3 }
The problem is that when the user mouses away, the content disappears. Once the user mouses over a mouseover area, I want the content on the right to stay viewable.
Is this the correct way to proceed? Any suggestions? I'm new to Flash, but not new to programming, so I may not be thinking about htis propoerly.
Thanks for your help!

you can't control layers with actionscript.  you'll need to convert each object in a layer you want to control into a movieclip.  you can then control the _visible properties of your movieclips.
you don't need to use an if-statement to check from mouse-overs.  assign your buttons instance names and use code similar to:
button1.onRollOver=function(){
// do whatever.  say:
mc._visible = true;
button1.onRollOut=function(){
mc._visible = false;

Similar Messages

  • I have added/embedded four videos on my website, but when I scroll down, the videos scroll in front of the top menu instead of behind as it should. I have tried changing layers, etc., and nothing works. Can you help?

    I have embedded 4 videos on my website. It is a single page, scrolling site. When I scroll down, the videos scroll in front of the top menu bar, instead of behind it. I have tried changing layers, etc., and nothing works. Please help.
    Thanks.
    Paul W. Norman

    Hi,
    Kindly create a new layer, via the Layers panel:
    Then, right click on the navigation bar, and choose Move to Layer > Layer 2
    Ensure that Layer 2 is on top of the other layers.
    Hope it helps,
    Sonam

  • Photoshop CC option-click-layer behavior change -- layers now flatten/disappear

    I used to option-click on layers all the time to do various tasks. Now, in Photoshop CC 2014.2.2 I can no longer option-click a layer to copy a layer effect, or apply a clipping mask. Instead, as soon as I click on a layer with the option key engaged, all layers disappear/flatten into one "background layer".
    What's changed? And how do I now copy layer effects from one layer to another? The documentation says "drag onto destination layer" but this merely moves the effect from one layer to another, does not copy it. Option-Dragging used to copy an effect, but now any use of the option key flattens all layers together.

    Ehh, that shouldn't happen. I just used that feature in Photoshop CC 2014 and it worked fine. Perhaps you should try a preference reset: Hold Cmd+Opt+Shift as you initiate Photoshop's startup. Select "yes" when asked if you would like to continue with reset.
    Benjamin

  • How to remove or change layers in Dreamweaver CS5 made in 2004

    Can somebody please explain to me how we can change the layers and remove the pictures from a website that was made with Dreamweaver 2004.
    Now we have CS5 and we don't know where we can find the tools to do this. I cannot find the layer ID.
    Please help!

    We had an old version of Dreamweaver (DW-MX) in which I have found the layer. It apears to be an image made in Photoshop.
    The way I solved the problem now is that I deleted the layer in DW-MX and made a new background image. I am no pro, just an amateur
    Anyway, thank you very much for your fast reply and the offer to help me out this problem.

  • FW CS5: Copy Page from one document to another without changing layers

    Hi,
    how can I copy a Page from one document to another without changing the layers?
    Drag-and-drop isn´t possible and by Copy-Paste all elements are placed in the same layer.
    Greetings,
    toho

    Use File > Import.
    Open the File, then navigate to the page you want to import
    Be sure to select Insert after current page, or FW will just import the content into the current page itself.

  • Can't select/change layers in main work area

    Been working with PSE11 for a few months.  Yesterday it developed a problem.  I can no longer click on the layer in the main work area but have to go to the layer panel to select it.  What do I need to do to change this back to where it works like it should?? 

    Something to check:
    With the tools panel showing in the bottom of the screen, select the selection tool (arrow). Then look in the bottom tool panel to see if the automatic selection of layers is checked.

  • Undo also changes layers and auto centering

    Hello I have a couple of questions that would really help my work flow if I can get them solved. Thank you in advance.
    1) The undo function also changes the layers
    Here's my issue. I have two layers (Layer 1 and Layer 2). I'm working on Layer 1 and then I click on Layer 2 and create a mark. I press ctrl+z to undo the mark but I also go back to Layer 1. I have to click on Layer 2 again. Is it possible for me to use undo without going back to a previous layer? For example I click on Layer 2, create a mark, press ctrl+z but stay on Layer 2. I sometimes forget that I am on another layer and I end up having to readjust my work.
    2) Image auto-centers when zoomed out
    When zooming out on a image, it automatically centers when the entire image fits in the document window. I am also unable to pan the image. Is it possible to disable this auto-centering and enable me to move the image around when it fits in the document window?
    Thank you again for your help.

    1) The only time it should go back to a previous is is when that was the last thing you did. Anything done after that should not switch the layers. The exception  is if you hold down the ctrl+alt+z or you choose a steps previous to the layer switch in the history panel.
    It maybe possible the preference file is corrupted.
    2) When the document windows are tabbed, that is the default behavior. However, you can drag the tab downward to create a separate window, which will fit the document and you can scale that window or move it around. Just drag back to the top to dock it when you want it tabbed again.

  • Make it so "Step Backward" does NOT change layers

    Just migrated from CS to CS4. The one change that is KILLING my productivity is Adobe's decision to make "Step Backward" also revert to the prior layer. Previously, I could (when drawing with a brush on my tablet) just click "Step Backward" if I messed up a brushstroke, and give it another try. Now, if it's my first stroke in that layer, I often find myself 5 minutes later having spent all this time drawing in the wrong layer, because PS was "helpful" and not only undid my action (brushstroke), but ALSO undid my layer change!
    Here's a simple solution for your programmers: Record layer changes as a separate step in History. That way, when I go into a different layer, draw, and then Step Backward, it undoes my brushstroke but NOT my layer change; a SECOND Step Backward would be necessary for that.
    It seems what you're doing now is recording layer changes in the History in the one direction but not the other. Please make this consistent.

    Seems a lot of people have this problem, and someone wrote a script to fix it.
    See here: http://www.polycount.com/forum/showthread.php?p=1251347#post1251347
    Also, note you need to copy the script in the Photoshop/Presets/Scripts folder for it to show in the Scripts menu. Once it's there, you can assign any keyboard shortcut to it - CTRL+Z of course
    Photoschop CS3 and up i think.

  • Stepping back thru History shouldn't change layers until it needs to

    Hopefully I can explain this behavior clearly. I have "Command + Z" assigned to Step Backward in history to give roughly the same functionality as multiple undo in most any other app on the Mac.
    When I'm doing illustration work in PsCS4, I'll often switch from Layer A to Layer B and make a mark with the Brush Tool. I'll decide I don't like that mark, so I Command + Z to "undo" that first mark made since switching to Layer B. The Step Backward does it's thing and gets rid of the mark as expected, but also switches back to Layer A, instead of remaining on Layer B so I can create a new brush stroke.
    My request is that Step Backward should stay on a Layer until it reaches a point in History where it's "un-doing" something that happened on a different layer. Or another way to put it: Layer Switching should not happen until the instance of Step Backward would be un-doing an event on on another layer.
    Or at least make this a user-defined pref?
    Thanks!

    I encountered this misbehaviour many times myself and would like
    to see it fixed as well.
    For me it happens when pressing alt+ctrl+z after a single brush stroke on a newly switched layer.
    And to replicate this problem I had to create two new empty layers, then switch to the second layer and make a stroke there. After pressing alt+ctrl+Z photoshop removes the stroke and jumps to layer 3.
    Hope it helps to catch the bug.

  • Video Demo- Changing layers of objects and PiP???

    Hey, I've recorded a video demo and I want to put an image at the end of it and ontop of that have 3 PiP videos playing ontop of the image. The problem is that the image is in front of the PiP and I can't drag the bars in the timeline around to put the PiP in front of the image. Effectively they seem locked on their layers. Is this a design flaw with Video Demo? If so this is a God Awful design when you can do the same thing with Premier Pro but it is far less accurate and a pain. I need to put these PiP in exactly the right spot for hundreds of videos.
    Hopefully one of you brain boxs will know what I'm doing wrong and it isn't a design flaw!
    Thank you for reading!
    David.

    I see that I can put the picture into the background and work it that way but oh no wait, no I can't because then I still can't use more than 1 picture in picture at a time. What a dumb design. Shame that the program won't even record at the right resolution anyway and gives me a tiny white border on two sides because the white background is slightly bigger than the video despite being recorded in the correct aspect ratio in "full screen". Crap program.

  • Javascript, IllustratorCS3, select items and change layers

    Hi
    I am trying to select an object defined with fill color Cyan and move that object to another layer. Is there any way to do this with JavaScript? Could you please help.
    PS: I want script to select that object, not the user.
    Thanks
    Sel KAHRAMAN

    Thanks for your reply Yann,
    I already know how to change the texts, the problem is that the texts I would like to change:
    To select old purchase orders or templates, choose
    Then select items and add them to the shopping cart 
    Are not in the list of attributes/texts...
    Where can this text be located?
    I find it hard to believe that it is hardcoded...

  • Mission control changes layering of open documents

    When I toggle between mission control desktop spaces, if I have multiple Word or Excel docs (may be true of others, but this is where I see it happen), when I return to the docs space a different document is on top but not selected, so I have to select the top doc then re-select the document I want. It's like the original doc remains on top virtually but not visually. If I toggle back and forth several times, a different doc may be on top each time. This practically kills the value of multiple spaces.
    While I'm at it, I hate that opening a document in one space, say from an Outlook email attachment, the file opens in the same space as the originating document rather than switching to the space I've dedicated for the document app, such as Excel.
    Do I have to give up using mission control or does someone have a fix?
    Thanks!

    Yes.  I used to get this problem.  Seems to have been largely fixed with 10.7.3.  I deleted all my desktops and started again.
    There are still some bugs though.  For example, if you have an app with multiple windows open and then put it in full screen mode.  Command-tab doesn't take you to the primary window.
    Also the keyboard shortcut to get a spotlight window results in a switch to the finder but doesn't display the finder window.

  • Recent InDesign change suppresses non-printing layers when exporting to EPUB

    I hate it when development teams quiety "fix" features I've come to rely on.
    I am using InDesign CC 9.2.
    Until a recent update, when I exported a book to EPUB from InDesign, layers which were set to show but not print were included in the export. I relied on this because my documents include a non-printed Table of Contents block on the first page of each piece included in the anthology. This block causes the correct page to be set when generating the TOC (notice that it's on the page facing the title, not the title page itself) and is used to print the correct title on the title page of each story and running headers throughout the body.
    (An example document - Click for full size)
    Up to at least January 2014, when I exported to EPUB, that visible-but-not-printed block was included in the XHTML output. I could then modify CSS to optimize for e-reader display and the title and author names would appear at the top of each piece. Sometime within the past couple of months, that has changed: layers that are not printed also do not export to EPUB. This wouldn't be so big a problem except that the printed title in the image above also is not output to the EPUB file, because it's a text variable in the underlying master page.
    If you like reading and messing with markup, as I do, the next two images illustrate the problem.
    (The old output - Click for full size)
    The new output:
    (The new output - Click for full size)
    I have five volumes of the anthology so far (comprising roughly 30 stories each) with a new one coming out every three months. Now that this change has been thrown at me, I need to get it resolved or come up with a good workaround while I only have a couple hundred documents to update, instead of double that a year from now.
    Thank you for any help or suggestions you can provide!

    Going back through every document to override Master Page objects just to get the elements to export is not a realistic workaround.
    The change that suppresses visible but non-printing objects is annoying, but at least it's a documented change in 9.2. The change that suppresses all Master Page elements as well is not documented (or at least not documented in an obvious way) and so to me it's a bug.
    Ideally, if these new changes are required by some users, the old behavior could at least become an option: the export to EPUB dialog could add checkboxes for "Include non-printing objects" and/or "Include Master Page elements" so that users like me are not left with no way to continue to use existing functionality.

  • Chance of manipulating layers

    Hi,
    i have a .dxf file. I can load it with the DXFLoader
    ( see http://www.j3d.org/utilities/loaders/dxf/raida.html )
    , display the Object in a SImpleUniverse is no problem.
    I also can get the names of the single layers.
    Now my Question: Are there any other Loaders, with the possiblity the change one layer..
    Or is there any kind of technique to change layers? Sorry for my eventually stuopid question, im new to J3D.
    Thx in advance

    _Look Here_
    You may terminate your account and/or stop using the Service at any time. To terminate your account contact MobileMe Support at http://www.apple.com/support/mobileme/ww. Any fees paid by you prior to your termination are nonrefundable
    You agreed to these terms.

  • My mini-changes list

    These are all just tiny things but i think they would make user experience much more smoother:
    - i don't understand why PS still uses these clumsy ALT/CRTL - LMB shortcut to zoom in and out. Wouldn't it be much more handy if SPACE + LMB / RMB zoomed in and out ? And a simple SPACE hit zooms to 100 % ?
    - MMB on a selections goes into Transform Selection mode, CTRL + MMB goes to Free Transform mode
    - SHIFT or CTRL + Mousewheel switches Layer (i don't know which combination changes brush size in CS4 already)
    - Color Chooser to offer an icon for 100 % black and white, and 5 or so for the last used colors.
      Maybe make it also better accessible on mouse position by bringing it up as long as a certain button is hit (so no OK button then ...). The button could be TAB for example, because holding down TAB for a longer time to cycle through screen modes does't make sense anyway ...
    - apply the magic wand tool function to a LMB double click onto a non-selected area

    clumsy ALT/CRTL - LMB shortcut to zoom in and out.
    Yes this is much more clumsy on PC than it is on mac. On mac these shortcuts are very intuitive and easy to get hold of. Control + and - will also zoom I think. Also to be honest you need to invest in a wacom tablet. You will find that your work speeds up hugely when you can get around quickly with a tablet.
    SHIFT or CTRL + Mousewheel switches Layer (i don't know which combination changes brush size in CS4 already)
    I actually like this idea - The idea of being able to switch layers via scroll wheel on a mouse. Makes some kind of sense for those still using the mouse - (It may be possible to customize this using your mouse driver: At the moment alt [ and  alt ]  - left and right bracket change layers. Changing Brush size  - is straight left and right bracket ([ ]) also. In CS4 right click/alt/mouse drag is far and away the best way to resize your brushes.
    MMB on a selections goes into Transform Selection mode, CTRL + MMB goes to Free Transform mode
    Learn Actions - with a single key you can go into free transform selection
    Color Chooser to offer an icon for 100 % black and white, and 5 or so for the last used colors.
    Again, learn Actions - with a single key you can set foreground or background to anything you want

Maybe you are looking for

  • Hyperlinks

    how can i create a hyperlink from .pages document to another saved .pdf file the drop down menu on the inspector hyperlink does not give option ???

  • Material document print out

    Dear all, while taking printout of GR/GI or mat doc i am giving the output type and doc no but its not coming. but if i go to mb02 and set output type there then it will come but i want this to be default. so pl guide Regards, Dipak

  • Priority group in LTS

    Hi gurus, Can someone explain the purpose of priority groups in logical table source? is it a substitute for contexts in business Objects?

  • Video in photo stream

    Videos in my photo streams isnt playing for others who also have iOS7, they doesnt even play on my own iPad. Others who share their videos with me in steams isnt playing either. Same thing happen with them all, you can click the play icon, and then i

  • Best way to roll back to 5.01?

    Hi, Since updating to 5.02, PPCS5 on W7 throws up errors when capturing from a Canon XM2.  Had no problems with 5.01.  And, don't have a problem using PE8 - in fact I have to use PE8 to capture because PPCS5 refuses to play ball. So, what's the simpl