One simple (maybe stupid) question:

Why I can not rich all my TextInput objects using this code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:Script>
<![CDATA[
import mx.validators.ValidationResult;
import mx.collections.ArrayCollection;
import mx.controls.*;
import mx.events.ItemClickEvent;
// test for children
private function ChildrenTest():void
var bChildren:Array = tnav.getChildren();
for (var i:uint = 0; i < bChildren.length; i++)
var cChildren:Array = bChildren
.getChildren();
for (var n:uint = 0; n < cChildren.length; n++)
if (cChildren[n].constructor == "[class TextInput]")
Alert.show('on child name ' + cChildren[n].name.toString());
//Alert.show('on Canvas ' + bChildren.name.toString());
]]>
</mx:Script>
<mx:Panel id="pnRates" layout="absolute" left="10"
top="10" bottom="10" right="10">
<mx:Button x="29" y="250" label="Test for the loop"
click="ChildrenTest();" />
<mx:TabNavigator id="tnav" width="540" height="170"
y="45" x="29">
<mx:Canvas id="can1" label="Tab 1" width="100%"
height="406">
<mx:Label x="20" y="10" text="TEXT1"/>
<mx:TextInput x="173" y="8" id="Tab1Value1"/>
<mx:Label x="20" y="50" text="TEXT2"/>
<mx:TextInput x="173" y="48" id="Tab1Value2"/>
<mx:Label x="20" y="90" text="TEXT3"/>
<mx:TextInput x="173" y="88" id="Tab1Value3"/>
</mx:Canvas>
<mx:Canvas id="can2" label="Tab 2" width="100%"
height="100%">
<mx:Label x="20" y="10" text="TEXT1"/>
<mx:TextInput x="189" y="8" id="Tab2Value1"/>
<mx:Label x="20" y="50" text="TEXT2"/>
<mx:TextInput x="189" y="48" id="Tab2Value2"/>
<mx:Label x="20" y="90" text="TEXT3"/>
<mx:TextInput x="189" y="88" id="Tab2Value3"/>
</mx:Canvas>
<mx:Canvas id="can3" label="Tab 3" width="100%"
height="100%">
<mx:Label x="20" y="10" text="TEXT1"/>
<mx:TextInput x="232" y="8" id="Tab3Value1"/>
<mx:Label x="20" y="50" text="TEXT2"/>
<mx:TextInput x="232" y="48" id="Tab3Value2"/>
<mx:Label x="20" y="90" text="TEXT3"/>
<mx:TextInput x="232" y="88" id="Tab3Value3"/>
</mx:Canvas>
</mx:TabNavigator>
</mx:Panel>
</mx:Application>
Thanks,
Slava

Slava,
Two things:
(1) you need to change this line:
var cChildren:Array = bChildren.getChildren();
To this:
var cChildren:Array = bChildren
.getChildren();
Now, when you click the button, it should report the three
text inputs on the visible tab. If you click on tab 3, it should
report the 3 tabs on tab 3 *and* the 3 tabs on tab 1. Basically, it
will only alert the text input children *after* you have clicked on
a tab and the tab's contents have been created.
(2) If you want to create all tabs at once when the app is
loaded, change this:
<mx:TabNavigator id="tnav" width="540" height="170" y="45"
x="29">
to this:
<mx:TabNavigator id="tnav" width="540" height="170" y="45"
x="29" creationPolicy="all">
Now, when you launch your applicaton, it should display an
alert for each TextInput control on each tab, without having to
click on each tab.
Hope that helps,
Peter

