Pass a parameter for the custom component - get null

Main MXML (part of the code):

< s:Application

"" xmlns:ns1 = "*".

creationComplete = "init (); >

import MyComponent;

private function init (): void {}

var myArray:Array is ["FFF", "TT", "RRR"];.

myComp.width = 200;

myComp.height = 200;

myComp.getArray = myArray;

myContainer.rawChildren.addChild (myComp);

}

< fx:Declarations >

< ns1:MyComponent id = "myComp" x = "0" y = "0" / >

< / fx:Declarations >

custom component:

package 
{
          public var getArray:Array;
public class MyComponent extends Sprite { } trace (getArray); trace null
}
}

What is myContainer?

I have a working version with my container as UICOmponent inside the hand.

SerializableAttribute public class MyComp extends Sprite

{

private var _getArray:Array;

public void MyComp()

{

}

public function get getArray (): Array

{

Return _getArray;

}

public function set getArray(value:Array):void

{

trace ("setter", value);

_getArray = value;

}

}

xmlns:s = "library://ns.adobe.com/flex/spark".

xmlns:MX = "library://ns.adobe.com/flex/mx".

"" xmlns:NS1 = "*".

minWidth = "955" = "600" minHeight

creationComplete = "init (); » >

private function init (): void {}

var myArray:Array is ["FFF", "TT", "RRR"];.

myComp.width = 200;

myComp.height = 200;

myComp.getArray = myArray;

myContainer.addChild (myComp);

}

]]>

Not sure whether what you are after but it traces:

Setter FFF TTT, RRR

Why do you add to rawChildren?

C

Tags: Flex

