How to make movieclip controlled by button fade in/out on mouse over/out?

Hi,
I am new to Flash, and have tried searching numerous forums to the answer to this question, but nothing I try seems to work. Basically I am trying to create a single "Image" that triggers different animations when you mouse over different invisible buttons located on specific areas. The technique I am using is basically spacing out the animations over different frames, and using the gotoAndPlay command specifying the where the relevant animation is located.
Here is the code from my actions layer with two animations:
stop(); /*This ensures no animations are playing on the first frame*/
/*Mouse over event for redbutton1*/
redbutton1.addEventListener(MouseEvent.MOUSE_OVER, fl_MouseOverToGoToAndPlayFromFrame_2);
function fl_MouseOverToGoToAndPlayFromFrame_2(event:MouseEvent):void
     gotoAndPlay(2); /*This is the frame where the animaton triggered by redbutton1 is located*/
/* Mouse Out Event for redbutton1*/
redbutton1.addEventListener(MouseEvent.MOUSE_OUT, fl_MouseOutHandler_3);
function fl_MouseOutHandler_3(event:MouseEvent):void
     gotoAndPlay(1) /*takes animation back to the start of timeline where it stops*/
/*Mouse over event for bluebutton1*/
bluebutton1.addEventListener(MouseEvent.MOUSE_OVER, fl_MouseOverToGoToAndPlayFromFrame_2);
function fl_MouseOverToGoToAndPlayFromFrame_2(event:MouseEvent):void
     gotoAndPlay(30); /*This is the frame where the animaton triggered by bluebutton1 is located*/
/* Mouse Out Event for bluebutton1*/
bluebutton1.addEventListener(MouseEvent.MOUSE_OUT, fl_MouseOutHandler_3);
function fl_MouseOutHandler_3(event:MouseEvent):void
     gotoAndPlay(1) /*takes animation back to the start of timeline where it stops*/
Now basically all I need is some code that means that instead of abruptly starting and stopping the animation, the animation will fade in/out whenever the mouseover/out events are triggered. Note: the animation doesn't have to finish, it basically only plays while the mouse is over.
Any help would be greatly appreciated.

It will help oif you show the code for the code-based tweening.  The basics of getting it working with the MOUSE_OVER/OUR commands is fairly straightforward. 
You have listeners for both events, and the handlers for each listener is where you activate the tweens.  For more seamless functionality it is usually a good idea to have the starting point of the tween be the point where the object currently is (its x or y (or both) propertiy) instead of a fixed value.

