How to call child movieClip within childMovie clip  by others layer MovieClips.

Object(root).my_movieclip2.my_movieclip3.my_movieclip24.gotoAndPlay(18);
not working,,,

Assuming you do get this to work the way you're asking, what happens when the structure of my_movieclip2 or my_movieclip3 changes? You're either going to have to search through and find every place that references them or you're going to wind up in a situation where you're scared to make any changes because of the sheer amount of work that's involved.
A more robust approach is to do this:
dispatchEvent('someEvent', true);//true says "bubble this up the display list"
then in movieclip24, something like
stage.addEventListener('someEvent', onSomeEvent);
function someEvent(e:Event):void {
     gotoAndPlay(18);
Note that in my own work I wouldn't do it this way, but you have to start somewhere in terms of understanding concepts.

Similar Messages

  • How to call  a method of one view in other view

    Hi
      could any one suggest "how to call  a method of one view in other view "
    thanks
    kaushik

    Hi Kausic,
    Its not possible to call a method from view to View.
    Since view is private entity we can not pass the data directly.
    I suggest you to declare the method in Component/Custom controller and call.
    the code is,
    wdThis.wdGet<Component/Custom Name>Controller().<methodName>();
    Regards,
    <b>Ramganesan K</b>

  • How to call methods from within run()

    Seems like this must be a common question, but I cannot for the life of me, find the appropriate topic. So apologies ahead of time if this is a repeat.
    I have code like the following:
    public class MainClass implements Runnable {
    public static void main(String args[]) {
    Thread t = new Thread(new MainClass());
    t.start();
    public void run() {
    if (condition)
    doSomethingIntensive();
    else
    doSomethingElseIntensive();
    System.out.println("I want this to print ONLY AFTER the method call finishes, but I'm printed before either 'Intensive' method call completes.");
    private void doSomethingIntensive() {
    System.out.println("I'm never printed because run() ends before execution gets here.");
    return;
    private void doSomethingElseIntensive() {
    System.out.println("I'm never printed because run() ends before execution gets here.");
    return;
    }Question: how do you call methods from within run() and still have it be sequential execution? It seems that a method call within run() creates a new thread just for the method. BUT, this isn't true, because the Thread.currentThread().getName() names are the same instead run() and the "intensive" methods. So, it's not like I can pause one until the method completes because they're the same thread! (I've tried this.)
    So, moral of the story, is there no breaking down a thread's execution into methods? Does all your thread code have to be within the run() method, even if it's 1000 lines? Seems like this wouldn't be the case, but can't get it to work otherwise.
    Thanks all!!!

    I (think I) understand the basics.. what I'm confused
    about is whether the methods are synced on the class
    type or a class instance?The short answer is; the instance for non-static methods, and the class for static methods, although it would be more accurate to say against the instance of the Class for static methods.
    The locking associated with the "sychronized" keyword is all based around an entity called a "monitor". Whenever a thread wants to enter a synchronized method or block, if it doesn't already "own" the monitor, it will try to take it. If the monitor is owned by another thread, then the current thread will block until the other thread releases the monitor. Once the synchronized block is complete, the monitor is released by the thread that owns it.
    So your question boils down to; where does this monitor come from? Every instance of every Object has a monitor associated with it, and any synchronized method or synchonized block is going to take the monitor associated with the instance. The following:
      synchronized void myMethod() {...is equivalent to:
      void myMethod() {
        synchronized(this) {
      ...Keep in mind, though, that every Class has an instance too. You can call "this.getClass()" to get that instance, or you can get the instance for a specific class, say String, with "String.class". Whenever you declare a static method as synchronized, or put a synchronized block inside a static method, the monitor taken will be the one associated with the instance of the class in which the method was declared. In other words this:
      public class Foo {
        synchronized static void myMethod() {...is equivalent to:
      public class Foo{
        static void myMethod() {
          synchronized(Foo.class) {...The problem here is that the instance of the Foo class is being locked. If we declare a subclass of Foo, and then declare a synchronized static method in the subclass, it will lock on the subclass and not on Foo. This is OK, but you have to be aware of it. If you try to declare a static resource of some sort inside Foo, it's best to make it private instead of protected, because subclasses can't really lock on the parent class (well, at least, not without doing something ugly like "synchronized(Foo.class)", which isn't terribly maintainable).
    Doing something like "synchronized(this.getClass())" is a really bad idea. Each subclass is going to take a different monitor, so you can have as many threads in your synchronized block as you have subclasses, and I can't think of a time I'd want that.
    There's also another, equivalent aproach you can take, if this makes more sense to you:
      static final Object lock = new Object();
      void myMethod() {
        synchronized(lock) {
          // Stuff in here is synchronized against the lock's monitor
      }This will take the monitor of the instance referenced by "lock". Since lock is a static variable, only one thread at a time will be able to get into myMethod(), even if the threads are calling into different instances.

  • Help!Could someone kown how to call ArcGIS application within Labview?

    For my desigh, ArcGIS must be as a application within Labview.Since I haven't found any information in this field. Could some help?
    Now I have finished the two individual parts of Labview and GIS module, but the main problem is how to call for GIS module in Labview. Maybe some one can give me some suggestion.
    Thank all!

    Hello �
    If you created a DLL out of your GIS application you could then call it from LabVIEW using a Call Library Function Node.
    The best place to start understanding Call Library Function Nodes is the LabVIEW Help.
    Also, you might want to take a look at this link.
    Hope this helps!
    S Vences
    National Instruments

  • How to Call C functions within Flash?

    I have a bunch of functions written in C++. I would like to
    be able to call these functions within my flash application so that
    I can pass data to the functions and get the returned values. Is
    this possible with Flash 8?
    If this is not possible then is there a way that I can have
    Flash share memory space with another stand-alone application? This
    way, a C++ program could read and write data to the shared memory
    and Flash could also read and write to it.

    you can write a dll and then call mmexecute in the flash IDE,
    but I
    think in the player it is not possible.
    mProjector on windows will let you write c plugins that you
    can call from Flash
    http://www.screentime.com/software/mprojector/plugins.html
    give it a look - it might do what you need...
    On 2006-05-04 15:50:24 -0400, "mmakrzem"
    <[email protected]> said:
    > I have a bunch of functions written in C++. I would like
    to be able to
    > call these functions within my flash application so that
    I can pass
    > data to the functions and get the returned values. Is
    this possible
    > with Flash 8?
    >
    > If this is not possible then is there a way that I can
    have Flash
    > share memory space with another stand-alone application?
    This way, a
    > C++ program could read and write data to the shared
    memory and Flash
    > could also read and write to it.
    John Pattenden
    Screentime Media
    Flash Screen Saver, Application and Wallpaper tools
    http://www.screentime.com

  • How to call MS Help within Form ?

    Here is my problem :
    I don't know how to call Winhelp and get the Help Topics - contents screen when it starts...
    Any help would be appreciated..
    Thanks in advance!
    null

    Host('winhlp32 <help file>');

  • How to call this out by clicking button from other file??

    The following coding is easy and workable...!! i wonder how do i call this out by clicking button from other file... please help!!
    import java.awt.geom.*;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    import java.awt.print.PrinterJob;
    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.*;
    import java.awt.print.*;
    public class Receipt extends JPanel implements Printable, ActionListener {
    final static Color bg = Color.white;
    final static Color fg = Color.black;
    final static Color red = Color.red;
    final static Color white = Color.white;
    final static BasicStroke stroke = new BasicStroke(2.0f);
    final static BasicStroke wideStroke = new BasicStroke(8.0f);
    final static float dash1[] = {10.0f};
    final static BasicStroke dashed = new BasicStroke(1.0f,
    BasicStroke.CAP_BUTT,
    BasicStroke.JOIN_MITER,
    10.0f, dash1, 0.0f);
    final static JButton button = new JButton("Print");
    public Receipt() {
         setBackground(bg);
    button.addActionListener(this);
    public void actionPerformed(ActionEvent e) {
    if (e.getSource() instanceof JButton) {  
    PrinterJob printJob = PrinterJob.getPrinterJob();
    printJob.setPrintable(this);
    if (printJob.printDialog()) {
    try {
    printJob.print();
    catch (Exception ex) {
    ex.printStackTrace();
    public void paintComponent(Graphics g) {
         super.paintComponent(g);
         Graphics2D g2 = (Graphics2D) g;
         drawShapes(g2);
    public void drawShapes(Graphics2D g2){
    g2.drawString("Hello world",50,50);
    public int print(Graphics g, PageFormat pf, int pi) throws PrinterException {
    if (pi >= 1) {
    return Printable.NO_SUCH_PAGE;
         drawShapes((Graphics2D) g);
    return Printable.PAGE_EXISTS;
    public static void main(String s[]){
         JFrame f = new JFrame();
         JPanel panel = new JPanel();
         panel.add(button);
         f.getContentPane().add(BorderLayout.SOUTH, panel);
         f.getContentPane().add(BorderLayout.CENTER, new Receipt());
         f.setSize(580, 500);
         f.show();

    The following coding is easy and workable...!! i wonder how do i call
    this out by clicking button from other file... please help!!Copy the code from your main() method and put it into the actionPerformed() method of the other class. If you do not need to reference the instance of Receipt from the othe class, it is that easy.

  • How to call a repeater within a jsp file in web portal

    Hello, I wrote a Timer javascript to create a Timer thread that keep running and repeating for every 5 seconds. Basically, this javascript includes a StartTimer(), StopTimer() and UpdateTimer(), I also have a repeater to retrieve data from Oracle Dataabse and diplay them on the screen. Here are the codes
    =======================================================
    <table border="1">
    <netui-data:repeater dataSource="{pageFlow.trackData}" >
    <netui-data:repeaterHeader>
    <tr>
    <!-- create row header for each column -->
    <td style="font-family:times new roman;font-size:14pt;color:#0000ff;">TrackNumber</td>
    <td style="font-family:times new roman;font-size:14pt;color:#0000ff;">Latitude</td>
    <td style="font-family:times new roman;font-size:14pt;color:#0000ff;">Longitude</td>
    <td style="font-family:times new roman;font-size:14pt;color:#0000ff;">Altitude</td>
    <td style="font-family:times new roman;font-size:14pt;color:#0000ff;">Course</td>
    <td style="font-family:times new roman;font-size:14pt;color:#0000ff;">Speed</td>
    <td style="font-family:times new roman;font-size:14pt;color:#0000ff;">Time</td>
    </tr>
    </netui-data:repeaterHeader>
    <tr>
    <netui-data:repeaterItem>
    <!-- these will make the repeater insert data in table rows -->
    <td><netui:label value="{container.item}" defaultValue=" "></netui:label></td>
    <% j = j + 1; %>
    <% if (j > 6) { %>
    </tr>
    <% j = 0; %>
    <tr>
    <% } %>
    </netui-data:repeaterItem>
    </tr>
    </netui-data:repeater>
    </table>
    ====================================================
    I also wrote another Timer running in the server side. here are the codes
    ======================================================
    <%!
    public void startTimer(HttpServletRequest request)
    Timer timer = new Timer();
    TimerTask monitorTimerTask = new Monitor();
    timer.schedule(monitorTimerTask, 5000, 5000);
    request.getSession().setAttribute("My Timer", monitorTimerTask);
    System.out.println("Timer starts");
    %>
    <%!
    public class Monitor extends TimerTask
    public void run()
    %>
    <%!
    public void stopTimer(HttpServletRequest request)
    TimerTask monitor = (TimerTask) request.getSession().getAttribute("My Timer");
    if (monitor != null)
    System.out.println("Timer stops");
    monitor.cancel();
    %>
    <% if (request.getParameter("start") != null)
    startTimer(request);
    %>
    <% if (request.getParameter("stop") != null)
    stopTimer(request);
    %>
    <input type="button" value="Start the Timer" onclick="document.location='index.jsp?start=true'">
    <input type="button" value="Stop the Time" onclick="document.location='index.jsp?stop=true'">
    ======================================================
    My question is how do (can I) call those codes repeater above within the StartTimer() in Javascript or the funtion run() in the class Monitor, which will will be called continuously every 5 seconds, whenever I click on the button Start. Right now, it seems to me that whenever the portal starts, then those repeater codes are executed just once and are not executed when I click on the start button to call the start() in javascripts/run() in the class Monitor.
    PS. I include the codes for two different Timers but in my portal there is only one Timer and I can pick one of those, whichever works better. Please help
    Thank you
    TL

    It might compile perfectly well, but the message suggests that you didn't deploy it properly. The class loader can't find it.
    That .class file should appear with its package directory structure under the WEB-INF/classes directory or in a JAR in your WEB-INF/lib directory in some WAR file. Does it?

  • How to call fn form within a procedure? - pl help

    Hello
    I have a procedure which has a set of statements that is called repeatedly.i would like to put them inside a function, passing an IN parameter as well. How to do that? and how do u call the fn from within the procedure?
    Pl help.
    rgds

    SQL> create or replace package calls is
      2      procedure proc ;
      3  end ;
      4  /
    Package created.
    SQL> create or replace package body calls is
      2      function func(p_param in number) return number is
      3      begin
      4          dbms_output.put_line('param is:'||p_param) ;
      5          return(p_param * 2) ;
      6      end ;
      7      procedure proc is
      8          ret_val number ;
      9      begin
    10          ret_val := func(100) ;
    11          dbms_output.put_line('ret_val='||ret_val) ;
    12      end ;
    13  end ;
    14  /
    Package body created.
    SQL> exec calls.proc ;
    param is:100
    ret_val=200
    PL/SQL procedure successfully completed.
    SQL>Message was edited by:
    Kamal Kishore

  • How to call swf file within another swf file using xml

    hii,
    I am facing some problem to call a swf file via xml when this xml file loaded it calls another swf file which includes a new xml file. now if i call this nested swf calling without xml it works but in case case of xml it is not showing the result. i m confused. how to nested xml file calling done in as2/as3. i need some logics. thanks in advance

    This is the AS3 forum and your posting involves AS2 code.  You should repost in the AS2 forum...
    http://forums.adobe.com/community/flash/flash_actionscript
    Aside from that, your problem might lie in the following lines...
    _root.createEmptyMovieClip("sub_container1", 1);
    loadMovie(sub_SWFPath[1].attributes.url, "sub_container1");
    You create the new movieclip, sub_container1,  in the _root, but you do not assign the loadMovie to load into that same movieclip (unless you have a _lockroot = true assigned in your sub-swf).  In any case, you should repost in the AS2 forum to pursue resolution.

  • How to call Interactive form within Workflow ?

    Hi,
    I have created a interactive form within WebDynpro for ABAP which triggers a workflow for approval. Now I would like to open the same interactive form by the approver and approve the request.
    Any input for calling interactive form from Workflow would be helpful.
    Regards
    Ravikumar

    u need to create the events step by step in the workflow.
    first event would be the condition which should be checked so that it gets triggered when the condition is satisfied.
    second would be the the triggering in which u will get this triggered. u need to create a class in which the adobe form's code will be present like the FM it generates etc.in this class u will to write some methods for eg: if u create method say send_mail in this class u will code all the logic for sending the adobe form as a mail and u assign this in the workflow. So now, in the workflow all the methods that u assign will get triggered.

  • How can call child frame in parent frame

    Hi all,
    I am using these frames in apex3.2 version. How can i call middleFrame.
    I used below link in topFrame,its working
    a href="javascript:parent.topFrame.url();"Print
    but If use
    a href="javascript:parent.topFrame.middleFrame.url();"Print
    it not woking.
    <frameset rows="56, *" cols="*" framespacing="0" frameborder="NO" border="0">
    <frame src="./f?p=&APP_ID.:100:&APP_SESSION." name="topFrame" scrolling="NO" noresize>
    <frameset rows="*" cols="*" framespacing="0" frameborder="NO" border="0"> 
    <frame src="./f?p=&APP_ID.:101:&APP_SESSION." name="middleFrame" id="middleFrame" scrolling="yes">
    <frameset rows="0" cols="*" framespacing="0" frameborder="NO" border="0">
    <frame src="./f?p=&APP_ID.:102:&APP_SESSION." name="bottomFrame" scrolling="NO" noresize>
              </frameset>
              </frameset>
         </frameset>Thanks,
    Nr
    Edited by: pnr on May 11, 2011 3:48 AM

    Hi,
    Please look at  this documents
    [this is having communication between two DCu2019s|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0ae5f90-1679-2c10-4183-8c64cf932088?QuickLink=index&overridelayout=true] and [this is having communicate between two Components with in DC|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60132577-7801-2b10-c9b1-b13b2f78f23b]
    Hope this is help full for u
    Regards
    Vijay
    Edited by: VijaySAPEP on Nov 21, 2011 11:32 AM

  • How to call Oracle Form within Oracle Form?

    Hi,
    I have a requirement to call a customized Oracle Form from standard Oracle Form (Special Information screen) and vice versa.
    Then need to display the person detail accordingly.
    Is it possible to be done? Appreciate guidance on this item.
    Thanks and Regards,
    SC

    Veerendra,
    Sounds like you are using the Oracle E-business Suite (EBS). If that is the case, opening a form is different in the EBS than it is in a non-EBS Forms application. You have the register the Custom Form in the EBS for starts.
    This question should be posted in the General EBS Discussion forum not here. Also, I recommend you take a look at the Oracle Applications Documentation and find the "Oracle Applications Developer's Guide".
    Craig...

  • How do I overlay audio from interview clip over other video clips?

    Help! I have some interview clips and want to over lay the audio from one of the interviews over different video clips. For example, I would show video and audio from the interviewee and then cut to a clip or scene showing what the guy is talking about but still have the interviewees audio playing as a voice over on the cut-away clip. How do I do that?!

    Welcome to the forum.
    Is this Audio muxed (combined into a Clip w/ both Audio & Video), or is it a separate Audio-only file, that has been Imported into your Project?
    If the latter, just drag an Instance of it to a free Audio Track, and position, as is needed. Note: each Instance of a Clip can have different In & Out Poiints, so you are not limited to them being identical.
    For the former, the muxed file, there are a couple of ways to do that, but possibily the easiest is to Alt-click on the Audio part of the Clip (temporarily unlinks the Audio & Video), and Ctrl-C (Copy), then move the CTI (Current Time Indicator/Playhead) to the end of the Timeline, and press Ctrl-V (Paste), for as many Instances of that Audio, as you need. Then, drag them to an empty Audio Track, while holding down the Ctrl key for an Insert Edit, rather than a Ripple Edit, so as to not affect anything on that Track, below the desired Video Clip. If you are replacing the Audio.
    Another way to do that is to use an audio-editing program to rip the Audio, Save as a PCM/WAV @ 48KHz 16-bit file, and then Import that into the Project, for use in many Instances.
    Good luck, and hope that helps,
    Hunt

  • How to call application forms from network directory on other machine

    I have installed Oracle Application Server 10G Release2 without IDS (Developer) on my server. I put my application forms & reports on the same machine(APPSERVER) and run the application as follows:-
    http://appserver.www.ebs.com:7778/forms/frmservlet?form=\\appserver\pass_3_1.fmx
    My Application runs well. But i want to use the 'Pass_3_1.fmx' form from other machine's(SERVER) network folder as below:-
    http://appserver.www.ebs.com:7778/forms/frmservlet?form=\\server\pass_3_1.fmx
    I am not able to launch my application. It throws error 'Cannot read form \\server\pass_3_1.fmx'. I also tried mapping on F:\. But it didn't work.
    Please advise . Thanks in Advance.
    Regards

    Hi,
    I don't understand exactly your problem but I tel you that your application mast be reside in the application server and the URL to call your application shouldn't change:
    http://appserver.www.ebs.com:7778/forms/frmservlet?form=\\appserver\pass_3_1.fmx
    good luck.
    Soufiane

Maybe you are looking for

  • How to Use Print time formulas in crosstabs? Is there a work around

    Post Author: acarey CA Forum: General Hi, I am using Crystal Report XI R2 I have run in to a problem with showing the necessary information on a cross tab and was wondering if there is a workaround. I am doing a report for a mining company and I want

  • Remove or reduce Mac OS after Windows install

    This may be an odd question, but first a little background. I bought the 2011 MacBook Air as my first introduction into the world of Macs and thought it would also fulfil the occasional work duties due to the promises of how easy it is to integrate a

  • Row-/instance-based authorization

    Hi, I'm looking for ways to implement row-/instance-based authorization using Toplink 9.0.4+ and Oracle DB 9.204. The domain objects are represented by standard Java objects (POJO's) not entity-beans. My question: what are well-know working approache

  • Related to  distribution the model view

    hi When we try to distribute the model view, we get an error 'Model View has not been updated. Reason : Maintenance systems for model view D-HR-MD are not identical...Maintenance system in sending system D-OFS-HR.....Maintenance system in receiving s

  • Error in starting sapmmc

    Hi,          when i start the server its showing the message Fail: The system cannot find the file specified.createfile failed in plugin_pi pef open() and ended in yellow display.Please help me to solve this error.