Runtime components problem

I've created a custom class in which I create an instance of
the datagrid component.
Unless I change "
this.createClassObject[...]" to "
_root.createClassObject[...]", the component fails to show
in the test movie.
Of course, I don't want to use _root. I've tried using
"this._parent" to no avail. Please help. I'm using WinXP and
Flash8Pro.
==============

There is a large discussion on which way to use classes is
the best. The end result is that which ever way makes the most
sense for you and your program is the method you should use.
Sorry about forgetting the (this) part, that was kind of key,
wasn't it? :-)
I used the double underscore because "_target" is a property
and I like to completely distinguish my private variables from any
built-in properties or other variables used to receive parameters
from functions. Also, if I just used "target" as my private
variable then given my function parameter name the code would have
looked like:
target = target;
That may or may not have worked. Even if it did, it would be
confusing to read when trying to debug.
My practice on attaching and not attaching classes to
movieclips depends on what the class will have to control. If I
have a lot of elements that will be controlled with the class, I
find it easier to place them in the movbieclip during authoring
rather than having to generate them through code. Also, if I draw a
lot of custom graphics then I will also attached the class to the
movieclip because I am not that good at using the DrawAPI.
Tim

Similar Messages

  • Someone PLEASE Check The Media Manager Program! RunTime Components Will NOT Download Properly!

    I am a Verizon FiOS subscriber, and my family members have Verizon apps and programs on their computers.  For some ungodly reason, Media Manager does NOT install properly once the initial download program is acquired.  There is a message that comes up that says "Media Manger installer is having a problem accessing the server to download RunTime components. Please try again later."  I've had my brother call because he is the most technically inclined, and despite being on the phone extensively with Verizon representatives, NO-ONE has fixed or seems to be able to fix this problem!
    I would appreciate it if someone would please either fix the files at the server, fix the downloader so that it goes to whatever new area where the runtime components are, or post the correct link to perhaps a full installer of Verizon MediaManager.  It is very frustrating that despite calling, I have not gotten ANY proper assistance with this issue!
    Sincerely,
    LorraineBMoses
    {edited for privacy}

    What OS are you running?
    If Vista or Windows 7, Try right clicking the install program and selecting run as administrator. See if that helps.

  • Runtime casting problems

    The following code gives me runtime casting problems:
    package edu.columbia.law.markup.test;
    import java.util.*;
    public class A {
       protected static Hashtable hash = null;
       static {
          hash = new Hashtable ();
          hash.put ("one", "value 1");
          hash.put ("two", "value 2");
       public static void main (String args []) {
           A a = new A ();
           String keys [] = a.keys ();
           for (int i = 0; i < keys.length; i++) {
               System.out.println (keys );
    public String [] keys () {
    return (String []) hash.keySet ().toArray ();
    The output on my console is:
    java.lang.ClassCastException: [Ljava.lang.Object;
            at edu.columbia.law.markup.test.A.keys(A.java:37)
            at edu.columbia.law.markup.test.A.main(A.java:29)I can not understand why is it a problem for JVM to cast?
    Any ideas?
    Thanks,
    Alex.

    return (String []) hash.keySet ().toArray ();This form of toArray returns an Object[] reference to an Object[] object. You cannot cast a reference to an Object[] object to a String[] reference for the same reason that you cannot cast a reference to a Object object to a String reference.
    You must use the alternate form of toArray instead:
    return (String []) hash.keySet ().toArray (new String[0]);This will return an Object[] reference to a String[] object, and this reference can be cast to a String[] reference.

  • TypeLoadException: "Types from custom Windows Runtime components are not supported in desktop applications"

    When trying to use a custom Windows Runtime component in a desktop application, a TypeLoadException is thrown.
    Why aren't custom Windows Runtime components supported in desktop applications? Is this something that will change in the future?
    Thanks,
    Tom
    luck favours the prepared

    If you are targeting the .NET Framework 4.5 you could try to add a <PropertyGroup> element to your project file and a reference to the WinMD file as described here:
    http://stackoverflow.com/questions/12136585/using-custom-windows-runtime-components-in-non-metro-applications
    Thefull list of the WinRT classes that are available to desktop apps is available here:
    http://msdn.microsoft.com/en-us/library/windows/desktop/hh920511%28v=vs.85%29.aspx#windows_runtime_classes
    Please refer to the following links for more information:
    http://msdn.microsoft.com/en-us/magazine/jj651570.aspx
    http://stackoverflow.com/questions/12745703/how-can-i-use-the-windows-ui-namespace-from-a-regular-non-store-win32-net-app
    https://software.intel.com/en-us/articles/using-winrt-apis-from-desktop-applications
    Please remember to mark helpful posts as answer and/or helpful.

  • Error: JavaFX runtime components are missing, and are required to run this

    I tried to build the application using javafx ant build, generated jar file. But when I run the jar file, issue:
    Error: JavaFX runtime components are missing, and are required to run this application.
    The javafx-class-path: libs/h2.jar libs/jfxrt.jar libs/log4j.jar
    Running the JAR file using:
    java -jar app.jar
    What could it be?

    Which version of iTunes?
    When you go to Programs control panel you can see as well as uninstall the current version.
    I always uninstall Bonjour, MobileMe etc and itunes will ask if I want to reinstall those (no thanks).
    itunes and many apps keep an installer cache so they can do a repair-reinstall without a full install again.
    I'd install Microsoft Security Essentials 2.0 which is free and excellent.
    Programs don't affect data. But if you don't have backups,  you are likely past due.
    If you have any doubts about the integrity of your system, if you have had to do a hard power down and likely do have issues, you should / could / might want to do chkdsk on your hard drive (hard drive properties tools scan for errors).

  • Runtime error problem - Premiere Pro CS5

    Just ran into a problem when trying to export a timeline as an .avi file. The process goes much more slowly than usual and when the progress bar gets to 95% an error message window opens. The title of the error is: Microsoft Visual C++ Runtime Library. The message is: This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. Then, I have no choice but to close Premiere.
    I foolishly downloaded and intalled some Windows 7 updates over the weekend and am assuming they might be the culprit(s). I rolled by the system to a restore point immediately before the download, but still have the problem. Any ideas on how to correct this? Of course this happens as I'm trying to export two finished videos to show to a client today. I'm running Windows 7, 64-bit.
    Thanks, Steve Pender

    This may help:
    http://kb2.adobe.com/cps/403/kb403090.html
    I've also noticed that bearly all instances of this error come from bad versions of third-party components like drivers, so I recommend updating your drivers.

  • ColdFusion Builder Admin Server Components Problem

    After downloading the admin server components, extracting them into their appropriate directories, and executing the adminstart.bat file, I'm receiving the following error:
    This application has failed to start because MSVCR71.dll was not found.  Re-installing the application may fix this problem.
    I did a search for that file and found several instances throughout the coldfusion8 directory.
    I am running Coldfusion Standard                  8,0,1,195765 on Windows 2003.
    Thoughts?

    I have started it using the adminstart.bat file.
    Starting Macromedia JRun 4.0 (Build 108673), admin server
    07/14 08:52:39 warning Unable to open C:\ColdFusion8\runtime/lib/license.properties
    07/14 08:52:40 info JRun Naming Service listening on *:2910
    07/14 08:52:40 info No JDBC data sources have been configured for this server (see jrun-resources.xml)
    07/14 08:52:40 info JRun Web Server listening on *:8000
    07/14 08:52:40 info Deploying enterprise application "JRun 4.0 Internal J2EE Components" from: file:/C:/ColdFusion8/runtime/lib/jrun-comp.ear
    07/14 08:52:40 info Deploying EJB "JRunSQLInvoker" from: file:/C:/ColdFusion8/runtime/lib/jrun-comp.ear
    Server admin ready (startup time: 3 seconds)
    Think the problem has to do with the second line...shouldn't that be "security.properties"?

  • Logical components problem when checking project

    Hello,
    I have searched in the forum for a solution, but the people who had the same kind of problem managed to solve it with means that do not work for me.
    Here is the situation :
    - We have a three tier landscape, DEV-QAS-PRD, in transport domain DOMAIN_A, with domain controller DCA
    - We have our Solution Manager system, DCB, which is part of (and domain controller of) transport domain DOMAIN_B
    - The two transport domains are linked, as specified in SolMan prerequisites for managing systems from other transport domains. This has been tested, and transports can be forwarded and imported freely from one domain to another.
    - I have created the systems, RFC destinations, and logical component for the three tier landscape in SolMan system DCB. The RFCs are all OK.
    - I have created the domain controller DCA system in SolMan DCB, with RFC destination to client 0, as defined in the prerequisite for Change Request Management.
    - Finally, I have created a project in SolMan system DCB, with this logical component.
    When I try to do a Check on this project, in the Change Request management tab, I have green lights everywhere, except for the following :
    - In "Check logical components" : No consolidation system found for DEV-040 (our development system)
    - In "Check consistency of project" : Message from function module /TMWFLOW/CHECK_PRJ_CONS: No export system for PRD-020 (our production system)
    We have checked the TMS settings and transport routes, and everything looks OK.
    Any ideas on what to check/try would be welcome.
    Thanks,
    Thomas

    Hi,
    Check the status of the DC's in the track created in CBS.
    at following location.
    http://url:port/webdynpro/dispatcher/sap.com/tc.CBS.WebUI/WebUI
    There should be no Broken DC's in the track.
    If every thing is fine here and you still have problems then check by repairing the class path of the component.
    Hope this helps you.
    Regards,
    Nagaraju Donikena
    Regards,
    Nagaraju Donikena

  • Java.lang.Runtime.exec problem in ubuntu 9.10

    Hi:
    I tried to run some command in the java code , for example "grass64 -text /home/data/location", this command works well in the terminal, however when I call it in the java code I got some excepetions.
    My code is :
    public class Grass {
         public static String grassBatJob="GRASS_BATCH_JOB";
         public void run(String cmd,String jobPath) {
              //set the environments variables
              Map<String, String> env=new HashMap<String, String>();
              env.put(grassBatJob, jobPath);
              String gisDataBase="/home/kk/grass/GrassDataBase";
              String location="spearfish60";
              String mapset="PERMANENT";
              cmd=cmd+" "+gisDataBase+"/"+location+"/"+mapset;
              CommandLine line=new CommandLine(cmd);
              //the real cmd should be >>grass64 -text /home/kk/grass/GrassDataBase/spearfish60/PERMANENT
              System.out.println("start line=="+line.toString());
              DefaultExecutor de=new DefaultExecutor();
              try {
                   int index=de.execute(line,env);
                   System.out.println(index);
              } catch (ExecuteException e) {
                   e.printStackTrace();
              } catch (IOException e) {
                   e.printStackTrace();
         public static void main(String[] args) {
              String jobPath=Grass.class.getResource("grass.sh").getFile();
              new Grass().run("grass64 -text", jobPath);
    The real cmd I want to execute is "grass64 -text /home/kk/grass/GrassDataBase/spearfish60/PERMANENT" with the envrionment variable "GRASS_BATCH_JOB=jobPath",it works well in the ternimal ,however in my application I got the exception"
    java.io.IOException: Cannot run program "grass64 -text /home/kk/grass/GrassDataBase/spearfish60/PERMANENT": java.io.IOException: error=2, No such file or directory
         at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
         at java.lang.Runtime.exec(Runtime.java:593)
         at org.apache.commons.exec.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:58)
         at org.apache.commons.exec.DefaultExecutor.launch(DefaultExecutor.java:246)
         at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:302)
         at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:149)
         at org.kingxip.Grass.run(Grass.java:27)
         at org.kingxip.Grass.main(Grass.java:38)
    Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
         at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
         at java.lang.ProcessImpl.start(ProcessImpl.java:65)
         at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
         ... 7 more
    I wonder why?

    Thanks for all of your reply, and now I can run the command, however I met some problems when I tried to get the result of the exec.
    The core codes are shown below:
    String cmd="g.version";
    String[] exe={"bash","-c",cmd};
    Process p1=Runtime.getRuntime.exec(exe,env); // the env has been set
    GrassThread outThread=new GrassThread("out", p1.getInputStream());
    outThread.start();
    GrassThread errorThread=new GrassThread("error", p1.getErrorStream());
    errorThread.start();
    int exitVal = p1.waitFor();
    String resu=outThread.sb.toString();
    System.out.println("==========the output start========");
    System.out.println(resu);
    System.out.println("==========the output end========");
    System.out.println("ExitValue: " + exitVal); //------------------> line one
    public class GrassThread extends Thread{
         public StringBuffer sb=new StringBuffer();
         public GrassThread(String type,InputStream is) {
              this.type=type;
              this.is=is;
         public void run() {
              try {
                   InputStreamReader isr = new InputStreamReader(is);
                   BufferedReader br = new BufferedReader(isr);
                   String line = null;
                   while ((line = br.readLine()) != null) {
                        System.out.println(type + ">" + line);
                        sb.append(line).append("\r");  // ----------------------------> line two
    }I define a StringBuffer in the GrassThread to save the output (see the code where I marked by "line two"), and when the process complete, I check the StringBuffer to get the output (see code where I marked by "line one"), however the output in the console of the IDE are :
    ----------- output in the console of the IDE start -------------
    ==========the output start========
    ==========the output end========
    ExitValue: 0
    out>GRASS 6.4.0RC5 (2009)
    ----------output in the console of the IDE end--------------------
    I can not understand, in the code "line one", I first get the output using "System.out.println(resu);",then I print the exitvalue,but why the order of the output in the console is not what I expected?
    Another question, the code above assume the output can be got from the Process's getInputStream, however sometimes the output maybe come from the Process's getErrorStream, so how to handle it?
    Edited by: apachemaven on 2010-3-5 ??5:38

  • Runtime.exec problem

    we have a c program which does the encryption on the input files.
    IF we ran this program in unix os, it will take 30 secs to finish.
    But if we call this program using java by calling Runtime.getRuntime().exec(command)
    it takes 20 minutest to finish.
    We wonder why does it take this much time to finish.
    We are having thought that when the program runs in unix os it can get all the resources it want.
    but when run this through java, it is limited to JRE / JVM memory size. --->Am I right?
    Could you please clarify my doubt on the memory size. If I wrong, how can we fix this problem.
    Thanx

    In the case of unix
    u will just run the executable using a.out. For processor its just the execution of the executable, so 30 secs
    In case of java
    step1: It has to interpret the java program line by line after doing required loading, linking and initialization
    of the required libraries and class files.
    step2: It has to create a separate process using Runtime.getRuntime().exec() and wait for the result
    of that process
    so the total time will be step1 + step2 = some time + 30 sec = 20 minutes.

  • Runtime.exec() - Problem when using cvs-command

    I have a problem with the Runtime.getRuntime().exec() - Command. I try to execute a command to export files from our cvs-repository. As you hopefully know, cvs produces a lot of output.
    When I start my 'cvs export ... '- command from the console-window of windows, everything works perfect. But when I try to use the Runtime.getRuntime().exec("CVS export ...") the created cvs-subprocess stops after the export of the first three files. When I close the main-window, where the cvs-process was started from, the cvs-process continues working.
    I could see, that many others had the same problem, but I couldn't find a real solution there.
    Is there a possibility to clear/delete the output-buffer of the cvs-subprocess, because I don't really need the information, that cvs gives me. It is enough for me when cvs stores the files :-)
    My source:
    public void executableTest()
    Runtime run = Runtime.getRuntime();
    try
    Process cvsProcess = run.exec("cvs export .... ");
    cvsProcess.waitFor();
    BufferedReader in = new BufferedReader
              ( new InputStreamReader(cvsProcess.getInputStream()) );
         String line;
         while ((line = in.readLine()) != null)
              System.out.println(line);
         catch (Exception e)
         System.out.println(e.getMessage());
    Thanks for your help.

    if the buffer is overflowing, then you don't want to do the waitfor until after you've hit the end of the inputstream, me thinks.

  • Urgent: runtime error problem

    hi,
    iam working on development server and when i run a tcode and aftere dat when i press f1 for help on any field den a runtime error occurs.
    saying dat :-
      The current ABAP/4 program terminated due to
      an internal error in the database interface.
    what does it mean and how to solve dis problem,if find useful he or she will be definately rewarded.

    Hi ric,
    Can you please provide more details like type of program, type of screen. (whether you have used call screen or it's standard selection-screen)..
    Regards,
    Mohaiyuddin

  • Sub components problem in custom tag

    Hi!
    Im writing custom tag that do nothing but can contains other components.
    So first I create custom tag with hendler that extends UIComponentTag and component class that extends UIComponentBase
    now tag work but i dont see sub components on the page
    Second i override encodeChildren and getFamily methods with:
    public String getFamily() {       
            return "MyCaller";
    public void encodeChildren(FacesContext context) throws IOException {
            Iterator ch=this.getChildren().iterator();
            while(ch.hasNext()){
                 UIComponent oKid = (UIComponent)ch.next();
                 if(oKid.isRendered()){
                    oKid.encodeBegin(context);
                    oKid.encodeChildren(context);
                    oKid.encodeEnd(context);
            super.encodeChildren(context);
        }But subcomponents not rendered on page.
    So are you know whats wrong

    the problem was in wrong getComponentType() that return wrong value

  • UIPickerView and didSelectRow with multiple components problem

    If I spin two components at the same time in my picker I only get one call to didSelectRow....
    More specifically, if I spin one component and move another component no call is recieved until the first component stops spinning, and so the second component move is missed.
    I use this to update displayed data so it looks badly wrong. Is this yet another bug with the SDK?

    Hi,
    I have the same problem. Actually it is not so annoying in my application as it is only cosmetic. However my application was rejected by Apple because of this issue.
    I checked what would happen in the built-in alarm app if the hour and minute picker wheels are rolled at the same time... and both value are recorded. So there must be a programmatic solution to this problem and it is definitely not a bug of the SDK.
    It would be great if someone knows how to solve this.

  • Components problem

    Hi.
    I have problem. When I import the file using simple code, the components not working.
    This is how I import swf file to my project:
    function otworz_napisz(event:MouseEvent):void {
    var myLoader:Loader = new Loader();
    var urlRequest:URLRequest= new URLRequest("form.swf");
    trace("ok");
    myLoader.x = 106.3;
    myLoader.y = 84.9;
    addChild(myLoader);
    myLoader.load(urlRequest);
    and result is when you click the last button "@" at the project: http://www.krzyskania.nazwa.pl/autoskup2/.
    Please help me.

    The file that is linked is good. You can see this hear: krzyskania.nazwa.pl/autoskup2/form/form.swf.
    File with the link has following code:
    package AS{
    import flash.display.*;
    import flash.events.*;
    import flash.net.*;
    public class Autoskup extends MovieClip {
    public function Autoskup():void {
    //dodaje chmurki:
    // 1)
    samochod.addEventListener(MouseEvent.MOUSE_OVER,wyswietl_chmurke);
    function wyswietl_chmurke(event:MouseEvent):void {
    var chmurka_o_nas:Onas=new Onas;
    chmurka_o_nas.x=-1;
    chmurka_o_nas.y=245;
    addChildAt(chmurka_o_nas, 1);
    samochod.addEventListener(MouseEvent.MOUSE_OUT,usun_chmurke_onas);
    function usun_chmurke_onas(event:Event):void {
    chmurka_o_nas.visible = false;
    // 2)
    klucze.addEventListener(MouseEvent.MOUSE_OVER,wyswietl_chmurke_oferta);
    function wyswietl_chmurke_oferta(event:MouseEvent):void {
    var chmurka_oferta:Oferta=new Oferta;
    chmurka_oferta.x=-1;
    chmurka_oferta.y=328;
    addChildAt(chmurka_oferta, 1);
    klucze.addEventListener(MouseEvent.MOUSE_OUT,usun_chmurke_oferta);
    function usun_chmurke_oferta(event:Event):void {
    chmurka_oferta.visible = false;
    // 3)
    telefon.addEventListener(MouseEvent.MOUSE_OVER,wyswietl_chmurke_kontakt);
    function wyswietl_chmurke_kontakt(event:MouseEvent):void {
    var chmurka_kontakt:Kontakt=new Kontakt;
    chmurka_kontakt.x=-2;
    chmurka_kontakt.y=410;
    addChildAt(chmurka_kontakt, 1);
    telefon.addEventListener(MouseEvent.MOUSE_OUT,usun_chmurke_kontakt);
    function usun_chmurke_kontakt(event:Event):void {
    chmurka_kontakt.visible = false;
    //4
    napisz.addEventListener(MouseEvent.MOUSE_OVER,wyswietl_chmurke_napisz);
    function wyswietl_chmurke_napisz(event:MouseEvent):void {
    var chmurka_napisz:Napisz=new Napisz;
    chmurka_napisz.x=-2;
    chmurka_napisz.y=490;
    addChildAt(chmurka_napisz, 1);
    napisz.addEventListener(MouseEvent.MOUSE_OUT,usun_chmurke_napisz);
    function usun_chmurke_napisz(event:Event):void {
    chmurka_napisz.visible = false;
    //włącza okna:
    //obiekty nasłuchujące:
    samochod.addEventListener(MouseEvent.MOUSE_DOWN,otworz_onas);
    klucze.addEventListener(MouseEvent.MOUSE_DOWN,otworz_oferta);
    telefon.addEventListener(MouseEvent.MOUSE_DOWN,otworz_kontakt);
    napisz.addEventListener(MouseEvent.MOUSE_DOWN,otworz_napisz);
    //dodanie okienka O nas:
    function otworz_onas(event:MouseEvent):void {
    var nas:okienko_onas = new okienko_onas();
    nas.x = 96.3;
    nas.y = 734.9;
    addChild(nas);
    //dodanie okienka Oferta:
    function otworz_oferta(event:MouseEvent):void {
    var oferta:okienko_oferta= new okienko_oferta();
    oferta.x = 96.3;
    oferta.y = 734.9;
    addChild(oferta);
    //dodanie okienka Kontakt:
    function otworz_kontakt(event:MouseEvent):void {
    var kontakt:okienko_kontakt= new okienko_kontakt();
    kontakt.x = 96.3;
    kontakt.y = 734.9;
    addChild(kontakt);
    //dodanie okienka Napisz:
    function otworz_napisz(event:MouseEvent):void {
    var myLoader:Loader = new Loader();
    var urlRequest:URLRequest= new URLRequest("http://krzyskania.nazwa.pl/autoskup2/form/form.swf");
    trace("ok");
    myLoader.x = 106.3;
    myLoader.y = 84.9;
    myLoader.load(urlRequest);
    addChild(myLoader);
    myLoader.addEventListener(Event.COMPLETE, dodajdosceny);
    function dodajdosceny(evt:Event):void {
    trace("ok")
    //linkuj do mojej strony:
    WP.addEventListener(MouseEvent.MOUSE_DOWN,linkuj);
    function linkuj(event:MouseEvent):void {
    var url:String = "http://www.wloczykijproductions.pl";
    var request:URLRequest = new URLRequest(url);
    navigateToURL(request);
    Is required to import the linked file class? O, and I try also copy this file to library of main project, but happens the same.
    If you can, help me.

Maybe you are looking for

  • Abap Lists - Printing - defining font and CPI and applying to printed text

    Hi, I am trying to define some forms for matrix printing. I should change the font type, and CPI. We will print ABAP Lists. I see my fonts (courier, 100, 12CPI, Prnt.Ctrl SF005) are defined in SE73. In SPAD - device type (choose spec. one) u2013 Prin

  • Importing .wav files

    How do you import .wav and .wpl files into iTunes? The files are on my iMac, but the Import application in iTunes fails when .wav files are chosen for import.

  • Standby & Listener

    Hello, I have read on the net: The stopping of the listener doesn't quit the connection between the two databases. The Listener of the Data Guard only initiates the first connection. After that it establishesh socket connection between the processes

  • Absence Management-Annual Leave CarryOver

    Hi, I have a single BG with multiple companies, the requirement is, in absence Management- Annual Leave carryforward is different for different companies. For one of the companies the maximum carry over is 60 days and other company there is no limit

  • Dateneigentum o.ä.

    Hallo, gibt es eine Möglichkeit, User so einzuschränken, dass: - sie nur ihre Opptunities und Kundenaufträge sehen (Dateneigentum) - aber in den beiden nur bestimmte Kunden auswählen können, beim Erstellen (z.B. PLZ abhängig) lässt sich der zweite Pa