Controlling properties on items added to the stage in a loop

Hi there,
I have a loop that adds xml elements to the stage (10). Once added, I need to control the items (checkbox = do something).
Here is where I add them to the stage.
          private function createLayout():void {
               container = new VBox();
               for(var i:int=0; i<10; i++) {
                    vBox = new VBox();
                    hBox = new HBox();
                    titleText = new LinkButton();
                    itemInfo = new Text();
                    abstract = new Text();
                    archive = new CheckBox();
                    rateItem = new ComboBox();
                    category = new ComboBox();
                    var categoryLabels:Array = new Array("Food & Ag","News","Health","People","General","What's Coming","Biofuel","Environment");
                    var rateLabels:Array = new Array("Excellent","Good","Bad","Neutral","Controversial");
                    titleText.label = listCollection.getItemAt(i).title;
                    titleText.width = 400;
                    itemInfo.text = listCollection.getItemAt(i).source + " | " + listCollection.getItemAt(i).date;
                    abstract.text = listCollection.getItemAt(i).abstract;
                    abstract.width = 400;
                    archive.label = "Archive";
                    category.prompt = "Category";
                    category.dataProvider = categoryLabels;
                    category.rowCount = categoryLabels.length;
                    rateItem.prompt = "Rate";
                    rateItem.dataProvider = rateLabels;
                    vBox.addChild(titleText);
                    vBox.addChild(itemInfo);
                    vBox.addChild(abstract);
                    vBox.addChild(hBox);
                    hBox.addChild(archive);     
                    hBox.percentWidth = 80;
                    hBox.percentHeight = 80;
                    archive.addEventListener(Event.CHANGE, toggleArchive);                    
                    container.addChild(vBox);
               addChild(container);
I listen for a checkbox (change event) and when clicked, call a function that adds two comboboxes to the stage.
archive.addEventListener(Event.CHANGE, toggleArchive);     
I then call the function that will handle the event.
          public function toggleArchive(e:Event):void {
               if(archive.selected == true){
                    hBox.addChild(category);
                    hBox.addChild(rateItem);                    
               else {
                    hBox.removeChild(category);
                    hBox.removeChild(rateItem);
When I have one item it works fine.
for(var i:int=0; i<1; i++) {
When I add 10 nothing happens. I feel like i should be doing something to identify what item I'm referring to. Any thoughts/reccomendations would br great!

My apologies, but I am somewhat confused. Thanks for taking the time to help me (first off)!
I changed the createLayout function to add name, visible, and includeInLayout propertiesfor each comboBox. I then changes the scope of "i" so that I can reference it from the function called upon the Event.CHANGE event.
          private var i:Number;
          private function createLayout():void {
               container = new VBox();
               for(var i=0; i<listCollection.length; i++) {
                    vBox = new VBox();
                    hBox = new HBox();
                    titleText = new LinkButton();
                    itemInfo = new Text();
                    abstract = new Text();
                    archive = new CheckBox();
                    rateItem = new ComboBox();
                    category = new ComboBox();
                    var categoryLabels:Array = new Array("Food & Ag","News","Health","People","General","What's Coming","Biofuel","Environment");
                    var rateLabels:Array = new Array("Excellent","Good","Bad","Neutral","Controversial");
                    titleText.label = listCollection.getItemAt(i).title;
                    titleText.width = 400;
                    itemInfo.text = listCollection.getItemAt(i).source + " | " + listCollection.getItemAt(i).date;
                    abstract.text = listCollection.getItemAt(i).abstract;
                    abstract.width = 400;
                    archive.label = "Archive";
                    category.prompt = "Category";
                    category.name = "category";
                    category.dataProvider = categoryLabels;
                    category.rowCount = categoryLabels.length;
                    category.visible = false;
                    category.includeInLayout = false;
                    rateItem.prompt = "Rate";
                    rateItem.name = "rateItem";
                    rateItem.dataProvider = rateLabels;
                    rateItem.visible = false;
                    rateItem.includeInLayout = false;
                    vBox.addChild(titleText);
                    vBox.addChild(itemInfo);
                    vBox.addChild(abstract);
                    vBox.addChild(hBox);
                    hBox.addChild(archive);    
                    hBox.addChild(category);
                    hBox.addChild(rateItem);
                    hBox.percentWidth = 80;
                    hBox.percentHeight = 80;
                    archive.addEventListener(Event.CHANGE, toggleArchive);                   
                    container.addChild(vBox);
               addChild(container);
now I have to modify these items by name from the toggleArchive method.
          public function toggleArchive(e:Event):void {
               if(archive.selected == true){
                    var cb:ComboBox = hBox.getChildAt(i).getChildByName(category);
                    cb.visible = true;
                    cb.includeInLayout = true;
               else {
Two things, 1) i get an error saying...
Severity and Description    Path    Resource    Location    Creation Time    Id
1061: Call to a possibly undefined method getChildByName through a reference with static type flash.display:DisplayObject.    mediaTrap/src/components    listItems.mxml    line 132    1242667335601    643
2) shouldnt it be something like this
          public function toggleArchive(e:Event):void {
               if(hBox.getChildAt(i).archive.selected == true){
                    var cb:ComboBox = hBox.getChildAt(i).getChildByName(category);
                    cb.visible = true;
                    cb.includeInLayout = true;
               else {

Similar Messages

  • Objects added to the stage are not animated by AnimatorFactory

    Hi all,
    the following code ist a very simple animation. I added an object to the stage by dragging it from the library. Then I applied code generated by "Copy motion as AS 3" and the animation works fine.
    However, if i add another object by instating it in AS, add it to the stage by stage.addChild(...), and try to animate it by adding it as a target to the AnimatorFactory nothing happens.(Probably I made a simple newbi mistake.)
    Any ideas how to fix this? Thanks a lot in advance.
    Here is the code:
    import fl.motion.AnimatorFactory;
    import fl.motion.MotionBase;
    import flash.filters.*;
    import flash.geom.Point;
    var __motion_Symbol1_3:MotionBase;
    if(__motion_Symbol1_3 == null) {
        import fl.motion.Motion;
        __motion_Symbol1_3 = new Motion();
        __motion_Symbol1_3.duration = 34;
        // Call overrideTargetTransform to prevent the scale, skew,
        // or rotation values from being made relative to the target
        // object's original transform.
        // __motion_Symbol1_3.overrideTargetTransform();
        // The following calls to addPropertyArray assign data values
        // for each tweened property. There is one value in the Array
        // for every frame in the tween, or fewer if the last value
        // remains the same for the rest of the frames.
        __motion_Symbol1_3.addPropertyArray("x", [0,10.6348,21.2697,31.9045,42.5394,53.1742,63.809,74.4439,85.0787,95.7136,106.348,116.983 ,127.618,138.253,148.888,159.523,170.158,180.792,191.427,202.062,212.697,223.332,233.967,2 44.601,255.236,265.871,276.506,287.141,297.776,308.411,319.045,329.68,340.315,350.95]);
        __motion_Symbol1_3.addPropertyArray("y", [0,-0.151515,-0.30303,-0.454545,-0.60606,-0.757575,-0.90909,-1.06061,-1.21212,-1.36364,-1 .51515,-1.66667,-1.81818,-1.9697,-2.12121,-2.27273,-2.42424,-2.57576,-2.72727,-2.87879,-3. 0303,-3.18182,-3.33333,-3.48485,-3.63636,-3.78788,-3.93939,-4.09091,-4.24242,-4.39394,-4.5 4545,-4.69697,-4.84848,-5]);
        __motion_Symbol1_3.addPropertyArray("scaleX", [1.000000]);
        __motion_Symbol1_3.addPropertyArray("scaleY", [1.000000]);
        __motion_Symbol1_3.addPropertyArray("skewX", [0]);
        __motion_Symbol1_3.addPropertyArray("skewY", [0]);
        __motion_Symbol1_3.addPropertyArray("rotationConcat", [0]);
        __motion_Symbol1_3.addPropertyArray("blendMode", ["normal"]);
        // Create an AnimatorFactory instance, which will manage
        // targets for its corresponding Motion.
        var __animFactory_Symbol1_3:AnimatorFactory = new AnimatorFactory(__motion_Symbol1_3);
        __animFactory_Symbol1_3.transformationPoint = new Point(0.500000, 0.500000);
        // Call the addTarget function on the AnimatorFactory
        // instance to target a DisplayObject with this Motion.
        // The second parameter is the number of times the animation
        // will play - the default value of 0 means it will loop.
        __animFactory_Symbol1_3.addTarget(myClip, 0);
    var myClip1:Symbol1 = new Symbol1();
    stage.addChild(myClip1);
    __animFactory_Symbol1_3.addTarget(myClip1, 0); // NOTHING HAPPENS?

    if you create an animation that you want to apply to mulitple objects in cs4, you can create a motion preset:
    http://www.gotoandlearn.com/play?id=88
    in your coding problem, instead of adding myClip1 to the stage, add it to the main timeline.

  • Formatted Search defined on an item added with the UI API

    Hello,
    I have added an Edit Text with the UI API on the Sales Orders form. It is visible and enable.
    I have linked a Formatted Search to this Edit Text.I have indicated to refresh the value on Supplier Name changed.
    I have linked the same formatted search to the Remarks field with the same conditions of launching.
    When I change the BP name, the formatted search on theremarks field is launched, but the formatted search on the Edit Text is not launched.
    Why the formatted search on the Edit Text is not launched when the condition for refresh is true?
    Thanks for your help.
    Best regards,

    Hi,
    This is a simple Edit Text which is not bound.
    I can launch manually the formatted search, but it is not launch automatically!
    It seems that SBO can't launch automatically FS on user forms and user items.
    I have tried to define a FS on the Fixed Asset master data form and you can only launch the Formatted search manually.

  • Items added to the calendar from my iphone are no longer showing up on my exchange computer

    My personal iPhone should be "syncing": with my Outlook Exchange calendar at work.  It used to work.  I've checked the settings and I can't figure out why it's not working anymore.

    Double check that you tried everything here http://support.apple.com/kb/TS2756
    Also double check with your phone carrier that your account is provisioned to use hotspot.

  • Plain Text Not available in Control Properties

    Hi,
    I am not sure if this is a strange behavior or its an expected one. We have a BI query and pulled in an Input Form and then the output to a table. On clicking on this recoed it should display all the output fields in a form with its name and value. For the parameters I do not see an option for selecting Plain Text. It gives me only input field, dropdown, text editor.
    Why is this happening? Is there any way that I can map these fields to a plain text?
    Thanks,
    Nagarajan.

    Hi,
    Sorry for not being clear. From the BI Query Out port I have a Table which will display the result values. Now when I select any of the row item in the table there is a form connected from the table out port. This form should display all the details of the row item. When I try to look into the control properties for these parameters in the form I don't have an option to select plain text.
    I can only display the values in the input field. I want these values to be displayed in plain text instead of input field. Logically it makes sense because there should be two plain text fields for a value because one text field will display the Parameter name and one will display its corresponding value. That's the reason it is not available.
    But just chekcing if there are any easier way to do this other than creating 2 plain text fields for one parameter and mapping these items. Because I have around 40 fields to be displayed which will be make my life worse by manual creation
    Thanks,
    Nagarajan.

  • How can I search and replace the order items appear in the document?

    Here is my script. I am trying to replace instances of a text pattern (Lot ^9^9^9^9^9) with an auto incremented number Lot 1, Lot 2, Lot 3, etc... I believe this script produces unexpected results becuase the search result is ordered by document construction. The first item in myfounditems is the last item added to the document (which is on the last pages of the document), the second item in myfounditems is the next to last item that was added to the document (which was moved to a middle page in the document). The net result is that instead of having the first item on the first page being Lot 1) and the item directly below it being Lot 2), my document is a hodgepodge of Lot numbers is a seeminlgly random order. Any thoughts on how to fix this?
    tell application "Adobe InDesign CS5.5"
      --Clear the find/change preferences.
              set find text preferences to nothing
              set change text preferences to nothing
      --Search the document for the string "lot".
              set find what of find text preferences to "Lot ^9^9^9^9^9)"
      #set change to of change text preferences to "Lot " & lotnum & ")"
      --Set the find options.
              set case sensitive of find change text options to false
              set include footnotes of find change text options to false
              set include hidden layers of find change text options to false
              set include locked layers for find of find change text options to false
              set include locked stories for find of find change text options to false
              set include master pages of find change text options to false
              set whole word of find change text options to false
              tell active document
                        set lotnum to 1
                        set myFoundItems to find text
                        repeat with foundItem in myFoundItems
                                  set contents of object reference of foundItem to "Lot " & lotnum & ")"
                                  set lotnum to lotnum + 1
                        end repeat
              end tell
    end tell
    display dialog ("Numbered " & (count myFoundItems) & " lots in this document. Next starting lot number is " & lotnum & ".")

    You noticed the first one yourself: the Found item list seems to randomly jump around the document -- I believe you are correct in your observation it may be due to the object construction order. That tells me, by the way, something about your lot numbers that tou didn't mention: your text is not one continuous long threaded story, but it's all or partially in disconnected etxt frames. The Found list does return everything inside a single story in the correct order, but it goes over each separate story in the order they were constructed.
    The only solution is to gather all of your lot numbers, *re-sort* them according to the page number they appear on (and some sort of Worst Case Scenario is when you might have more than one lot number frame per page; in that case you also need to sort by textframe, top to bottom -- yet even worse is if you also may have these textframes side by side!).
    Only then you have a reliable counting order.
    This isn't too bad. We can just extend the method I offered for sorting top-to-bottom/left-to-right in Re: Working around the frame selection order issue in CS 4 and make it also include page numbers:
    function byPageYX(a,b) {
        var
            aP = a.parentTextFrames[0].parentPage.index,
            bP = b.parentTextFrames[0].parentPage.index,
            aY = a.baseline[0],
            bY = b.baseline[0],
            aX = a.horizontalOffset[1],
            bX = b.horizontalOffset[1],
            dP = aP-bP,
            dy = aY-bY,
            dx = aX-bX;
        return dP?dP:(dy?dy:dx);
    myResults.sort(byPageYX);
    Or something like that.
    As for actually implementing the above I cannot be of any help with Applescript.
    Once we're dealing with sorting I think you're much better off in Javascript anyhow.

  • Possible to set the alpha of a component physically placed on the stage?

    I am trying to access a button that has been added to the stage to change it's alpha value.  I'm changing it from inside an object that is also on the stage.  So I thought this.parent.feed_btn.alpha=0 would work but flash is saying:
    1119: Access of possibly undefined property feed_btn through a reference with static type flash.display:DisplayObjectContainer.
    I would actually prefer to remove it, but removeChild threw up the same error.
    Can someone help please?

    I would create a function in the parent timeline for removing the event listener, since all of the parts likely live there, and just call that function.
    When you are commending this in the child...
    parent_mc.dogTimer.removeEventListener(TimerEvent.TIMER,updateApplication);
    Isn't the updateApplication function in the parent timeline?

  • Get reference to the stage in a AS Class

    Hello,
    I've created an AIR app with the minimeze() and close()
    options. Now these functions are handled in the MainApp.mxml of the
    application. But I want to move them to a class, so I don't have
    any AS in my MXML file.
    My app works like this now:
    MainApp.mxml creates a new instance the Main.as class (which
    extends MainVisual.mxml) by calling <mainVisual:Main /> in
    the MainApp.mxml
    MainVisual.mxml extends Canvas.
    There I handle all visual elements of my app, but I can't get
    a reference to the stage.nativeWindow here. Does anyone knows how
    to do this?
    Thanks!

    Every display object, including the Canvas, has a stage
    property. However, this property will be null until the Canvas
    object is added to the stage. You can use the ADDED_TO_STAGE event
    to detect when that happens.

  • Accessing the stage variable problems in AS 3.0

    Hi. Quick question...I'm trying to access the stage variable
    which I believe is supposed to be global and I should be able to
    access it from any class. Is this true? The compiler is complaining
    that it doesn't recognize this variable? Note that these objects
    have not been added to the stage yet but still, these are compile
    time errors, so why is that I'm getting these errors?
    Thanks,
    Sam

    Sam,
    > Actually, this doesn't have to do with that question.
    > Basically, the compiler is complaining that it doesn't
    > recognize the stage variable.
    It complains about the DisplayObject.stage property? Are you
    referencing it in conjunction with a DisplayObject instance?
    > This is weird because in my AS 3.0 book, I see that
    > the stage variable is being accessed without
    instantiating
    > it or retrieving it.
    What book is that? I might have it, then I can see what
    you're seeing.
    > I am extending Sprite in all my classes.
    Yeah, Sprite extends DisplayObject, by of InteractiveObject,
    then
    DisplayObjectContainer, so it certainly is entitled to the
    stage property.
    Let me know what book you're looking at, and if I don't have
    it (and if
    you're still interested), I'll try to recreate a simplified
    proof of concept
    on this end.
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • Find date/time when item added item in folder?

    Hey guys,
    I was wondering if there was any Automator Action out there that allows you filter finder items by date "added" to a folder.
    Please don't confuse with the date of the actual item. I am talking about if there is anyway to be able to detect and find when an item was added into a folder.
    Thanks. I hope there is something out there. If not then I hope that there is some sort of applescript that can do this. 
    Please help.
    Phil

    I'm not aware of an Automator action, but starting in OS X 10.7 Lion a Spotlight metadata attribute named kMDItemDateAdded was added that contains the ISO date/time an item was added.  If the item has been moved recently enough to have the attribute (and assuming that Spotlight is indexing the containing folder), there are a couple of utilities you could use.
    The mdfind shell utility won't be quite like filtering, but by limiting the find search to a particular folder and using the appropriate query, you can get a list of items - for example, the following will list items added to the Downloads folder in the last week:
    do shell script "mdfind -onlyin ~/Downloads 'kMDItemDateAdded >= $time.today(-7)' "
    The mdls shell utility can be used if you are just wanting to get the value of a particular metadata attribute from an item, for example:
    set theFile to quoted form of POSIX path of (choose file)
    do shell script "mdls -name kMDItemDateAdded -raw " & theFile

  • Item added to master not showing up cs4

    Hello all,  so here's my dilemma, I started a document that had left and right master pages. This document was used for various publications so items kept changing while the structure of the master remained. If I needed to edit, I overrode the master page to delete or edit items. Recently I changed an item on the master and it didn't change in my document. I selected the spot on each page and chose to 'remove override' and that solved the issue. It was a pain because I had to do it manually to alot of pages but it worked.   So now I've been told to add something to the page. I create a new text box on the master and place it where it's needed, but it's not showing up on any pages. I assume this has something to do with the initial override of each page, but I figured as a new item it wouldn't take on that attribute. The only way I seem to be able to get it to appear is to manually remove the override for the entire page, but then any other edits Ive made default to the the original master - meaning I'd need to go through and change all those again manually - a lot of work I want to avoid.   My question is this - can I not add a new item to a master and have it appear on all pages associated to that master regardless of if that page has already been overridden? It seems to be able to keep some items working even through the override (like page numbers) so I'm hoping the solution is simple and likely something obvious I'm missing.   Thanks in advance.

    Your description is a little hard to follow, but I think I've got the gist. New items added to the master page should show on all pages to which the master is applied, but if you've overridden other objects on the live pages and they overlap the new object, they are going to be in front of it on the live page, even if they are behind it on the master.
    On any given layer, all master objects are behind all objects on the document page. if you have a situation wher you need a master object in front of a live object, add a layer and move it to the higher layer. Give that a try and see if it solves your problem.
    And a general bit of advice. If an object is being overridden from the master page you need a REALLY good reason for it to have been on the master page to begin with. The whole point of master objects is they generally don't change, or if the do, they need to change everywhere. Perhaps you need more than one master, built in a "based on" heirarchy, so that you can edit a master object for a group of pages at a time.

  • How can I search the stage for a given Movieclip and then add all instances of it to an Array? AS3

    I would like to Add multible instances of one Movieclip, (Library Name = Bats | instance name = none), inside of another Movieclip (instance name = back.visuals) // (By HAND) NOT by addChild(mc_name); // Easy
    If anyone could help me out with code to do the next steps:
    Search the Movieclip, (instance name = back.visuals), that contains the Movieclips, (Library Name = Bats | instance name = none), manually added to the stage by hand.
    Then for all instances of this movieclip (Library Name = Bats | instance name = none) add them to an Array.
    Thank You,
    Dyami

    I think we are having some missed communication. I do not wish to Change Flash's IDE or deveolp new features for flash. I was wondering if there was a way to do my question with AS3. something along the lines of :
    var enemyList:Array = new Array;
    for (var index:int = 0;index < back.visuals.numChildren;index++)
        var wall:MovieClip = back.visuals.getChildAt(index) as MovieClip;
    /* Check to see if wall is of a Specfic MovieClip */
    /* if (Above is True){ enemyList.push(wall) };

  • Removing a movieclip from the stage after a set amount of time (or once it's finished its animation)

    I've got a movieclip animation which is added to the stage at the start of the .swf.  Its an introduction to the game, and the user is encouraged to click on the movieclip to start the animation.
    Once the animation is finished I'd like the movieclip to be removed from the stage.
    How do I go about doing this?  Do I need to setup some sort of event handler which listens out if the movieclip has finished then start a function once its finished to remove it from the stage?  Which methods look out for movieclips finishing?
    Cheers

    there is no specific event that's called when a movieclip stops playing,
    what you could do is inside your intro movieclip  dispatch an event as soon as the animation is finished
    something like ... dispatchEvent(new Event("introFinished");
    and all you have to do is add and event listener to the intro movieclip intro.addEventListener("introFinished", onIntroFinished);
    when your onIntroFinished is called you can remove the intro from the stage.

  • Adding objects to the stage & acceessing stage properties - I'm a bit confused..

    Hi,
    I'm a little confused on two fronts regarding display
    programming:
    A. What the best way to add objects to the stage?
    B. How to access stage properties.
    I can do both of these when the project is an 'Action Script
    Project', but I'm having trouble when it is a 'Flex Project' (e.g.
    an MXML file). See the two attached files with questions included
    in the comment to see exactly what I mean.
    A. What the best way to add objects to the stage?
    =====================================
    In an action script project that extends Sprite I can just
    call addChild()
    In an MXML project I can add objects to the stage by first
    adding them to a UIComponent, then adding that to the stage.
    1. Is that the best way to do it?
    In this doc:
    http://livedocs.adobe.com/flex/3/html/help.html?content=05_Display_Programming_02.html
    it says that
    quote:
    Each SWF file has an associated ActionScript class, known as
    the main class of the SWF file. When Flash Player opens a SWF file
    in an HTML page, Flash Player calls the constructor function for
    that class and the instance that is created (which is always a type
    of display object) is added as a child of the Stage object. The
    main class of a SWF file always extends the Sprite class
    2. why cant I just add a sprite object direct to the stage
    without the UIComponent?
    3. What is the 'main class', and how can i get access to it?
    B. How to access stage properties.
    =========================
    In an action script project that extends Sprite I can just
    call trace(stage.framerate)
    But in an MXML file I cannot figure out how to access the
    stage properties.
    See the attached code for the things that I tried, but which
    didnt work.
    In the page:
    http://www.actionscript.org/forums/showthread.php3?t=140655
    It says
    quote:
    For stage access you have a couple of rules:
    * natively, only display objects have inherent access to
    stage
    * display objects only have a valid reference to stage if
    they're within the stage's display list (on the screen, after added
    to it with addChild)
    * The only display objects which immediately have access to
    the stage before the use of addChild (in their constructor) are the
    document/application class instance (root) and any instance from
    the library placed on the timeline (not created with AS).
    * Non-display object classes have to be passed or assigned a
    reference to the stage from another object which already has access
    to it - they cannot access it otherwise.
    4. How do I access the stage properties in the MXML project?
    5. I suspect this is related to the "main class", which I
    dont yet understand - is it?
    Sorry for the long post.
    cheers
    tom

    "tom saffell" <[email protected]> wrote in
    message
    news:gd7cm9$d1v$[email protected]..
    > Thanks Luigi - that helps a lot.
    > I hadnt seen the Flex 3 Developer Guide before - it's
    very useful.
    >
    > I now see that I can access properties of the
    application object directly
    > with
    > this.<property>.
    > However, the framerate property cannot be set by
    actionscript, only in
    > MXML (I
    > can set it in the <mx:application> tag). But I
    need to be able to set it
    > programatically, dependent on user input.
    >
    > 5. Is there a way around this?
    > 6. Can I set the stage's framerate to achieve the same
    outcome?
    >
    > I still dont understand why I cannot access the stage
    object. When I call
    > either
    this.stage or
    uic.stage * then I get
    quote:
    Cannot access
    > a
    > property or method of a null object reference.
    My understanding is
    > that I
    > can access the stage object via any display object on
    the display list.
    > I'm
    > confused about this bit..
    >
    > * - uic is a UIComponent that has been added to the
    display list (i think)
    > by
    > calling addChild(uic) from the AS3 within the
    application
    >
    > 7. How do I access stage properties in AS3 in an MXML
    project?
    http://www.adobe.com/livedocs/flex/3/html/help.html?content=05_Display_Programming_10.html
    It seems like possibly your real problem is that you're
    having trouble
    searching the Help effectively:
    http://flexdiary.blogspot.com/2008/07/getting-help-in-flex-builder.html

  • Can the Ring Properties/Edit Items/Labels be populated by array values?

    Can the Ring Properties/Edit Items/Labels be populated by array values?
    I'm trying to troubleshoot an existing LabView 7.0 application at our office (this is only the beginning of my nightmare) and I'm finding that there is an array being created out of discrete Elements, which is then being indexed using the Indexed Array function, using a Ring control as the Index input. 
    What I'm seeing is that whoever created this "Appication" seems to require that any new 'elements' that need to be added to the array need to added in AT LEAST two locations (add the element to the array and add a label on the Edit Items tab of the Ring control used to index the array) and there may be more locations I haven't found that also needs the same information.  Since I can't see any way for the array and the ring control to 'compare' the text strings, I'm assuming the array is being indexed using the 'values' from the Edit Items tab.  Ths would allow different text in the Ring dropdown than is actually contained in the text of the array.
    This is contrary to most of the coding practices I've learned, so I'm wondering if I could use the text strings contained in the array itself to populate Item list in the Ring control?
    Later I can create an 'entry form' that would allow new parts to be added by staff that doesn't require knowledge of LabView programming. (The "Users" should NEVER have to see the underlying block diagrams/code to add or edit parts ot test parameter values.)
    Thanks

    In 8.2 you can do this with a property node and the "Strings [ ] Property".  It accepts an array of strings.  Order of strings in array sets the order in the control.  Should work in 7.0 as well.

Maybe you are looking for