How to "call" a movieclip on the stage of in a movieclip?

Hey,.

I have therefore 2 video clips on the stage, and I have to call the 2nd movieclip of in that 1.

Ive tried to use;

"stage.popUp_mc.gotoAndStop (1);

"root.popUp_mc.gotoAndStop (1);

and it keeps bringing the errors

Thanks :)

Ollie.

If you are using AS3 and the two movieclips live time on the root timeline, so you can try...

MovieClip (root).popUp_mc.gotoAndStop (1);

You could possibly use.

MovieClip (parent).popUp_mc.gotoAndStop (1);

A correct way more OO to do this would be to have an event listener in the main storyline that is assigned to the movieclip and listening to an event that distributes the movieclip.  The event in the main storyline listener would call a function in the main timeline that targets the second movieclip.

Tags: Adobe Animate

Similar Questions

  • How to call a method of the AM with parameters of Bean managed?

    Hello world

    I have a situation where I need to call the Managed bean (setDefaultSubInv) AM, under value changes Listner method. Here's what I do, I added the AM method on page links, and then at the bean call it

    Class [] paramTypes = {};
    Object [] params = {};
    invokeEL ("#{bindings.setDefaultSubInv.execute}", paramTypes, params);

    It works and be able to call this method, if there are no parameters. Say that I pass a parameter to setDefaultSubInv(String a) method AM, I tried to call it bean but raise an error

    The string available = 'test ';
    Class [] paramTypes = {String.class};
    Object [] params = {DISP};
    invokeEL ("#{bindings.setDefaultSubInv.execute}", paramTypes, params);

    I'm not sure this is the right way to call the method with parameters. Can anyone tell how to call a method of the AM with bean to manage settings

    Thank you
    San.

    Just do the following

    1. your method in the Client Interface.
    2 - Add to Page Def.
    3 - Customize your Script like below one to reach your goal.

    BindingContainer links = getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding("GetUserRoles");
    operationBinding.getParamsMap () .put ("username", "oracle");
    operationBinding.getParamsMap () .put ("role", "F1211");
    operationBinding.getParamsMap () .put ("Connection", "JDBC");
    Object result = operationBinding.execute ();
    If (! operationBinding.getErrors () .isEmpty ()) {}
    Returns a null value.
    }
    Returns a null value.
    }

    I hope it helps you
    Thank you

  • How to call a method of the Module of the Application of a class of ViewObjectImpl?

    Howdy,

    With the help of Studio Edition Version 11.1.1.3.0.

    I have a setup where a user between an element and a price. When the item and the price is committed, I want this event to then influence the price of his parents. My idea is to do a ViewRowImpl class and then call an AppModuleImpl class that is her parents and it affects their attributes.

    Question:

    (1) how to call a method on the Module of the Application of a class of ViewObjectImpl?
      public void setPrice(Number value)
      {
        setAttributeInternal(PRICE, value);
        
        DCBindingContainer bindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
        BindingContext bctx = bindings.getBindingContext();
        DCDataControl control = bctx.findDataControl("AppModuleDataControl");
        ApplicationModule am = (ApplicationModule ) control.getDataProvider();
        //uh now what??
        // am.getProperty("method call(getTipsNum())") ?
      }
    (2) when I set an attribute on a view through the AppModuleImpl object, I'll make an infinite loop in this way? that is the AppModuleImpl calls the ViewRowImpl class on a setAttribue (< name >, < value >)?

    Thank you guys.

    It's an interesting problem, I'll take a stab to solve here.

    First let's see I understand the data model:

    (a) there is a table called BOM with a self referencing FK creating a hierarchy of data
    (b) each record BOM is usually a child to another record BOM, so using your example, a van is composed of frames and tires - Let's say that this amounts to 3 records in the Schedule table.
    (c) check parent, truck, is the root of the hierarchy, and so the FK relationship sucks.
    (d) the price of a truck consists of its children. So if the frame costs $1,000 and tires $500, the pickup truck costs total $1,500.
    (e) a change in the price of any folder BOM, upwards or downwards must be propagated to its parent folder BOM. As an example, if the tires up to $600, the pickup truck is now $1600 ($1000 frame + tires $600).

    Does this sound right?

    Well, that I understand the data model, here's what I'd do build in what concerns objects ADF BC:

    (1) an entity BOM (EO) object - let's call this Bom
    (2) a BOM BOM EO association (representing the self referencing FK)-Let's call it BomBomFkAssoc
    (3) an object to view BOM (VO) based on the EO - let's call it BomView
    (4) BOM VO view link BOM VO based on EO of #2 association - call BomBomFkLink

    Next, we create the Java constructs:

    (5) #1 ensures that the EntityImpl has been created
    (6) #4 guarantees for the EO association that it generates the required Java accessors

    Now the additional code:

    (7) for the EntityImpl # 5, in the field of setter setPrice() something like the following:

    public Number setPrice(Number value) {
      Number diffPrice = value.minus(getPrice()); 
    
      setAttributeInternal(PRICE, value);
    
      BomImpl parentBom = getBom(); // from step #6, the EntityImpl should have an accessor method to it's parent BomImpl record
      Number parentDiffPrice = parentBom.getPrice().add(diffPrice);
      parentBom.setPrice(parentDiffPrice);
    }
    

    From a point of view JSF, now when I change a specific record of the Nomenclature in an edit form, a change for the price of registration for the Bill to submit time will automatically propagated to the top of the hierarchy of the BOM because the method setPrice() of the current OS of BOM will walk to the top of the hierarchy of the BOM to the parent following the call it is setPrice() method , which will be then walk to the next BOM record and so forth. At the time all BOM records with changes should be committed to the database.

    You don't need to test this in JSF, but simply the browser component of company on the Application template project Module.

    .... Of course... If I misunderstood your data model, it will be of no help whatsoever.

    CM.

  • How to add a movie to the stage

    The code below is used to create a slide show. It also works a long time that I load my content in container_mc. container_mc is a movieclip that is created on the stage and it contains a simple form for a background.

    Rather than create the movieclip on the stage, I want to generate the movieclip dynamically as follows:

    container_mc1 = new MovieClip;
    container_mc1. Width = 100;
    container_mc1. Height = 100;
    s = new shape;
    container_mc1. AddChild (s);
    this.addChild (container_mc1);

    However, the movieclip is not be added to the stage. It does not work when I Uncomment the line:

    slideView = new SlideshowView (container_mc1);

    How can I connect container_mc1 to the scene? Thank you!

    package {}
    import flash.display. *;
    import flash.events. *;
    import flash.net.URLRequest;
    import the mvc. SlideshowModel;
    import the mvc. SlideshowView;

    SerializableAttribute public class SlideshowDocument extends MovieClip {}
    private var slideModel:SlideshowModel;
    private var slideView:SlideshowView;
    private var req:URLRequest = new URLRequest("data.xml");
    private var container_mc1:MovieClip;
    private var s:Shape;
    public void SlideshowDocument() {}
    container_mc1 = new MovieClip;
    container_mc1. Width = 100;
    container_mc1. Height = 100;
    s = new shape;
    container_mc1. AddChild (s)
    this.addChild (container_mc1)
    slideView = new SlideshowView (container_mc);
    slideView = new SlideshowView (container_mc1);
    slideModel = new SlideshowModel();
    slideView.model = slideModel;
    slideModel.load (req);
    }
    }
    }

    Oops, you need a linestyle or filling.  In addition, you should (not) set a width/height on an object is empty:

    package {}
    import flash.display. *;
    import flash.events. *;
    import flash.net.URLRequest;
    import the mvc. SlideshowModel;
    import the mvc. SlideshowView;
       
    SerializableAttribute public class SlideshowDocument extends MovieClip {}
    private var slideModel:SlideshowModel;
    private var slideView:SlideshowView;
    private var req:URLRequest = new URLRequest("data.xml");
    private var container_mc1:MovieClip;
    private var s:Shape;
    public void SlideshowDocument() {}
    container_mc1 = new MovieClip;
    container_mc1. Width = 100;
    container_mc1. Height = 100;

    container_mc1. Graphics.LineStyle (1);
    container_mc1. Graphics.drawCircle (0,0,200);
    slideView = new SlideshowView (container_mc);
    slideView = new SlideshowView (container_mc1);
    this.addChild (container_mc1)
    slideModel = new SlideshowModel();


    slideView.model = slideModel;
    slideModel.load (req);
    }
    }
    }

  • How to bind an object on the stage of an external class file?

    I have a dynamic textfield called neighName on my Flash stage. I also have a movieclip that I call a region on my stage. When I mouseover in the region, I want a Word to display a small popup * and * I want to text to display in my textfield. I have an external .as file for the management of the region. I can do the code 'see' my area, but I can't seem to see my textfield, even if no error is thrown. Help, anyone?

    My bad - I put the textfield.visible to false. Apparently, I need more coffee.

  • How to call a file on the performance of the 2014 CC via the click of a button

    Hi all !

    I do project HTML5 version Photoshop CC2014. To hide user content in the script file, this has been transformed in Jsxbin . How call a script on the click of a button? I would like to to include to insert the content all files with saptami master.

    Nothing appears immediately in my eyes...

    • You are of course, you need the extensionRoot.substr, sample does not have it?
    • File is in the right place? I don't use the plugin and slices for that, but he needs to copy all the files needed to the right place.
    • When you change things, you must close the Panel in Photoshop, so it will reload the files.
    • The jsx work at all (you can add alerts in there too)?
  • Call a function on the stage of the symbol that is nested in a symbol

    Scenario of

    creation of complete scene

    stage = sym.getComposition () .getStage ();

    SYM.func_btn1 = function() {}

    code

    }

    symbol btn_1

    stage.func_btn1 ();

    It works well

    symbol Index

    symbol btn_1

    stage.func_btn1 ();

    No chance to fire service

    Where is my mistake?

    I write a little different functions, but I tested my way and it works.

    Create functions in compositionReady like that

    SYM. Test = function() {}

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

    }

    When this function is run it will hide the element on the stage, called 'Element '.

    You can call this function in compositonReady leave a nested using this line symbol

    sym.getComposition () .getStage (). Test();

    I have install a sample project I hope it helps.

    http://www.mediafire.com/download/wv8k19pzqdg9b31/NestedSymbolFunction.zip

  • How to add background images to the stage?

    I use the last version (2014.1.1)

    I want to add a photo to be a background image in the stadium.

    So I do:

    1. Add 'compositionReady' to the stage

    (2 key - in: sym.$("Stage").css("background-image","url(images/bg.png)"); "

    but I can't see the picture and to develop tools, the tag had background-image.

    How to solve the problem?

    You are missing quotes in your code.

    SYM.$("stage"). CSS({"background-image":"URL('images/BG.png')"});)

    or

    SYM.$("stage"). CSS ("background-image", "URL('images/BG.png')");

  • vCD API - how to call updateDisks to resize the disks of a virtual machine?

    Had to think about where to post this question; vCD forums or here. I chose here because it's the API specific vCO for vCD and not versions of Java/.NET working team of vCD.

    I'm going to build a workflow to allow my team to change the size of a disk. This disk is part of a virtual machine that vCloud Director 'property '. I heard several times to not only change the size of the disk in vCenter as then vCD runs a risk of being confused. I have reviewed the vCO API for the vCD and found that the VclVM object contains the set of disks (VclVM.disks) as a property. This returns an array of VclVirtualDisk. There is a method VclVM.updateDisks (VclVirtualDisk []), which seems to do exactly what I want. Update disk sizes (could be used to add new facilities). I have a bit of a problem to find how to call it from my point of departure.

    // selectedDisk: a string selected by the user
    // selectedDiskSize: a number input by the user
    
    var disks = virtualMachine.disks;
    
    for (var i = 0; i < disks.length; i++)
    {
    
         if (selectedDisk == disks[i].itemResource.elementName.value)
         {
              if (selectedDiskSize <= disks[i].hardDiskSize)
              {
                   throw "New disk size (" + selectedDiskSize + ") must be larger than original disk size (" +
                        disks[i].hardDiskSize + ")";
              }
     
              disks[i].hardDiskSize = selectedDiskSize;
         }
    }
     
    virtualMachine.updateDisks(disks);
    


    'HardDiskSize' the call throws an error. It is a property read-only and is not a method. The API documentation don't do a good job to define all the methods where I can build a new VclVirtualDisk object. or clone an existing one.

    My thought was to update the existing structures of the disc and then pass them to the updateDisks (...) method. Yes, change an internal structure of an object from the outside is not something I should be doing.

    Any suggestions on how to "clone" this VclVirtualDisk object to change?

    If someone of the vCD of the vCO API team is looking, even updateDisks (...) method will do what I want? Or I have to watch fall down to Java to achieve?


    Thank you!

    If I remember correctly the ability to change the size of an existing drive is not available in API vCD 1.01.

    Christophe.

  • How to call a shade of the library

    Hello

    I'm writing a script to create a new document from the AI with a restricted swatchbook. The designer is supposed to use only the ink/color chart provided by this script.

    So far, I was able to delete all current shades and add a shade spotcolor CMYK or RGB.

    var inkt02 = app.activeDocument.spots.add ();

    inkt02. Name = ' inkt 2';

    inkt02.colorType = ColorModel.SPOT;

    var kleur02 = new CMYKColor();

    kleur02. Black = 10;

    kleur02.cyan = 80;

    kleur02.Magenta = 0;

    kleur02. Yellow = 90;

    inkt02. Color = kleur02;

    var newSpotColor = new SpotColor();

    newSpotColor = inkt02;

    newSpotColor.tint = 100;

    thePallet.addSpot (newSpotColor);

    Often we discuss Pantone colors. No need to define these, since they are already inside GOT it, no? But how to call from the library?

    I'm new to ExtendScript, but this forum (and google) helped me along well so far :-)  I do not have a case of practical use for this yet, but I decided on this exercise as a good way to learn more about ExtendScript.

    There is no access to the samples library, other than the main Swatches palette. You must add these PANTONE to a document, and then open or place this document to have access to them.

  • How to call other functions within the ScriptableFunction class

    I am trying to create an extension of javascript class which will record audio, but the problem is that I can't call other methods in the class.

    clear explanation about my problem:

    It's my Scriptable class

    public final class OCNUtilsNamespace extends Scriptable
    {
        VoiceRecord vr;
    
        public OCNUtilsNamespace()
        {
            this.vr = new VoiceRecord();
        }
        public Object getField(String name) throws Exception
        {
            else if(name.equals("VoiceRecorder")){
                return this.vr;
            }
    
            else if (name.equals("stopRecording"))
            {
                this.vr.stopRecording();
                return new String("Stopped Recording");
            }
            else if (name.equals("startRecording"))
            {
                this.vr.startRecording();
                return new String("Started Recording");
            }
            return super.getField(name);
        }
    }
    

    and here's my ScriptableFunction class:

    public class VoiceRecord extends ScriptableFunction {
    
        String status = "start";
        public Object invoke(Object obj, Object[] args) throws Exception{
            if(status.equals("start"))
                return new String("Started Recording");
            if(status.equals("stop"))
                return new String("Stopped Recording");
            return new String("nothing");
        }
    
        public void stopRecording(){
            status = "stop";
            return;
        }
        public void startRecording(){
            status = "start";
            return;
        }
    }
    

    in my javascript every time I call

    alert(OCN.OCNUtils.VoiceRecorder());
    

    I get the response as "recording started"

    but whenever I tried to call

    alert(OCN.OCNUtils.startRecording());
    

    I don't get all respose and the script will stop working at that time here.

    Why is happening like that?

    I'm doing something wrong?

    I did not understand this concept of scriptablefunction anyone please explain what is happening?

    have to apply Runnble to the future because I have to record the sound of the microphone

    I suggest that you simply pass an argument of your javascript in your extension like this:

    public final class OCNUtilsNamespace extends Scriptable
    {
        VoiceRecord vr;
    
        public OCNUtilsNamespace()
        {
            this.vr = new VoiceRecord();
        }
        public Object getField(String name) throws Exception
        {
            if(name.equals("VoiceRecorder")){
                return this.vr;
            }
            return super.getField(name);
        }
    }
    

    and on your class that extends a ScriptableFunction,.

    public Object invoke(Object obj, Object[] args) throws Exception{
    
                   String param = args[0].toString(); // Cast a parameter from your js to a string
    
            if(param.equals("start"))
                return startRecording();
            if(status.equals("stop"))
                return stopRecording();
            return new String("nothing");
        }
    
        public String stopRecording(){
            status = "stop";
            return status;
        }
        public String startRecording(){
            status = "start";
            return status;
        }
    

    Finally, call your extension via javascript like this:

    alert(OCN.OCNUtils.VoiceRecord("start")); // Call the startRecording() on your VoiceRecord class
    alert(OCN.OCNUtils.VoiceRecord("stop")); // Call the stopRecording() on your VoiceRecord class
    

    Hope this helps

  • How to read a label on the stage of in a symbol

    Hi Edgefriends,

    I'm working on a side project lead, but I have zero experience with JavaScript and I can't seem to get this to work without him so I hope someone can help me to achieve this.

    Below you see the code that I need help. It is part of a symbol on the stage. What I need to do is to play a label ("subFontsTitels") located on the level of the stage. I tried a lot of posibilities but without (good) results. Could you please help me?

    Part of the code:

    Symbol.bindElementAction (compId, NomSymbole, "${_Button} ', 'click', function (sym, e) {})

    read the chronology of the given position (ms or label)

    sym.getComposition () .getStage ().sym.play ('subFontsTitels');

    Insert the code for the mouse, click here

    });

    End of binding edge

    Hi, Rangata01-

    You're close enough.  Tell him in your symbol:

    useful only if your symbol is a level down

    sym.getParentSymbol () ("myLabel") .play;

    can be used any level

    sym.getComposition () .getStage () ("myLabel") .play;

    Hope that helps,

    -Elaine

  • How to call an item in the menu of the user interface?

    Hello!

    I want to call a UI element, but do not know how.

    Maybe its something like "123 action menu.

    theName together to action menu-> action id 123 menu 6195 to application "Adobe InDesign CS5.5"

    that try AS returns something like above. But how do I call the

    > Object > Group

    > Object > ungroup

    menus? Where can I find the ID?

    Run the Script of Kasyan

    http://Kasyan.HO.com.UA/open_menu_item.html

  • How to remove an event on the stage listener from outside the class defined it

    Hello

    I use a component in my app, but it turns out, it slows down my app down big time b/c it does not remove an eventListener on stage for the movement of the mouse. Is there a way I can remove this listening port? I can't in category b/c it is a component and it has no sort of kill function to call.

    Any help would be great.

    Thank you

    You must always have access to the class that contains the listener to remove this listener if this class is precompiled or not.

  • How to call a query of the support bean?

    Hi all

    Another question for you guys:

    I did a page jspx with an entry form and a "submit" button.
    When I click the button submit, the action in my grain of support my_action is executed.
    This is the code:


    public BindingContainer {} getBindings()
    Return BindingContext.getCurrent () .getCurrentBindingsEntry ();
    }

    public String my_action() {}
    BindingContainer links = getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding("EmployeesView");
    Object result = operationBinding.execute ();
    If (! operationBinding.getErrors () .isEmpty ()) {}
    Returns a null value.
    }
    }

    I was hoping that the "EmployeesView" query has been run in this way, but I get the following exception:

    java.lang.ClassCastException: oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding cannot be cast to oracle.binding.OperationBinding


    So how should I run query EmployeesView?


    Second part of the question: what happens if I typed the name of the employee in my form, and I want to
    run a query that selects all employees with the same name?
    How to make a query with a variable as input in the WHERE clause?

    Thanks in advance.

    Published by: Facehugger on 7-apr-2010 11:15

    In this case use example 9-13, access to the Interface of Client Application Module in a JSF Backing Bean using a link of Action named:
    http://download.Oracle.com/docs/CD/E15523_01/Web.1111/b31974/bcservices.htm#sthref918

    So rather than get an operation binding - get you the pointer to the AM across the link - line 4.
    Then on the AM you can call the service method, or instead, use the findViewObject method to locate your specific VO, change and then run the query on the matter. Then, wrap everything in the VO.hasNext () and use the following method on your VO for the data lines.
    And then you are iterating over the lines of the VO and add them to any list/collection you pass to the BPEL.

    This video could help in terms of interaction with a VO and get the lines:
    http://www.YouTube.com/watch?v=bgawJD4yPeY&feature=youtube_gdata

Maybe you are looking for