Cannot set property after using getChildByName

Hello !
I am adding a MovieClip to the container with the following code
            ldr = new MovieClip();
            ldr.graphics.beginFill(0xf0f0f0);
            ldr.graphics.drawRect(xPos,yPos,IMAGE_WIDTH,0);
            ldr.graphics.endFill();
            ldr.name = "ldr";
            container.addChild(ldr);
And then trying to retrieve this object on another function:
          var obj:MovieClip;
          obj = container.getChildByName("ldr") as MovieClip;
          obj.height = 100;
No error is returned, however if you watch the value of obj.height it remains on 0, not changing the value to 100 as expected.
Seems that no property from this object can be changed after retrieving it by getChildByName.
Any ideas?
Best regards,
Andre Bertier Rodrigues

Hi Ned !
The thing is: I am preloading little thubnails to the container. This first part of the code (in red) corresponds to the EventListener Event.Open, which is called when my loader has opened the content. This function basically adds the loader to the screen (which is a square set to MovieClip):
            loader.contentLoaderInfo.addEventListener(Event.OPEN, AddPreloader);
            loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, preloadImages);
            loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onItemLoaded);
        private function AddPreloader(e:Event)
            ldr = new MovieClip();
            ldr.graphics.beginFill(0xf0f0f0);
            ldr.graphics.drawRect(xPos,yPos,IMAGE_WIDTH,0);
            ldr.graphics.endFill();
            ldr.alpha = 0.5;
            ldr.name = "ldr";
            container.addChild(ldr);
Then, while the image is being loaded it calls the second Event which is
          loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, preloadImages);
        private function preloadImages(evt:ProgressEvent)
            var toLoad:Number = evt.bytesTotal;
            var loaded:Number = evt.bytesLoaded;
            var total:Number = loaded/toLoad;
            var content:Bitmap = Bitmap(loader.content)
            var percentage:Number = Math.floor(total * 100);
            var obj:MovieClip;
            obj = container.getChildByName("ldr") as MovieClip;
            obj.height = percentage;
where ldr is a global MovieClip on my class.
I have debugged and watched the values. Since this is a MovieClip it has height and width. I think the problem is with getChildByName method.