Similar Messages

  • A very simple, very stupid question

    When I do screen grabs (shiftctrl+apple4) where do those pictures go??? I can't find them anywhere though I do hear the "camera snap" sound. Thank you for any help you can provide.

    Screen shots are saved as .tiff files on the desktop. If you want to put the screen shot in the Clipboard, rather than create a file, hold down the Control key when you press the other keys. You can then paste the picture into a document.
    You can also take pictures of the screen using the Grab application (in the Utilities folder).
    (And that was not a stupid question!)

  • Simple and maybe stupid question when you have two instances

    Just a simple question, I was just wondering how to create user account on the local machine when you run two instances of oracle.For example all the commands I use to start and stop the database use the variables stored in the oracle user bash_profile.
    But do I have to create another user to manage the other instance because it should use another bash_profile with a different oracle_sid?

    Linux and Unix installations of Oracle are kind-a funny. At the end of te installation is a request to run 'root.sh'. That does a few things: set up permissions and ownerships correctly; copy some scripts into the specified directory (default /usr/local/bin).
    If you were to look at /usr/local/bin, you would notice a few files, typically with names "dbhome.sh, oraenv.sh, oraenv.csh". These are designed to set up the PATH, the ORACLE_HOME and the ORACLE_SID correctly, based on user response and information in the oratab file - which is /etc/oratab in Linux. (I always ensure there to link oraenv.sh as oraenv)
    Longer story shortened:
    Assume you use(d) dbca to create the instances. Then you can source the oraenv.sh to set up the environment:
    pop2@fuzzy:~> . oraenv.sh
    [pop2]? orcl
    pop2@fuzzy:~> env | grep -i ora
    ORACLE_SID=orcl
    PATH=/opt/oracle/product/10.2.0/server/bin:/home/pop2/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin
    ORACLE_HOME=/opt/oracle/product/10.2.0/serverThat way you can switch to any known environment simply by sourcing oraenv and telling it which SID you want. It extracts the info from /etc/oratab.
    You can tell oraenv to shut up by setting ORAENV_ASK to 'NO' and setting the ORACLE_SID variable before sourcing oraenv. This is useful in .profile - for example my /etc/profile contains the followig:
    export ORACLE_SID=XE
    ORAENV_ASK=NO
    . oraenv

  • Simple and stupid question for apps dba

    hi
    i have configured RAC 11gR2 on a C2D machine(just two nodes are there only) at home with 10gR2 db.its just a home configuration.
    As i am newbie and freshly starter,i want to install EBS R12 just to practice Some apps DBA stuff with that clusterware + 10g db.
    is there anything wrong?can i do that?
    which EBS R12 package to download for minimal configration for just practice stuff?
    any starter guide for this installation on linux OEL 5.4 x86_64??
    Regards

    Hi;
    which EBS R12 package to download for minimal configration for just practice stuff?
    any starter guide for this installation on linux OEL 5.4 x86_64??Firstly, your Question is not stupied. Secondly you need to download all related package from e-delivery(Now only R12.1.1 donwload avaliable there), you dont need to download NLS media pack.
    For installation please check
    Oracle Applications Installation and Upgrade Notes Release 12 (12.1.1) for Linux x86-64 [ID 761566.1]
    Oracle Applications Documentation Resources, Release 12.1 Doc ID: 790942.1
    Also check installation guide at:
    For r12.1.1:
    http://download.oracle.com/docs/cd/B53825_01/current/html/docset.html
    Regard
    Helios

  • Really easy, maybe stupid question....

    I have a shuffle, do I have to keep all the songs on my ipod on my computer?

    Generally, YES.
    HOWEVER, IF you just want to charge the shuffle and not deal with iTunes update of the shuffle to match the library, in Settingsm while the shuffle is connected, UNcheck "Open iTunes when this iPod is attached" (and click "apply"...).
    NOTE: You must start iTunes before plugging in the shuffle WHEN you actually want
    iTunes to recognize the shuffle.

  • One stupid question! I can't find how to put my alarm clock ringing tone

    One stupid question! I can't find how to put my alarm clock ringing tone - music (you have bad tunes out there.)
    I hope very much that I was mistaken
    <Edited by Host>

    Here is just one of the many articles explaining how to make your own ringtones.
    http://osxdaily.com/2010/09/04/make-free-iphone-ringtones-in-itunes-10/
    If that one doesn't help, just google it.
    Best of luck.

  • One day, being stupid, I used my Comcast email account to be my backup email address, just in case I forgot my security questions. Well I did. The email I was using was deleted and I can't get the answers. How do I fix it?

    One day, being stupid, I used my Comcasst email account to be my backup email account in case I forgot my security questions. Well I did. I did not know that Comcast deleted your email when you disconnected with their service. When I ask for my security answers, it sends it to that email. How do I fix what I've done? Because now, I can't download apps that I have to pay for.

    The Best Alternatives for Security Questions and Rescue Mail
    1.  Send Apple an email request at: Apple - Support - iTunes Store - Contact Us.
    2.  Call Apple Support in your country: Customer Service: Contact Apple support.
    3.  Rescue email address and how to reset Apple ID security questions.
    An alternative to using the security questions is to use 2-step verification:
    Two-step verification FAQ Get answers to frequently asked questions about two-step verification for Apple ID.

  • Stupid question, I know, but after years of using Firefox, on this one I can't find the Page Reload icon?? Please help.

    In the past, when I want to refresh a page, I've simply gone to the page reload icon on the toolbar. On the new version, I can't fin the reload icon. Sorry I know this is a very stupid question,, but I just can't find that reload icon. The toolbar is a lot different from previous versions, but I'm sure tht pesky icon must be there somewhere!!

    Hi merren,
    Not a stupid question at all :) You should take a look at [https://support.mozilla.org/en-US/kb/common-questions-after-upgrading-firefox-36 this article with common questions after upgrading].
    You could also benefit from the looking at the article on [https://support.mozilla.org/en-US/kb/how-do-i-customize-toolbars customizing the tool bar]. That will show you not only how to verify that you have the refresh button, but give you options on where it lives as well.
    Hopefully this helps!

  • A simple, but slightly stupid, question...

    Hi all
    How do I copy from my IPOD to my computer hard drive.
    Thought it was just a drag and drop, but that doesn't seem to be doing the trick.
    Thanks for the help.

    Remember there are no stupid questions, only stupid answers.
    I use Yamipod to do this. There are other programs but I think Yamipod is best
    http://www.yamipod.com/main/modules/home/

  • Stupid questions on the ipod mini.....

    I have an old ipod mini from 6 years ago.  I haven't used it since I got it.  Since I'm going to work out, I wanted to take it and listen while I'm exercising....
    Stupid question number one
    1. Can you hear music without using earphones?  Or do you have to use a docking system????  Is everything with head/earphones?
    2. The earphones that came with it, fall out of my ears..... what gives?  Can anyone make a suggestion about headphones that you don't have to stick in the ear canal... but aren't cumbersome????  I need some suggestions, else the whole ipod experience is a waste
    3.  am I stupid for staying with a vintage ipod mini, instead of getting an ipod touch or traditional ipod that's newer?  Are they easier to use? 
    All I really do is make playlists on itunes, and maybe a short download of a radio show or something like that.....  What's the advantages of Ipod touch vs traditional Ipods?

    1.  No.  You can hook it up to a docking station or use headphones/earbuds.
    2.  Everybody's ears are shaped different and so a one size doesn't fit all.   I don't have any particular suggestions though.  I would look on Amazon's site for an extensive list of possibilities.
    3.  Not at all.  If it still works, why quit using it or buy a new one?  Wouldn't make any sense!  The advantage of the iPod Touch is that it has much more capability compared to other models in that it can download and play Apps as well as a number of other things.
    B-rock

  • Possible Stupid Question on Aliases

    We're on iMS/SunONE 5.2. What I've yet to figure out is how to do something so simple that I may be overlooking the obvious solution. This is to duplicate what /etc/aliases does in sendmail. I.E take an email address which does not match a particular existing user and deliver that message to the specifed recipient. There are two aspects of this which I need to address.
    1) Delivery of inbound mail if account is local. For example... [email protected] to [email protected] I think I understand this as I just need to add an alternate address for bob.jones into the ldap. Not centralized but the concept makes sese.
    2) Forwarding of inbound mail to other mail servers. For example [email protected] to [email protected].edu where our.listserv.edu is handled by a seperate mail server. In this case the /etc/aliases file sendmail uses makes this dirt simple. Unfortunately i've poured through the iMS docs and have yet to find how to do this. It may have to do with terminology as I'm not sure what iMS calls this type of proceedure. We have many of these (hundreds) and not having a centralized way of handling these would be very very difficult. What is the solution here?
    Thanks,
    -Patrick

    Not a stupid question at all, I fought with the same concept coming from sendmail. The concept is that it's simple to redirect mail using the aliases file (/etc/mail/aliases) and it only took one line to do it.
    Under iMS you need to expand your mind and accept that ldap is <insert deity> and everything is done differently.
    Alias entries need to be adapted to one of -
    individual accounts (mailalternateaddress)
    or
    a new ldap entry with it's forward settings going to your other addresses.
    or
    a mail list, for local one to many distributions.
    This applies to direct ldap and dirsync mode, however if you're running in dirsync mode, ensure you run the dirsync after making changes.
    Finally, if you create an aliases file in -
    <msg-home>/config/aliases
    and you are thorough on the addresses, they still work.
    Just my experience, search for "aliases" in the forum.
    Doug

  • Probably Stupid Question

    Hello all,
    what I would like to ask is ... on my G5 ... can I install both FCP5 and FCP HD and use both??
    Thanking you in advance!

    Are you asking if you can keep multiple versions of the software on the same system? If so, maybe. The easiest way is to have multiple startup disks. If you have a second internal drive it's a breeze. If you have only one internal drive, you can partition it or use an external firewire drive as a startup drive. I seem to remember a post saying if you renamed the earlier version of fcp before doing an install you could have multiple versions of fcp on your system. There might be problems caused by this method. Do a search here and see if you can find any references to this or perhaps someone else will pipe up.
    This is not a stupid question and your subject line will limit the responses you get. Perhaps you should start a new thread with a better "subject." I, of course, always read posts labeled "stupid." It helps me polish my superiority complex.

  • A very stupid question about MDic application[SOLVED]

    I have tried StarDict in Arch which I think that is the best known dictionary application in Linux world. Since I had to use mouse to access StarDict, I decided to try MDic instead. My problems is that I do not know the default location of MDic dictionary files. After search topics for about two hours, I gave up.
    There must be a directory where MDic searches for dictionary files. Where is it? or What MDic configuration file has the information? So, I can install dictionary files int to the directory. I looked for this information in http://mdic.gnufolks.org/ and google.com. I believe this kind of very fundamental information should be in the wiki fo MDic. But I couldn't find one. Maybe, it is because I am so idiot. Would somebody help me how to install MDic dictionary in a appropriate location or the default location? Thank you so much for your helps.
    Last edited by since1992 (2010-11-06 11:28:30)

    Yes, it was a stupid question. I found that I can configure the location of the dictionary file. I also installed PyGlossary to convert dictionaries for MDic. Everything works fine now. Thank you.

  • Stupid Question Help needed....

    Hi Folks...
    I have a very Stupid Question....
    but i think you Folks here can help me Quick...
    Here is what i want to do...
    01 class ourCar {
    02
    03 public String color;
    04
    05 public void PrintValue(String YourValue){
    06      System.out.println(this.YourValue );
    07      
    08      }
    09 }
    10
    11 public class myApp {
    12 public static void main (String[] args) {
    13
    14 ourCar Car1;
    15 Car1 = new ourCar();
    16
    17 Car1.color = "red";
    18 Car1.PrintValue("color");
    19 }
    20 }
    So the Compiling Problem starts at 05 it seems i cant
    get Parameter Names with Strings... so what i want to do is...
    type
    Car1.PrintValue("color");
    and it should print out red
    i Know i could write
    System.out.println(car1.color);
    But i want to do it the other way...
    a other thing would be to make
    myVar = "car1.color"
    and then run
    System.out.println(myVar);
    but these is also not working...
    any idears?
    greetings from munich
    peter

    but where is the Thinking Error i have?
    KJKrum wrote i should not use the language this way...
    what would be the right way for doing a job like this?You have a very simple example. Reflection which is what both threads suggest as a solution is complex and should be used with caution because of the performance and maintenance problems that can arise.
    So one has to wonder, for such a simple problem, does it not suggest that perhaps your design is not correct and if you took another look at it you could come up with a solution that is more appropriate and leads to code with is much simpler.
    I believe that was the intent of the suggestion.
    For example if you really must access 'attributes' via a key then have you considered that perhaps you don't have attributes but rather 'properties'. And if so there is already a Properties class. And if the Properties class is a little to constraining then the Hashtable might also fulfill what you are trying do. Keep in mind that these depend on whether the best design for your project really requires accessing values via a string.

  • MoveNext() and MovePrev()  functions. Why no one reply to my question ?

    I don't know if this is a too much stupid question, but I am using OO40 library with MS vsual C++ and when I am pointing to a table row if I MoveNext(), read data then returning back with MovePrev() the current row is not the old pointed row. What can I do to be sure to return back to the same position ?
    If I keep a counter n of the made MoveNext(), I call MoveFirst() and then I make
    n consecutive MoveNext() it works very well but it is not very fast and beautiful.
    This happen using the direct table, maybe I can solve selecting a view ordered by ?
    Tank you in advance
    Mario

    Here's the story on one of your infections, namely JS:Redirector-EH[Trj]: http://www.microsoft.com/security/portal/Threat/Encyclopedia/Entry.aspx?Name=Trojan%3aJS%2fRedirector.H
    The main problem with malware is that it uses the installation to proliferate by contacting hostile servers to download more of the same rogue code.
    Firefox doesn't have the option to "Run" a file. You can only "Save File" or "Cancel". If you downloaded it with IE8, then yes, you can run it, but that's not what I wanted you to do.
    What you should do now is to disable System Restore. You can open System Properties by hitting the Windows logo key and Pause/Break key together. Then click the "System Restore" tab. Then checkmark the box which says "''Turn off System Restore on all drives''". Reboot to clear its contents. System Restore unfortunately makes a backup of all executables which includes viruses so that when you reboot without deleting them first, System Restore reinstates them again.
    After you complete that step, run Avast and Malwarebytes again to make sure the system is clean.
    Then go to the Windows Update site (link on your start menu) and install the missing patches which enabled your machine to become infected in the first place.
    Once the system is clean, repeat step one to download Firefox again, but please do not run the file. If you don't see the option to "Save File", cancel the download, but it should be there. You can use this direct download link to download FF4.0.1 [http://www.mozilla.com/products/download.html?product=firefox-4.0.1&os=win&lang=en-US Download Firefox 4.0.1]
    Run the file after you download it to the desktop.