Similar Messages

  • How to make yellow dialog box not come up when I mouse over tabs?

    I hate the little small yellow background colored dialog box that pops up when you mouse over tabs on Firefox on Mac.
    The reason why this is an in convenience on the Firefox in Mac is when a dialog box comes up and you minimize Firefox the dialog box stays there on the screen, so you have to bring Firefox to the front and then mouse over it til the box go's away, and then finally you can minimize Firefox without having the dialog box stay on your screen.
    To negate this problem I want to know if their is a way for me to disable that dialog box from coming up at all. It also comes up when I mouse over my all in one sidebar add on and I have noticed it when you mouseover links on certain sites, like in Pandora when I am mousing over the different artists in my list the little box comes up, again it's not needed and very annoying.

    you must modify '''browser.chrome.toolbar_tips'''
    type in the address bar '''about:config'''
    then press the button''' i'll be careful i promise'''
    then type in the bar '''browser.chrome.toolbar_tips'''
    then '''Double-click''' on it, to make it''' false'''
    exit firefox and restart-it.
    See for more info : [http://kb.mozillazine.org/Browser.chrome.toolbar_tips Browser.chrome.toolbar tips ]
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

  • How to make a completely transparent button in Flash Builder

    I am making a mobile application, and I am wondering how to make a completely transparent button. I've tried using
    <s:Button x="-5" y="0" width="410" height="1504"
                                    skinClass="spark.skins.mobile.TransparentNavigationButtonSkin" click="navigator.pushView(Sun)"/>
    But it still has one line on the side. I need a way to make it completely transparent.
    Thanks,
         8th grade student

    Try this alpha="0.001"
    Also add useHandCursor="true" and buttonMode="true" if you wish to have the hand cursor appear on hover.
    example  x="10" y="10" width="169" height="54" label="Button" alpha="0.001" useHandCursor="true" buttonMode="true" 
    HTH

  • HOW TO MAKE TABLE CONTROL NON EDITABLE

    hi all
    how to make table control non editable
    Thanks & Regards
    harsha

    Hi,
    Try this code in the PBO inside the module in the LOOP...ENDLOOP.
       IF SY-TCODE EQ 'ZEMPLDISPLAY'.
        LOOP AT SCREEN.
         if screen-name eq 'column1' or screen-name eq 'column2'.  "Give the names of the columns in the table control
          SCREEN-INPUT = '0'.
          MODIFY SCREEN.
        endif.
        ENDLOOP.
      ENDIF.
    Or you can go the Layout of the table control in Change mode and for every column's attributes, make it 'Output' only field. Check  'Output only' field.

  • How to make a custom form, buttons etc... please...

    I mean, how to make a form (for example, JFrame) with arbitrary form (geometry, for ex, round, oval, star like etc). I think you understand what i mean.
    Of course, i think i can use winApi, but it's only for windows. It doesn't suit for Java in this problem solution.
    That question also about cusomizing form of buttons, fields.. etc..
    i think, everything.
    What can java allows to cusomize and what not.
    Thanx!!

    I am just a learner and so i can just suggest you a strategy to implement Customized forms in JAVA. However i am sure that in practice it will work as far as Windows OS are concerned. Here is it:-
    The basic IDEA is to declare a native function in JAVA that makes JNI calls which will be further processed by Win32API and processed output will result into an elliptic or any polygonal shaped forms.
    To achieve declare some function as follows:
    public native void createEllipticalForm(formName formRefrance);
    create a Win32 Compiled DLL that manages this function as follows:
    (Mindwell, i havent stated what you call as pure-code but just a pseudo-code to the actual implementation)
    public native void createEllipticalForm(formName formRefrance)
    /* Search for the below stated Functions in Win32 API and work on
    them. I see a ray of success if you work with these functions properly.
    Further-more I assume that you are aware with concept of HANDLES */
    createEllipticRegion(); //WINDOWS.H
    showWindow(handleToTheForm); //WINDOWS.H
    Search for "createEllipticRegion() or showWindow()" on the GOOGLE to get the pure win32 API Code for Creating Customized Forms.
    Reply me in case any of you people get a solution based on my idea.
    [by VISH]

  • How to make next and previous button function

    Hello
    Can anybody help me with how to achieve next and previous button function such as the one at www.bestbuy.com?
    I would appreciate any help or suggestion.
    Thank you!

    if you're not familiar with flash it might be easiest to place your initial "page" in frame 1, the 2nd (or next) page in frame 2, the 3rd/next page in frame 3 etc.
    place your previous and next buttons in their own layer that spans the main timeline (which will have as many frames as you have "pages").  give them instance names (say prevBtn and nextBtn).
    you can then use the following code placed in frame 1:
    var tl:MovieClip=this
    prevBtn.onRelease=function(){
    tl.prevFrame();
    nextBtn.onRelease=function(){
    tl.nextFrame();

  • How to make the print, email button work in PDF output

    Hello,
    I'm using LC  Designer ES2 to create a xdp form with print, email and httpSubmit  button. Then using LC server to generatePDF output, binding with xml  dynamically. But after that I got the static pdf file and none of the  button work,
    I really need help on how to make it work. Any configuration, plug-in....
    Thanks,

    Hi,
    This is solved by note 1281208.
    Thanks,
    Edited by: Zhijie Kong on May 24, 2011 6:06 PM

  • How to make JOB CONTROL setting for delta extraction in Production system .

    Hello All,
    We are in the process to transport our development to PD server in BI . We have transported the data sources to ECC production and now we are filling the setup table for " SD BILLING BW " . After filling Setup table data in full mode through infoPackage we have to load data in delta mode .    
    How we can set our Update mode(LBWE setting) in PD server ?
    Is LBWE  T.Code authorisation required in ECC PD server to make the setting of Update mode   or   We have to set all  Job Control Paramater in Dev System at the time of transport the datasource request to ECC production .  Is our time which is set in job control of  ECC development  will be reflected in ECC production ?
    can any body tell me about how to make setting for delta extraction in Production system .
    Thanks ...

    Hi,
    How do you load the data in the development system?
    - you set up the update mode in the infopackage. There you must customize "Initialization"
    - you have to filled the setup table in the production system without laoding the data in the BW? then this step was for nothing. Filling the setup table and do the INIT in the BW, this must be together - during no changing will be done in your R/3 SD.
    Sven

  • How to make a long animated button

    Hello
    Does anyone know how to make a animation on a button when you
    put your curser over or click the button longer then just a few
    frames. in other words to extend the over or down parts of the
    button animation.
    Thanks a lot.

    how about using attachMovie() to attach a bullet hole MC
    onPress. Just draw a png image, convert to a MC and then attach it
    at the mouse coordinates when clicked. although your 'can' should
    also be a MC button.

  • Captivate: How to make work constantly numerous buttons in a slide

    Hello,
    In the final slide of my module I'd like to make constantly work numerous buttons. But when one is clicked on, the module tends to finish, and no interaction possible longer.
    How can I solve the problem ?
    Thanks in advance,
    Regards,
    Artem

    Hi there
    If this is the final slide, you may not actually need to resort to Advanced Actions. Often, these tend to intimidate folks.
    Perhaps if you can tell us exactly what the buttons do, we can offer a simplified way to deal with the situation. For example, if one button visits a web site, you can configure it to open in a new window and when you do that, there is an option you can set that keeps things paused.
    Cheers... Rick

  • How to make separation between added buttons into a jToolBar?

    Hi friends,
    I have made a jToolBar (using NetBeans IDE 5.5) with several buttons, but i dont know how to make custom separation between those added buttons. I will appreciate it if anyboy give me some tips.
    Thanks in advance,
    Reza_mp

    I don't know about NetBeans but yeah U can add horizontal atruts and verticals struts between two components, i.e.
    1.) add first component
    2.) add horizontal or vertical struts(according to ur toolbar)
    3.) add second component
    4.) add add horizontal or vertical struts(according to ur toolbar)
    this will definitely solve ur problem.
    If it does, don't forget to pay ur points.

  • How to make a Text in Button to Blink(Flashing) in ADF(Jdev)

    Hi,
    I need help to make my Text in button or Alteast a Text to Blink(Flashing).
    Example, Alerts used to should blink
    If somebody having Some sample code, Please post it

    You should share your solution with the community.

  • How to make a control to let the user to select a type of line?

    Dear All,
    I want to make a control to let the user can select a type of line from some types. Just like selecting the line type of plot in the graph.
    Is there any good way to do it, or is there any examples?
    Thank you.

    Hello,
    I think you can use a pict ring as selector and the detect value changes of that indicator to apply the new plot style on the graph using property nodes.
    Let me know if you need more help on this
    Message Edité par TiTou le 08-30-2006 01:50 PM
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"
    Attachments:
    palette.jpg ‏19 KB

  • How to make Credit Control Area field mandatory in fb01, f-01, f-02, f-04

    Dear all,
    Whenever we are trying to create any accounting document for a Customer, we need to make Credit Control Area a mandatory field in transactions fb01 / f-01 / f-02 / f-04.
    This is required because we have different Credit Control Areas for different Sales Areas for a Customer.
    Can this be achieved through Customizing (making screen field mandatory) or one needs to use user exit?
    Another option could be screen variant, however, it would result in multiple t-codes e.g. zfb01 / zf-01 / zf-02 / zf-04
    I appreciate your help in this regard.
    Thanks and Best regards,
    SAP_ROI

    Hi,
    You need to write validation rule for to make Credit Control Area field  as  mandatory field for the Transaction codes FB01 / F-01 / F-02 / F-04 and please  use T. codes GGB0 & OB28 for the same.
    Regards,
    Shailesh Verma

  • How to make a program restart at the click of the mouse or a key on....

    How would I make a program restart at the click of the mouse or a key on the keyboard?

    Yes, definitely, thats what I would want to happen but I'm not sure how to go about the coding. Would I have to use a key listener? Or would I have to construct the method from scratch?

