HELP ~ need a button to add a clip of library

I have 2 clips in the library that contains the text box.

Description 1
Description 2

I need two buttons 1. load Description 1 movieClip loads the other movieClip 2 description of the library.

Finally worked it out.

loadVariablesNum ("description1.txt", 0);

loadVariablesNum ("description2.txt", 0);

Tags: Adobe Animate

Similar Questions

  • Help creating a button and add text inside

    Hi guys...

    I am trying to create a button (or an MC, the same) using only of the code, but it must be what I need, inside...

    var ins_btn:?

    ins var: String = "how to play / Como jugar;

    ins_btn.x = 202,75;

    ins_btn.y = 316;

    ins_btn. Width = 533,30;

    ins_btn. Height = 59.35;

    ins_btn. Ins = text;

    addChild (ins_btn);

    I tried this way, do ins_btn a MC, but it does not work (it does not appear in my screen) and I do that, so, when someone clicks on it, it goes to the two framework:

    ins_btn.addEventListener (MouseEvent.CLICK, instructionF);

    function instructionF(event:MouseEvent):void {}

    ins_btn. RemoveEventListener (MouseEvent.CLICK, instructionF);

    gotoAndStop (2);

    }

    Then... What should I do to make this button or movieclip appears in the scene, with the words how to play / Como jugar inside?

    Thank you very much!

    For a button work, he needs something to click on as a key area. If you need a basic button without making any design, you can use one of the preset buttons (window-> common libraries-> buttons) or just use the component button (window-> components-> UI-> button).

    For example, this one, open the components Panel (window-> components), driving User Interface open, drag the Button component in your library.

    In the code you can use it as simply as this:

    Import fl.controls.Button;

    import flash.events.MouseEvent;

    var: button = new Button();

    Button.label = "how to play / Como jugar;

    button.setSize (150,20);

    addChild (button);

    button.addEventListener (MouseEvent.CLICK, instructionF);

    function instructionF(event:MouseEvent):void

    {

    button.removeEventListener (MouseEvent.CLICK, instructionF);

    gotoAndStop (2);

    }

    If you want to draw your own button, use the graphics class of any display object and draw a background for your button has something to capture the click. You also need a TextField inside the key. For example a blue rounded rectangle button Sprite:

    import flash.display.Sprite;

    import flash.text.TextField;

    import flash.text.TextFieldAutoSize;

    import flash.text.TextFormat;

    import flash.text.AntiAliasType;

    var ins_btn:Sprite = new Sprite();

    addChild (ins_btn);

    background

    ins_btn. Graphics.beginFill(0x6666CC,1);

    ins_btn. Graphics.drawRoundRect (10,10,150,20,10,10);

    ins_btn. Graphics.endFill ();

    text

    var tf:TextField = new TextField();

    ins_btn. AddChild (TF);

    TF. Width = 10;

    tf.autoSize = TextFieldAutoSize.LEFT;

    tf.antiAliasType = AntiAliasType.ADVANCED;

    TF. Selectable = false;

    TF. Text = "how to play / Como jugar;

    tf.setTextFormat (new TextFormat("Arial",11,0xFFFFFF));

    TF.x = 22;

    TF.y = 10;

    has hit

    ins_btn.addEventListener (MouseEvent.CLICK, instructionF);

    function instructionF(event:MouseEvent):void

    {

    ins_btn. RemoveEventListener (MouseEvent.CLICK, instructionF);

    gotoAndStop (2);

    }

  • Helps the assignment buttons that control video clips

    I'm pretty new to flash and my teacher gave us an assignment with little help or tutorials.

    He wants us to create a SWF file that has a House and it is the front yard and two buttons.

    A button that says who says the sunset and Sunrise.

    When I push the button of the Sunrise, the Sun must rise above the House and stay there.  When I push the button to sleep the Sun, it must set - and then a UFO must land on the lawn.


    So I think I have a pretty good understanding about the assignment, but the actionscript code is shake me up.  How do I make buttons that will control the video for sun to stay mounted above the House and then set?  The UFO is a whole new question.   The button of the Sun should make Sun down and then a UFO land on the lawn.

    Please help explain/link me to the good tutorials.   One thing that worries me is that the Sun will be mounted - and then stay on top of the House, even if I click on the button of the sunset.

    Your help is greatly appreciated.

    You should talk to your professor or classmates about of what you already know of your lessons which would allow you to do these tasks.  The risk you run in seeking help as it becomes a solution that your teacher would never expect to have knowledge of, one that you could never explain how it works... which can be detrimental to your teacher you coast.

  • I need help my wifi button won't turn on or turns blue showing that its on... which is wrong?

    I need help my wifi button won't turn on or turns blue showing that its on... And when I try to download a driver for him a box just telling me it can't find the file manager. So I tried to download another, but the site become white after I press the download button.

    its may be driving problem. Contact me {deleted personal information}. I can fix it 4 u

  • Cannot add a clip by sequence? Help!

    This is driving me CRAZY!

    First Pro CC 2014, it is only let me add a clip by sequence. I double click my click, my entry points and the value, drag it in the sequence and bam, the clip is here. Using the same clip, I change my entry and places and it won't let me add the video portion of the clip to the sequence. It allows me to add audio only. So, I create a new sequence and it still won't let me add the video clip. I basically can I use only CC 2014 to change the duration of a video clip.

    I first Pro CS6 and have no problem.

    Why would he do that? This is the absolute most frustrating thing!

    See here:

    Adobe Premiere Pro help. Source patch and the targeting of the track

  • Build relationships of button in a movie clip

    I'm looking to learn more about Flash in general and actionscript in particular. I created a flash piece that consists of 4 buttons in a clip that is be hidden by another clip. A film is all of the 4 buttons. The other film is a "spotlight" that moves with the cursor. As the spotlight shines on each button, the button text changes color and is "enlightened". The State above each button is set key to change the color. When I put a keyframe in the Down state of each button to add actionscript to create the action that makes the clickable button to take the Viewer on a web page, it tells me that no action can be given to this State down. If I try to use behaviors to accomplish the same thing, he told me that the behaviors are not supported. If I put actionscript in the layer actions of the scenario, there is no action required, i.e. by clicking the buttons doesn't lead anywhere I tried to move actionscript code before, between and after the setInterval and setMasker actionscript code that controls the interaction between the two film clips (which works perfectly). I tried to insert a layer actions in the button clip - same result - nothing. I tried to put the actionscript code in the second image on the layer actions (both in the main timeline and in the clip), all to nothing does not. I give each button an instance and used name in the actionscript code.

    Here is the actionscript code that I use for one of the buttons:
    book.onPress = function() {}
    book.getURL ("http. ("/ / www.bainbridge.wednet.edu");
    }

    I don't get an error message with this actionscript. I just don't get sent to the web page. I use Flash 8.

    What should I do? Is this a problem because the cursor is already attached to a share? I'm sure this must be possible, if only I knew more.

    Thanks for help.

    you have the real mc identified as (book), the root and the code I posted above? If so, are the code and the mc on the same frame? You should also note that the code shown above is intended to be placed on your time line for root, not directly on the mc identified as (book). one last thing: you need to properly target your mc (book).

    target like this:

    IF YOU ARE ON THE TIME LINE MAIN (_root):

    If (book) lies on the _root already then your target path is simply book.onRelease.
    If (book) lies inside an another movieclip on the _root, try to find out what movieclip (book)
    resides in. which will now be the first part of your target path.
    then to know if (book) lies in an another movieclip. If so, this will be the next part of the
    target your path.
    This continues until you reach (book). the entire path you took to reach (book) is your
    target path.
    You can also click the target icon in your actionscript pane to insert target a path for
    your movieclip.

    Here is an example in which (book) lies within another video clip (yourMovieClip) on your _root:

    yourMovieClip.book.onRelease = function () {}
    getURL (" http://www.cnn.com/");
    }

  • Have 2 gmail address I need another profile to add a yahoo email account?

    I have several questions:

    I have 2 gmail accounts and receive emails for each in different tabs in T.bird. It works very well.

    I want to add a YAHOO address and create a third tab in the client to send and receive mail from yahoo.

    Do I need a new profile for that?

    If I choose to use my existing gmail email will be adding yahoo erase or delete my gmail accounts? The interface of Mozilla is really confusing. If I do not want to use gandi there is a button at the bottom of the dialog box that says: ' pass it and use my existing email. I would be delighted if the specific needs that I've addressed here. None of the help to address documentation. Adds an address yahoo an "existing email"? Seems to me adding that yahoo would add A NEW ADDRESS to a SERVICE PROVIDER OTHER. This is where the confusion begins. Software God UX can be terrible.

    I'd like a clean and easy to understand response.

    THX

    JB

    Do not buy the gandi account if you already have an e-mail account.

    Select existing e-mail account and add your details of Yahoo. You can add as many account you want. I don't think that anyone has found a limit when one exists.

    In the world of Thunderbird e-mail account means that you have already established with a messaging provider, not the one you already have installed in Thunderbird.

  • How to set the 1st online number = 10 and increment 10 whenever you press the button to add a new line. Also enable users to enter the generic numbers, IE 13 and still increment of 10 23 or whatever.

    How to set the 1st online number = 10 and increment 10 whenever you press the button to add a new line. Also enable users to enter the generic numbers, IE 13 and still increment of 10 23 or whatever.

    I already have my chart updated in place with a button that will add new lines when pressed.

    Now, I want to clarify that the 1st row is 10 and all the other rows after this increase by 10. It will also allow users to enter any number they want, and the next line will increment of 10.

    Help please.

    Try changing the line button Add the following JavaScript code

    newRow var = Table1._Row1.addInstance)

    If (newRow.index > 0)

    {

    newRow.NumericField1.rawValue = newRow.resolveNode ('Row1 [-1].) NumericField1') .rawValue + 10;

    }

    You need to change this code to match your name on the form, but basically the method addInstance() returns the new row, the newRow.resolveNode ("Row1 [-1]... will get the value of the previous row and then add 10.

    Concerning

    Bruce

  • AS3 putting the buttons inside the Movie Clip

    I'm practicing AS3 (after years of AS2) and can't have a button inside of a clip speaks to another clip on the main timeline. Here is the code:

    OneButton.addEventListener (MouseEvent.CLICK, OneButtonClicked);

    function OneButtonClicked(event:MouseEvent):void

    {

    MovieTarget.gotoAndStop (1);

    MovieDescription.gotoAndStop ("One");

    }

    TwoButton.addEventListener (MouseEvent.CLICK, TwoButtonClicked);

    function TwoButtonClicked(event:MouseEvent):void

    {

    MovieTarget.gotoAndStop (2);

    MovieDescription.gotoAndStop ("Two");

    }

    The code above works, but if I put OneButton and channels within a clip, I know can target the MovieTarget and MovieDescription. The reason that I want to put OneButton and strings inside it's own MC is so I can dim each hit after top by switching the playhead within this MC help. ? Thank you!

    Start from the beginning

    Press f8 and choose movieClip, then draw your button movie untoggled call then create another movie and create your button toggled or grayed button and call it greyedButton.  Go to the main stage add 2 instances of button and 2 greyedButton (just drag the library).  you have 4 instances on stage.  give the name of the instances of appeal and place them one over the other so you can see 2 buttons on the stage.  put the button greyed under the button.

    now with action script

    Button1.addEventListener (MouseEvent.CLICK, OneButtonClicked);

    function OneButtonClicked(event:MouseEvent):void

    {

    MovieTarget.gotoAndStop (1);

    MovieDescription.gotoAndStop ("One");

    Button1.visible = false; Here the button greyed will show

    }

    Button2.addEventListener (MouseEvent.CLICK, TwoButtonClicked);

    function TwoButtonClicked(event:MouseEvent):void

    {

    MovieTarget.gotoAndStop (2);

    MovieDescription.gotoAndStop ("Two");

    Button1.Visible = true; Here button1 will return to its orignal State

    Button2.visible = false / / here will show the button greyed

    }

  • I am unable to hear my video clips when I add audio clips to my film.

    Ok. I'm trying to set up a video for my family. I have video clips and audio clips that I want to use. I have a problem with the pleading of my video clips when I add an audio clip.

    Ok. I'm trying to set up a video for my family. I have video clips and audio clips that I want to use. I have a problem with the pleading of my video clips when I add an audio clip.

    Using Vista Movie Maker 6 or Windows Live Movie Maker?

    ? You say you want to hear the two audio sources simultaneously?
    Try to adjust the volume of audio files.

    Click with the right button on the audio clip... Choose... Volume.

  • Disable the button new add tab CSS specifications of the trade while displaying the Notification number GTIN message duplicate

    Hi Ron,

    I need to disable the Add button again in the CSS tab on specification of the trade while displaying the Notification number GTIN message duplicate.

    If it does not duplicate notification displayed GTIN message not necessary to disable the Add button again in the CSS tab. Please see the screen shot for more information.

    You said same thing as below mentioned in bold.

    2. you can lock whole sectors, such as the CSS section, you use an extension called SectionLevelEditing. You can read about it in the Guide of extensibility, which will guide you to a more detailed document.

    If you are wanting to keep lock editable, but section towards the bottom/remove the button Add a new one just so you can use the UIe feature Extensions, also documented in the extensibility Guide.

    As suggested, I had crossed the SectionLevelEditing document. but I don't get anything in the document.

    Even my requirement is condition based on the button Add a new on the CSS tab.

    I tried another way

    (1) I got to add new button id with developer tools (ctl01_CtlInitialPublication1_ctlCollapsibleContentContainer_ctl00_btnAddNew)

    (2) what properties should be used by pulling the new id button.

    I am faced with the question. Please let me know some suggestions.

    Thank you

    Floquet

    In the JavaScript code, could you try to filter by some special keywords in your notification of duplicate instead of code GTIN number # .writing C NET.

    In user interface Extensions, it has only allowed to extend the JavaScript code.

  • 1 - How can I animate a layer? and how do I add the clips that I have edited in the entire video?

    I'm super new to this. I need some simple instructions to these questions are: 1 How can I animate a layer? and how do I add the clips that I have edited in the entire video? I know there is probably something on the Adobe Web site telling me these things, but I prefer this kind of thing.

    How to add effects, motion graphics in After Effects | Tutorials Adobe after effects CC

  • 'Add a Clip marker' gone?

    Hi all, in the latest version of Premiere Pro I do not see 'Add Clip marker' as a shortcut option. It was available in Premiere Pro 6 and there is a tutorial on using it here: using Adobe Premiere Pro | Working with markers

    ***

    Add markers to clips

    The marker is added to the item. To add a marker to a component in the Assembly, follow these steps:

    1. Set up a keyboard shortcut to "Add a Clip marker" under editing > shortcut keys (Windows), or Premiere Pro > shortcuts (Mac OS).
    2. Select the item.
    3. Place the cursor where you want to place the marker.
    4. Press the keyboard shortcut, you just create to "Add Clip marks."

    The marker is added to the element.

    You can inspect the marker dialog box by double-clicking the marker in the Source monitor.

    ***

    Thanks in advance for any light on this question. If this option is missing that I would use all the time, it would be a shame for me. I need to apply markers to the components of the package (not in the source monitor) and not to the entire timeline.

    See you soon

    Do exactly what you wrote.

    Select the item in the timeline

    Set the playhead to the position

    Hit M

    If I open a clip in the SM and the struck M I can see the marker on this clip in the timeline panel.

    Edit: Make sure that the track is a bit enlarged.

  • Need to create and add RDM disk while calling reconfigVM

    Hello

    Now I create RDM disk help createdisk method and then added the disk of the virtual machine by using the reconfigvm method using vsphere sdk in c# but I need to create and add the disk while calling the reconfigVM only. I searched and found a code as example.

    diskSpec.operation = VirtualDeviceConfigSpecOperation.add;
    diskSpec.fileOperation = VirtualDeviceConfigSpecFileOperation.create;

    ". According to my understanding, vmdk file can create while adding the LUNs as disk RDM using both add and create function, but then I try these i couldn't succeed. If anyone has tried what can you share your code or suggestions please.

    Thank you

    Vijaya

    Vijaya,

    I guess that how you specify the devicename property is invalid. You just need to assign the devicename you recovered in QueryConfigTarget to the devicename of the backup file.  Please refer below snippet for adding disk:

    Request for more information on specific devices that can be used to back up virtual devices

    CTAR ConfigTarget = cb.getConnection () .getService () .queryConfigTarget (envBrow, hostmor);

    VirtualMachineScsiDiskDeviceInfo [] arrSCSILun = (VirtualMachineScsiDiskDeviceInfo []) ctar.getScsiDisk ();

    HostScsiDisk drive;

    If (arrSCSILun! = null) {}

    for (int i = 0; i)< arrscsilun.length;="" i++)="">

    disc = arrSCSILun [i] .getDisk ();

    If (disk == null) {}

    continue;

    }

    else {}

    deviceName = arrSCSILun [i] .getDisk () .getCanonicalName ();

    }

    Add a disk
    VirtualDeviceConfigSpec diskSpec = new VirtualDeviceConfigSpec();
         
    diskSpec.setFileOperation (VirtualDeviceConfigSpecFileOperation.create);
    diskSpec.setOperation (VirtualDeviceConfigSpecOperation.add);
         
    VirtualDisk disk = new VirtualDisk();
    VirtualDiskRawDiskMappingVer1BackingInfo diskfileBacking = new VirtualDiskRawDiskMappingVer1BackingInfo();
         
    diskfileBacking.setFileName("");
    diskfileBacking.setDiskMode ("persist");
    diskfileBacking.setCompatibilityMode ("physicalMode");
       diskfileBacking.setDeviceName (deviceName); It's the devicename you got above
    System.out.println ("DeviceName assigned is" + deviceName);
    disk.setKey (new Integer(-101));
    disk.setControllerKey (new Integer (diskCtlrKey));
    disk.setUnitNumber (new Integer (0));
    disk.setBacking (diskfileBacking);
    disk.setCapacityInKB (1024);
         
    diskSpec.setDevice (disk);

    And to set the loglevel, please visit: http://kb.vmware.com/kb/1001457

  • Message to "Capture device offline" when you attempt to add additional clips from HDV camcorder, in CS5

    "Device capture offline" message when you try to add additional clips to an existing project in first Pro CS5.5.2.

    Previous capture has been accomplished, but, then, in trying to add additional clips of the same device, it failed.

    Every 40 minutes of excerpts of 185 was initially captured by using Sony Vegas Platinum 11 Moviemaker, without error. Additional clips of mt2 were then imported successfully into Premiere Pro after indexation, which conform clips, and they play perfectly well and high quality CS5.5.2 at 1440 x 1080i.

    Why the Capture device would be offline, where no physical alteration has been made to the equipment?

    Jeff,

    I'm now back at the base. Checked the anamorphic HDV on the server of the Studio and he was a con man, tired cable, the M6600 like me after spending six hours at an airport in China.

    Replaced cable and everything is fine.

    Thank you to all who tried to help.

    Bob

Maybe you are looking for