Maybe you are looking for

  • At start up

    Message I get at start up 'C:ProgramFiles\BrowerSafeGuard\BrowerSafeGuard.exe. What's wrong with my Computer that this message popup.

  • Transforming xml file with different elements into HTML

    hi all ! i have an xml object that has been generated from database using java. the xml file has numerous elements that have been merged into single file. all elements have been got from different table :- <?xml version = '1.0' ?> <ROWSET> <ROW id= "

  • SBO2007A can no longer change the Price after Discount on marketing docs

    In SBO2005A (subjecting to Document Settings), you could change the Price after Discount.  Thisis no longer available in SBO2007A (unless you upgrade from SBO2005A with the appropiate settings. I have not found a customer who thinks this is good idea

  • Missing Picture when Running Applet

    According to my book, the following program should display a picture of a smile in the upper left corner of the Applet.  The words appear but the picture doesn't.  Any suggestions?      Chapter 2:     Welcome to My Day      Programmer:     Lori Macdo

  • Error while accessing container element _ALERT_LOGICAL_SYSTEM

    Hi, Getting below error in SLG1 T.Code, I, am getting E-Mail but without any ALERT ID, MESSAGE ID and Interface name pls suggest for the same to solve. "Error while accessing container element ALERTLOGICAL_SYSTEM" ERROR IN SLG1 Rgds, MFH