CellRenderer is not displaying icons in a loaded swf, throws null child addChildAt

I'm working with a component that extends List.  It works fine unless it's loaded into another swf.
It cannot find the library symbols.  I know the symbols exist in the loaded swf. 
Is there a quick fix to this?

I have the component in the top level also,
I get this error:
TypeError: Error #2007: Parameter child must be non-null.
          at flash.display::DisplayObjectContainer/addChildAt()
          at fl.controls::BaseButton/drawBackground()[C:\Program Files (x86)\Adobe\Adobe Flash CS5\Common\Configuration\Component Source\ActionScript 3.0\User Interface\fl\controls\BaseButton.as:615]
          at fl.controls::LabelButton/draw()[C:\Program Files (x86)\Adobe\Adobe Flash CS5\Common\Configuration\Component Source\ActionScript 3.0\User Interface\fl\controls\LabelButton.as:724]
          at fl.core::UIComponent/drawNow()[C:\Program Files (x86)\Adobe\Adobe Flash CS5\Common\Configuration\Component Source\ActionScript 3.0\User Interface\fl\core\UIComponent.as:1343]
          at fl.controls::List/drawList()[C:\Program Files (x86)\Adobe\Adobe Flash CS5\Common\Configuration\Component Source\ActionScript 3.0\User Interface\fl\controls\List.as:594]
          at fl.controls::List/draw()[C:\Program Files (x86)\Adobe\Adobe Flash CS5\Common\Configuration\Component Source\ActionScript 3.0\User Interface\fl\controls\List.as:474]
          at .tree::TreeList/draw()
          at fl.core::UIComponent/callLaterDispatcher()[C:\Program Files (x86)\Adobe\Adobe Flash CS5\Common\Configuration\Component Source\ActionScript 3.0\User Interface\fl\core\UIComponent.as:1532]
I've checked the definitions for the tree component,
The LabelButton and List I don't have much control over.
I'm not sure how to fix this.  The xml is correct and loads easily if it's in the root document.
The list component doesn't load the labels, It stops on the first one.
  What do I do next?

