Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Member John Mc Grath's Avatar
    Join Date
    Sep 2011
    Location
    Ireland
    Posts
    80
    Member #
    29172
    Liked
    3 times
    I was wondering if anyone knows how to make pictures fade when I hover over a different picture. For example, I have a stage where there are 3 pictures converted to symbols. What I want is two of them to fade when the mouse hovers over the third. Any help would be appricated. Also does anyone know why my flash video does not load up when I first navigate to my home page in explorer but it usually appears when I navigate back to it.
    Im pretty new to web design but I am learning fast. I will help if I can.
    Check out my sites http://www.mediareviewzone.com http://www.iamrobsmith.com

  2.  

  3. #2
    Senior Member chrisHPZ's Avatar
    Join Date
    Aug 2011
    Location
    Ohio
    Posts
    133
    Member #
    28760
    Liked
    31 times
    I looked around myself as this is a nice effect. Unfortunately I couldn't find any articles on doing this specific thing. However, I did have some what of a similar effect in a flash file I made from another movie on my website. Here's the code with explanation below it. You can copy and paste it into your Flash file in the Actions panel. I use a movieclip symbol in this case.

    /////import the relevant classes here above the Actionscript code
    import fl.transitions.Tween;
    import fl.transitions.TweenEvent;
    import fl.transitions.easing.*;
    import flash.events.Event;

    /////Create the variable that controls the tween event
    var myTween:Tween = new Tween(YOURINSTANCENAMEHERE, "alpha", Strong.easeOut, 0, 100, 300, true);

    YOURINSTANCENAMEHERE.addEventListener(MouseEvent.R OLL_OVER, alphaEffect);
    function alphaEffect(e:Event):void {
    myTween.start();
    }

    What's going on here is that Flash is "listening" for a Mouse being ROLLED OVER the movie clip. When the event registers with Flash, it executes the code applied to the movie clip. The event that is being applied is a Tween event which controls the opacity (alpha) the easing is Strong meaning that it starts as quickly as you snap your fingers. The symbol, when it is rolled over, fades to 0% opacity, to 100% opacity over a rate of 3 seconds, (0, 100, 300, true) Hope this helps you out.

    http://www.cdemarco.com
    http://www.cdemarco.com/flash/AS.swf
    John Mc Grath likes this.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 09:38 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com