A question very newby

Hi all
I am a new learner of Flex and action script. I just got a very simple question that, for example, if I have 3 HBox:
< mx:HBox id = "1"... / >
< mx:HBox id = "2"... / >
< mx:HBox id = "3"... / >

So in my class action, for example, if I use:

var text: text = new Text();
....
This.1.addChild (Text);
This.2.addChild (Text);
This.3.addChild (Text);


Then my model does not, I think that there is a mistake or something. So if I want to create a single component registered in containers of 3 or more different, can I do this?

If can't, so how do I just create a component and use it in several places rather than create several components and change one after the other?


Thanks in advance!

Yes, a single instance of a component may have a parent.

You try to 'text' in three parts. Create a new instance for each component.

Tracy

Tags: Flex

Similar Questions

  • Question very, very based on QML...

    I'm new to BB10 development and I have read on the provided tutorials and reference materials. As the title of my post, I have a very basic question for QML who may have a not so fundamental response:

    Just what exaclty QML can be used for? Literature in the documentation seems to suggest in places that QML is used for user interface elements scripts, while behind the scenes is done by code written in C++. Other documentation seems to hint that an application can be written in QML although the only examples I've seen of this apps that really only window UI elements.

    I guess that a shorter question would be: can I write a useful application entirely in QML without ever touching the C/C++?

    On a related note, when someone says that they wrote the app in "cascades", what are they referring to? Is the sequel to stunt development? It is referring to the use of QML / C + c++ / QT?

    You can think of as an extension of Qt which allows a more sophisticated user interface specially design for phones BB10 Cascades.

    QML we can consider, at its simplest, as a way to describe how you want to place controls on the screen.

    Where it gets complicated is the ability to use JavaScript in the QML himself file.

    So yes, it is possible to write completely competent applications entirely in QML/JavaScript and do not write any C++.

    A good starting point is the free to download the book of development...

    http://supportforums.BlackBerry.com/T5/social-lounge/free-BlackBerry-10-development-eBook/TD-p/28358...

  • Configuring PIX Cisco Question - very limited info. Sorry!

    People,

    Have been put to me a quetsion on a Cisco PIX (I don't know what model it is) who I know very very limited. The person asked me the question, is to help someone else! I apologize in advance for the lack of information here, but Im hoping that someone who has expertise in PIX experts will be able to diagnose the problem, or ask the question to the bottom of the chain to address this problem. The question they asked me: -.

    "Can't get NAT works correctly between the demilitarized zone and other ports.

    I know that it is very skectchy, but because I'm not a firewall or security Im not sure what I want or what questions I need to ask. I have however a copy of the config, if someone can help, we'd really appreciate it.

    Config is attached.

    I think that the above is not a problem.

    However, here it is a question;

    static (dmz1, external) 20.20.20.252 switch1 netmask 255.255.255.255 0 0

    static (dmz1, external) 20.20.20.22 switch1 netmask 255.255.255.255 0 0

    I think it should be;

    static (dmz1, external) 20.20.20.252 switch1 netmask 255.255.255.255 0 0

    (dmz1, external) 20.20.20.22 static nlbweb1 netmask 255.255.255.255 0 0

    Let us know if this can help,

    Paul

  • question very simple-how to fill a shape I draw with color

    Hello. I'm new to photoshop and have a lot of trouble to choose no matter what form that I shoot. I'm doing a tutorial that is to fill a gray canvas, then by drawing a small white rectangle inside the largest canvas/rectangle gray. (I have not forgotten to unlock the bottom).

    My question: How can I select and fill (white) the second rectangle I draw over a gray rectangle?

    In general, I can not understand how to select or fill any shape I draw using the rectangle tool. Similarly, the forms of brand tools are no help because I can't my gray rectangle to select and fill it with a white fill inspired brand. I also tried to use a "layer of filling.

    I'm almost certain that something is wrong with my computer (I have reset), but still I have not used photoshop in over a year. Any help will be greatly appreciated.

    The Rectangle sgould tool create a work path, to shape layer or fill pixel according to the settings in the Options bar.

    The rectangular selection tool should create a selection that you could edit > fill or use it as a layer of a solid color layer mask.

    Could you please post a screenshot with the relevant panels visible?

  • Question very Simple

    All-

    I installed Photoshop CS5 the other day and was very impressed by it.  The only thing that I am "missing" is the outline of the elements, I am in the process of selection.  For example, in previous versions if I used the rectangular selection tool to make a selection of everything I was selection was the boarder/plan dotted around it while making the selection.  As soon as I release the left button of the mouse, I can see the selection I made now has a boarder/outline around him.  I wish I could see this plan while I am dragging/make the selection.  Where in CS5 enable this?

    Thank you

    Brian

    Sounds like a bug, go to Edition->-> Performance Preferences and disable OpenGL drawing if it is not already, create a new document and try again

  • FTP question; very basic

    I don't know how to configure FTP file transfer to start a Web download.

    Where can I get the information to fill in the fields?

    Help, please

    Screen shot 2009-12-08 at 1.57.27 AM.png

    It is another way to follow is SmugMug or Zenfolio. In fact my site has its own gallery, but connects also with my Smugmug Gallery for sales. Either way Lightroom has plugins that make it very convenient to download images SmugMug and Zenfolio:

    http://regex.info/blog/Lightroom-goodies

  • Question of Newby on Skype

    I can sign, but directly afterwards, I go to 'MY ACCOUNT' I don't see the home button, and the home page doesn't seem to be accessible from "MY ACCOUNT..."

    FAQ doesn't have the answer after almost 30 minutes to search and play... HHHHEEELLLPPP

    Have you installed Skype app on your computer?

    http://www.Skype.com/en/download-Skype/

    See also this:

    https://support.Skype.com/en/FAQ/FA11099/how-do-i-find-my-way-around-Skype-for-Windows-desktop

  • Scripting Question - very basic

    Hello, I use the trial version of InDesign and wonder if because it's the trial version that I can't load Adobe custom scripts?  I downloaded and installed a custom calendar script [I can see the files extracted in/on my PC] but the app apparently doesn't see it.  Any help you offer is greatly appreciated.  Thank you

    Do you have script thew somewhere that InDesign uses scripts? See How to install scripts in InDesign | InDesignSecrets

  • Noob question very basic understanding of creating classes

    After learing some scripts procedure that I have just begun to understand OBJECT oriented programming and have a problem with a basic like this stuff. Why my Try.as below does not work when I type Try (1); in the main file. Exit says: has no Type constraint: cannot convert 1 in Try

    package {}
    public class Try {}
    public void Try(some:Number) {}
    some += 1;
    trace (a little);
    }
    }
    }

    use:

    var s:Try = new Try (3);

  • An other 'Wifi without data plan"blackBerry smartphones Question - Rogers Canada

    Hey guys, I'm new to this forum and blackberries in general... Please bear with me.

    I am a student. Currently, I have a voice plan base on a LG Xenon with Rogers in the Canada. It includes minutes and unlimited texting. Enough for me.

    I am looking to buy a Blackberry Curve 3 G/9300 off someone. I just want to throw my SIM in there so I can use my normal plan with the phone. My understanding is that I can phone Rogers and tell them to block all data, if I get no charge on my Bill. Fine. However, I also understand that the 9300 is a wi - fi phone.

    Let's say that I get the 9300, contact Rogers and tell them to block all data on my plan.
    Can I still use my browser in a Wi - Fi hotspot? How should I do? (I know that I read somewhere that you need to configure to be about to access and not talkspot... If someone could help me with this that would be great).

    Also, I read that, so that I am still able to use a wi - fi connection, I need to have data 'on' in the phone. If the data is 'on' in the phone, but I've blocked data with Rogers, can I still use a wi - fi connection? This would prevent the costs of data on my Bill?

    In addition, I understand that I will not be able to receive multimedia messages without a data plan. Once again, if I'm in a wi - fi hotspot... Can I receive these messages from photos?

    I'm sure it's a question very well known and well hated to you all and I'm really sorry to ask, but I just need some clarification. I don't want to be stuck with a big Bill with I ever intend on paying data charges. If someone could help me with this, I would really appreciate it.

    Thank you very much!

    Stefanie

    stefspeaks wrote:

    Hey guys, I'm new to this forum and blackberries in general... Please bear with me.

    I am a student. Currently, I have a voice plan base on a LG Xenon with Rogers in the Canada. It includes minutes and unlimited texting. Enough for me.

    I am looking to buy a Blackberry Curve 3 G/9300 off someone. I just want to throw my SIM in there so I can use my normal plan with the phone. My understanding is that I can phone Rogers and tell them to block all data, if I get no charge on my Bill. Fine. However, I also understand that the 9300 is a wi - fi phone.

    Let's say that I get the 9300, contact Rogers and tell them to block all data on my plan.
    Can I still use my browser in a Wi - Fi hotspot? How should I do? (I know that I read somewhere that you have to configure it to be on the verge of access and not talkspot... If someone could help me with this that would be great.) Simply choose hot browser OEPM.

    KB16463 - how to change the default browser on a BlackBerry smartphone

     

    Also, I read that, so that I am still able to use a wi - fi connection, I need to have data 'on' in the phone. If the data is 'on' in the phone, but I've blocked data with Rogers, can I still use a wi - fi connection? This would prevent the costs of data on my Bill? Rogers could see your phone and charge you for a plan anyway. AT & T to do this, if you add in a smart phone with out telling them.

    In addition, I understand that I will not be able to receive multimedia messages without a data plan. Once again, if I'm in a wi - fi hotspot... Can I receive these messages from photos? No only simple navigation cannot be made and Pandora can be used in mode Wi - Fi.

    I'm sure it's a question very well known and well hated to you all and I'm really sorry to ask, but I just need some clarification. I don't want to be stuck with a big Bill with I ever intend on paying data charges. If someone could help me with this, I would really appreciate it.

    Thank you very much!

    Stefanie

  • Bridge CC is VERY SLOW on my iMac

    CC of Photoshop, Lightroom CC & CC bridge give me a question VERY SLOW on my iMac. I thought after I erased from my hard drive (now it is more than 70% free at 705 GB of free space) I'd move quickly for each task, but it's far too slow. I can't see the rotation range ball that I do my job (and family!). I have a 2.93 GHz Intel Core i7; 16GB 1333MHzDDR3. with an ATI Radeon HD 5750 1024 MB. Please help me understand what I can do to solve this problem.

    Hi gailh

    Please see this link resolve errors, freezes | Adobe Bridge | Windows, Mac OS

    Concerning

    ~ Assani

  • Subversion question - when Check Out

    SDDM 4.0.0.833 on WIndows 7, SVN 1.8.5 Visual SVN Server Manager 2.7.3 Standard Edition

    I'm going through the tutorials Marci Young collaborative development (3.1) and reading the documentation SDDM using SVN and do not find the answer to a question very simple.  If I save my first new design (designer import) into the local working directory and add the design to the control version, is the remote directory automatically archived?  What should I check back out before importing the data dictionary?  I'm used to version control that indicates if you have extracted a drawing or model or not.  How will I know if the version is checked out?  Do I need to check it out again until I see pending changes?  And what I need to check the drawing after each commit?

    Hi Marcus,

    This is a book on Subversion Version Control with Subversion

    shortly:

    (1) you will see once in the copy of local work (WC) and after that you can edit, validate and update the working copy - with pending changes, not need another departure

    (2) Toilet keeps last synchronization status, to allow you to compare against it or return to it without needing to be connected to the SVN repository

    (3) lock is just a revealing indicator to other users that you want to work exclusively on this resource - which does not mean that someone else can't steal the lock. In our daily work, we do not lock - using merge if conflict is displayed

    (4) you can start a new version of your design and compare the two versions using the 'models of comparison/merging of views' or 'import design Data Modeler.

    Philippe

  • Weird question on which the machine virtual ESX 3.5i

    Hello world

    I have a question very very weird on 2 x HP DL380 G5 boxes with ESX 3.5i U3 loaded on each.

    The installation program:

    DL380 G5

    2 x Quad core

    2 x 72 GB Raid 1 + 0

    6 x 146 GB Raid5

    32 GB OF RAM

    I installed esx 3.5i u3 according to the normal, created vm. But when I copy data to a network in the virtual machine folder spikes the cpu and the virtual machine does not respond. What makes it worse, is if I copy a large file on the c: to another folder on c: VM does not - high cpu and ping meets about 200ms. vmdk bones all over the 72 GB Raid 1 + 0 datastore. When I add a data from the store of raid5 data drive the same phenomenon occurs. If I copy the c to this drive on the raid 5 data store the virtual machine gets does not and pings hover at about 200ms.

    Any ideas?

    I have no idea why this is happening, Ive deployed the same configuration with a bunch of vm and no problem.

    I don't think its network since you said that you have the same problem copy from c: to c: on the same machine.

    Looks like the machine is waiting for e/s finish. Check if you can see if I/O is blocked somewhere

    Are there messages in the system log of Windows indicating disk problems?

    Check your RAID controller. It is on the HCL?

    Your write cache is configured correctly?

    Arnim - van Lieshout

    -

  • Basic question about Flash CS5 Pro

    I apologize for my question here but I couldn't find a Forum so basic Flash where my question would be held. I'm editing my AVCHD in CS5 movies and tried to add some animations with Flash. After two days of hard work, I managed to create a SWF file to a motion tween that I could add to PrPro: the SWF is a card on which a ship (vector) moves from one port to the other. (I managed to size, modify the movement, etc.). So far, is good. I am stuck at the next step: I would like to move the ship at the next port, after it remains to the present for a few seconds, but I can't handle this. I can add a timeline and a new motion tween, but the ship won't be exactly in the same place where she ended the previous trip. I don't know that there must be a simple solution. Also, I have a few questions (very primitive) that I have post in the appropriate Forum of Flash (if I find). Sorry for the long post and I'd appreciate any help. LACI.

    Well, from http://forums.adobe.com/index.jspa I see 7 forums starting with Flash

  • A few newbie questions

    Ok, I am a fanboy of Adobe, Photoshop/Illustrator ACE but I'm a video / graphic guy My employer is about 'apps' that they average / envy = applications that run on all smartphones modern and major players in the Tablet world. I had a divorce with writing code about 4 years ago (we all have two happy summer separated from eachother) but it feels like I will be together soon.

    Looking for some quick info to get used to the speed (note that I Master Collection CS5.5):

    1. Type of code: Action Script 3 ? HTML? Or lazy build in Flash?
    2. We would start Flash or Flex SDK?
    3. Currently, they want to read on an iPad... then tomorrow a Playbook... but always on an iPhone and EVO... is it something to be considered early in the process?

    I realize, these are newbie questions VERY and it's a long way to follow, thank you for contributing to the trip!

    Nick

    Hi Nick,

    I think it depends on type of content/content/deployment.

    If it's only video content to be played in standalone or web apps that look like native and support wide range of devices - then your suite already comes with Dreamweaver 5.5 - who has for example jQuery Mobile for web based application development/deployment and PhoneGab for native-app - all code development with html/javascript and two of them takes charge of video content.

    With Flash CS5.5 you get timeline based development and authoring tools - but nothing in the simplified UI that comes with the spark in Flash Builder (Flex SDK). Outputs the CS5.5 Flash and Flash Builder 4.5 using the same development tools Adobe Air (more to read on the page of software development given).

    Oh: web development with Dreamweaver and jQM does not require App Store submission process required otherwise for the content generated with Flash CS/Flash Builder or with PhoneGap in DreamWeaver.

    Kind regards

    Peter

Maybe you are looking for