Similar Messages

  • Iconic buttons not display icons

    Hello All,
    i have problem with the iconic buttons not display icons in forms 10g
    i have set button properties as
    iconic=yes
    icon filename=print
    my path for icons and forms are
    e:\backoffice
    plz any solution
    thx
    najeeb ur rehman

    Hi,
    Read the doc at :
    http://www.oracle.com/technology/ products/forms/pdf/webicons.pdf
    It's very descriptive and It'll help you...
    Regards ,
    Simon

  • Finder does not display icon for word / excel in list view

    Hi,
    I got a new macbook air, with Yosemite pre installed. I copied over all my files (from my old macbook using a USB drive) and next I installed MS office for mac.
    For some reason Finder does not display the correct excel of word icon in list view (I set preview thumbnail to NO in view options), but it it displays the generic file icon.
    It appears to be very random, as some files do display the icon and others do not. It also appears to have nothing to do with the doc/docx xls/xlsx variations.
    Also some of my parallels icons do not display correctly in list view.
    When I open a INFO panel, it does show the correct icon. Example below:
    Any body know how to reset / fix this ?

    Still got no solution...
    There has to be some one that knows about this ..?
    Any professionals reading this that can point in some direction for a solution?

  • Macbook air 2012 not displaying icon on the top right corner

    hi guys
    as the title, my macbook air isn't displaying icon on the top right corner. for instance, my volume icon and wifi icon disappear. furthermore, ocaasionally there some flashes on my screen. this never happen to me before and i am reinstalling my OS 10.8 right now. Anyone know what is wrong with my laptop?

    Hi Matze_Moto,
    It should not be an issue. What you are seeing is the ability to Mirror your display to an Apple TV. If you feel that there is an issue, click on the menu to see if it is actually connected to another display. Check out the article below for more information. 
    About AirPlay Mirroring in OS X
    http://support.apple.com/en-us/HT201343
    Take it easy,
    -Norm G. 

  • Tween Max AS3 Not Working on Root of loaded SWF

         I have a project where I'm loading a SWF into another Shell SWF and I've run into a strange bug.  Tween Max works in the compiled clip everywhere, but on the root of the loaded SWF.  It's not erroring out, it's just not tweening anything?
    Here's the code for the loader in the Shell...
    stop();
    //Import the required assets
    import flash.display.*;
    //Stop the playhead while loading occurs
    var ldr:Loader = new Loader();
    var url:String = "12com2682-value.swf";
    var urlReq:URLRequest = new URLRequest(url);
    ldr.load(urlReq);
    //Create a listener to call the loading function as the movie loads
    ldr.contentLoaderInfo.addEventListener (ProgressEvent.PROGRESS, PL_LOADING2);
    function PL_LOADING2(event:ProgressEvent):void {
    loader_txt.visible = true;
    var pcent:Number=event.bytesLoaded/event.bytesTotal*100;
    //Display the % loaded in textfield
    loader_txt.text="loading:"+int(pcent)+"%";
    //If the movie is fully loaded, kick to the next frame on the main timeline
    //You may wish to change the gotoAndStop(2) to a gotoAndPlay(2)
    if(pcent==100){
              mc_loadscene.addChild(ldr);
              loader_txt.visible = false;
    this.loaderInfo.removeEventListener (ProgressEvent.PROGRESS, PL_LOADING);
    then in the loaded SWF, I have:
    stop();
    import com.greensock.TweenMax;
    import com.greensock.plugins.*;
    TweenPlugin.activate([AutoAlphaPlugin]);
    import fl.transitions.easing.*;
    //////mc_host is a movieclip holding a video
    TweenMax.to(mc_host, 1, {scaleY:1, scaleX:1, delay: 2.5, ease:Back.easeOut });
    //////mc_sidert is another movieclip
    TweenMax.from(mc_sidert, 2, {y:"-600"});
    Anybody else running into this error? 

    you must be doing something wrong because that code works as expected for me:  http://www.kglad.com/Files/forums/test2.html and http://www.kglad.com/Files/forums/test2.fla
    p.s. please mark helpful/correct responses.

  • Controlling loaded SWF inside a child

    Hello to everyone, may this question be too obvious to
    everyone, but I've been googling for hours without any luck.
    Have seen examples but they are not exactly as my scenario...
    Please, I need some help.
    I have loaded a SWF and attached to a MovieClip which exist
    in my current movie using the following code, and now I just want
    to access the loaded SWF to send it orders like play() or
    gotoAndPlay(); I have tried also: container=
    MocieClip(loader.content); instead adding child, but it trhows an
    error

    //this is your minimum code to load a file
    var url:String = "put your url here ";
    var request:URLRequest = new URLRequest(url);
    var loader:Loader = new Loader();
    loader.load(request);
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
    loadComplete);
    function loadComplete(event:Event):void {
    addChild(loader.content);
    //you don't need all that code just concentrate on the bit
    you need; when this work then you can start putting the rest

  • Bookmark toolbar will not display icons only

    downloaded the app to retain old look. In settings icons only is the default but still have the text.

    Add code to the <b>userChrome.css</b> file below the default @namespace line.
    *http://kb.mozillazine.org/userChrome.css
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    #PlacesToolbarItems > .bookmark-item:not([container]) > .toolbarbutton-text{display:none !important}
    </nowiki></pre>
    The customization files userChrome.css (user interface) and userContent.css (websites) are located in the <b>chrome</b> folder in the Firefox profile folder.
    *http://kb.mozillazine.org/Editing_configuration
    You can use this button to go to the currently used Firefox profile folder:
    *Help > Troubleshooting Information > Profile Directory: Show Folder (Linux: Open Directory; Mac: Show in Finder)
    * Create the chrome folder (lowercase) in the <xxxxxxxx>.default profile folder if this folder doesn't exist
    * Use a plain text editor like Notepad to create a (new) userChrome.css file in this folder (the names are case sensitive)
    * Paste the code in the userChrome.css file in the editor window and make sure that the userChrome.css file starts with the default @namespace line
    * Make sure that you select "All files" and not "Text files" when you save the file via "Save file as" in the text editor as userChrome.css. Otherwise Windows may add a hidden .txt file extension and you end up with a not working userChrome.css.txt file

  • Method add_function does not display icon in toolbar

    Hi,
    as described in the subject of this post I have a problem with the method add_function of class cl_salv_functions_list. My intend was to add several buttons in the toolbar of the ALV grid. Adding of these buttons is functional but there is no icon display although I defined the right value. Maybe there is a mistake in calling the method. Please see the attached code.
    Prerequisites:
    <b>eg. l_icon1 = "ICON_REFRESH" --> or should I use another value???</b>
    data: lr_columns type ref to cl_salv_columns_table,
            lr_column type ref to cl_salv_column_table,
            lr_functions type ref to cl_salv_functions_list,
            lr_layout type ref to cl_salv_layout,
            ls_key type salv_s_layout_key,
            selection type ref to cl_salv_selections,
            l_icon1 type string,
            l_icon2 type string,
            l_icon3 type string,
            l_icon4 type string,
            e_text type string,
            l_oref   type ref to cx_root.
      try.
          l_icon1 = text-ic1.
          l_icon2 = text-ic2.
          l_icon3 = text-ic3.
          ls_key-report = sy-cprog.
          lr_columns = r_process_alv->get_columns( ).
          lr_functions = r_process_alv->get_functions( ).
          lr_layout = r_process_alv->get_layout( ).
          lr_functions->set_all( value = if_salv_c_bool_sap=>true ).
          try.
              lr_functions->add_function(
                            name = 'SAPDET'
                            icon = l_icon1
                            text = 'Details'
                            tooltip =' Details'
                            position = if_salv_c_function_position=>left_of_salv_functions
              lr_functions->add_function(
                                  name = 'APPEND'
                                  icon = l_icon2
                                  tooltip = 'ADD'
                                  position = if_salv_c_function_position=>left_of_salv_functions
              lr_functions->add_function(
                                  name = 'DELETE'
                                  icon = l_icon3
                                  text = 'Del'
                                  tooltip = 'Session löschen'
                                  position = if_salv_c_function_position=>left_of_salv_functions
              lr_functions->add_function(
                                  name = 'REFRESH'
                                  icon = l_icon4
                                  text = 'Refresh'
                                  tooltip = 'Refresh'
                                  position = if_salv_c_function_position=>left_of_salv_functions
            catch cx_salv_wrong_call cx_salv_existing into l_oref.
              e_text = l_oref->get_text( ).
              message e_text type 'E'.
          endtry.
    Thanks in advance.
    Regards
    Maik.

    Hello Maik
    Rich is right. Since release 6.20 we should use
      TYPE-POOLS: icon.   " instead of include <icon>.
    In sample report <b>SALV_DEMO_TREE_FUNCTIONS</b> they use the "cryptic" version of the icons which is not preferable.
        try.
          l_text1 = text-b01.
          l_text2 = text-b02.
          lr_functions->add_function(
            name     = 'MYFUNCTION'
            icon     = '@DF@'
            text     = l_text1
            tooltip  = l_text2
            position = if_salv_c_function_position=>right_of_salv_functions ).
          catch cx_salv_wrong_call cx_salv_existing.
        endtry.
    Regards
      Uwe

  • User account control message displays every time, minimise and close buttons not displaying, pages slow to load

    Every time I try to open a page, I get a user account control message asking for permission to proceed. I have tried to adjust the frequency of this but have been unsuccessful. This has only started to occur recently.
    Pages are slow to load and do not properly display the close, minimise etc buttons in the top right corner (these are blacked out)
    I have tried to reset firefox. This does not fix the problem.
    The problem does not occur using Internet Explorer

    There are several things to try.
    Some problems occurs when your Internet security program was set to trust the
    previous version of Firefox, but no longer recognizes your updated version as
    trusted. Now how to fix the problem: To allow Firefox to connect to the Internet
    again;
    * Make sure your Internet security software is up-to-date (i.e. you are running the latest version)
    * Remove Firefox from your program's list of trusted or recognized programs, then add it back. For detailed instructions, see
    '''[https://support.mozilla.org/en-US/kb/configure-firewalls-so-firefox-can-access-internet?esab=a&s=Configure+firewalls+&r=0&as=s Configure firewalls so that Firefox can access the Internet.]''' {web link}

  • Not displaying icons

    My iMAC doesn't display all the icon pictures for the actual icons e.g. doesn't show graphic for Applications, but does show the graphic for Library.
    Any suggestions?

    Not sure if this is what you're asking but what about this. In Finder menu, view>options>view as icons (or for whatever.) You can set this permanently with view>show view options> "always open in" and check the box.

  • Crystal Report Viewer not displaying properly in on loading

    I am using Visual Studio 2012 in Windows 10 with IIS 8.5. I configured Crystal reports properly but when I load the webpage the Crystal report viewer doesn't load properly and the toolbar and other options are not showing. Please help. Following is the problem am talking about:

    Hi Zaeem,
    Windows 10 is not currently supported. We plan to add it to the supported platform in SP 14 which is planned for sometime end May.
    I tried it and make sure you are loading the Viewer and Report in the Page_Init section. Also the CrystalReportsViewer folder must be included in the project.
    Try searching and you'll find info on this subject.
    Don

  • My Applet is not displayed correctly/won't load

    Hi Everyone,
    I'm having some trouble with my Java applet. It uses a few Swing components, JButtons and things. When I load the applet into an IE window, it says that the applet has loaded in the status bar but there is nothing visible in the window. If I move my mouse over any of the Swing components, they magically appear! However, the applet will display fine with appletviewer. Any help would be much appreciated.
    Ben

    Maybe something like this could do the trick:
    public void paint (Graphics g) {
         super.paint(g);
         // your code here
    }

  • Ddd does not display source code when loading compiled program

    Hey everyone,
    I'm writing a C program right now and I would like to use ddd. The problem is, the source code window is completely blank. Has anyone ever run into this before? I really don't even know where to start looking to fix this problem. Yes, I have loaded my compiled binary (I can see the assembly instructions in the machine output). I use both awesome and xfce (different sessions) and it does not work in either.
    Here is the relevant configuration info:
    extra/gdb 7.3.1-1
    aur/ddd-syntaxfix
    awesome 3.4.10
    xfce 4.8
    I had to install ddd from AUR since ddd seems to have a bug in it where it will not show the machine code without a fix.
    If you need any other info just ask and I will provide it.

    This Forum is for Forte 4GL or UDS as its called today. I am not sure if anybody is going to be able to answer your question here. Sorry.
    ka

  • GetDefinitionByName not finding class in externally loaded SWF

    In my app, I have an external SWF that contains a bunch of
    movie clips that I want to instantiate in my main swf.
    I have checked the "Export for ActionScript" and the "Export
    in first frame" box in the movie clip in Flash.
    In my main SWF, I have action script code that loads the SWF
    (using the normal Loader and URLRequest classes).
    When the load completes, I do:
    var loader:Loader = Loader(event.target.loader);
    var movieClip:MovieClip = MovieClip(loader.content);
    var theClass:Class;
    try
    theClass = Class(getDefinitionByName("TestClass"));
    catch(e:Error)
    trace("TestClass not found!");
    return;
    I have never gotten it to successfully find the class.
    Is there anything else I might be doing wrong?
    Thanks

    Ah, I figured it out. I need to use the applicationDomain. So
    instead of using getDefinitionByName, I would call:
    event.target.applicationDomain.getDefinition("TestClass");
    That seems to work....
    Thanks

  • Images not displaying.

    import java.awt.*;
    import java.awt.image.*;
    import java.awt.event.*;
    import java.applet.*;
    import java.awt.geom.*;
    public class Game extends Applet implements Runnable, KeyListener {
         protected Thread thread, animation;
         private int i, keyVal, width, height, firstIndex, cellWidth, cellHeight, cellBorder;
        private double x, y, px, py, dx, dy, ddx, ddy, rate;
         private Image offscreenImage, background, images[];
         private BufferedImage redGuy;   //Create grafix objects to handle back buffering
           private BufferedImage[] drawingImage;
         private Graphics offscr;
        private boolean upPressed, downPressed, leftPressed, rightPressed, spacePressed;      //Keypressed variables
         public Game() { //Constructor (initalizes variables)
              thread = new Thread(this);  //Initalize thread, as new instance of our applet
              i = 0;           // Initalize our loop counter to 0
            x = 1;        // Initalize x coordinate to 1
            y = 1;        // Initalize y coordinate to 1
            px = 0;          // the previous x position    
              py = 0;      // the previous y position
              dx = 0;      // the change of x (delta x) -- speed of x
              dy = 0;      // the change of y (delta y) -- speed of y
              ddx = 10;     // the change of dx (delta delta x) -- acceleration of x
              ddy = 10;     // the change of dy (delta delta y) -- acceleration of y
              rate = 1000 / 30;  //Rate at which we'll make our thread sleep
                                  //the thread sleeping will give us our FPS                         
            //Initalize my keydown variables
            upPressed = false;
            downPressed = false;
            leftPressed = false;
            rightPressed = false;
            spacePressed = false;
            //Initialize array
            drawingImage =  new BufferedImage[7];
         public Image[] loadImageStrip(String filename,  int numImages, int cellWidth, int cellHeight, int cellBorder)
              Image [] images = new Image[numImages];
              MediaTracker mt = new MediaTracker(this);
              Image img = getImage(getDocumentBase(), filename);
              mt.addImage(img, 0);
              try {
                   mt.waitForID(0);
              } catch (InterruptedException ex) { /* Do nothing */ }
              int numCols = 1;//img.getWidth(this) / cellWidth;
              ImageProducer sourceProducer = img.getSource();
              for(int i = 0; i < numImages; i++) {
              images[i] = loadCell(sourceProducer ,((i%numCols) * cellWidth)+cellBorder,
              ((i/numCols) * cellHeight)+cellBorder,
              cellWidth - cellBorder,
              cellHeight - cellBorder);
              return images;
         public Image loadCell(ImageProducer ip, int x, int y, int width, int height) {
              return createImage(new FilteredImageSource(ip, new CropImageFilter(x, y, width, height)));
         public void init() {          //Equivalent of the Main method
              thread.start();          //Start the thread
           background = getImage(getDocumentBase(), "castle.jpg");
         addKeyListener(this);   //Makes our applet listen for pressed keys!
         //Create back buffer for page flipping
         width = getSize().width;          //Set width variable to size of screen
           height = getSize().height;          //Set height variable to size of screen
           offscreenImage = createImage(width, height);     //Create off screen image (back buffer)
           offscr = offscreenImage.getGraphics();
           //Put this next line here so that it only gets drawn once.
           offscr.setColor(Color.black);
           offscr.fillRect(0,0, width, height);     //Draw black background rect.
           images = loadImageStrip("stick_low_punch.bmp", 5, 60, 300, 3);
         public void run() {     //This method is where we will handle our main game loop
              //Infinte loop (to refresh our screen and handle game stuff)
        while(true)
             px = x;          //Sets previous x
              py = y;          //Sets previous y
          i++;     //Increments I (so we can see how many times this loop has ran)
          processKeyPressedEvents();  //Processes any key events that've happened
          processKeyReleasedEvents();
          detectCollide();     //Runs our detect collision code
          repaint();          //Repaints the screen to update stuff.
          try {               
            thread.sleep((int)rate);          //Tells the thread to shut down for 33 milliseconds
                 } catch (InterruptedException e) { }
      //Paint method.  Paints everything to the applet for us.
           public void paint(Graphics g)
                offscr.setColor(Color.black);     //Set Color to black
                offscr.drawImage(background, 0, 0, this);
            offscr.drawString("i = "+i,10,20);  //Shows value of i at Location 10, 20
            offscr.drawString("Key = " + keyVal, 70, 20);   //Draw key value
            for(int q = 0; q < images.length; q++) {
                   offscr.drawImage(images[q], (int)x, (int)y , this);
                   offscr.drawString("Q = " + q, 70, 40);
                g.drawImage(offscreenImage, 0, 0, this);
           public void update(Graphics g)
             paint(g);
         public void keyPressed(KeyEvent e) {
              keyVal = e.getKeyCode();
              switch(keyVal) {
                   case KeyEvent.VK_UP : upPressed = true;
                   break;
                   case KeyEvent.VK_DOWN : downPressed = true;
                   break;
                   case KeyEvent.VK_LEFT : leftPressed = true;
                   break;
                   case KeyEvent.VK_RIGHT : rightPressed = true;
                   break;
         public void keyReleased(KeyEvent e) {
              keyVal = e.getKeyCode();
              switch(keyVal) {
                   case KeyEvent.VK_UP : upPressed = false;
                   break;
                   case KeyEvent.VK_DOWN : downPressed = false;  
                   break;
                   case KeyEvent.VK_LEFT : leftPressed = false;   
                   break;
                   case KeyEvent.VK_RIGHT : rightPressed = false;
                   break;
         public void keyTyped(KeyEvent e) {
         //I don't need this method for now.     
           public void detectCollide() {
          /*  Collision detection for borders of window */
          if(x <=0) { x = 1;}       //Detect x at left
          if(y <=0) { y = 1;}       //Detect y at top
          if(x >=getSize().width-50) { x = getSize().width-50;}   //Detect x at right
          if(y >=getSize().height-180) { y = getSize().height-180;}   //Detect y at bottom
         public void processKeyPressedEvents() {      //This will handle the events if a key is pressed.
          /* This is an IMPORTANT method.
           *not only does it make for smoother movement
           *but it also allows us to press and
           *hold multiple keys.  Without this
           *method, holding a key down would
           *be interrupted by the next key pressed
          if(upPressed == true) {
           y -= ddy;  dy -= ddy;
          if(downPressed == true) {
                y+= ddy; dy += ddy;
          if(leftPressed == true) {
                x-= ddx; dx -= ddx;
          if(rightPressed == true) {
                x+= ddx; dx += ddx;
      public void processKeyReleasedEvents() {
           if(upPressed == false) {while(dx < 0) {dy += ddy; }}
          if(downPressed == false) {while(dy > 0) {dy -= ddy; }}
          if(leftPressed == false) {while(dx < 0) {dx += ddx; }}
          if(rightPressed == false) { while(dx > 0) {dx -= ddx; }}
    }For some reason my image (the strip image) is not displaying. It's loading, but nothing is being shown.
    If anyone can figure out why, please let me know, I've been beating my head off the wall for about 2 weeks now.
    Thanks,
    Brian

    I noticed in your code you are trying to load a bitmap image. I don't think Java is capable of using that
    image format yet.. Stick to using .jpg , .gif, .png

Maybe you are looking for