How can I create a single action that hides several items at once?

I create what I call a "video jukebox", and I would like to find an easier way to switch between videos, according to which the button is clicked. For example, I have 7 videos for viewers to choose.

On the stage to animate are 7 buttons, each button corresponding to the appropriate video.

I also added 7 videos of the scene (let's call them Video01.mp4, Video02.mp4, etc.).

Press each key, I added the following to mousedown:

SYM.$("Video01"). Hide();

SYM.$("Video02"). Hide();

SYM.$("Video03"). Hide();

SYM.$("Video04"). Hide();

SYM.$("Video05"). Hide();

SYM.$("Video06"). Hide();

SYM.$("Video07"). Hide();

I have then change ' hide ' for 'show' according to which video I want to play when the viewer clicks the button and assign a mouseup action.

I'm wondering 2 things:

1. is there an action that allows you to hide all the videos with a single line of code, instead of repeating it several times (for each video)?

2. can I assign a code to a transparent symbol I can superimpose each button so I can't open the actions for each of them? In other words, I would simply drag a symbol on the stage and have the code already attached to it, then all I have to do is change one or 2 lines instead of having to rewrite the entire thing every time.

Thank you

1 sym.$("video").hide (); allows you to hide all the video elements, then you can selectively show an individual video like sym.$("Vidoe01").show ();

2 write a function in compositionReady as:

sym.hideShowVideo = {function (name)}

SYM.$("video"). Hide();

SYM. $(Name). Show();

}

Call this function for each button in sym.hideShowVideo ("Video01");

HTH,

Vivekuma

Tags: Edge Animate

