A query related to ProgressBar and its placing inside Container

Hi ,
I tried an example with  Flex3 ProgressBar .I am posting the scenario in which it was correct in one case and wrong in another case .
Please tell me what  is wrong here in the wrong case :
The Program is related to :
I have button on click of that i will be loading the Image . There is no Button and its event Listener Mentioned here .
Correct Approach :
This works fine as the Image and ProgressBar are in the same Container called HBox
<mx:HBox>
<mx:Image id="image" autoload="false"/>
<mx:ProgressBar id="MYPB" source="{image}"/>
</mx:HBox>
Wrong Approach :
The below isn't working as i placed ProgressBar outside the container called as HBox
<mx:HBox>
<mx:Image id="image" autoload="false"/>
</mx:HBox>
<mx:ProgressBar id="MYPB" source="{image}"/>
Please share your ideas as why this behaves this way .

Hi Kiran.
I don't think either of the approach is wrong , it no way effected by placing the ProgressBar inside a container or outside the container.
Run the sample application below. It will load for both approaches.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
<mx:Script>
        <![CDATA[
            public function loadImage1():void {
              image1.load('assets/liazon_logo.png');
            public function loadImage2():void {
              image2.load('assets/liazon_logo.png');
        ]]>
    </mx:Script>
<mx:HBox>
  <mx:Image id="image1" autoLoad="false"/>
</mx:HBox>
<mx:ProgressBar id="MYPB1" source="{image1}"/>
<mx:Button label="Load Image1" click="loadImage1()"/>
<mx:HBox>
  <mx:Image id="image2" autoLoad="false"/>
  <mx:ProgressBar id="MYPB2" source="{image2}"/>
</mx:HBox>
<mx:Button label="Load Image2" click="loadImage2()"/>
</mx:Application>
If this post answers your question or helps, please kindly mark it as such.
Thanks,
Bhasker Chari

Similar Messages

  • MRP query related to MTO and MTS

    Dear Gurus,
    I have got 2 Plants.......Plant A(Manufacturing Plant) and Plant B (Selling Plant)
    My scenario is Make to Order, where the sales order is getting created in Plant B(selling Plant) for Export Material
    1)when I run the MRP for Export material by MD50 ......Planned order should be created in Plant A and it should show in MD04 screen then only I can convert that planned order into production order.
    2) After confirmation of that order and after GR.....stock should go to Plant B so that SD person will deliver that stock to the respected customer.
    3)when I run the MRP by MD50, in the material BOM.....if any shortage of RAW MATERIAL OR PACKING MATERIAL then collective PR should be created in Plant B(selling plant).
    what setting we should maintain in Meterial master related to PP for all raw/packing/semifinish/finish materials in both the plants related to MTS and MTO?
    Could you provide me solution for the above queries.
    Max

    Dear
    This can be achieved by using special procurement type (80 production in another plant) in all production master data (material master for inhouse production, BOM, Routing and production version) will be made in plant B and in plant A same material will have material master for MRP i.e. MRP group, MRP type MRP controller Procurement type special procurement (80) in MRP2 production storage location, planning strategy etc.
    you can see in MD04 for plant B delivery plant will be A. and in MD04 for plant A planning plant B.
    production order will be confirmed in plant A and GR will be done in Plant B.
    and purchase requisitions for component will be raised from plant A. if all components are required to be procured in plant B, all component will have also special procurement either 40     Stock transfer (proc.from alter.plant)
    or 70     Withdrawal from alternative plant.
    I hope this will solve your issue. Kindly let me know if your issue will solved or not.
    Thanks
    Muhammad Ashfaq

  • IDOC - How to relate a segment and its sub segment

    consider this scenario
    E1MBXYH : Goods movements for mobile data entry (header data)
    Status: Required , min. number : 1 , max. number : 1
        E1MBXYI : Add goods movement from external system: Item
        Status: Required , min. number : 1 , max. number : 9999
             E1MBXYJ : Create Goods Movement from Non-SAP System: Item++
             Status: Optional , min. number : 1 , max. number : 1
    E1MBXYJ is a sub segment of EIMBXYI
    For every record in segment EIMBXYI i have to find 1 coressponding record in segment EIMBXYJ
    Loop at idocdata where segname='EIMBXYI'
    Loop at idocdata where segname='EIMBXY'  and   ?
           endloop
    endloop
    How do i find the relation between the 2 segments. There are no common fields for the segment structures.
    Message was edited by:
            raja

    Hi Raja,
    The is automatically governed by the hierachy and the occurrences that is defined in WE30 for an IDoc type.
    In WE30 we create the segment hierachy (parent and child). Double clicking any segment will lead to its occurrences (min and max). You can also navigate to segment editor to see the fields in that segment.
    Idoc data is just an internal table, we just append segments to that table based on the occurrences in the sequence (child cannot occur before parent) shown in the hierarchy in WE30.
    So you have to deal with indexes in this case. So EIMBXYI will occur first followed by child E1MBXYJ in the idoc_data internal table.
    If there are 10 E1MBXYI then also this order will be followed - E1MBXYI followed by E1MBXYJ and so on..
    Hope this helps.
    Regards,
    Gajendra.

  • Query related to write() and setsockopt()

    Hi ,
    This query is based on Solaris10. I will just brief out the issue and also the information which I am seeking. Here I am creating a TCP socket, and then increasing the socket buffer by using setsockopt(). Here is the call "setsockopt(fd, SOL_SOCKET, SO_SNDBUF,&txBufSize, sizeof(txBufSize))" . Here txbufsize is nothing but an integer that has a value equal to 65536.
    Here I am writing some data by using the write system call like "write(fd, (char*) pData, (int) length));" Here The logic is to write to the socket fd, by using the above write () the pData of length 204 bytes continously for 40 times in a second. That means in a second maximum possibility of writing to the socket buffer is 204*40 ie. 8160 bytes.
    The issue is after writing 8 to 9 times, that is after a successful write of around 1836 bytes of data (9 times * with 204 bytes each), write is failing with an error number "EWOULDBLOCK". The man page is giving an information that error code indicating that there is no free room available in the socket transmit buffer. But as I said earlier the buffer which I send so far is only 1836 bytes, also the socket buffer which I have allocated by using 'setsockopt' is 65536 which is much higher value.
    Here what I am looking for is two things.
    1. Does anybody has any insight why this write() is failing with EWOULDBLOCK, the same code was working fine in Solaris 8 as well as in 9. The same code is recently ported to Solaris10. This behaviour is observed only in Solaris10.
    2. Is there any way I can debug how much buffer is already written or how much buffer is still free to use for writing, before I initiate a write(). It would be really great if anyone can point out a debugging tool or is there any way I can instrument the code with proper logs to print out the buffer each time before the write() call.
    Thanks,
    Sree

    Actually, there was a typo in the bigAdmin article. The tunable parameter in question is actually called
    tcp_fusion_rcv_unread_min
    and is set in /etc/system as follows:
    set ip:tcp_fusion_rcv_unread_min=0
    The parameter description is:
    This is the minimum amount of outstanding writes allowed on a synchronous streams-enabled receiving endpoint before the sender gets flow-controlled. Setting this value to 0 means that the data block limit is equivalent to the byte count limit, which essentially disables the check. Flow control for TCP fusion in synchronous stream mode is achieved by checking the size of receive buffer and the number of data blocks, both set to different limits. This is different that regular stream flow control. The need for this limit is to ensure that the sending and receiving processes are both getting the resources they need to process the data and that neither is starving the other.

  • Query related to excution and performance of count in select statement

    Hi,
    What are the difference between
    select count(1) from table
    and
    select count(*) from table

    Thanks for the reply.I searched lots of thread for the same and found that it's same (excution wise and performance wise).
    But in few thread i found that someone is saying
    "At the time of exceution Count(1) will conevrted internally to count(*) " --- is it correct
    "is there any soecial significance of using count(42)" ?
    Tx,
    Anit

  • Urgent!  Relation between network and its activity

    Hi guys ,as now I can get the activity number (such as in table AFVV, two fields: AUFPL APLZL), so now the issues how can I get its relevant network number (AUFK is its master table)?
    Thanks!

    AFVV-AUFPL = AFKO-AUFPL.
    AFKO-AUFNR = AUFK-AUFNR.
    REGARDS
    SHIBA DUTTA

  • Tables Relating Support Msg and its partners along with the subject Profile

    Dear Friends,
    Every support Msg is uniquely identified by ticket nos...
    Every support msg thus has Priorities, partners, Short text msg, long txt msg, subject associatated with it...
    Please open a ticket using crmd_order..
    I want to have all the information about the ticket like who are the partners, what is the subject.
    I know of two tables :
    crmd_orderadm_H and crmd_activity_h( for determining priority based on the Guid of the ticket).
    But i am looking for the table which associates  Subject and partners ( like Sold to party, Msg processor, Support team ) with either the ticket nos or the GUID of the ticket.
    Any contributions to this thread woiuld be rewarded..
    Revert back if u have ny information about it...

    Hi.
    Got a few more. Maybe this helps.
    CRMV_LINKPARTNER (guid_hi, partner function)
    CRMC_PARTNER_FT (partner function texts)
    CRMD_ACTIVITY_H
    SCPRIO (priority long text)
    CRMD_SRV_SUBJECT (catalog, codes, ...)
    QPCT
    DNOD_NOTIF_S (support message, component)
    DSWPCSNCOMPTXT (component long texts)
    /cheers

  • Lync 2010 Server - Tracking Lync Login Sessions Related to MaxEndpointsPerUser and its threshold

    Hello All,
    I am having a few users who get the message from their Lync 2010 & 2013 client (on Lync 2010 Server) stating:
    "Please sign out at another location and try again. You have reached the maximum number of computers or devices allowed."
    I confirmed with the users they are using only one client.
    Is there a way to view all endpoints logged in per user? I understand increasing the value for "MaxEndpointsPerUser" may solve our problem but it will not fix the multiple unknown endpoint logins per user Lync seems to detect.
    Here's my configuration:
    Get-CsRegistrarConfiguration
    Identity                  : Global
    MinEndpointExpiration     : 300
    MaxEndpointExpiration     : 900
    DefaultEndpointExpiration : 600
    MaxEndpointsPerUser       : 8
    EnableDHCPServer          : False
    Any guidance would be greatly appreciated.
    Thanks,
    Jay

    This is great I was able to find 14 connections by using your method then I pinpointed description of all 14 connections by using:
    https://gallery.technet.microsoft.com/office/List-last-time-a-User-b905cf5f
    Thanks so much for your help!

  • Query regarding Treen node and its Content

    Hi all,
    I have a doubt regarding treenodes.I am creating a dynamic tree.So when i added a tree node i added a text box in the fecet of that node like
    TextField txtNodeName=new TextField();
    treeNode.getFacets.put("content",txtNodeName);
    Is there any way to get the value in the textfield.I can set the value but not able to get the entered value.Is ther any solution for this
    Kindly help
    Thanks in advance
    Sree

    try {
    TextField comp = treeNode.getFacets().get(<FacetName>);
    String text = comp.getText();
    } catch(Exception e) {
    Hope this is what you were looking for.

  • Sharing an iTunes account (and its apps) inside a family

    how does one share an itunes account (and apps) within a family?

    I agree with Mr J Spoons. If Apple allowed a "Family Account" that was tied to a credit card with all "necessary" restirctions it needs (for piracy/copying/etc.) and allowed the administrator of that account to add sub-accounts to that Familly Account it would be fantastic.
    I don't believe that anyone would allow friends to buy from the iTunes Store using its family account, since all would be paid by the credit card on file.
    Also, if my I make any purchase using my individual iTunes account or my wife does the same with hers, we could decide at that time to push the purchase to the "Family Account" or not. This would keep the Family music and apps centralized and allow for individual apps (and music) to be separated. All following the DRM/piracy/sharing controls that Apple has to have in place.
    This is such a needed feature not only to the family world but also the business world. You could, instead of a Family account, create a Company account and department accounts under that.
    I hope apple get this straighten up.

  • Components and its sized inside a Panel

    Hi!
    I want to know if there is any way to make all components in a panel (for example, buttons) have the same size, without using the gridlayout.
    For example, If I have 3 buttons, each button with different size. I want that these button were resize to the size of the biggest button.
    Its posible setting the maximum, minimum and preferred size, but I'm searching for an automatic way to do this.
    Anybody know how to do it?
    Luismahou

    as with all things there are many ways to do the same thing....
    probably the most straightforward is to use the gridbaglayout if they are on the same line (there is an example in the api documentation)
    alternatively you cubclass JButton and implement the component listener interface. Add all the buttons to a vector and on trapping the resizing event from the component listener you can iterate through the various buttons.
    I also find that I generally have to put controls (like the JButton) within a wrapper JPanel to get the appropriate size that I require - otherwise the layout manager makes the object the size required to fill it's space within the panel it is added.

  • Query for  customer and its all the underlying sites in AR

    Hi Expert,
      Please help me to build a query for a customer and its all the underlying sites .
    Thanks

    Please check this thread:
    Running Total in QLD
    Thanks,
    Gordon

  • Need query to get parent and child relations

    Hi,
    SELECT
    a.ID MASTER_ID, a.UNIQUE_NAME MASTER_UNIQUE_NAME, d.ID CHILD_ID, d.UNIQUE_NAME CHILD_UNIQUE_NAME, 1 SUB_LEVEL
    FROM
    srm_projects a,
    prTask b,
    prSubProject c,
    srm_projects d
    WHERE
    a.id = b.prProjectID
    AND b.prID = c.prTaskID
    AND c.PRREFPROJECTID=d.id
    The above query gives a project and its child.
    Child project can inturn have child projects.
    But the above query gives only the first level.
    To obtain second level I am presently using the following query
    SELECT
    a.ID MASTER_ID, a.UNIQUE_NAME MASTER_UNIQUE_NAME, d.ID CHILD_ID, d.UNIQUE_NAME CHILD_UNIQUE_NAME, 1 SUB_LEVEL
    FROM
    srm_projects a,
    prTask b,
    prSubProject c,
    srm_projects d
    WHERE
    a.id = b.prProjectID
    AND b.prID = c.prTaskID
    AND c.PRREFPROJECTID=d.id
    UNION ALL
    SELECT
    a.ID, a.UNIQUE_NAME, g.ID, g.UNIQUE_NAME, 2 SUB_LEVEL
    FROM
    srm_projects a,
    prTask b,
    prSubProject c,
    srm_projects d,
    prSubProject e,
    prTask f,
    srm_projects g
    WHERE
    a.id = b.prProjectID
    AND b.prID = c.prTaskID
    AND c.PRREFPROJECTID=d.id
    AND d.ID = f.PRPROJECTID
    AND f.prID = e.prTaskID
    AND e.PRREFPROJECTID=g.id
    But the problem is there is no limit on levels. They can go on to 20 to 30.
    So i need a query which gives me all the levels and not as above one where i am specifying till wht level.
    Please guide me.

    Thanks.
    Please find the table structures
    CREATE TABLE SRM_PROJECTS
    ID NUMBER NOT NULL,
    NAME VARCHAR2(240 BYTE),
    UNIQUE_NAME VARCHAR2(60 BYTE),
    DESCRIPTION VARCHAR2(2286 BYTE),
    IS_ACTIVE NUMBER DEFAULT 1 NOT NULL,
    CREATED_DATE DATE NOT NULL,
    CREATED_BY NUMBER NOT NULL,
    LAST_UPDATED_DATE DATE NOT NULL,
    LAST_UPDATED_BY NUMBER NOT NULL,
    CREATE TABLE PRTASK
    PRUID VARCHAR2(32 BYTE),
    PRID NUMBER(10),
    PRPROJECTID NUMBER(10),
    PRISUNPLANNED NUMBER(10) DEFAULT 0 NOT NULL,
    PRSHORTNAME VARCHAR2(48 BYTE),
    PRNAME VARCHAR2(450 BYTE),
    PREXTERNALID VARCHAR2(48 BYTE),
    PRISMILESTONE NUMBER(10) DEFAULT 0 NOT NULL,
    PRCATEGORY VARCHAR2(96 BYTE),
    CREATE TABLE PRSUBPROJECT
    PRUID VARCHAR2(32 BYTE),
    PRID NUMBER(10),
    PRTASKID NUMBER(10),
    PRREFPROJECTID NUMBER(10),
    PRREFTASKID NUMBER(10),
    PRISREADONLY NUMBER(10) DEFAULT 0 NOT NULL,
    PRISIPD NUMBER(10) DEFAULT 0 NOT NULL,
    PRMODBY VARCHAR2(96 BYTE),
    PRMODTIME DATE
    )

  • Can an InCopy editor add, remove and edit a text frame placed inside the main story text frame?

    I think I already know the answer to this which is - no. I'll explain why I am asking the question in a second, but the reason I think the simple answer is no is because - text frames are controlled by a designer in the layout file, an editor using incopy can only edit the text and images placed inside text frames, and so cannot resize them, add or delete them.
    Ok, so the reason I have asked this.
    Is there a way around this so that editors in incopy can edit certain types of text frame that are contained within the main text frame? I'm using these text frames to contain specific paragraph styles, giving them a boxed look and also with an anchored icon in the top left of the text frame depending on the type of paragraph it is. See screenshot as an example of a green text frame that I am using to contain paragraphs of type "tip".
    If it is not possible for editors in incopy to add, edit or resize these text frames (green tip frame in the example above), then how else can I style these paragraphs to give the same visual appearance, but without the use of wrapping them in a text frame?
    One (not so good) way around this is for the designer to add the text frames in the layout file after he gets the content back from the editor, then moving the "tip" paragraphs into these newly created text frames. However when the editor updates the content in incopy and gets these new text frames in their copy, they can not then delete them if they wish to, or if they add or reduce content inside of these green text frames then the frames dont grow to fit their edited content. So I dont think its a solution for the designer to control the adding, removing and resizing of these frames.
    UPDATE: I have just discovered that once a text frame has been placed into the document by the designer and the editor updates their copy in incopy-  they can then use the "Position Tool" to select that text frame - allowing them to resize it, or delete it! Fantastic. But would the editor be able to add these frames in themselves to begin with? Maybe have a document containing all of the objects available to them, copy and paste one of them into the main document and edit its content? Does anyone have any advice on how to go about this? Essentially I would like the editor to control the insertion, editing and removal of these inline text frames.

    True. But when all I am trying to achieve is a border around a paragraph, use of a table seems overkill to me. But if thats the only solution I have so far then I will have to go down that route.
    It would be useful to have an object libraries panel in InCopy so that editors can drag across predefined text frames into their doc via InCopy, but I cant see that option in InCopy. is there one? I have also thought about exporting the frames as seperate InDesign Snippets and saving them to an objects folder, then when an editor needs to insert one into their doc they simply use File > Place > "Choose required text frame snippet". However I have found that InCopy can't place InDesign snippets so that theory was a failure. Is there another format I could use to save the objects and bring them into InCopy? List below shows my findings so far for trying to save/export a text frame from InDesign and then import into InCopy:
    InDesign Snippet (.idms) - can't import into InCopy
    InDesign Document (.indd) - imports content as an image - only editable in InDesign
    InDesign Template (.indt) - imports content as an image - only editable in InDesign
    InDesign Library (.indl) - can't import into InCopy - no panel available in InCopy for object libraries (that I can see...)
    InCopy Markup (.icml) - only imports the text, loses the text frame

  • To Obtain parent and its child categories

    Hi,
    I have a "categories" table. I use MySQL.
    categories
    category_id int(10)
    category_name varchar(255)
    parent_category_id int(10)
    category_id category_name parent_category_id
    1 A 0 -- 0 represents parent level
    2 B 0
    3 C 1
    4 D 1
    5 E 2
    I need a query to display parent and its child categories like:
    category_id category_name parent_category_id
    1 A 0
    3 C 1
    4 D 1
    Thanks.

    Can't help you with MySQL.
    But if you google for "mysql start with connect by", you may find what you need.

Maybe you are looking for