Similar Messages

  • Cannot set property 'readyState' of undefined?

    Cannot set property 'readyState' of undefined este es mi error cuando utilizo Websocket de coldfusion! Alguna solucion?

    I had the same issue. The problem turned out to be the default port used by websockets (8575) wasn't open by default. Once this was opened, the readystate error disappeared.

  • Cannot close iTunes after use.

    Since the last 2 update I cannot close iTunes after use. With 7.7.1 I even have to shutdown my computer completly. Downgrading does no works becuase my iPod is updated. Can anybody help.

    The top 2 fixes for this seem to be
    1) Update your NOD32 AV software from the ESET site, if you are using that.
    2) If you don't have an iPhone or iTouch, uninstall the AppleMobileDevice from Control Panel > Add/Remove programs
    Info on that: http://docs.info.apple.com/article.html?artnum=302488

  • Cannot set up eFax using Photosmart 6520 printer.

    Trying to set up eFax using HP Photosmart 6520. Software does not launch when clicking HP desktop icon. Only get
    Notepad gibberish. Was my installation faulty.I have no  problems printing.Still using Windows XP.
    This question was solved.
    View Solution.

    Hi schiss,
    Welcome to the HP Support forums.  I understand that when you are trying to open up the HP Printer Assistant to get your eFax setup and the HP Printer Assistant opens up as a notepad document.
    I have included a link to a trouble shooting document with the steps to resolve your issue. Once you have that corrected if you find that you get a grayed out eFax "Create a New Account" button then please call HP's Cloud Services at 1-855-785-2777 if you live in the USA/Canada region. If you live outside of the USA/Canada region please click the link below to find the Technical Support number for your country/region.
    HP Printer Assistant Opens with a Script Error or in Notepad
    Hewlett Packard Technical Support
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • Bug in dvt:graph tag? Cannot set graphType attribute using EL expression

    Dear all,
    First thing sorry if this is not the correct forum, but I have a problem that is driving me crazy with ADF DVT tags in JDeveloper environment.
    I'm working with DVT tags to display some graphs in my application. I need to decide at runtime the type of graph I'm going to render in my page, because the type of graph is stored in a database. Also, I use tabular data instead of Data controls, because I have to reuse POJO objects from an existing model tier.
    I have seen that you can bind the graphType attribute of <dvt:graph to a backing bean property, as explained in : http://www.oracle.com/technology/products/jdev/11/how-tos/dvt_how_tos/adf_dvt_graph_howto.html. You can even change the type dynamically responding to user actions, ie : you can change for example from BARS to AREAS or whathever. So far so good, the problem is that I have tried the simplest example possible and it seems that I cannot bind the graphType attribute to a backing bean property using an EL expression.
    In my example, the backing bean has a type property with fixed value AREA_VERT_ABS, but it renders as a BAR_VERT_CUST, that is to say, it completely ignores the binding for the graphType attribute, but the binding for the tabularData attribute works properly because it renders the dummy data provided. I have tried with other types of graphic and it always renders as BAR_VERT_CUST.
    I'm working with JSF 1.2 + Facelets + JDeveloper 11.1.1.2.0 and the integrated weblogic server.
    My page is a facelet page as follows :
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <f:view xmlns="http://www.w3.org/1999/xhtml"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:dvt="http://xmlns.oracle.com/dss/trinidad/faces">
    <af:document id="d1">
    <af:form id="f1">
    <dvt:graph id="g1" graphType="#{graphBean.type}" tabularData="#{graphBean.tabularData}" >
    </dvt:graph>
    </af:form>
    </af:document>
    </f:view>
    My backing bean :
    public class GraphBean {
    private String type = "AREA_VERT_ABS";
    public GraphBean() {      }
    public String getType() {
    return type;
    public List getTabularData() { // here I return a hardcoded list that is properly displayed ///
    Note : the sam page but changing #{graphBean.type}" by "AREA_VERT_ABS" renders properly :
    <dvt:graph id="g1" graphType="AREA_VERT_ABS" tabularData="#{graphBean.tabularData}" >
    </dvt:graph>
    Any advice will be very much appreciated.
    Thanks and regards,
    Plan.

    Hello,
    Actually the setter is not needed because the tag only reads, but it does not update the backing bean.
    Anyway for verification pourposes I have changed to the following version without results.
    Anyone from Oracle could give me some light ?
    public class GraphBean {
    private String type = "AREA_VERT_ABS";
    public GraphBean() {      
    public void setType(String type) {
    this.type = type;
    public String getType() {
    return type;
    }

  • Cannot restore Windows after using Rescue & Recovery

    I used R&R once and after doing so, I reboot and come up with error message saying "Windows could not start because the following file is missing or corrupt:
       \WINDOWS\system32\c_1252,nls
    You can attempt to repair this file by starting Windows Setup using the original Setup CD-ROM. Select 'r' at the first screen to start repair."
    Of course there is no original Setup CD-ROM with this computer.  I tried a Windows XP Professional CD from Microsoft and it cannot see any hard drive on my computer, so it will not work.
      Is there a way to start over and re-install Windows??

    hey Bernie
    missing drivers.. not th end of the world. dont give up on Lenovo yet. i installed xp yesterday and found the drivers the ibm-lenovo support site. fill in you laptop specs.. i.e. model, OS, etc. and you should get a list of your drivers.. 
    After i had th files i thought they didnt work but wat they do is extract you drivers to your local disk. 
    Thers another site, sorry forgot to bookmark it but this one was sufficient in my case. Hope lenovos not in the trash yet 
    here:
    http://www-307.ibm.com/pc/support/site.wss/product.do?template=%2Fproductselection%2Flandingpages%2F...

  • Permissions will not set, even after using terminal commands?

    Hey,
    I found a thread on here for using the terminal to type in commands for the user permissions and for the PSIX permissions on Leopard (10.5) server.  These commands are supposed to clean the server of all underlying(hidden) permissions that you cant see and then you are supposed to be able to then set the permissions again and finally, to hit "Propagate Permissions" so that all the permissions set for the shared volume then get farmed out to all sub files/folders.  This did not work when I tried it in the terminal, it said "Command not found" even after I typed in the admin password.  Is there anyone out there who can tell me the actual way to fix the old permissions and get new ones set?
    The story is:  We had an old server on a G4 when i first took control of the server, I took the shared hard drive out of the G4 and inserted it into a G5 and started using it with the leopard server.  the permissions did not really need to be set on that volume because they had carried over from the last time they were shared.  But we recently just got a Drobo unit for our server and I recently transferred all the shared files and folders over to the new volume, but ever since I cant get the permissions to farm out to all the stations, it shows me that its done on the server.  But when I go to access the files I am able to delete faculty folders where I had set the permissions to "read only" so I am wondering if there is a streamlined way of going about this or if I should just start from scratch and use all brand new HDD's?
    Please Help!

    Hi ..
    Try the tips mentioned here > Mini-tutorial: Force-deleting stubborn or problematic files in Mac OS X

  • Cannot set Start Mode using SQL Server Configuration Manager

    I have SQL Server 2012 Express installed on Windows 8.1 and am trying to change the Start Mode to Manual using SQL Server Configuration Manager. However, when I open the Properties dialog and use the drop-down for Start Mode on the Service tab the drop-down
    is inoperative. A "vertical bar" appears but no options.
    Is there some other way that I can change the Start Mode?

    I have SQL Server 2012 Express installed on Windows 8.1 and am trying to change the Start Mode to Manual using SQL Server Configuration Manager. However, when I open the Properties dialog and use the drop-down for Start Mode on the Service tab the drop-down
    is inoperative. A "vertical bar" appears but no options.
    Is there some other way that I can change the Start Mode?
    I have seen that on my laptop as well and it was due to display /resolution setting. Please see if that helps you. BTW, as already answered, services.msc is another way of changing it.
    Balmukund Lakhani | Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution quicker
    This posting is provided "AS IS" with no warranties, and confers no rights.
    My Blog |
    Team Blog | @Twitter
    Author: SQL Server 2012 AlwaysOn -
    Paperback, Kindle

  • Cannot set admin after reset of ix2-dl

    Hello,
    I have used the reset button on the back of my ix2-dl (latest firmware). When I connect to the web interface it asks me to authorize overwriting the data. I agree and am taken to a screen asking me to name my nas and agree to terms and conditions. Once I name and agree it asks me to setup an administrator account. I fill in the form and it returns an error "storage must be available before I can use this feature". The system then loops. I've tried resetting it again only to have the same issue. What can I do here?

    Hello jamavibu
    The ix2-dl was running a 4.1.x firmware version correct?
    What was the reason for the initial pin-hole reset?  
    Were the initial internal hard disks changed out for another drive(s)?
    You may want to try booting the unit without the hard disks, then reset the unit after it fully boots and the web ui lists the "device not ready..." message.  After the reset completes, please power down the unit and insert at least one hard disk then boot up again and attempt the setup.
    You might need to clean the disks in preperation for the above option in case the issue you are experiencing is due to a glitch in the portion of the firmware loaded to the hard disk on setup.
    LenovoEMC Contact Information is region specific. Please select the correct link then access the Contact Us at the top right:
    US and Canada: https://lenovo-na-en.custhelp.com/
    Latin America and Mexico: https://lenovo-la-es.custhelp.com/
    EU: https://lenovo-eu-en.custhelp.com/
    India/Asia Pacific: https://lenovo-ap-en.custhelp.com/
    http://support.lenovoemc.com/

  • Cannot unlock E75 after using Mail for Exchange

    Hi,
    I tried Mail for Exchange with my new Nokia E75 and it worked very well, fetched my company e-mail and everything looked good. During the installation the setup wizard asked whether to sync and how often, etc and I said yes. The setup program insisted that I need to take phone locking into use. It sounded strange but I accepted.
    Now I see that I cannot connect my Nokia E75 to my computer with USB anymore as it is in locked mode! When trying to unlock the from from control panel, all I get is "Unable to unlock the phone". I even removed the whole Mail for Exchange mailbox configuration but it did not help.
    So two question: a) are Mail for Exchange and USB really mutually exclusive? b) how I can unlock my phone?
    Thanks!

    Others are having the same problem with other models, too:
    /discussions/board/message?board.id=communicators&message.id=39311

  • Set property values using  javascript

    How can I recreate this while using javascript?
    <PARAM NAME="AllowSelection" VALUE="false">
    I tried this...
    document.Grid.setPropertyValue(AllowSelection,false);
    but it did not work.  Where is the documentation that would describe this in its entirety.  Thank you in advance.

    Chip,
    here is the Javascript for you.
    document.iGrid.getGridObject().setAllowSelection(NEWVALUE);
    Documentation you can find under the help Link in MII. You can also use the SAP MII Script Assistant
    to see all supported methods .
    Regards
    Pedro

  • HT201269 My iphone5 with iOS7 installed was stolen. I now got a new iPhone5, but it has iOS6 installed. So I cannot set it up restoring from iCloud. If I set it up as a new iPhone, it asks that I sign in using my Apple ID. What should I do?

    I need to set up a new iPhone5 after my previous one was stolen. The new phone has iOS6 installed, the stolen one has iOS7 installed. So I cannot set it up using the Cloud. If I do a new setup, it asks me to sign in using my Apple ID. Will this not override my backed up data, preventing me from restoring my data on my new phone? I cannot install iOS7 untill the new phone has been set up. What am I to do?

    How to sign in using the Apple ID that I initially used to set up the computer? I cant update my iPhoto and download pictures from Iphone :((
    Try to remember any AppleID you ever may have used.
    In the AppStore Application go to the "Store" menu.
    It will show you the AppleiD You are currently using (in the last menu entry "View my account ....".
    Use the "Sign out" command and sign in with any AppleID you ever used, ten check the "Purchases" tab of the App Store, if that will show the bundled apps.
    And also, where are my pictures stored in my Air?
    If you have used iPhoto to download your pictures, the photos will be stored in the iPhoto Library, a package, that is stored in the folder "Pictures" in your Home folder.
    Terence Devlin has written some very useful user tips, that describe the iPhoto Library:  See the links below:
    iPhoto and File Management
    How to Access Files in iPhoto
    Exporting From iPhoto

  • Builtin rtl8723ae Realtek WLAN driver detect card but cannot set it up

    Hello there,
    I have been trying to make my new computer's wireless Realtek 8723AE card work under Linux over the two last days but it did not work though I tried a lot of things.
    Brief
    The rtl8723ae module is correctly started on boot and will recognize the wifi card as shown by dmesg and list it in availaible interfaces with lo and enp2s0 LAN card.
    However I cannot set it up using either the `ip link set wlp1s0 up` (or `ifconfig wlp1s0 up`) ; doing so and running a `ip link show` after will still show it as `DOWN` and if we look in dmesg we can see a new line:
    ADDRCONF(NETDEV_UP): wlp1s0: link is not ready
    Due to this problem `wifi-menu` calls are unsuccessful because the card is not up. I bother if this is only an IPv6 error or if this is also meaning that the whole card is not ready, because I do not need IPv6 on WLAN networks so I can disable it if possible.
    Tried hacks
    wicd will not perfom better as default system network tools.
    compiling the Realtek Linux modules from scratch and modprobing it does not help
    Other random module options settings like `ips=0` but no improvement
    Some of these hack where also tried on Ubuntu, but I quickly installed Arch over it in order to have a better driver testing environment (and I was suspecting that the kernel was too old but same problem on Arch so…).
    Thank you a lot for any feedback! The wifi card is perfectly working on Windows 8 dual boot with Realtek drivers so this is not an hardware issue.
    Last edited by MicroJoe (2015-03-04 21:13:15)

    Hi and Welcome to the Forums!
    My my...you did try many things. Sadly, I think that the only way to unravel all of this is with your carrier. They control the BIS accounts. I would not let them off the hook though:
    rstem wrote:
    She had called T-Mobile and they put her through hours on the phone and said it's A RIM problem, there's nothing we can do for you, you need to work with Blackberry. 
    While I'd never want to say that a carrier rep would lie to you, that statement from them is blatantly false. They sell you the BIS service. They are responsible for delivering that service to you. Only they can escalate your case into RIM if that is needed to resolve it. You have no free channel for accessing support from RIM except as escalation from your carrier.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • [svn:fx-trunk] 15267: Cannot set Spark Label or Spark RichText showTruncationTip property at runtime using bindngs or ActionScript .

    Revision: 15267
    Revision: 15267
    Author:   [email protected]
    Date:     2010-04-07 15:57:04 -0700 (Wed, 07 Apr 2010)
    Log Message:
    Cannot set Spark Label or Spark RichText showTruncationTip property at runtime using bindngs or ActionScript.
    QE notes:
    Doc notes: None
    Bugs: partial fix for SDK-25980
    Reviewed By: Gordon
    Tests run: checkintests
    Fix Label styles baselineShift and typographicCase so they work as documented.  The documentation is from TLF.
    QE notes:
    Doc notes: None
    Bugs: partial fix for SDK-25169, SDK-25210
    Reviewed By: Gordon
    Tests run: checkintests
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-25980
        http://bugs.adobe.com/jira/browse/SDK-25169
        http://bugs.adobe.com/jira/browse/SDK-25210
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Label.as

    I'd have to see the xml to say what, but 1009 is what it says - a null reference has no properties, it is null.
    Try tracing out SampleWebServiceCS.GetMember and you'll quickly see where along your .element.element path you have an error.
    (BTW, I've not used s:Operation before, but is your syntax correct?)
    G

  • Cannot set status of Urgent Change after manual transport

    Hi all,
    We are usng CHARM in Solution Manager 7.1 for import to the SAP ECC (EHP6) systems.
    I cannot set the status of the Urgent Change document (ZMHF) to status "To be Tested" after the transports were manually released and manually imported to the ECC QA system.
    When I use action "Pass Urgent Change to Test", the system stopped with error "Not all task are yet released" and will not change the status .
    Based, on the Task List log, the system started the release process although no transports were released.
    Is there any way that I can update the status of the Urgent Change document to "To be Tested"?
    I tried program CRM_SOCM_SERVICE_REPORT but still did not change the status.
    Any suggestion?
    Thanks,
    Tess

    Hi Venu,
    have a look under System Administration - System Configuration -- Knowledge Management -- Configuration --Content Management -- User Interface -- Commands -- UI Command Groups -- StatemanagementGroup.
    See Java class: com.sapportals.wcm.rendering.uicommand.cm.UIStatemanagementGroupCommand. Take the class and decompile this and everything needed around to understand how this class works.
    Then you can choose to extend this CommandGroup to also have a command "Resubmit for Approval" or you can implement your own UI Command only for resubmitting (you will also have to activate your command (group) by settings within the configuration).
    On the other hand, if all this is completely new to you, I'm a bit sceptical if the task isn't a bit too big as a first task on KM implementation topics...?
    Hope it helps
    Detlev

Maybe you are looking for