Masking and unmasking MovieClips

I have two images on top each other and when you click on the small image to enlarge the picture shows.

But how to make the image to return to the smaller image when it is clicked on the cotyledon.

myTend.addEventListener (MouseEvent.CLICK, makeBig);

function makeBig(event:MouseEvent):void

{

if(myWater.alpha ==1)

{

myTend.alpha = 1;

myTendClip.play ();

}

Else if (myTend.alpha == 1)

{

myTend.alpha = 0;

}

}

If you want to make the others appear and make disappear you should probably use the visible property rather than the alpha property, especially if they are sitting on the other.  If you use alpha and they are sitting on the other, you are always clicking on one located on top, because alpha is not make disappear.

Then you do what you say you want to do, make the user has clicked one disappear and the other appear...


myTend.addEventListener(MouseEvent.CLICK,makeBig);
function makeBig(event:MouseEvent):void
{
    myWater.visible = true;
    myTend.visible = false;

    myTendClip.play();
}

myWater.addEventListener(MouseEvent.CLICK,makeSmall);
function makeSmall(event:MouseEvent):void
{
    myWater.visible = false;
    myTend.visible = true;
}

Tags: Adobe Animate

Similar Questions

  • masking and unmasking of the arbitrary nodes in a graph of scene with animations

    Could someone point me on how can I dissolve (or any other animation effect), an arbitrary (and its children) node in the graphic scene when I click some tag? And how could I show them, also with animation, when you click the label again?.

    I think using a label as hyperlinks have a boring rectangle that surround them. Is it okay to use a label for what I want? If a hyperlink is preferred, how I could hide the rectangle surrounding by default? (I think it means that the hyperlink has focus).

    Thank you!

    Use FadeTransitions to hide and unhide nodes.
    There is sample code in the Animation Tutorial and the sample of the whole:

    http://docs.Oracle.com/JavaFX/2/animations/basics.htm#CJAJJAGI
    http://www.Oracle.com/technetwork/Java/JavaFX/samples/index.html

    You can use a label with a mouse event handler set to trigger the fade.
    Although there are many other ways to allow a user trigger an event and just with the help of a label will not provide the user with visual feedback that they can interact with it.
    The control that would reflect more the State of the function of masking would be a ToggleButton control.
    What control you use depends on the look you want to achieve.

    You can customize the appearance of the focus of a hyperlink ring (or remove) using CSS.
    Search the following documents for the hyperlink:
    http://Hg.OpenJDK.Java.NET/openjfx/2.2/master/RT/raw-file/tip/JavaFX-UI-controls/src/com/Sun/JavaFX/scene/control/skin/Caspian/Caspian.CSS
    http://docs.Oracle.com/JavaFX/2/API/JavaFX/scene/doc-files/cssref.html

  • Masking and unmasking worksheets using VBA

    I have a binder with 4 worksheets, namely master, Peter, Paul and Mary. The master of worksheet must be updated with inputs from Peter, Paul and Mary.  I want Peter, Paul and Mary, to make their entries in their respective cards without seeing other entries.  That is why, I want to hide all the three leaves and a person will be able to view only the leaves bearing his name. It makes the entry in its worksheet and its data will be copied to master using a macro.  With the help of VBA, how to hide all three sheets so that one person can open the card for his name using a password? Thank you very much for the help.  I know very little about VBA.

    Try asking in the forums of Visual Basic:
    http://social.msdn.Microsoft.com/forums/vstudio/en-us/home?Forum=vbgeneral

  • Layer masks and blending modes

    I read on the layer blending modes in Photoshop CS6: The Missing Manual, p.121.  They talk about setting exposure using the blending modes, and they show how to darken an image by using the following procedure.  (1) activate a layer, (2) create a mask of levels, (3) the blending mode of the layer to multiply the value.

    My impression is that blending modes change how the pixels on one level interact with the pixels on the next lower level; that is, it implies there are at least two layers of the image.  So I'm not surprised that if I have a single layer without a mask and I change the blending mode from normal to multiply, it is without effect, probably because there is no immediately lower level to allow interaction.  However, if I have a single layer and create a layer mask, then changing the blending mode from normal to multiply darken the image.  That must involve the pixels of the layer are interacting with transparent pixels on the mask.  What?

    Can someone explain what is happening in reality not here?

    Use layer blending modes, you need to the two layers less.

    As you mentioned above:

    '(1) activate a layer, (2) create a mask of levels, (3) the blending mode of the layer to multiply the value'

    step 2 means create a levels adjustment layer that comes with a default mask if you want to make local adjustments.

    in this case, if you have a layer and add an adjustment layer, it works as if you duplicate the layer.

  • After Effects masking and tracking of a whiteboard

    Hey all

    I really struggle with an ongoing project...

    In my film, I have people holding a white board with a black frame. The sentences are written on the white area.

    Some of the writing on the Whiteboard is not visible because light bounces off it...

    I need to hide the Whiteboard area and it follow the Board changes slightly with the movement of people and then add some text in the mask...

    I have to create a mask and then add a layer of shape on it... If so how can the shape layer follow the mobile layer mask?

    or I'm going in the wrong direction with this?

    Any help would be appreciated.

    Thank you

    I would use this technique:

  • Several masks and reversed

    I added a mask and it reversed and want to get the same effect on several masks, but when I put all others to just subtract makes black instead of use the effect. What should I do?

    Screenshot for reference:

    No need for an adjustment layer. The screenshot is not very clear, but you applied hue and then seven masks but only mask 1 is selected in the effect of the composition.

    Here's how to do it correctly. Draw your seven masks. The mode of addition for masks will give you seven circles. Change the mode to subtract and you will have seven holes in your layer. Now apply the tint effect and her centrifuge Compositing options and tap the + 7 times for all seven masks as composition of the layer options. EZ, quick and for this purpose better than an adjustment of the layer.

    When you have problems with an effect or a procedure the first thing you can do is to select the layer and press the U key twice to reveal all updated the layer properties. If the solution is not obvious, and then type the name or the effect, or the procedure you use in the field search for help in the upper right of the AE and discover the resources of the community. You will find generally better training than if you just start poking around Google or YouTube. You have your trainers to sift through and make sure that they know enough for you point to the effective techniques and good workflow. About half of the training on YouTube isn't very good and there are a bunch of it that will teach you bad habits and terrible workflows.

    Just in case where you're not the explanation here is what should be your model.

  • Create a clipping mask and insert multiple Images, forms, blending options

    I am able to do this in Illustrator, but I try to understand how to do this in InDesign.

    In InDesign - after I created a custom shape (clipping mask) with the pen tool I drop an image inside the shape (CMD + D).
    However, I would like to add other forms or images in this clipping mask and set the blending options. How does this in InDesign?

    Thank you!

    1. Draw or make the mask of future cliping as frame
    2. All put together that you want to be in this context.
    3. Group them
    4. Move them to the location you want them finally
    5. Cut them into your editing table
    6. Select the target image
    7. Change > passed in
  • I see no mask and follow up on first CC 7.2.1

    Please help I can not find masking and tracking tool first CC 7.2.1

    Hello

    Masking and follow-up are a feature of first Pro 8 (CC 2014). It never is in first Pro 7 (CC).

    Thank you

    Regalo

  • problems with masking and color CC2014 - no CC - see screenshots!

    Does anyone know this problem? In recent weeks, masking and using colors in CC2014 seems to work although more. When 100% of mask the masked layer is always displayed. When I use a color (with the pen or mouse) PSD slightly changes the color.  I am attaching two prints to show you what I mean. Did the same in PSD CC and there is no problem at all.

    psdCC2014Mask.pngpsdCC2014Colour.png

    Sound your layer mask.  This is not completely its not completely masking the area.  The black area is not 100% black his only reduce the transparency of the atea sahpe filling.  Just turn off the visibility of the cyan shape layer you will see that it has nothing to do with that layer and its surly white not the projection of bottom layer.   I use a setting of levels on your layer mask to darken the dark. Look at the result.

  • What does it mean when the Selection tool in illustrator has a small white box or black next to the pointer?  I did a clipping of an object mask and now can't move and selection pointer has small box beside him.  Yet to learn...

    What does it mean when the Selection tool in illustrator has a small white box or black next to the pointer?  I did a clipping of an object mask and now can't move and selection pointer has small box beside him.  Yet to learn...

    When it is over an unselected path or shape (as in, something that you can select if you click right here), it shows a black box. When you're not selected anchor, it shows a white box.

  • I can't refine edge to work in 2014 of CC.  I select the mask, do the steps required to refine the mask and get a negative icon, a circle with a slash, and it does not work.  I used refine edge before and it has always worked.  This happened on fo

    I can't refine edge to work in 2014 of CC.  I select the mask, do the steps required to refine the mask and get a negative icon, a circle with a slash, and it does not work.  I used refine edge before and it has always worked.  This has happened for a while.  Very frustrating!

    Adobe Creative Cloud to edge CC>

  • Mask and followed does not

    Hi, I have a problem trying to make the mask & follow the new feature to work. I draw the mask and when I press on the track, there's no progress. I can always follow farm frame by clicking on the arrow of the next frame, but obviously, this isn't the way I want to do because it takes me forever.

    This new feature will really simplify my workflow and I find it quite frustrating to make it work.

    I work on 1080p25 fps on Apple Pro Res 4.2.2 and I also try used DSLR footage with no luck either. Using a Mavericks Pro on Mac

    Thank you

    Make sure that you do not have "Reference monitor Gang" checked in a reference check or monitor Monitor window. Mask of tracking does not work when this field is selected. Once disabled, mask of follow-up should work fine.

  • How to paste a path in a mask and retains its size?

    Hi all

    I'm struggling with something that I think should be very simple.

    I have a line, and I want to animate it with the "edge effect", because I want it to appear from the beginning to the end.

    To do this, I create a new solid with the size of the comp.; creating a new mask; and paste the path into the mask path so I can apply the line effect.

    The big problem is that when I paste the path in the mask, it just misaligned and out of scale (larger than the original path).

    How could I solve this problem?

    Thank you very much

    Stroke is applied to a mask not a trajectory. The path will be the size of the mask only when the layer is 100%.

    If you are talking just apply the edge effect to reveal a line drawn as a layer of shape or a line on another document, then you can create the mask path on top of the line on the same layer and apply related. and set to reveal original.

    If you do something else show us a screenshot of your publication with all the properties revealed for all layers. Just select all layers and press the u key twice.

  • problem with masks and effects

    OK, I have a solid layer with a mask in the solid is a film clip

    so when I play video I see a form colored on top my film clip

    Now if I apply an effect to the solid and then I see the effect in the colorful form ontop my film clip

    except when I apply my "cloud bcc7" effect, when I do that the clouds fill the entire screen

    rather than stay with in the mask

    Why would it be

    see you soon

    Rendering order. You can precpose or you can add effect to a solid under your layer mask and use the mask as an alpha matte. This isn't a bug.

  • Merge a mask and an object in one

    I have a problem that I need help.  I wanted to create some bling on text to, I created a whole bunch of small squares that I made in an object.  Then, I place my text in this and created a mask, but now I just want the text and not the big square box above him who are the squares.  Is it possible to combine the mask and the places box that is currently too large for my text (the text is in the box) so when I move the text he selects all the text and not the box.  I just want the text with no enclosing square selectableon.  Hope this makes since.bling.png

    Make a pattern from your seats. Apply a pattern fill for the type.

Maybe you are looking for

  • Re: Toshiba Store Alu 3.5 "1 TB HARD drive works only with Windows 2008 64-bit

    Just bought this as a backup device for Small Business Server 2008 running on Windows 2008 64-bit. However it does not? Are there drivers anywhere for this or it is simply not supported and I need to buy an alternative solution? Plugged into my lapto

  • conversion of labview 7.0 to 6.1

    I have a set of FTDI labview vi 7 I need converted to 6.1.  They are designed to use a usb dll. Thanks, Jeff

  • photo of direct mail problem

    Live mail doesn't send photos by saying that the flies are too big and that it should be divided. Alan

  • BlackBerry smartphone browser fonts

    I have changed the font size in general properties, but still have a small Web page view. Why is this?  The minimum font size has absolutely no effect on the display of Web pages or my phone (Alltel 8330) is the problem? Thank you! Elizabeth

  • The operation could not be completed: access denied

    Hello I recently installed Windows 7 Ultimate 32 bit. I'm her as an administrator, there is no other user on this computer, UAC is disabled. I'm trying to terminate the Avira anti-virus program in the Task Manager, but each time he said "the operatio