Maybe you are looking for

  • Editing a midi file in GarageBand 09

    Just downloaded a midi soundtrack, a karaoke version of a popular song. I plan to track in original vocals, but I have additional verses of lyrics that will require repeating sections of verse and chorus to accommodate. As cool as midi is on Garageba

  • Why am I getting errors for swupd_syncd of Product ID: "091-7360" (Java Update)

    The Software Update log has: Tue Oct 22 03:01:16 XXX swupd_syncd[4534] <Error>: *** Product ID: "091-7360"; file URL: "http://swcdn.apple.com/content/downloads/35/57/091-7360/ise9pfxzzwi10qx4c2bygqf9llmcch6axd/JavaForMacOSX10.6.dst/091-7360.pt_PT.dis

  • Increasing no of culumns in a BEx report

    Hi all, I want to increase the number of culumns in our BI report so that all the fields are visible on the first page itself. Can you please help me on this ?

  • I need help making a timed trigger to update fees automaticly once a week

    CREATE OR REPLACE TRIGGER set_fine AFTER UPDATE OF amountowed ON fines DECLARE BEGIN :new.amountowed := (:new.amountowed) + sysdate + (((10/(24*60))); END; CREATE OR REPLACE TRIGGER set_fine AFTER UPDATE OF fines ON amountowed DECLARE BEGIN update am

  • Error message Syncing ipad with pc itunes

    Hi, I'm trying to sync mi pad with my pc Itunes but got the following message: Ipad could not be synced because the sync session failed to start. I already synced my ipod. What do I have to do?