Fade in / out

Using code snippets i have made a script which fades in on mouse over and fades out on mouse out
Once it reaches full fade in/out an if statement condition is met and the enter_frame event listener event which causes it to continue fadeing in/out is removed.
If the mouse out is detected while it is still fading in it fully fades out and then fades back in until it reaches max fade in because when the fade out started the condition for the IF statement which removed the fade in effect had not been met.
I have two questions
1) how do i fix this (i have tried copy/pasting the removeenterframe event code for the fade in into several parts of the fade out script but all this does is stop it from working, also when i do this a second object with no script attatched to it starts flashing on and off)
2) The fade in and fade out effect both operate at the same rate so if both are running one would expect the object to remain static. the way it behaves however suggests that the fade in effect is actually put on pause until the fade out effect is canceled by its own IF statement. why is this?
anyway code is bellow
/* Fade In Movie Clip
Fades in the symbol instance by increasing its alpha property within an ENTER_FRAME event until it is fully visible.
Instructions:
1. To change the speed at which the symbol instance fades in, change the 0.01 value below (valid values are in the range 0.0 - 1.0). Higher values cause faster fade in.
2. The '+=' operator is a shortcut to typing 'movieClip_1.alpha = movieClip_1.alpha + 0.1'.
3. Because the animation uses an ENTER_FRAME event, it progresses only when the playhead moves to a new frame, and the speed of the animation is also affected by the frame rate of the FLA file.
/* Mouse Over Event
Mousing over the symbol instance executes a function in which you can add your own custom code.
Instructions:
1. Add your custom code on a new line after the line that says "// Start your custom code" below.
   The code will execute when the symbol instance is moused over.
movieClip_1.addEventListener(MouseEvent.MOUSE_OVER, fl_MouseOverHandler);
function fl_MouseOverHandler(event:MouseEvent):void
movieClip_1.addEventListener(Event.ENTER_FRAME, fl_FadeSymbolIn_4);
function fl_FadeSymbolIn_4(event:Event)
movieClip_1.alpha += 0.01;
if(movieClip_1.alpha >= 1)
  movieClip_1.removeEventListener(Event.ENTER_FRAME, fl_FadeSymbolIn_4);
/* Mouse Out Event
Mousing out of the symbol instance executes a function in which you can add your own custom code.
Instructions:
1. Add your custom code on a new line after the line that says "// Start your custom code" below.
   The code will execute when the symbol instance is moused out of.
movieClip_1.addEventListener(MouseEvent.MOUSE_OUT, fl_MouseOutHandler);
function fl_MouseOutHandler(event:MouseEvent):void
movieClip_1.addEventListener(Event.ENTER_FRAME, fl_FadeSymbolOut);
function fl_FadeSymbolOut(event:Event)
movieClip_1.alpha -= 0.01;
if(movieClip_1.alpha = 0)
  movieClip_1.removeEventListener(Event.ENTER_FRAME, fl_FadeSymbolOut);
/* Fade Out Movie Clip
Fades out the symbol instance by decreasing its alpha property within an ENTER_FRAME event until it is invisible.
Instructions:
1. To change the speed at which the symbol instance fades out, change the 0.01 value below (valid values are in the range 0.0 - 1.0). Higher values cause faster fade out.
2. The '-=' operator is a shortcut to typing 'movieClip_1.alpha = movieClip_1.alpha - 0.1'.
3. Because the animation uses an ENTER_FRAME event, it progresses only when the playhead moves to a new frame, and the speed of the animation is also affected by the frame rate of the FLA file.

Even with Quicktime Pro? If not, is there a plug-in or add-on, or perhaps another program that will allow me to do this?

Similar Messages

  • I need help with XML Gallery Fade in out transition. somebody please help me :(

    I need help with XML Gallery Fade in out transition. somebody please help me
    I have my post dont want to duplicate it

    The problem doesn't lie with your feed, although it does contain an error - you have given a non-existent sub-category. You need to stick to the categories and sub-categories listed here:
    http://www.apple.com/itunes/podcasts/specs.html#categories
    Subscribing to your feed from the iTunes Store page work as such, but the episodes throw up an error message. The problem lies with your episode media files: you are trying to stream them. Pasting the URL into a browser produces a download (where it should play the file) of a small file which does not play and in fact is a text file containing (in the case of ep.2) this:
    [Reference]
    Ref1=http://stream.riverratdoc.com/RiverratDoc/episode2.mp3?MSWMExt=.asf
    Ref2=http://70.33.177.247:80/RiverratDoc/episode2.mp3?MSWMExt=.asf
    You must provide a direct link to the actual mp3 file. Streaming won't work. The test is that if you paste the URL of the media file (as given in the feed) into the address bar of a browser it should play the file.

  • Help with transitions and fade in / out

    I need help. I need some kind and infinitely patient personto explain, step by step, in simple words of less that one syllable how I can fade in my movie and how I can apply transitions between the clips.
    I’ve tried, oh have I tried. I’ve read the manual, I’ve watched three video’s on youtube (they were bad!), found a lot of quality online help but I still don’t get it.
    What I do get is random results.  Like my movie fades in once then it won’t do it again. Like I get the grey transition box but can’t extend the transition beyond0.1 of a second. Like I trim my movie and the transition removes the trim. And so on.
    So if some kind soul could help, or even point me in the direction of transitions made simple I’d appreciate it.
    Many  thanks.

    Transitions and FCE are all about Media Handles.
    Search this forum for mor info, you will find plenty.
    Here's a start:
    https://discussions.apple.com/message/1356445?messageID=1356445&amp%3b#1356445
    This may help for Fade in/out settings:
    https://discussions.apple.com/message/9037985#9037985
    Al

  • Dynamically add a fade in/out transition to a caption when "showing" it from an Action?

    I have a conditional action set up where if things are not correct (text input in two entry fields), I show feedback in a caption box. I figured out how to set the caption box to be initially invisible (via unchecking the Visible checkbox for the caption's properties), and how to show it when this condition occurs. But I 'd like it to also do the traditionall transition of fade in & out when I show it fromt he action. My Advanced Action is executed when the user clicks an "OK" button.
    Any thoughts or advice?

    Yes. Plenty of media on either end. The good news is that trashing the permissions and repairing worked.
    BUT I have a question while these great minds are assembled...When repairing disk permissions the Utility says that to repair permissions on startup disk, start using my OSX install disk, which in my case is the the CD that came with my powerbook. When I tried to startup using that CD, holding down the "c" key on startup, it went into install mode. I told it I did not want to install, set the startup disk as the CD again, and kept looping around in this manner. I am probably missing a step...First question:
    1) Is it in fact necessary to start up from this CD in order to properly repair permissions?
    2) If yes, how do I get away from the install mode and to the disk utility, once the installer pops up.
    Thanks in advance. You guys are lifesavers once again.

  • Individual track start and end times: Fade in & out?

    I can set start & end times for individual tracks.
    Can I also fade in & out?

    You can set start and stop times for individual tracks using Get Info>>Options tab.
    iTunes Preferences>>Playback tab has a crossfade option that you could check out to see if it does what you want on fading in and out.

  • Text fade in/out won't work if a light makes shadows

    I found that text won't actually use a fade in/out behavior if you are using a light that projects shadows.
    Now, that's an interesting thing. I used to notice with drop-shadows in Mo3, the shadow would show up and the fade would be sort of weird since you could see the shadow under while it faded in. It wasn't a very pretty fade since it got dark and muddy first.
    So, now, it just won't let you do it.
    Bug or user error?

    Adjusting the opacity of a text layer forces it's rasterization. This essentially gives it the properties of a 2D layer which aren't affected by lights.
    In order for you to get a cast shadow AND a fade in/out, you must first flatten the text layer. This can be done by selecting the Flatten button in the Text tab of the inspector. Or else you can drop the text into a 3D group and flatten the group from the Group tab.
    Andy

  • Fade in/out several tracks with the crossfade tool?

    Can I Fade in/out several tracks with the crossfade tool? I mean without selecting them and then add value...? just like in ProTools just selecting the regions and apply the fade tool???? VIP question

    The Sound Factory Studio wrote:
    Can I Fade in/out several tracks with the crossfade tool? I mean without selecting them and then add value...? just like in ProTools just selecting the regions and apply the fade tool???? VIP question
    No.
    To add crossfades or fade in/outs to multiple audio regions, you must do it from the fade parameter box, either entering numerically, or by clicking and dragging on the numeric value.

  • Adobe Audition CC 2014 - Fade In/Out to playhead?

    Hello all,
    My question is this: In a multitrack session (or in waveform editor) I want to be able to tell Audition to fade in/out to the playhead. At present, I can set a shortcut to "Clip--Fade In(Out) Normal". However, when I use said shortcut in a multitrack session Audition makes a fade in/out of a predetermined length (appx 16 sec). If anyone knows how to adjust this please let me know, otherwise let this thread stand as a feature request.
    Thanks.

    I think you misunderstand the question. I know how to draw a volume envelope. Here's what I want to do:
    Right now to use the automatic fades that are present on each clip I have to grab the box and draw it out. Now, as I said before, there are keyboard shortcuts that will activate this without having to draw it out. I have done this by going to the keyboard shortcut editor, finding "Clip--Fade In (or Out) Normal" and assigning Alt-G to it. If I use my assigned shortcut now it makes a fade that seems to be set at random, probably in relation to the overall length of the selected clip (longer clip=longer fade). What I would like it to do is exampled by the pic above, simply give me a fade in/out in relation to where the playhead is on the selected clip. This would be similar if one was in ProTools (with a-z mode) and types "D" (Fade from start) or "G" (Fade to end). If this option isn't available it should be on a future release.

  • 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.

  • Fade in/out with external SWFs

    Hi All.. I"m very new to AS in general..
    I'm trying to have a simple slideshow with external SWFs that outomatic and onClick..I achieved it except the abrupt white space after the unloaded clip goes away... I have this code and I'm not getting any errors - but I mut not have it connected somehow because the fade out is still not there... Can someone please please help me with this... I really appreciate any help ahead of thime...
    //Import classes for easier use
    import fl.transitions.Tween;
    import fl.transitions.TweenEvent;
    import fl.transitions.easing.*;
    //Timer
    var slideDuration:uint = 8000;  // or use whatever
    var slideTimer:Timer=new Timer(slideDuration,0);
    slideTimer.addEventListener(TimerEvent.TIMER,autoAdvanceF);
    slideTimer.start();
    var btnA:Array = [one_btn,two_btn,three_btn];
    var previousBtn:SimpleButton = one_btn // use class type of your buttons
    function autoAdvanceF(e:TimerEvent):void{
    nextButtonF(previousBtn).dispatchEvent(new MouseEvent(MouseEvent.CLICK));
    function nextButtonF(btn:SimpleButton):SimpleButton{ // use class type of your buttons
    for(var i:uint=0;i<btnA.length;i++){
    if(btnA[i]==btn){
    return btnA[(i+1)%btnA.length];
    return null;
    //Load external SWF into main
    var Xpos:Number = 0;
    var Ypos:Number = 0;
    var swf:MovieClip;
    var loader:Loader = new Loader();
    var defaultSWF:URLRequest = new URLRequest("swfs/one_btn.swf");
    var target_mc:MovieClip = new MovieClip();
    addChild(target_mc);
    var target_mc2:MovieClip = new MovieClip();
    addChild(target_mc2);
    //load swf to movieClip
    target_mc.addChild(loader);
    //variables that store current content clip and current content indes
    var activeTarget:MovieClip = new MovieClip();
    loader.load(defaultSWF);
    loader.x = Xpos;
    loader.y = Ypos;
    addChildAt(loader,0);
    //Btns universal function (whenver any button is clicked, the loader will be removed
    function btnClick(event:MouseEvent):void {
        if (target_mc.alpha > 0) {
            target_mc.alpha -=10;
        if(target_mc2.alpha < 100) {
            target_mc2.alpha +=10;
    slideTimer.reset();
    slideTimer.start();
        previousBtn = SimpleButton(event.currentTarget);
        removeChild(loader);
        var newSWFRequest:URLRequest = new URLRequest("swfs/" + event.target.name + ".swf");
        var myTween:Tween = new Tween(loader, "alpha", None.easeIn, 0, 2, 1, true);
        loader.load(newSWFRequest);
        loader.x = Xpos;
        loader.y = Ypos;
        addChildAt(loader,0);
    loader.addEventListener(Event.ENTER_FRAME, onEnter);
    // Movie level enterFrame event handler that will fade down object 1 (if it's alpha ishigher than 0) and fade up object 2 (if its aslpha is less than 100)
    function onEnter(event:Event):void {
        if (target_mc.alpha > 0) {
            target_mc.alpha -= 10;
        if (target_mc2.alpha < 1 ) {
            target_mc2.alpha +=10;
        loader.removeEventListener(Event.ENTER_FRAME, onEnter);
        trace ("the movie clip is faded in");
    /// Button Listerners
    one_btn.addEventListener(MouseEvent.CLICK,btnClick);
    two_btn.addEventListener(MouseEvent.CLICK,btnClick);
    three_btn.addEventListener(MouseEvent.CLICK,btnClick);

    The Sound Factory Studio wrote:
    Can I Fade in/out several tracks with the crossfade tool? I mean without selecting them and then add value...? just like in ProTools just selecting the regions and apply the fade tool???? VIP question
    No.
    To add crossfades or fade in/outs to multiple audio regions, you must do it from the fade parameter box, either entering numerically, or by clicking and dragging on the numeric value.

  • My screen is blacked out, it will pop back in for a few then fade back out

    my screen is blacked out, it will pop back in for a few then fade back out; does this happen to anyone else?

    Reset the device:
    Press and hold the Sleep/Wake button and the Home button together for at least ten seconds, until the Apple logo appears.
    If that doesn't help, tap Settings > General > Reset > Reset All Settings
    No data is lost due to a reset.

  • Make images fade in & out?

    Hi, we're redeveloping our application in swing (java 1.4.2).
    When the application is not in use it displays several images on the screen. We want these to smoothly fade in and out (not necessarily synchronised with each other) so as to be more visually appealing.
    Any recommendations on a good technique?
    We don't want to use animated gifs due to the 256-colour limit - is there a way to do this that isn't CPU-intensive? Something we can use with PNGs, for example?
    TIA
    Phil

    well perhaps you can override the paint method, which will change the opacity of the image...and maybe use some type of thread or timer to animate that fade in/out affect. Set change the opacity used by the Graphics2D object in a paint method do the following:
         * Set alpha composite.  For example, pass in 1.0f to have 100% opacity
         *  pass in 0.25f to have 25% opacity.
        private AlphaComposite makeComposite(float alpha) {
            int type = AlphaComposite.SRC_OVER;
            return (AlphaComposite.getInstance(type, alpha));
         public void paint(Graphics g) {
                  Graphics2D g2d = (Graphics2D) g;
                  g2d.setComposite(makeComposite(.25f));
                  // do some painting...
          }that should give you some idea.
    good luck!

  • Can I alter the fade in/out times of titles?

    Many of the canned titles have a fade in/out which for me is too abrupt.
    I would like to make them much longer but can't find any way in the Inspector.

    Thanks for the responses.
    I omitted to mention that I also want to do the same thing with normal clips.
    Up to now I have used the workaround of adding a cross dissolve to the front or end of the clip and stretching it to a suitable length but this does not work with a title.
    I was hoping that titles and clips would have an opacity line on them which could be keyframed and adjusted as in FCP.
    I eventually returned to FCP 7 and achieved it in seconds.

  • Fade In/Out Transition

    Is there a place that I can buy/download a good smooth Fade
    In/Out
    Transition for Authorware? The Fade In transition that comes
    with Authorware
    just brings on big squares of the image at a time, and i'm
    looking for
    something that actually fades a graphic in/out instead.
    Thanks,

    DMTools has a really good one but the company is not too
    responsive with
    their support. They protect their Xtras by linking them to
    your Authorware
    serial number. That means that when you upgrade Authorware
    versions you have
    to request a new Xtra and registration number from them.
    That's when the fun
    begins. They got back to me eventually...but it took many
    weeks of trying.
    Because of their protection method, I'd be concerned with
    creating pieces
    with their Xtras in which I may have to go back and swap out
    all the
    transitions because DMTools didnt follow-up with a version of
    their Xtra
    that worked with a new version of Authorware.... But how
    likely is that now
    anyway? You know, now that I think about it, I'd gladly
    replace out all
    their transitions in exisitng pieces if we could only get a
    new version of
    Authorware :-)
    http://www.dmtools.com/page.jsp?id=29&idPadre=2&flag=0&idLingua=1
    Gary
    "Joseph Sites" <jsites@trcinteractive__NOSPAM__.com>
    wrote in message
    news:f70e0s$jho$[email protected]..
    > Is there a place that I can buy/download a good smooth
    Fade In/Out
    > Transition for Authorware? The Fade In transition that
    comes with
    > Authorware just brings on big squares of the image at a
    time, and i'm
    > looking for something that actually fades a graphic
    in/out instead.
    >
    > Thanks,
    >

  • Fade in/out Ghosting in DV

    Finished upgrading my FCP 4.5 system to FCS 5.1.1 and immediately I have a problem.
    When I create a crossfade or a fade from/to black, the last/first frame ends up with the a ghosted image of the shot I'm fading on.
    image:
    http://img400.imageshack.us/img400/117/picture2ac7.jpg
    I'm working in regular old DV/DVCPRO - NTSC (CCIR 601), captured via Firewire. Lower field dominance.
    The only possible thing that went wrong on the production side of things is that the guy who shot it did so with the wrong audio sample rate (32KHz instead of 48KHz), causing me to get a bunch of messages while I captured. The sound sync is fine, however, and I can't see how that would impact this fading problem in the slightest.
    It's barely visible on my NTSC monitor, but on all my LCDs it's very clear and very annoying.
    Any thoughts? Thanks!
    Aging Powerbook G4 Titanium | Mac Pro 2.66Ghz, 1 Gig RAM   Mac OS X (10.4.7)   iPod 5G, Final Cut Studio 5.1
    Aging Powerbook G4 Titanium | Mac Pro 2.66Ghz, 1 Gig RAM   Mac OS X (10.4.7)   iPod 5G, Final Cut Studio 5.1

    Thanks for the quick reply, guys!
    Adding a slug does definitely help in that the last (or first) frame of the sequence doesn't show the ghosted image.
    However, the ghosted image still "flashes" during a fade in/out from/to a slug. It flashes right at the last (or first) frame of the fade.
    I just don't remember the standard FC fades being like that in 4.5. I'm also on slightly different LCDs than I used to be, but still, it seems strange to me.

Maybe you are looking for

  • Using Crop results in Rescale

    I've been trying to crop my project using Modify > Rescale project. I select a smaller size, and then select Crop. I click Next, select the Crop position, click Apply to All Slides, and then click Finish. The result is a rescaled project, not a cropp

  • Passing parameter between two applets

    hi all, i want to pass parameter between two applets. in other words, when user clicks the button; close the running applet, pass parameter to another applet and run another applet. now i think that could be, ( creating a parameter table in database,

  • Linking Two Crytal Report Enterprise

    Hi All, I am trying to link 2 diff crystal Reports. Using Hyper link. Now problem is if I pass simple hyperlink it is working Fime. But I am unable to pass parameter. Do some one know how to pass parameter from one crystal report to Another Crystal.

  • Pending purchase orders fields required

    Hi all, For purchase orders, I need the below mentioned fields. purchasing organization, purchasing group, purchasing document number, purchasing document date and item delivery date. Can any one give me the Table Field Names related to this fields.?

  • Can't open file. wants me to upgrade.. but mac says its up to date !

    i'm trying to open a document modified a few months ago. i have pages 09 version 4.3. its says i must have a later version to open the file, but when i go into my mac's app store, its says no updates are available for my app. although there is some m