Similar Questions

  • SHOW_LOV need to pass a parameter for the select statement

    Hello

    I have a requirement that there is only a drop down list but the display of the list should be based on the certern parameter.

    I have a table (id, type, description). The select statement for dropdown I need is

    SELECT id, description of the table where type = & input_param.

    Can someone help please!

    create a field and create value in the list select id, description from table1 where col =: block1.item

  • During upgrade Adobe Creative Suite CS4 ME in Adobe Creative Suite CS5.5 Design Premium, I get an error saying that the serial number is not an eligible product, please try another. I used to be able to get a code for the customer service, but I can't

    During upgrade Adobe Creative Suite CS4 ME in Adobe Creative Suite CS5.5 Design Premium, I get an error saying that the serial number is not an eligible product, please try another. I used to be able to get a code for the customer service, but I can't chat. Please advise!

    MoeGhazal I have reviewed your account and it seems that you have upgraded to a volume license CS4 Design Premium for an upgrade of retail Design Premium 5.5.

    I also shows that you have made two purchases of CS5.5 Design Premium, but the second purchase was cancelled.  Make sure that you use the serial number that ends in 7886.

    If you are using the correct serial number, then it is likely, that the installer won't recognize your serial number of volume license CS4 as being valid for upgrade.  If you can contact our support team you can be traversed through an unlocking procedure to allow you to proceed with the installation.  You can contact our team of support directly in Contact with the customer.  You can try to install a web browser, you have not previously used.  It of probably a toolbar or other software applications affect your ability to access the media cat successfully.

    If you are unable to reach our support team, then please check your account information is accurate.  If you can please then update this discussion after the confirmation of this so I can ask a member of our support team contact you directly.

    I would recommend again reaching out directly if possible it will be the most effective method to resolve your current error.

  • How to assign values to the nested table and passes as a parameter for the procedure?

    How to assign values to the nested table and passes as a parameter for the procedure?

    Here are the object and its type

    create or replace type test_object1 as an object
    (
    val1 varchar2 (50).
    val2 varchar2 (50).
    VARCHAR2 (50) val3
    );


    create or replace type test_type1 is table of the test_object1;


    create or replace type test_object2 as an object
    (
    val1 varchar2 (50).
    val2 varchar2 (50).
    VARCHAR2 (50) val3
    );


    create or replace type test_type2 is table of the test_object2;


    GRANT ALL ON test_object1 to PUBLIC;


    GRANT ALL ON test_type1 to PUBLIC;


    GRANT ALL ON test_object2 to PUBLIC;


    GRANT ALL ON test_type2 to PUBLIC;

    Here is the table object type:

    create the table test_object_tpe
    (
    sl_num NUMBER,
    Description VARCHAR2 (100),
    main_val1 test_type1,
    main_val2 test_type2
    )


    NESTED TABLE main_val1 STORE AS tot1
    NESTED TABLE main_val2 STORE AS earlier2;


    -----------------------------------------------------------------------------------------------------------

    Here is the procedure that inserts values into the nested table:

    PROCEDURE INSERT_TEST_DATA (sl_num in NUMBER,
    Description in VARCHAR2,
    p_main_val1 IN test_type1,
    p_main_val2 IN test_type2
    )
    IS
    BEGIN

    FOR rec in p_main_val1.first... p_main_val1. Last
    LOOP

    INSERT INTO xxdl.test_object_tpe
    (
    sl_num,
    Description,
    main_val1,
    main_val2
    )
    VALUES
    (
    sl_num
    description
    test_type1 (test_object1)
    p_main_val1 .val1 (CRE),
    p_main_val1 .val2 (CRE),
    p_main_val1 .val3 (rec)
    )
    )
    test_type2 (test_object2 (p_main_val2 .val1 (CRE),
    p_main_val2 .val2 (CRE),
    p_main_val2 .val3 (rec)
    )
    )

    );

    END LOOP;

    commit;

    END INSERT_TEST_DATA;

    -------------------------------------------------------------------------------------------

    Here are the block anonymoys what values attributed to the object type and pass values in the procedure:

    Set serveroutput on;

    declare

    p_sl_num NUMBER: = 1001;
    p_description VARCHAR2 (50): = 'Test Val1;

    inval1 test_type1: = test_type1();
    inval2 test_type2: = test_type2();

    Start


    inval1 (1) .val1: = "testx1";
    inval1 (1) .val2: = "testx2";
    inval1 (1) .val3: = "testx3";

    inval2 (1) .val1: = "testy1";
    inval2 (1) .val2: = "testy2";
    inval2 (1) .val3: = "testy3";

    CSI_PKG. INSERT_TEST_DATA (sl_num = > p_sl_num,)
    Description = > p_description,
    p_main_val1 = > inval1,
    p_main_val2 = > inval2
    );

    end;
    /
    Someone can correct me.

    Thank you
    Lavan

    Thanks for posting the DOF and the sample code but whenever you post provide your Oracle version 4-digit (result of SELECT * FROM V$ VERSION).
    >
    How to assign values to the nested table and passes as a parameter for the procedure?
    >
    Well you do almost everything bad that could be hurt.

    Here is the code that works to insert data into your table (the procedure is not even necessary).

    declare
    p_sl_num NUMBER := 1001;
    p_description VARCHAR2(50) := 'Testing Val1';
    inval1 test_type1 := test_type1();
    inval2 test_type2 := test_type2();
    begin
    inval1.extend();
    inval1(1) := test_object1('testx1', 'testx2', 'testx3');
    inval2.extend();
    inval2(1) := test_object2('testy1', 'testy2', 'testy3');
    
    INSERT INTO test_object_tpe
    (
    sl_num,
    description,
    main_val1,
    main_val2
    )
    VALUES
    (p_sl_num, p_description, inval1, inval2);
    commit;
    end;
    /
    

    See example 5-15 making reference to an element of nested Table Chapter 5 using PL/SQL collections and records in the PL/SQL doc
    http://docs.Oracle.com/CD/B28359_01/AppDev.111/b28370/Collections.htm#CJABEBEA

    1. you don't even have the procedure because it is a simple INSERTION in the table you can do directly (see my above code)

    inval1(1).val1 := 'testx1';
    

    Since you have not yet created all the elements, there is no element 1 "inval1". You need EXTEND the collection to add an element

    inval1.extend();
    

    And then, there is an empty element, but "inval1" is a container for objects of type 'test_object1' not for scalars as "val1", "val2", and "val3".
    If you can not do

    inval1(1).val1 := 'testx1';
    

    You must create an instance of 'test_object1 '.

    inval1(1) := test_object1('testx1', 'testx2', 'testx3');
    

    And so on for the other collection

    You don't need the procedure (as my code example shows), but once you fill in the variables correctly it will work.

  • How gemfire locator can be configured to return the full DNS name for the customer?

    We have an index running before 2 cache servers,

    Locator.DomainA == > Server1.DomainA, Server2.DomainA.

    the problem is when the customer (customer. DomainB) try to access gemfire via locator, it up ' get: not connected to GemFire' exception, the reason is that the Client.DomainB uses the full name "Locator.DomainA" to access the gemfire, the Locator maintains only the servers host name, when the client runs the query, it access Server1 or Server2, but in this case, the networking is not connected.

    How gemfire locator can be configured to return the full DNS name for the customer?

    in gemfire.properties, Locator attribute is full domain name already.

    Thank you

    Yao

    There is a parameter for hostname for the customers that you can put in your cache.xml file cache-server element. It is a string that is passed the server for the location, and then on the Locator for the customer. You must set this client-to-host name in each of your cache servers.

  • The overview/poster set for the flvplayback component

    I have been customizing the flvplayback component and have encountered a problem. So far, I created a custom look for the flvplayback component, with a play overlay button that loads the FLV file dynamically from flashvars successfully. Now, I'm trying to load in a static image that takes until the video is played. I look around the internet and in the Adobe forums, but have not found what I'm looking for. I thought that maybe the preview in the AS3 flvplayback component would help, but it won't apparently.

    I was thinking myPlayer.source = "image.jpg"; but then how to change what is the source, once someone clicks on the video? I also found fl.video.VideoEvent, but I don't know how I can use this to set the image as a source, so that someone presses the play button, or until the video plays (notice that I use a play button on overlay that appears whenever the movie is paused, so once the video starts to play (, I would not want the static preview image to find once again... until someone clicks the play button of any kind)

    Ideas or meanings is greatly appreciated.

    I joined code how I am dynamically loading the FLV right now.

    The preview of the component FLVPlayback-is only a placeholder for design - which will not get exported in the final swf file unfortunately. The class itself does not posterframe features. What you need to do is to load your posterframe using the class loader as:

    var pfContainer:MovieClip = new MovieClip();
    addChild (pfContainer);
    var pf:Loader = new Loader();
    PF. Load (new URLRequest ('posterframe.jpg');
    pfContainer.addChild (pf);

    Next, you need to define an EventListener to your FLVPlayback instance that removes the Posterframe when the video starts to play:

    myPlayback.addEventListener (VideoEvent.PLAYING_STATE_ENTERED, removePF);
    {removePF(e:Event):void}
    removeChild (pfContainer);
    }

    If you want to have the Posterframe reappear on break, you could hide the pf instead of remove and set up a second EventListener for VideoEvent.PAUSED_STATE_ENTERED.

  • Whenever I try to enter an address for the email, I get MSN.

    Original title: fall MSN.

    Whenever I try to enter an address for the email, I get MSN. When I use my address book there is no problem

    Hello

    1 are you facing the issue only when you use an MSN account?

    2. what web browser do you use?

    3. have you made a recent software or hardware changes to the system?

    If you are faced with the question with MSN mail, you can contact support MSN for further assistance.

    How to contact MSN customer service

    If you are an MSN subscriber, you can also publish in the MSN Forums:

    https://answers.MSN.com/product.aspx?ProductID=30

  • Please wait for the customer to political group - stop questions

    Hello

    I have problems with the closing of a machine. When the machine is connected to the corporate network, everything works fine. However, if the computer is connected to the VPN (1 hour or more) it is always suspended when it stops. First step in the shutdown process is:

    Please wait for the system event Notification service.

    This change after 3 minutes exactly. Next step:

    Please wait for Group Policy client windows 7

    is never exceeded (even after a few hours). Machine never off.

    Under newspapers there are always these 4 events when the machine stops in vain:

    1. 6005: the winlogon notification subscriber takes a long time to handle the notification event (Logoff).
    2. 4627: the event COM + a system expired attempt to fire the method of logging on the event {D5978650-5B9F-11D1-8DD2-00AA004ABD5E} class for the Publisher and the Subscriber.  The Subscriber has not responded within 180 seconds. The full name of the subscription is "ISensLogon2". The HRESULT is 80010002
    3. 6006: the winlogon notification subscriber took 180 second (s) to handle the notification event (Logoff).
    4. 6005: the winlogon notification subscriber takes a long time to handle the notification event (Logoff).

    Sense has expired after 3 minutes while there is no event 6006 for GPClient and machine is stuck there for centuries (Please wait for the customer to group policy). I noticed in the system logs that before the machine hangs during the shutdown process there are these errors and warnings:

    • 5783: the session configuration for the Windows NT or Windows 2000 Domain Controller \\server for the domain X is not admissible.  The current CPP of Netlogon call on \\machine to \\server was canceled.
    • 1014: name resolution for the name of the server has expired after none of the configured DNS servers answered.
    • 131: NtpClient could not set a domain peer to use as a source of time due to the DNS resolution error on ". NtpClient will try again in 3473457 minutes and double the reattempt interval thereafter. The error was: the requested name is valid, but no data of the requested type was found. (0x80072AFC).

    There is more than 1014 events for different servers and some 131. 5783 is always alone.

    I did a group policy log, because I thought that I will be able to see where the machine stuck. Below you can see the part of the newspaper GPSVC when the machine stops in vain:

    GPSVC (2d4.1cfc) 21:31:24:327 CGPNotify::UnregisterNotification: incoming with the event 0xe58
    GPSVC (2d4.1cfc) 21:31:24:327 CGPNotify::AbortAsyncRegistration: No asynchronous recording is in progress
    GPSVC (2d4.1cfc) 21:31:24:327 CGPNotify::UnregisterNotification: cancellation pending appeals
    GPSVC (2d4.1cfc) 21:31:24:327 Client_CompleteNotificationCall: failed with 0x71a
    GPSVC (2d4.1cfc) 21:31:24:327 CGPNotify::UnregisterNotification: cancelled waiting for calls
    GPSVC (2d4.1cfc) 21:31:24:327 CGPNotify::UnregisterNotification: dating dwStatus = 0 x 0
    GPSVC (438.1a04) 21:31:24:327 waiting for user group wire political end.
    GPSVC (2d4.1cfc) 21:31:24:327 CGPNotify::UnregisterNotification: incoming with the event 0xe10
    GPSVC (2d4.1cfc) 21:31:24:327 CGPNotify::AbortAsyncRegistration: No asynchronous recording is in progress
    GPSVC (2d4.1cfc) 21:31:24:327 CGPNotify::UnregisterNotification: cancellation pending appeals
    GPSVC (218.C88) 21:31:24:327 Client_CompleteNotificationCall: failed with 0 x 525
    GPSVC (2d4.1cfc) 21:31:24:327 Client_CompleteNotificationCall: failed with 0x71a
    GPSVC (2d4.1cfc) 21:31:24:327 CGPNotify::UnregisterNotification: cancelled waiting for calls
    GPSVC (2d4.9C8) 21:31:24:327 CGPNotify::OnNotificationTriggered: Completenotification failed with 1317
    GPSVC (2d4.1cfc) 21:31:24:327 CGPNotify::UnregisterNotification: incoming with the event 0xdcc
    GPSVC (218.1054) 21:31:24:327 CGPNotify::UnregisterNotification: incoming with the event 0x20cc
    GPSVC (2d4.1cfc) 21:31:24:327 CGPNotify::AbortAsyncRegistration: No asynchronous recording is in progress
    GPSVC (2d4.9C8) 21:31:24:327 CGPNotify::OnNotificationTriggered: Completenotification failed with 1317
    GPSVC (2d4.1cfc) 21:31:24:327 CGPNotify::UnregisterNotification: incoming with the event 0xd90
    GPSVC (218.1054) 21:31:24:327 CGPNotify::AbortAsyncRegistration: No asynchronous recording is in progress
    GPSVC (2d4.1cfc) 21:31:24:327 CGPNotify::AbortAsyncRegistration: No asynchronous recording is in progress
    GPSVC (2d4.1cfc) 21:31:24:342 CGPNotify::UnregisterNotification: dating dwStatus = 0 x 0
    GPSVC (218.D48) 21:31:24:342 Client_CompleteNotificationCall: failed with 0 x 525
    GPSVC (218.D48) 21:31:24:342 CGPNotify::OnNotificationTriggered: Completenotification failed with 1317
    GPSVC (218.1c04) 21:31:24:327 Client_CompleteNotificationCall: failed with 0 x 525
    GPSVC (218.1c04) 21:31:24:342 CGPNotify::OnNotificationTriggered: Completenotification failed with 1317
    GPSVC (218.1054) 21:31:24:342 CGPNotify::AbortAsyncRegistration: No asynchronous recording is in progress
    GPSVC (218.1054) 21:31:24:342 CGPNotify::UnregisterNotification: dating dwStatus = 0 x 0
    GPSVC (218.1054) 21:31:24:342 CGPNotify::UnregisterNotification: entering with the event 0 x 2100
    GPSVC (218.1054) 21:31:24:342 CGPNotify::AbortAsyncRegistration: No asynchronous recording is in progress
    GPSVC (218.1054) 21:31:24:342 CGPNotify::UnregisterNotification: dating dwStatus = 0 x 0
    GPSVC (218.1054) 21:31:24:342 CGPNotify::UnregisterNotification: entering with the event 0 x 1264
    GPSVC (218.1054) 21:31:24:342 CGPNotify::AbortAsyncRegistration: No asynchronous recording is in progress
    GPSVC (218.1054) 21:31:24:342 CGPNotify::UnregisterNotification: dating dwStatus = 0 x 0

    I excluded 1 GP machine and left on the VPN for a few hours, several times. He always stopped correctly.

    However I tried with the VPN disconnection before turning off the machine, I even turned off WiFi but machine still hanging. If I tried to get GP results it takes ages before stopping the machine and he's stuck in the step "to get the user name. Gpupdate/force will never update policy (it stops at policy update...). I tired with the installation of different patches that has not solved the problem.

    I think that there is that DNS issues while the machine is on VPN which led the GP cannot be applied. When the machine tries to close it is always somehow connected. There is no problem with the connection, no GP application script when the user disconnects, not roaming profiles.

    Does anyone have the same problems? All machines are Dell with Juniper NC (VPN).

    Thank you

    Hello

    The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the TechNet Forums.

    TechNet forum: For Windows 7 

    Hope this information helps.

  • How to clear the error message for the particular component

    Greetings,
    I display message of successful Transaction after Commit Transaction success using the af:Message component, which is locked in PanelGroupLayout. I am programmatically displaying the message Transaction successful for PanelGroupLayout in which the Message label is present in the Commit method of action. After validation, action if I have no action to "CreateInsert" the message of successful Transaction get not allowed. I want to erase the message for the PanelGroupLayout component. I use JDeveloper11g release 2 Please help...

    Edited by: 899000 November 24, 2011 03:32

    Edited by: 899000 November 24, 2011 04:04

    You can call getMessages() on the FacesContext, to browse and delete (s) you want

    I have not tried, but Google should find you some examples.

  • Alignment of child in the custom component in Flex 3

    Hello

    I am newbie to Flex and glued on the essential point.

    I'm trying to align the children in a custom as Center horizontally and vertically from the Middle component but the result is not harmonizing at all.

    It's my custom componet "LoadingPanel.mxml" under the component package which children I want to focus.

    <?xml version="1.0" encoding="utf-8"?>
     
    <mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" 
                 width="100%"
                 height="100%"                                   
                 title="DCP v1.1" horizontalAlign="center" verticalAlign="middle">
         
         
         <mx:Panel backgroundColor="#BB3030" width="300" headerHeight="15">
               
               <mx:ProgressBar id="bar"
                                    indeterminate="true"
                                    labelPlacement="top"
                                    minimum="0"
                                    visible="true"
                                    maximum="100"
                                    label="Loading..." 
                                    direction="right"
                                    mode="manual"
                                    width="100%"
                                    trackHeight="14"
                                    
                                    color="#FFFFFF"/>
         </mx:Panel>
         </mx:Panel>
    
    

    Here are my main application where I use this custom component

    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
                       xmlns:s="library://ns.adobe.com/flex/spark" 
                       xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:component="component.*">
         <fx:Declarations>
               <!-- Place non-visual elements (e.g., services, value objects) here -->
         </fx:Declarations>
         <component:LoadingPanel/>
    </mx:Application>
    
    

    I also tried to give the alignment in the custom component instantiation.

    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
                       xmlns:s="library://ns.adobe.com/flex/spark" 
                       xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:component="component.*">
         <fx:Declarations>
               <!-- Place non-visual elements (e.g., services, value objects) here -->
         </fx:Declarations>
         <component:LoadingPanel horizontalAlign="center" verticalAlign="middle"/>
    </mx:Application>
    
    

    I'm sure that there must be no way to do it, but it's hard luck for me.

    Thank you

    Mac

    Jin

    pls put your control on the box and set the property of the box horizontalAlign="center" verticalAlign="middle" , may be it will be wrk.

  • Dynamically Open VI and him pass a parameter to the dynamically open VI

    I want to open a vi dynamically, at the same time I have to pass a parameter to the dynamically open VI. Is it possible to do?

    Thank you

    Chrystelle Roy

    Passionate about LabVIEW

    Check here https://zone.ni.com/reference/en-XX/help/371361M-01/lvconcepts/dynamic_loadcall_vis/

  • How long does it take for the custom field created in SFDC appears in the list of field mapping?

    How long does it take for the custom field created in SFDC appears in the list of field mapping? I hit the refresh field button, but it does not appear after 5 min. I just need to have patience?

    I had the same problem yesterday, I think it took about 10-15 minutes to appear.

  • page every time I try to download a free trial version for the sequels, I get to the legacy that when I click on free trial he always says we know the atm problem but its nothing to with the wifi is good, but its unique every time Please HELP

    page every time I try to download a free trial version for the sequels, I get to the legacy that when I click on free trial he always says we know the atm problem but its nothing to with the wifi is good, but its unique every time Please HELP

    You MUST have a 64-bit computer and operating system... What is your computer?

    -Programs are supposed TO not view or download if they are not installed on your computer

    MINIMUM for After Effects and Premiere Pro http://helpx.adobe.com/premiere-pro/system-requirements.html

  • trying to cancel my plan, how do hard, would facilitate respect for the customer, it is a parody

    trying to cancel my plan, how do hard, would facilitate respect for the customer, it is a parody

    Hello

    Please contact support by calling/chat for cancellation requests and billing queries:

    Contact the customer service

    * Be sure to stay connected with your Adobe ID before accessing the link above *.

    You can also check the help below document:

    https://helpx.Adobe.com/x-productkb/policy-pricing/cancel-membership-subscription.html

    Please go through the Adobe - General conditions of subscription as well.

    Kind regards

    Sheena

  • Base table for the customer in R12

    Hello

    What is the name of the base table for the customer in R12?

    Thank you
    GSM

    Please see (absorption of the projects of the TCA Architecture in version 12 [417511.1 ID]).

    Thank you
    Hussein

Maybe you are looking for