Similar Questions

  • How can I create a pdf file that is read-only as a resume so that no one can change it

    How can I create a pdf file that is read-only as a resume so that no one can change it

    Hi carolanns81914351,

    You require the Acrobat application for this, see this KB document for the parameters to restrict modification of a PDF Acrobat help. Securing PDF files with passwords.

    Let me know if you have any additional questions.

    Kind regards

    Nicos

  • How can I create a new Style that can be applied to an object?

    To the active menu there is a tab called "Styles".  My question is how can I create a new Style that I can apply to an object?  A link to a tutorial or something like that would be helpful, because I can't find anything!    Thanks in advance for helping me eliminate this frustration!

    KomputerMan.com wrote:

    What I want to do is create a style library, which are basically photos of different Woods.

    There are two approaches you can try.

    Clipping paths

    1. draw the shape of the part as a closed path.

    2 position the wood grain image above or below the shape where you want it positioned.

    3. cut

    4. Select the closed path.

    5. glue on the inside.

    See: Using FreeHand MX > content > work with objects > working with clipping paths

    Fillings in mosaic

    1. use the autotrace to vectorize the image of wood fiber, using many colors.

    Using FreeHand MX > content > work of imported using the > Tracing bitmaps > image vectorization

    2. the group the paths (but not the picture) and create a tiled fill,

    Using FreeHand MX > content > using contours and funding > applying attributes in fillings > Using tiles fill attributes

    3 make a style of a filled object tile

    4. apply the style to other objects.

    Judy Arndt

  • How can I create a transparent rectangle to hide text? Driving me crazy!

    Hello

    I imported a logo to illustrator which is on a transparent background. I want to create a transparent rectangle that hides part of the logo, and then I want to put a new text on the hidden... text while keeping the background transparent. I tried different masks and gradient transpariences and nothing works! Attached is the image... try to cut out the word Boston and introduce a greater 'Boston' (same width but superiors characters) in the same place, with a transparent background. Now, Boston is too hard to read if the logo is small.

    Thank you!!!

    Boston Bus Journal 1.png

    See you soon,.

    Elizabeth

    Elizabeth,

    Assuming that the exisiting BOSTON mounting is not an option, you can:

    (1) create a nostroke/nofill rectangle that covers all word all, then give it a white fill.

    (2) in the palette flyout transparent tick do the with unchecked Clip opacity mask and mask Invert checked.

    That should clear the view BOSTON then you can retype.

    You could use a black fill and let the mask Invert unchecked (if black is black enough).

  • How can I create VI with inputs that run immediately when the update?

    I'm using LabView for controlling stepper motors. I would create a VI with a front panel that has 4 arrows, 2 per engine. My goal is to be able to run the VI and then press a button to move the engine.

    I created separate VI for each funcition of engines - one vi to set current operations, to determine the current travel, another to move up by a certain amount and so on. Work of these vi and I can move and adjust engines, but only by running separate VI.

    How can I combine them into a single VI and make them run to the pressure of a button or the change of a property? An example would be to establish a new current holding company and place the operation current vi run immediately and send the order to the engine. Then continue to press the arrow keys without having to hit 'run' on an another vi.

    Thank you very much


  • How can I create a new layer that is a gradient?

    Hi, I'm very new to scripting photoshop and have some difficulty.

    I am looking for a way to take a picture I have and configure it to have a gradient opacity as he approaches middle, my thought on how to do was simply to create a layer that is a gradient from the upper left to lower right and secure then as a vector mask.

    Any ideas on how I could create this gradient layer of script or a better method to do this opacity gradient?

    Thanks in advance,

    Levianth

    You can try this:

    // 2012, use it at your own risk;
    #target photoshop
    if (app.documents.length > 0) {
    var myDocument = app.activeDocument;
    var theLayer = myDocument.activeLayer;
    if (theLayer.isBackgroundLayer == true) {theLayer.isBackgroundLayer = false};
    // create gradient layer;
    // =======================================================
    var idMk = charIDToTypeID( "Mk  " );
        var desc15 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref3 = new ActionReference();
            var idcontentLayer = stringIDToTypeID( "contentLayer" );
            ref3.putClass( idcontentLayer );
        desc15.putReference( idnull, ref3 );
        var idUsng = charIDToTypeID( "Usng" );
            var desc16 = new ActionDescriptor();
            var idType = charIDToTypeID( "Type" );
                var desc17 = new ActionDescriptor();
                var idType = charIDToTypeID( "Type" );
                var idGrdT = charIDToTypeID( "GrdT" );
                var idLnr = charIDToTypeID( "Lnr " );
                desc17.putEnumerated( idType, idGrdT, idLnr );
                var idGrad = charIDToTypeID( "Grad" );
                    var desc18 = new ActionDescriptor();
                    var idNm = charIDToTypeID( "Nm  " );
                    desc18.putString( idNm, "Custom" );
                    var idGrdF = charIDToTypeID( "GrdF" );
                    var idGrdF = charIDToTypeID( "GrdF" );
                    var idCstS = charIDToTypeID( "CstS" );
                    desc18.putEnumerated( idGrdF, idGrdF, idCstS );
                    var idIntr = charIDToTypeID( "Intr" );
                    desc18.putDouble( idIntr, 4096.000000 );
                    var idClrs = charIDToTypeID( "Clrs" );
                        var list3 = new ActionList();
                            var desc19 = new ActionDescriptor();
                            var idClr = charIDToTypeID( "Clr " );
                                var desc20 = new ActionDescriptor();
                                var idRd = charIDToTypeID( "Rd  " );
                                desc20.putDouble( idRd, 0.000000 );
                                var idGrn = charIDToTypeID( "Grn " );
                                desc20.putDouble( idGrn, 0.000000 );
                                var idBl = charIDToTypeID( "Bl  " );
                                desc20.putDouble( idBl, 0.000000 );
                            var idRGBC = charIDToTypeID( "RGBC" );
                            desc19.putObject( idClr, idRGBC, desc20 );
                            var idType = charIDToTypeID( "Type" );
                            var idClry = charIDToTypeID( "Clry" );
                            var idUsrS = charIDToTypeID( "UsrS" );
                            desc19.putEnumerated( idType, idClry, idUsrS );
                            var idLctn = charIDToTypeID( "Lctn" );
                            desc19.putInteger( idLctn, 0 );
                            var idMdpn = charIDToTypeID( "Mdpn" );
                            desc19.putInteger( idMdpn, 50 );
                        var idClrt = charIDToTypeID( "Clrt" );
                        list3.putObject( idClrt, desc19 );
                            var desc21 = new ActionDescriptor();
                            var idClr = charIDToTypeID( "Clr " );
                                var desc22 = new ActionDescriptor();
                                var idRd = charIDToTypeID( "Rd  " );
                                desc22.putDouble( idRd, 0.000000 );
                                var idGrn = charIDToTypeID( "Grn " );
                                desc22.putDouble( idGrn, 0.000000 );
                                var idBl = charIDToTypeID( "Bl  " );
                                desc22.putDouble( idBl, 0.000000 );
                            var idRGBC = charIDToTypeID( "RGBC" );
                            desc21.putObject( idClr, idRGBC, desc22 );
                            var idType = charIDToTypeID( "Type" );
                            var idClry = charIDToTypeID( "Clry" );
                            var idUsrS = charIDToTypeID( "UsrS" );
                            desc21.putEnumerated( idType, idClry, idUsrS );
                            var idLctn = charIDToTypeID( "Lctn" );
                            desc21.putInteger( idLctn, 4096 );
                            var idMdpn = charIDToTypeID( "Mdpn" );
                            desc21.putInteger( idMdpn, 50 );
                        var idClrt = charIDToTypeID( "Clrt" );
                        list3.putObject( idClrt, desc21 );
                    desc18.putList( idClrs, list3 );
                    var idTrns = charIDToTypeID( "Trns" );
                        var list4 = new ActionList();
                            var desc23 = new ActionDescriptor();
                            var idOpct = charIDToTypeID( "Opct" );
                            var idPrc = charIDToTypeID( "#Prc" );
                            desc23.putUnitDouble( idOpct, idPrc, 0.000000 );
                            var idLctn = charIDToTypeID( "Lctn" );
                            desc23.putInteger( idLctn, 0 );
                            var idMdpn = charIDToTypeID( "Mdpn" );
                            desc23.putInteger( idMdpn, 50 );
                        var idTrnS = charIDToTypeID( "TrnS" );
                        list4.putObject( idTrnS, desc23 );
                            var desc24 = new ActionDescriptor();
                            var idOpct = charIDToTypeID( "Opct" );
                            var idPrc = charIDToTypeID( "#Prc" );
                            desc24.putUnitDouble( idOpct, idPrc, 100.000000 );
                            var idLctn = charIDToTypeID( "Lctn" );
                            desc24.putInteger( idLctn, 2048 );
                            var idMdpn = charIDToTypeID( "Mdpn" );
                            desc24.putInteger( idMdpn, 50 );
                        var idTrnS = charIDToTypeID( "TrnS" );
                        list4.putObject( idTrnS, desc24 );
                            var desc25 = new ActionDescriptor();
                            var idOpct = charIDToTypeID( "Opct" );
                            var idPrc = charIDToTypeID( "#Prc" );
                            desc25.putUnitDouble( idOpct, idPrc, 0.000000 );
                            var idLctn = charIDToTypeID( "Lctn" );
                            desc25.putInteger( idLctn, 4096 );
                            var idMdpn = charIDToTypeID( "Mdpn" );
                            desc25.putInteger( idMdpn, 50 );
                        var idTrnS = charIDToTypeID( "TrnS" );
                        list4.putObject( idTrnS, desc25 );
                    desc18.putList( idTrns, list4 );
                var idGrdn = charIDToTypeID( "Grdn" );
                desc17.putObject( idGrad, idGrdn, desc18 );
            var idgradientLayer = stringIDToTypeID( "gradientLayer" );
            desc16.putObject( idType, idgradientLayer, desc17 );
        var idcontentLayer = stringIDToTypeID( "contentLayer" );
        desc15.putObject( idUsng, idcontentLayer, desc16 );
    executeAction( idMk, desc15, DialogModes.NO );
    // move layer below;
    var theGradient = myDocument.activeLayer;
    theGradient.move(theLayer, ElementPlacement.PLACEAFTER);
    // clipping mask;
    theLayer.grouped = true
    };
    
  • How can I create/edit a footer that shows on my e-mail address?

    How can I change a signature on my e-mail address?

    I'll assume you are using Microsoft Outlook.

    For 2007, go to the Menu bar at the top, tools-> Options-> Mail Format tab at the top-> Signatures and then create your signature you want.

    For 2003, it is almost the same process.

  • How can I make a single image that presents before editing and after editing for a portfolio of photo editing?

    I am trying to create a portfolio that shows the work I did in the past to show potential customers of photo editing. I can't understand how to save pictures on a single page/image in lightroom before and after.

    I think the easiest is to have a virtual copy with the parameters of origin, then take the VC in the print Module and use a template for two as Custom (2) 6 x 4 and then use print to JPEG in the printing Panel the task...

  • How can I create an automated folder that allows you to convert any PDF A4 put in letter format?

    Mac user, with later creative suite.

    Our documentation service wants to move entirely to a single format - A4 - as a British company, but to satisfy our Americans, I would like to have a version of the letter to all the documents that are in a particular folder.

    Is there a way I can use intelligent automation of Mac scripting and record to that effect, as well as any file deposited in a particular file is processed to create a copy that has the letter size paper?

    Thank you.

    PS Open to pointing me to another application that can help!

    Hi Vocality.

    Please refer to this topic How to convert PDF A4 format letter?, might be useful.

    Kind regards

    Nicos

  • How can I create an online form that combines a checkbox in a text field

    In Business Catalyst I need to create a webfrom which contains fields of questions / answers

    Like this:

    web-from.jpg

    I don't know how to create this type of form online that include as this fields

    If someone has answered this question, it would be appreciated

    Thank you

    Nehr

    You just need to make the field. Another is a box and you can have a text corresponding to this field.

    You can style that you need and if you know javascript you can take a step further and show that this field when you check the 'other '.

    As a note: If you make the options that you want only a single option, you must use radio not check boxes for the fields.

  • How can I creat buttons in action script? Need a lot of buttons...

    Hi guys, I'm trying to represent the pixels on my map with buttons. For this, I'm building a class card and I am trying to create a grid of 30 x 30 buttons. But there seems to be a problem when I try to display the buttons, I have seen in some cases, people were using the f1.controls.Button class, but I can't, all I have is the mx.controls.Button, so I think that's different here.

    Try to see if you can help me with this one.

    And another quick question, why he shouts with an error when I do this:

    private var slot: button [30 [30];

    Here is my class, and I was trying to do:

    package world

    {

    import mx.controls.Button;

    public class card

    {

    private accommodation var: Button;

    public void Map()

    {

    var i: int;

    var j: int;

    for (i = 0; i < 30; i ++)

    for (j = 0; j < 30; j ++)

    {

    slot [i] [j] = new Button();

    slot [i] [j] .width = 30;

    slot [i] [j] .hieght = 30;

    slot [i] [j] .left = 40 + I * 30;

    slot [i] [j] .top = 2 + j * 30;

    AddChild (slot [i] [j]);

    }

    }

    }

    }

    The ns1:MapButtonCanvas is the alias for the package that contains the map button object and is defined in the application tag.

    Look at the xmlns:ns1 in the tag below.  He points to the package that owns the object MapButtonCanvas. (ns is namespace).

    <>

    ' xmlns:MX ='http://www.adobe.com/2006/mxml ' layout = "vertical".

    Width = "100%" height = "100%" backgroundColor = "#eaf1f6."

    backgroundGradientAlphas = "1.0,1.0.

    xmlns:ns1 = "" com.somaint.View. * ">"

    Take a look at the real object of MapButtonCanvas and you can see that the name of the package is identical to the ns1 from above.

    package com.somaint.view {}

    Import mx.containers.Canvas;

    Import mx.controls.Button;

    SerializableAttribute public class MapButtonCanvas extends Canvas {}

    public void MapButtonCanvas() {}

    So the code below is said to look into ns1 (i.e. com.somaint.view) for the MapButtonCanvas object.

    Your package names will be different and you will need to change the name in the Application tag and in the MapButtonCanvas object.

    Insofar as your buttons for the performance of the functions, you need to add an event dispatcher clicked every button.

    Here is another version of the MapButton.  It is contained in a single application without popping the pimple of the card to its own component.

    Compare the two and see how they are in fact the same.  I added a name attribute and a listener of click event handler for the button that displays the name at the bottom of the page.  The creationcompletehandler executed after the application is created and built the buttons

    <>

    xmlns:MX ="http://www.adobe.com/2006/mxml"layout = "vertical"

    Width = "100%" height = "100%" backgroundColor = "#eaf1f6."

    backgroundGradientAlphas = "1.0,1.0.

    creationComplete = "creationCompleteHandler ()" > "

    Import mx.controls.Button;

    public function creationCompleteHandler (): void {}

    var i: int;

    var j: int;

    for (i = 0; i<30;i++)>

    for (j = 0; j<30;j++)>

    var btn:Button = new Button();

    BTN. Width = 30;

    BTN. Height = 30;

    btn.setStyle ("left", 40 + i * 30);

    btn.setStyle ("top", 2 + j * 30);

    btnCanvas.addChild (btn);

    }

    }

    }

    private void clickButton(e:Event):void {}

    btnClickLbl.text = e.currentTarget.name;

    }

    ]]>

  • How can I create a slide show that is clickable and can transfer to the Pages in the Web site?

    I want a slideshow with images, but not for the gallery. I want to the home page and that people will be able to click on the images and she will forward them to the pages in the Web site.

    How do I do that?

    With slide show, you can not insert any content but the composition can be used for this one where you can insert the contents of the box container.

    Thank you

    Sanjit

  • How can I create a mouseover hotspot that changes the background color?

    I'm creating an image gallery and want to know how to allow the Viewer to change the background of the page with a mouseover hotspot.

    How would I go to do this?

    Thanks in advance for any help.

    They are using jquery to change the background.

    You can see how it works here http://inspectelement.com/tutorials/changing-the-background-color-of-a-page-using-jquery/

    In this example, they use click so you should have to change .mouseover

    Looks straight forward

  • How can I create a single delayed output (analog voltage) of a Trigger (analog voltage) input reference pulse?

    I am working with a combustion chamber and using a system of data acquisition (with the hardware OR SCB - 68) to read the pressure in the cylinder (such as analog voltage). I'm trying a pulse delayed, 1 millisecond to 5 volts of output once the pressure in the cylinder is high above 5 bar (which corresponds to an analogue voltage of 0.25 V). I would also like to record 30 ms samples before the trigger and 220 ms samples after the outbreak. The following image shows visually what I'm talking about.

    I created a LabVIEW VI (which is attached), but I keep running into 2 issues:

    1. When I run with samples finished after a period of time, I get error-200281which I don't quite understand.

    2. Using the Express VI 'Out of time' to keep time for the pulse I can not get a resolution of 1 millisecond, the pulse is not generated when I put the window between 0.003 and 0.004 seconds for high pulse (i.e. the resolution of 'Elapsed Time' seems to be too coarse).

    I'm a beginner to LabVIEW sorry if my questions are trivial or my VI makes no sense, but I was stuck on this during more than a week. Any help would be greatly appreciated!

    Thank you

    Morgen

    This isn't a good way to trigger a pulse.
    Use a trigger DAQmx to send the pulse when your acquired signal exceeds 250 mV you specified.

    See this for DAQmx trigger:

    http://www.NI.com/white-paper/2835/en/#toc4

  • How can I create a single Inbox for mail unread?

    I have 6 email addresses which I access via Windows Live Mail

    How I put it so that there is only one folder which shows all messages unread all accounts?
    Bravo for assistance

    If it does not already show, there is an option called quick view. On mine, he showed at the top of my list of email account. If it does not show, go to VIEW, select FAST visualization, put a check mark in the seconds box and click SAVE.

    The decoder must also be verified. My top box is checked by default and gray where I even don't mess with it.

    Quick view should appear on top of your list of emails with a selection for all unread emails.

    I hope this helps. Bless you!

    We all need of Yeshua!

Maybe you are looking for