Dynamic referencing the numChildren in a mc instance

I am trying to dynamically read the number of children in
movieclips that are created at runtime. These mc "windows" have
several items in them, (scrollbars, text fields, image, etc...). I
can run tweens and stuff by referencing these mc instance with:
DocClass(root).popupPages.getChildByName(pageToBuild) //
works as a reference to a specific item
However, this same syntax fails when I add: numChildren
DocClass(root).popupPages.getChildByName(pageToBuild).numChildren
// generates an error.
DocClass(root).popupPages[getChildByName(pageToBuild)].numChildren
// generates an error.
What I want to do is run a for() statement on the mc to have
it read back all of its contents. However, it fails to do that
because it can never give me the number of children it
contains.

It is possible that the instance name in the library or on
stage is different then the instance name in your code.
Meaning: var mc_scroll:ScrollBar is different from the
instance on stage or in the library "scrollBar_mc"
I found that fl.controls.ScrollBar; does not work unless you
add it to your library or stage.

Similar Messages

  • View objects referencing the same entity

    The behaviour occurs in every version of jdeveloper ADF BC i have tried so far (10g, 11g).
    I have 2 updatable view objects referencing the same entity object. When i create a new record using the first view object and before commiting the data to the database i navigate to the second
    view object. Suprisingly the second view object is populated with the same data that is posted on the first view object. It seems like both view objects are referencing the same entity object instance.
    Is any way to overcome this strange behaviour.
    Thanks

    As Timo says think of the EO as a record cache. If you had 700 VOs all based on the same EO, it would be ideal to store the same record(s) 700 times in the midtier as it would consume vasts amount of memory. Thus the EO cache.
    If you do want to separate the VOs, you've 3 options:
    1) Use separate EOs for each VO (not ideal)
    2) Expose each VO under their own root level Application Module - a separate EO cache instance for each VO will be created at runtime - however you need to be careful between the VO/EO pairs, you don't update the same record, as you'll get record locks/contention
    3) If you're using task flows in 11g, use the Always Begin New Transaction option for each screen/fragment for each VO. This is the equivalent of 2 but from the task flow level - however again you need to be careful on record locks.
    CM.

  • Using dynamic referencing in PDF Form with Checkboxes

    I have created a checklist that contains approx 60-70 steps. About 20 of them are to have a checkbox that fills an adjacent field with the date, and another with the user name. I have already got this functioning as a stand alone process.
    aaa = checkbox
    aaadate = field for date
    aaaname = field for name
    [code]
    function test() {
    var one = this.getField("aaa");
    var two = this.getField("aaadate");
    if (one.value == 'Yes') {
    if (two.value == "") {
         this.getField("aaadate").value = util.printd("dd-mmm-yy",new Date());
         this.getField("aaaname").value = identity.name;
    }} else if (one.value == 'Off') {
         this.getField("aaadate").value = "";
         this.getField("aaaname").value = "";
    [/code]
    I do not want to write a piece of code for each checkbox so I am trying to figure out how to use dynamic referencing so that when i check on a checkbox, the code takes the checked checkboxes' name (aaa) and is able to determine the two other fields name by appending/concatenating (name + "date"  = aaadate)
    I have tried various methods and done tremendous research; I'm not sure if I lack the knowledge to incorporate what I've found properly, if I just have been looking in the wrong places for the wrong things. It seems like this should be possible in a PDF form...
    Please help

    You need to inject the part of the field name that changes as a variable. So your code would be something like this:
    function test(base) {
        var one = this.getField(base);
        var two = this.getField(base+"date");
        if (one.value == 'Yes') {
            if (two.value == "") {
                this.getField(base+"date").value = util.printd("dd-mmm-yy",new Date());
                this.getField(base+"name").value = identity.name;
        } else if (one.value == 'Off') {
            this.getField(base+"date").value = "";
            this.getField(base+"name").value = "";
    And you would call it like so:
    test("aaa");
    test("bbb");
    etc.

  • Dynamically changing the name of the .dll file to load in call Library

    Our current model is to use dll files as "plug-in" modules for instruments and a top layer test step calls the appropriate driver dll.
    For instance
    the TestStep is called with the kenmore.dll passed as a parameter so the kenmore.dll file is loaded, the functions are registered and the functions are called.  Next the TestStep is called with whirlpool.dll as a parameter now the whirlpool.dll is loaded the functions are registered and the functions are called.  This works very well in our current CVI/LabWindows environment.  Now we plan to work with LabView, we wish to retain this model (as DLL files, there are advantages in our model for us).  We have not found a way to load these dll files from LabView without hard coding the path and filenames in.
    Any suggestions on how to dynamically change the path in the Call Library module, or another suggested method of loading the dll via LabView?
    Thanks,

    John Stuart wrote:
    Our current model is to
    use dll files as "plug-in" modules for instruments and a top layer test
    step calls the appropriate driver dll.
    For instance
    the TestStep is called with the kenmore.dll passed as
    a parameter so the kenmore.dll file is loaded, the functions are
    registered and the functions are called.  Next the TestStep is
    called with whirlpool.dll as a parameter now the whirlpool.dll is
    loaded the functions are registered and the functions are called. 
    This works very well in our current CVI/LabWindows environment. 
    Now we plan to work with LabView, we wish to retain this model (as DLL
    files, there are advantages in our model for us).  We have not
    found a way to load these dll files from LabView without hard coding
    the path and filenames in.
    Any suggestions on how to dynamically change the path in the Call
    Library module, or another suggested method of loading the dll via
    LabView?
    Thanks,
    As Ben has pointed out LabVIEW
    scripting may be a possibility but you are going with that in highly
    unsupported area. Also I happen to know that changing the library name
    of a Call Library Node through scripting has produced unsupported
    feature errors previous to LabVIEW 7.1 eventhough the method was there.
    And LabVIEW 8 hides the whole scripting business behind the license
    manager.
    Another approach at least if the different DLLs do not change to often
    thier functions and parameters would be to create a wrapper DLL. Have
    it a method that loads the desired DLL and links its functions to
    internal function pointers. Then when calling the actual function entry
    points just redirect directly to the correct fucntion through that
    function pointer. Since you are already working in CVI creating such a
    DLL should be only a matter of taking out a little bit of your already
    existing code and put it into a DLL project.
    Rolf Kalbermatter
    Message Edited by rolfk on 04-12-2006 07:40 AM
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Dynamically loading the url of a web reference object in C#

    Hi,
    We have a number of assemblies (C# - VS 2010) that access third party web services via SOAP.  The url to access the site is part of the web reference object.
    We have need to be able to change the url used to access the service at run runtime when conditions require.
    What would the be the best practice of dynamically setting the url to be used at run time?
    Thanks in advance.
    SanDegan99

    You could specify the URLs as keys in the application configuration file (App.config or web.config) of the main application:
    https://msdn.microsoft.com/en-us/library/system.configuration.configurationmanager.appsettings(v=vs.110).aspx
    https://msdn.microsoft.com/en-us/library/aa374182(v=vs.85).aspx
    App.config:
    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
    <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
    </startup>
    <appSettings>
    <add key="url1" value="http://www.url.com/test.asmx"/>
    </appSettings>
    </configuration>
    You can then retrieve these values using the ConfigurationManager class in any assembly that is referenced from the main application like this (add a reference to System.Configuration.dll):
    string url = System.Configuration.ConfigurationManager.AppSettings["url1"].ToString();
    You can change the values of the keys in the application configuration file without having to recompile the application.
    The other option is to specify the URLs in a database or some other persistent storage from which you read at runtime but configuration files are generally used to store these kind of variable application settings.
    Please remember to mark helpful posts as answer to close your threads and remember that any new question you may have should be asked in a new thread of its own.

  • How to pass tag name and value dynamically in the output of PCo notification?

    Hi,
    I have a requirement to develop such a scenario where there can be multiple no of tags in PCo (Say 10) but there will be single notification to push the tag name when the value got changed and the changed value to MII. for any value change for any of the tag, the notification will be trigger. So As per my knowledge I have to pass the tag name and value dynamically in the "output" tab of the notification. But need your support to find out how to pass them dynamically.
    Thanks in advance.
    Regards,
    Suman

    Hi Suman/Jeedesh,
    As per Pco notification, it will trigger whenever any of the tag value changes in Agent instance subscription items.
    For above issue, My suggestion
    1. Create DB table name TAGLIST with 200 tags as rows in columns (Tagname, TagValue)
    2. Based on notification trigger, create a transaction and update values w.r.t TagNames in above table
    3. Next time, when notification trigger with fresh value for any of the tag, cross check with existing TagName with Value and update in DB table.
    4. And in the mean time, send those Tag details vie mail trigger or as per requirement
    Instead of creating 200 notification, above is a just alternate way suggestion to achieve dynamic tag value change notification.
    Hope it might solve your problem
    Regards,
    Praveen Reddy

  • Referencing a schema in an XML instance

    Hi there,
    I have problems referencing an XMLSchema in an XML instance. (The way I do it is like showed below, I reference the XMLSchema-Namespace and my own namespace.) I'm using the Oracle XDK, and develop my app with the JDeveloper. When parsing the XML-Document, the parser says, that the Tags I defined (using Schema-Mechanismn) are 'used but not declared'. Does anybody have advice ?
    The other question ist, how can I check, if
    the XMLSchema-Declaration I referenced is the valid/latest one. Can it be, that the parser dictates which (XMLSchema-)namespace to use (i.e. that from 1999)?
    <BookCatalogue xmlns ="http://www.publishing.org"
    xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance"
    xsi:schemaLocation="http://www.publishing.org
    BookCatalogue.xsd">

    thanks ... but I was after an ALSB solution as it would be quite expensive to do external callouts to WLI or Java.
    There is no out-of-the-box solution for this.
    It requires assigning a variable which contains the XML Schema and then refer this variable within ALSB. This is also an expensive process as we have to repeatedly call the variable at element within an XML tree

  • Conflict between 2 business services for the same SAP R/3 instance

    Hi,
    We developed a packaged solution that connects to SAP R/3 with RFC Adaptor and idoc Adaptor.
    We deliver design and configuration packages defining the entire integration schema between an external system and SAP.
    The configuration defines a business service BS_SAP_R3 containing RFC and idoc communications channels.
    When we deploy and configure the solution (design and config) on a XI instance we have a conflict.
    As the XI already contains a Business Service connecting to the same SAP instance (other integration) we want to use with our business service BS_SAP_R3, we have an error when configuring the “<i><b>Adapter-Specific Identifiers…</b></i>” properties “R/3 System ID” and “<i><b>Client</b></i>” from the section “<i><b>IDoc Adapter and RFC Adapter</b></i>” with the message, for the BS_SAP_R3
    <i><b>Check Result for Object BS_SAP_R3
    SAP system ID D46 and client 800 already exist in service | BC_TEST_SAP_R3  </b></i>
    Is there a way to solve this conflict problem?
    Thanks for your help.
    Adalbert

    Dzieki za odpowiedz
    Could you give more details about the design issue and what you have on mind?
    I also suspect a design issue but do not know how to solve it...
    If in your Configuration you have 150 Receivers Determinations, Interface Determinations and Receiver Agreements referencing the same BS business service to access SAP, can you make the service configurable in any sort…
    Can you recommend another solution?
    The only solution I see it to regenerate all the configuration by hand using the already exiting SAP BS… But for 150 objects… it is not a real solution...
    Thanks for your help
    Adalbert
    Wojtek

  • Dynamically populated dropdown values are missing when instances are added

    HI Team
    I have a subform which is repeatable have  a drop down  as one of the field which is dynamically populated from the web service call(short lived process) from the DB.On initialize event of the subform the data connection is executed .Dropown is populated with the values but when an instance of subform is added the dropdown values are missing.
    Only in the first instance of a subform  dropdown values are showing up , when instances of subform is added the drop down values are missing.
    Please let me how can i solve this issue,
    Thanks in Advance
    Bharathi

    I've tried this option by adding some value (hard-coded) during initialize event of the subform and all values are populated in the newly added instances as well.
    Not sure why it's not working for you.. Can you try adding some sample values without calling web service and confirm if it's working?

  • How to log in to the new installed SAP ABAP instance ?

    Dear Experts,
    In SAP ERP 2005 installation,
    I have done central system installation, Now I need to perform postinstallation steps,
    Could you please tell me,  how to log in to the new installed SAP ABAP instance and do the post installation?
    Regards,
    Madhavan K

    Hi,
    Check the list of post installation steps:
    http://www.saptechies.com/post-installation-steps-for-ecc-60/
    From my point of view basic post installation steps are:
    - Installing SAP License (from http://service.sap.com/licensekeys)
    - Setup TMS  (STMS)
    - Import profiles (RZ10)
    - Client Copy (SCC*)
    - Create users (SU01)
    However further many steps are required as per your requirements. Cehck the link for more detailed steps.
    Regards,
    Srikishan

  • Hi. After I have loaded a picture into Photoshop some of the menu tools are greyed out and I cannot use the keyboard short cut, for instance I cannot use Ctrl   T to enter free transform mode. Also the toolbar is so small I cannot see the icons without ge

    Hi. After loading a picture into Photoshop some of the menu tools are greyed out and I cannot use the keyboard short cuts, for instance I cannot use Ctrl + T for free transform, how do I resolve this problem. In addition the tool Icons are so small I have to get close to the screen to see them, is there anyway the Icons can be made bigger without reducing the resolution of the screen.
    Thanks
    Derek

    Are you working on a background layer? If so, Ctrl + T will not work. Press Alt and double-click your background layer to convert to a normal layer (or right-click BG layer and select Layer from Background) and try again.
    If you're working in Photoshop CC 2014 you can go to Preferences > Experimental Features and tick "Scale UI 200% for high-density displays" to make your buttons and icons larger.

  • Forming a report query dynamically with the value of an item

    Hi Gurus,
    We wanted to create a report based on the value of an item in the page.
    For example
    There is a text box named p1_table depending on the value of this item the query of the report should change
    1) when p1_table = emp then report query should be select * from emp
    2) when p1_table = dept then report query should be select * from dept
    I tried doing this using
    select * from :p1_table and select * from v('p1_table') , it is not working.
    Kindly help me in achieving the requirement.
    Thanks & Regards,
    Vikas Krishna

    Hi Vikas,
    You have to do this as a report based on a function that returns the query as a string. You build up the string dynamically in the function.
    Regards
    Andre

  • How can I create an action that dynamically appends the filename, when saving?

    I have created a batch file that watches a folder for .jpgs. When a jpg is found, it runs a Photoshop droplet that resizes and exports six different sizes of the same image, then closes the image. This all works fine, however the step I am stuck on is getting Photoshop to dynamically rename the files. What I mean is when I drop in a file named something like filename.jpg, I want the images to be named according to the width of resize. Exported files should be filename-1400.jpg, filename-1200.jpg, filename-800.jpg, etc. filename2.jpg would become filename2-1400.jpg, filename2-1200.jpg, filename-800.jpg. As it is now, Photoshop names the files the same names I saved them as, while creating the actions.
    I am using Photoshop CS6.

    What OS and verson of AI? Along with what Myle said, in the Actions panel is a column which allows the dialogs to be turned on/off. Make sure this is unchecked at all levels of the Action.

  • How do I stop iPhone Safari from dynamically resizing the visual viewport?

    Sorry I post this here, but I couldn't access the developer forums (no error given, it just keeps returning me to this page https://developer.apple.com/devforums/) I'm not even sure wether that's been moved here and it's just the redirection non working.
    I need to Stop iPhone Safari from dynamically resizing the visual viewport, or in other words, to stop it from trying to "fit" the layout into the viewport.
    Why?
    Because any recalculation javascript does on absolutely positioned elements makes the whole site super IRRESPONSIVE.
    I don't know wether the issue is the element going out the already-set layout viewport (which triggers the page resizing to fit the visual viewport) or just the calculations being made constantly, but I can stop the calculations from happening when not "touching" the screen, but I need a way to stop the page resizing.
    I tried setting the viewport width to 1040px, as my layout width, and it fixed the header's width being narrower than the body (or shifted left?), but the whole page is still resized with every motion-frame (one every 3 seconds, due to overloading the redrawing engine)
    Is there a way to prevent that?

    No, that link doesn't solve it. It just says the same is found everywhere online.
    There's probably no way to do it, as per their way they "accidentally" omitted the oposite case: the page being wider than 980. They only mention what to do if the site is narrower. Something I learned is big companies (with reputation management) could let you run in circles for years no answer rather than telling you something is not possible.
    I'm the developer (can't access the dev forums, don't know why) and I DID setup the viewport, scale and other properties but none of them stopped from re-fitting the new re-sized layout in the viewport. They just ensure the "initial" view.
    I think the feature I'm looking for must be achieved with some JavaScript function targeting Safari-proprietary variable/property… if even possible.
    I just had to make things never reaching the edge until somebody contributes something useful

  • I am totally frustrated by the fact that now i have gone to iCloud and after a few synchs, my contacts are all mixed up with the wrong information.  For instance, my email and phone number comes up under someone else's name (a thousand contacts)

    I am totally frustrated by the fact that now i have gone to iCloud and after a few synchs, my contacts are all mixed up with the wrong information.  For instance, my email and phone number comes up under someone else's name (a thousand contacts).  I dont know how to repair this.  what a nightmare

    An icloud account is designed to be used by just one user.  If you have given your ID or set up your account on someone else's device, then their data will be mingled with your or worse.

Maybe you are looking for

  • JRE 1.4.0_01 install with Redhat 7.3

    After installation of the rpm-package I tried ./java -version and the systems claims that: Error: failed /usr/java/j2re1.4.0_01/lib/i386/client/libjvm.so, because libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file or directory Doe

  • Why is my password not working?

    I just downloaded thunderbird client. I have several gmail accounts id like to set up. I have set them up correctly but thunderbird keeps saying my username or passwords are incorrect. What is wrong? IMAP and POP is enabled on all gmail accounts. Sho

  • 5200CD won't start/do much of anything

    We have 5200CD that won't start up. My father (whose beloved computer it is now) had noticed that he was having difficulty getting it to start - sometimes, he would have to press the start up key two or three times - so he left it running for a coupl

  • Toast or iDVD+

    I have a project I inhereited that i need to use Toast to burn the dvds for a consistant look to prior dvd's that were burned in Toast. I was just wondering if anyone knows is the compression engine in Toast as "clean" as in iDVD? In other words, is

  • Mac os 10.5.8: how to know if infected with backdoor.flashback.39

    I am running Mac OS X 10.5.8 and not tech savy.  How do I know if I'm infected with backdoor.flashback.39?