Control of an another MC MC

Hi all

I'm a noob but I tried google and textbooks but can't find the answer that will be probably simple.

I have 3 movieclips on frame 1 of the main timeline.

The instance names are mc1, mc2, mc3.

Where mc1 is at the end, mc1 must go to frame 2 but mc2 must go to the next section and stop.

Then, when mc1 is at the end, again, the same thing must happen.

I have the last image of mc1 chronology:

gotoAndPlay (2);

But with what line of code mc2 will go to the next section?

Thanks in advance

Delah

its important this place ypu the abobe posted code inside of an Enterframe function, otherwise it only will be triggered once at the beginning of your application, as follows:

import flash.events.Event;

function checkFrames(e:Event):void

{

trace ("mc1-PLAYHEAD is at:" + mc1.currentFrame + "" + mc1.totalFrames);

trace ("mc2-PLAYHEAD is at:" + mc2.currentFrame + "" + mc2.totalFrames);

trace ("mc3-PLAYHEAD is at:" + mc3.currentFrame + "" + mc3.totalFrames);

do things according to the State of the different Playheads

If (mc1.currentFrame is (61))

{

MC1.gotoAndPlay (2);

MC2.nextFrame ();

}

}

Tags: Adobe Animate

Similar Questions

  • mobile control to an another splitter pane

    Is it possible to move a control to a different area?

    In other words, if one has one or more separators on a screen can I move a control to another part?

    Hi cosborne!

    It seems that you are using either a horizontal separator or vertical on the front, is it true? Unfortunately, vertical and horizontal separators are designed to isolate the two different sections of the front panel.  Because of this, you will not be able to programmatically change what part of the façade the command is enabled while the program is running.  One option that you have is to create another control on the other side of the splitter and have this update of the control to the other side of the splitter control.  When you do not want the control that is visible, you can define it as such with a property node.

    The position property cannot move the control inside the façade as it currently exists, then you will not be able to move the control between the two sections of the front panel.

  • bind the cfgrid controls to an another cfgrid

    I have a cfgrid;

    < cfgrid name = "CompQry" format = "html" pagesize = "10" striperows = "Yes" height = "320" width = "580" font = "Verdana, Arial, Helvetica, sans" fontsize = "12" align = "left" bind="cfc:/components/tsiadmin.getCompanies ({cfgridpage}, {cfgridpagesize}, {cfgridsortcolu minutes}, {cfgridsortdirection}, cname # #)" selectmode = selectonload 'row' = "true" > "
    < name cfgridcolumn = "CompanyRecordNumber" header = "Number of Comp" select = "yes" >
    < cfgridcolumn name = 'Name' header 'Name' = >
    < name cfgridcolumn = 'City' header 'City' = >
    < name cfgridcolumn = 'State' header 'State' = >
    < / controls cfgrid >


    And I need to link the selected line to another grid;

    < cfgrid name = "IndivQry" format = "html" pagesize = "10" striperows = "Yes" height = "320" width = "580" do = "Verdana, Arial, Helvetica, sans-serif" fontsize = "12" align = "left" bind = "" selectmode = selectonload 'row' = "true" > "
    < name cfgridcolumn = "IndividualRecordNumber" header = "Number of single" select = "yes" >
    < name cfgridcolumn = "First name" header = "First name" >
    < cfgridcolumn name = "LastName" header = "Last Name" >

    < / controls cfgrid


    The first grid is a list of the companies and the grid secord is supposed to be a list of all the selected company. I see that I have a piece of code is missing. I don't see how I can bind to a cfc on the second grid which will be returen a query based on the selected line in the first grid.

    larksys wrote:
    > I don't see how I can bind to a cfc on the second grid which will be
    > returen a query based on the selected line in the first grid.
    >
    >
    >

    see if this helps:
    http://www.coldfusionjedi.com/index.cfm/2007/8/9/reacting-to-grid-row-selection

    --

    Azadi Saryev
    SABAI - Dee.com
    http://www.SABAI-Dee.com

  • access to the controls of an another VI property

    Hello

    I have A.i and B.vi. B.VI has Integer1 control.

    Replace Integer1 value (Value property) A.i I can use "control valueand" method.

    Maybe it's to change the other properties (for example, disable) Integer1 of A.i control?

    Thanks, Andrey.

    Here's one way around around, but it will work.  Personally, I recommend the driving force.  It'll be more flexible and easier to maintain.

    Don't forget to close all your references or you could accidentally leave A.i in memory, even if it stopped running.

  • control from an another VI VI

    I have a little problem on the control of the other VI VI. I have attached the sample of the screw which works similar to my request.
    The screw attached, TryOut2.vi lets you stop the counting of the TryOut1.vi. The stop button to read only the logic of TryOut2.vi value only when it starts, but when you press the Stop button of TryOuy1.vi TryOut2.vi, the TryOut1.vi will not stop. How the TRyOut1.vi can be controlled by TryOut2.vi

    Thank you

    Thank you, I thought about it.

  • How can I control a .vi another State machine?

    I've written a VI which is an event focused on the state machine.  Events are operator actions that take place on closing buttons on the front panel.  Each event features one or more state names on the queue of the State.  A state machine then takes the name of the State off of the queue of the State and use them to open the case, containing the functions to be performed... Now comes the desire to interact with this vi programmatically to an another vi.  Given that events cannot be triggered remotely because the keys are of type lock and cannot be manipulated by the property node (value (signal))... Is it possible to add a name from State to State in Quebec to distance... ?  It would be nice.

    I prefer not to add the buttons 'hidden' for the original vi, or perhaps to change the structure of the event.

    Is there a better way...?

    Hummer1

    You use 'Get in line' with the same name in the other VI or using a functional Global Variable to pass the reference of queues for the other VI.

    Then you write the State via 'Element of the queue' names as you would in the VI containing the state machine.

  • A control PC in another PC LabVIEW LabVIEW

    My specifications:

    1 PC1 with Window XP - act as a controller and setting of parameters DAQ (time/div, as tension/div)

    2 PC2 with Window 7 - act as a module of data acquisition with NI 5105 digitizer.

    3 LabVIEW 8.6 for two computers.

    My questions:

    Is it possible to get reach PC2 PC1 setup information so that the DAQ module can peformance according to the setting of PC1 reference?

    Please advise me and thank you in advance.

    run both programs

    one master

    a slave

    use tcp/ip as a communication protocol

  • Listen to change a control made by another control programmatically

    Hello

    I have a combobox (A) with a listener for a change of user.  I have a second combobox (B) similar.

    I want to have a listener that fires on A when B has an interaction.

    So for example, if B is changed, I want the selectedIndex property has changed and an event on a fire to pick up of the item associated with this Index, but I can't find an event that is based on the change.

    The selected index is currently defined by an int can be bound to a modelLocator (Im trying to stay true to cairngorm!)  I thought that I may have found with ValueCommit but no luck.  I am able to change the property SelectedIndex has via the bound variable, and I know that I could do something similar on the selectedItem, but I want to work out if its simple to trigger an event of in Combobox (A)

    I know it's hard to imagine with no code - but any ideas? -Since I started trying to use the concepts of Cairngorm seems to hit this problem quite often.  Usually, the code would be in the same place and I could access through the Ids, but as they are in the difference AS removing its not as simple.

    Cheers for any help

    Why cling to this creature dead called Cairngorm.  But alas, this is not your issue. Maybe this will get your rocker Rollin '

    Here's how I usually made with a presenter model when I need the selection between two related dropdown comboboxes/lists

    private var _selectedItemA:Object;
    [Bindable (Event = "selectedItemAChange")]
    public function get selectedItemA (): Object
    {
    Return _selectedItemA;
    }
           
    private var _selectedItemB:Object;
    [Bindable (Event = "selectedItemBChange")]
    public function get selectedItemB (): Object
    {
    Return _selectedItemB;
    }
           
    public function set selectedItemB (value: Object): void
    {
    _selectedItemB = value;
    Perform the calculation/logic here

    ///

    ///

    ///

    ///
    _selectedItemA = resultOfLogicCalculation;
    dispatchEvent (new Event ("selectedItemAChange"));
    dispatchEvent (new Event ("selectedItemBChange"));
    }

    The logic of selectedItemA resembles the logic for selectedItemB.

    .

  • How to create a nested local variable control custom?

    I inherited code which has a cluster of CTL control nested inside another group of control CTL.  If I drag the control nested outside the border of the other, I can right-click to create a local variable, I need to connect to the bundle name.  However, as soon as I drag the inside the limits of external control, it breaks the local variable.

    How can I create a local variable in a cluster THAT CTL nested in a second group CTL?

    Is there some kind of reference OuterCluster.InnerCluster, that I can use if I do a local variable of the external group?

    It turns that I need a local variable for the cluster internal.

    JPG attached shows that I created a local variable for the external cluster (ParametersCluster), used a Unbundle based on the name to access cluster internal (EmptyParmeters) and can access one of the elements through an another Unbundle by name.

  • control references; need help

    Im having a VI with control, let's say some Boolean control. Since another VI running, I want to be able to adjust the value of this control. How do I do that? I remember something about creating a reference the command and calling

    the reference to an another VI.  If I'm wrong, can someone clearly explain what they are for?

    Second, is there a way to call a Subvi and display the pabel before in a tab of the VI which I am the appellant?

    Thank you!

    1. in your control panel before the local VI go the modern-> Refnum-> Refnum of control and place it on your Panel. Then create what refnum control you need (in this case a Boolean value) and drag ' not drop it in the refnum of the front panel. Now, you will have a refnum your Boolean control in your block diagram. You can adjust the value of this control in an another VI (foreign) simply by placing a property node of your control (overseas VI) and the wiring of the reference already created for her. So basically, you pass the reference of the local VI abroad. The adjusted value can also be passed or, if it is static, it can be placed on the foreign VI.

    Sorry, I could not not to edit my previous post. Just thought I would elaborate on the first point a bit more.

    Please ask is that something is not clear enough.

    Jeff Bohrer says:

    On the block diagram, select the terminal you want to update right click > Create > Referance.

    Do not understand how I managed to forget this one, including the fact that I use this method in most cases

  • How to fill a control ring with chains [] array?

    How to fill a control ring with chains [] array?

    It must be karma. (Try really bad karma because I couldn't post this question in my original)

    I must have been a Really bad guy in a previous life...  It's not like I'm bad in this one...

    So... what I want to do this time around?  Something that I thought would be easy... Well... it's a long story...  I had a simple solution, but the client wants something else.  -sigh-

    Here is what they want...  They want a control that allows for multiple selections to a control of the ring (or a control that allows a drop down selection menu).  Bites are filled at run time because it is based on 10 000 other precedents of things this particular choice.  So it must be dynamic.

    The snippet of code & images below show what I'm doing a little...

    The bottom image shows on the right bites which is filled in the control of the ring.  Since the number of items / items changes, I didn't have a bunch of controls stacked on another.  In addition, I have to deal with an unknown quantity of selections.

    Does anyone have a solution that can be recommended?  If so, can you share the solution / idea?

    Thank you

    RayR

    I have posted a code that does something similar here: http://forums.ni.com/t5/LabVIEW/array-of-cluster/m-p/1822451#M625032

    It uses a table hint and individual controls that are moved on top of the table and populated as needed.  This approach might work for you?  You would need a two-column table and only control ring, which you would fill properly whenever the currently active cell changes.

  • movable control problems and onTouch event

    Hi guys

    In my last question, I posted about how can I make a movable control and it works fine, but now I have another question, when I drag a control and put on another control, which moves another control I guess that the elements are mixed with the OnTouch event.

    Here's an example I want to:

    But instead, the control move another decline of the level controls (when I drag control too close to a third party):

    I don't know how I can fix, I use a DockLayout, so that shouldn't happen.

    I use the following code on my movable controls:

    ImageView {
             id: watermark1
             imageSource: watermark.imageSource
             opacity: watermark.opacity
             translationX: 0
             translationY: 100
             attachedObjects: [
                 ImplicitAnimationController {
                     id: translationControllerY
                     propertyName: "translationY"
                 },
                 ImplicitAnimationController {
                                         id: translationControllerX
                                         propertyName: "translationX"
                 }
             ]
             property real iniX : 0;
             property real iniY : 0;
             property real posicionY: 100;
             property real posicionX: 0;
             onTouch: {
                 translationControllerY.enabled = false;
                 translationControllerX.enabled = false;
    
                 if (event.isDown()) {
                     iniX = event.windowX;
                     iniY = event.windowY;  
    
                 }
                 if (event.isMove()) {
                    guide.opacity = 0.6
                    guide1.opacity = 1.0
                    watermark1.translationX = posicionX + event.windowX - iniX;
                    watermark1.translationY = posicionY + event.windowY - iniY;
                    console.debug(iniX, iniY)
                    console.debug(watermark1.translationX + " and " + watermark1.translationY)
    
                 }
                 if (event.isUp()){
                     guide.opacity = 0
                     guide1.opacity = 0
                     posicionX = watermark1.translationX
                     posicionY = watermark1.translationY
                     console.debug("item left")
                 }
                 if (event.isCancel()){
                     guide.opacity = 0
                     guide1.opacity = 0
                     posicionX = watermark1.translationX
                     posicionY = watermark1.translationY
                     console.debug("Cancel)
                 }
               }
             }
    

    Hope you can help me

    Bravo and thank you!

    If you have this movement attached to each 'widget' code, then you will need to cover the event notecard for each other widget outside that you drag.

    The simplest but not the most elegant way is to set a global variable because everyone can see who puts a simple if statement around the code onTouch.

  • Visual Basic 6 IDE - Windows Common Controls 6.0 does not work after March 31, 2013

    I apologize if this isn't the appropriate section of this post, but I couldn't find a better.

    I'm under Visual Basic 6.0 sp6 IDE on both 64-bit Windows 7 systems. They worked wonderfully until last Monday.
    Now, I have a problem only on ONE of them: I can't use the Windows Common Controls 6.0 in VB6 IDE.
    Existing projects are unable to load all references and new projects allow me to add common controls in the components.
    This occurs only in the VB6 IDE, executables compiled work very well.

    The error I get when I try to add common controls in the IDE is a generic "file not found".
    If I run the IDE with Windows XP compatibility mod or administrator privileges, the error becomes 'unregistered object library'

    The weird part is that:
    (1) a computer has been used Sunday 31 is now unable to use the VB6 IDE Windows common controls.
    (2) another computer was off from Friday 29 to 2nd Monday is not at all account of any problem.

    It seems related to the MSCOMCTL. OCX or of its dependencies. I tried a few combinations of these steps:
    -Reinstall the IDE
    -Deregister and reregister the OCX
    -With the help of new files from the system of work
    -Manually remove all the entries in HKEY_CLASSES_ROOT\TypeLib\ {831FDD16-0C5C-11D2-A9FC-0000F8754DA1}
    -Perform a reboot between each steps
    None of the above has worked, in any combination.

    Now the part "stranger":
    If I change the date to March 30, VB6 IDE system once again the common controls. Switching back to today's date, brings back the problem.

    During the night between 30 and 31, time spent, my it guessing this and the fact that the computer has been used Sunday 31, is somehow related to the problem.

    I was advised in another thread (where a user knows my situation, with 4 systems on 10, with the same symptoms), I ask if this problem could be transmitted to Microsoft, if possible.
    Thank you in advance.

    Hello

    The issue is limited to Visual Basic 6, it would be better suited for the IT audience Pro on MSDN. Please ask your question in the MSDN Support Forum. You can follow the link to your question:

    http://social.msdn.Microsoft.com/forums/en-us/vbgeneral/threads

    I hope this helps.

  • Linking multiple effect layers of several compositions such as controlled form than a composition adjustment

    Hi, I'm working on a black and white colorization project video. I have 25 compositions that have 5 or more in adjustment layers with scale effect colors and each 1-5 layer masks on it.

    I want to link all adjustment layers with the same effect of each composition from a just publication. For example I have adjustment layer for hair or a suite which must bee of same color in all 25 precomps, and when I want to change the color of hair or a suite, to spend it comes a model and do not have true all 25.

    I tried copy property links layer technique but no luck it do not work but it applies to the whole layer and not simply masked aria.

    Any help please.

    You can attach controllers to layer in other compositions by naming the compositions. An expression controlling another layer in the same composition would be initially thisComp.layer ("layer 1"). If the layer that you want to control was in another publication the term would begin to comp("Comp_1").layer {"layer 1").} You can link the layers of a model of layers in another comp, by separating the timelines and then just using the Pickwhip to drag from one property to another. If you have configured a layer in your master comp with a bunch of controllers effects you can lock the effect controls panel, and then use the Pickwhip do to drag the property that you want to control to the controller. This would give you something like this: comp("Main Comp") .layer ("controller") .effect ("Slider Control") ("Slider")

    If you do a lot of them it's a really good idea to implement a good naming convention.

  • Message access control in the OSB proxy service when the Service Type is the Any SOAP Service

    Hello

    We have a proxy OSB service where the Service Type is 'no matter what SOAP Service'. We use Auth.xml to authenticate messages to achieve this proxy service.

    It is, ca we apply Message this proxy access control so that only user A is allowed to sent message has and only user B is allowed to message sent B?

    Us know if the proxy OSB service is based on a wsdl, then we can apply access control message for each operation in the Security tab - and thus specify which user can access the operation. But unfortunately, we have not a wsdl, because this service proxy is a proxy gateway and must accept any SOAP message reaches.

    For example, if the user name in the SOAP header is msgAUser, get is accepted.

    "< soapenv:Envelope xmlns:soapenv ="http://schemas.xmlsoap.org/soap/envelope/">"

    < soapenv:Header >

    "< xmlns:wsse wsse: Security ="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">."

    < wsse: UsernameToken >

    < wsse:Username >msgAUser< / wsse:Username >

    < wsse:Password >msgApwd< / wsse:Password >

    < / wsse: UsernameToken >

    < / wsse: Security >

    < / soapenv:Header >

    < soapenv:Body >

    <Get>

    ...

    < /Get>

    < / soapenv:Body >

    < / soapenv:Envelope >

    If the user name in the SOAP header is msgBUser, then MessageB is accepted.

    "< soapenv:Envelope xmlns:soapenv ="http://schemas.xmlsoap.org/soap/envelope/">"

    < soapenv:Header >

    "< xmlns:wsse wsse: Security ="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">."

    < wsse: UsernameToken >

    < wsse:Username >msgBUser< / wsse:Username >

    < wsse:Password >msgBpwd< / wsse:Password >

    < / wsse: UsernameToken >

    < / wsse: Security >

    < / soapenv:Header >

    < soapenv:Body >

    <MessageB>

    ...

    < /MessageB>

    < / soapenv:Body >

    < / soapenv:Envelope >

    Any suggestions please?

    Understood.

    My current client, we have faced the same problem and implemented a similar design which nevertheless has important benefits.

    The problem with proxy input all SOAP is not only in the complexities of authentication. Most important, resources fine grain (thread) management becomes impossible: proxy entry has a workmanager, one constraint of son max. If any single service behind entered proxy knows an influx of requests (because of a peak or a misconfigured customer), he eats the workmanager dry and the rest of the services become too inadmissible.

    In this spirit, we have implemented the following diagram. It's a little more complicated, but it serves us well for a few years already:

    EntryProxy 1-> Interceptor entering Proxy-> Proxy 1

    EntryProxy 2-> Interceptor entering Proxy-> Proxy 2

    ...

    Enter proxy doesn't do Nothing but shall forward the request for interception of incoming traffic. Power of Attorney of the entry, however, has its own WSDL, authentication and the workmanager which allows precise control.

    Another important aspect of a proxy of the entry, it is that it passes a custom header containing the name of the destination of the interceptor, e.g. TargetURI = "ProxyService/Paypal/Paypal.

    Incoming Interceptor Proxy performs all recording, the error handling and other common tasks.

    Then, according to the last header, the proxy of the interceptor makes a dynamic call to route to the specified destination.

    Yes, this design has an additional moving part - a proxy entry - but he a) works b) guard control all in our hands. The entry proxy is a very small point; When I need to make a new one, I just copy an existing one and replace the WSDL file and the value of the TargetURI - 30 seconds of work.

    Hope that helps.

    Vlad

    http://vladimirdyuzhev.com

Maybe you are looking for