Why the second table does not show?

<? XML version = "1.0" encoding = "utf-8"? >
" < = xmlns:mx mx:Application ' http://www.Adobe.com/2006/MXML "
xmlns: Data = "" com.kg.Data. * ""
Width = '100% '.
Height = "100%".
Initialize = "getParameterNumbers ()" "
backgroundColor = "#FFFFFF" >

< mx:Script >
<! [CDATA]
Import mx.rpc.events.FaultEvent;
Import mx.rpc.events.ResultEvent;
Import mx.collections.ArrayCollection;
Import mx.charts.PieChart;
Import mx.charts.series.PieSeries;
Import mx.charts.Legend;
import com.kg.data.ParameterCount;

[Bindable]
public var paramCount:ArrayCollection;

Gets the initial set of data from the server
private function getParameterNumbers (): void {}
remoteObject.getParameterCount ();
addSecondChart();
}

Manage the received message.
private void resultHandler(event:ResultEvent):void {}
paramCount = new ArrayCollection();
var parameterResultData:ArrayCollection = ArrayCollection (event.result);
var resultLength:Number = parameterResultData.length;
for (var i: Number = 0; i < resultLength; i ++) {}
var tempParamResult:ParameterCount = new ParameterCount();
tempParamResult.name = parameterResultData.getItemAt (i) .name;
tempParamResult.count = parameterResultData.getItemAt (i) .count;
paramCount.addItem (tempParamResult);
}
}

Manage a message error.
private void faultHandler(event:FaultEvent):void {}
statusTextArea.text += "received fault:"+ event.fault + '\n'; '.
}


public function addSecondChart (): void {}
var chart: PieChart;
var series: PieSeries.

series = new PieSeries();
series.nameField = "name";
Series.Field = "count";
Series.filters = [];

table = new PieChart();
chart.percentWidth = 100;
chart.percentHeight = 100;
chart.showDataTips = true;
chart.dataProvider = paramCount;
Chart.Series = [series];

P1. AddChild (Chart);
}

[]] >
< / mx:Script >

< mx:RemoteObject id = "remoteObject".
destination = "pokerDataSource".
result = "resultHandler (Event); »
Fault = "FaultHandler (Event); "/ >


< mx:HBox width = "100%" id = "topHBox" >
< mx:VBox >
< mx:PieChart id = "firstChart".
dataProvider = "{paramCount}.
showDataTips = "true".
selectionMode = "unique."
itemRollOverColor = "#FF0066" >
< mx:series >
< mx:PieSeries

field = 'count '.
field name = 'name '.
labelPosition = "legend."
/ >
< / mx:series >
< / mx:PieChart >
< mx:Legend dataProvider = "{firstChart}" / >
< / mx:VBox >

< mx:TextArea id = "statusTextArea".
Width = '100% '.
Height = "100%".
backgroundAlpha = "0".
focusAlpha = '0 '.
Selectable = "false" / >
< / mx:HBox >
< mx:Panel id = "p1" / >
< / mx:Application >

Hi kavehg,

I just wonder if you try to add the second table too early? You have

Initialize = "getParameterNumbers ()" in your statement of app, then "

getParameterNumbers (): void

{
remoteObject.getParameterCount ();
addSecondChart();

}

Have you tried either

(a) you put getParameterNumbers creationComplete rather initialize?

(b) addSecondChart running on another manager of altogether, for example just put a button temporarily and run it on the click event.

Maybe wrong, but just seems to me that the call may be all advance what p1 may have added chlildren?

Richard

Tags: Flex

Similar Questions

  • Why the second charger does not work?

    Hello

    If I keep the first (Adobe Flash CS4 ActionScript 3) following action script that is BLUE , it is workng fine. But if I keep two scripts for action that are in BLUE and RED. It shows nothing. What is the problem with the next. Please do help.

    var l:Loader = new Loader();
    addChild (l);

    l.Load (new URLRequest ("MyLogo.swf"));
    x = 10;
    l.y = 100;

    l.contentLoaderInfo.addEventListener (Event.INIT, growLoader);

    function growLoader(evt:Event):void {}

    l.Width = 150;

    l.Height = 150;
    }

    var k: Loader = new Loader();
    addChild (k);

    k.Load (new URLRequest ("MyBanner.swf"));
    k.x = 200;
    k.y = 100;

    k.contentLoaderInfo.addEventListener (Event.INIT, growLoader);

    function growLoader(evt:Event):void {}

    k.width = 500;

    k.Height = 150;
    }

    Thank you and best regards.

    Hello

    the error is caused by accidentally dominant yout Manager function growLoader().

    You must set two managers to solve the problem:

    var l:Loader = new Loader();
    addChild (l);

    l.Load (new URLRequest ("MyLogo.swf"));
    x = 10;
    l.y = 100;

    l.contentLoaderInfo.addEventListener (Event.INIT, growLogoLoader);

    function growLogoLoader(evt:Event):void {}

    l.Width = 150;

    l.Height = 150;
    }

    var k: Loader = new Loader();
    addChild (k);

    k.Load (new URLRequest ("MyBanner.swf"));
    k.x = 200;
    k.y = 100;

    k.contentLoaderInfo.addEventListener (Event.INIT, growBannerLoader);

    function growBannerLoader(evt:Event):void {}

    k.width = 500;

    k.Height = 150;
    }

    It is not tested, but this should do the trick.

  • Remote Desktop on pc with 2 monitors, programs previously open on the second monitor does not show

    Using remote connection to a system with two monitors

    At work, I have a Windows XP Pro SP3 system with two screens.  Sometimes, I work from home using my PC at home to connect to the network through a VPN and logging remotely and then in my work computer.  When I launch a program that last turned on my secondary screen to work, it is not visible at home because the remote access connection supports only one (primary) view.  The same thing happens with pop-up in applications, for example a search window.  If the last time I used search in Word, I moved the contextual search to the secondary display window, so I can't see the search engine remote access connection using from home.  Some of these pop-up windows have no menu on them to minimize, maximize, move, and close so there is (apparently) no shortcut to open this menu

    If a tab of the window appears in the taskbar at the bottom of the Windows desktop, I can right click on it and a popup menu will appear. I then click on move, then left click of the mouse and start dragging until the window off the screen starts to appear on my primary display.  However some windows have no popups menus when I right click on their tab taskbar so I can't select move.  Others have no tab that appears for them in the taskbar.

    Is it possible to move such a window to my primary remote access connection screen without being able to see it?

    If not, is there a way to move my work computer to screen single operation of the House using to access remote connection so that all windows appear on the main display?

    Thank you!

    Don't know if it will work, but it's worth a try...

    Try a right-click in an open in the tray area and then select the "Cascade Windows" option in the context menu.

    You can also try to move by pressing Alt-space on the keyboard and then the key M. is the equivalent of a "move".  Then use the left or right arrow key to move the window in the view.

    HTH,
    JW

  • Why the MacBook Air does not recognize my Adobe ID?

    I have a paid Adobe ID.

    I would like to use to install the Adobe CC, I know to be available for a total of two computers.

    I am currently using, like many Mac pro.

    But there was a problem.

    I also have a Macbook air.

    MacBook air into account is not active.

    ID payment is complete and is active in the MacBook Pro.

    Not available for the MacBook Air why?

    The MacBook Air does not show the message log on another commitment signed in devices.

    Just again once this to tell me, 'make a payment '. But I already paid!

    Why the MacBook Air does not recognize my Adobe ID?

    Troubleshooting FAQ: What should I do if I have a subscription, but my application acts as if I had a trial?

  • Why the original image does not appear on my desktop and not Wo one?

    Why the original image does not appear on my desktop and not Wo one?

    I made adjustments to an image that shows himself such that adjusted with the symbols at the bottom right of the image.
    I tried to drag and drop and he transferred the original image.

    The adjusted picture can be transferred and what I need to do or I do something wrong?

    Thank you

    Greg,

    Claes has pretty much nailed. You will do well to spend time to learn how Lightroom works. He is not like most software that you've used before, and if you don't understand what it does and how it does, you stand a good chance of losing your images.

    Try googling 'Lightroom tutorials' or 'get started in Lightroom. It's not rocket science, but it's different.

    HAL

  • When I turn on the computer, it does not show my office. It comes up with a white screen

    Original title: bad start.

    On May 15, 2013, I was prompted to download 8 updates from Microsoft. Since then when I turn on the computer, it does not show my office. It comes with a white screen. The only way to see the desktop is at the stop 'wrong' to turn off the power to the computer. Then I reboot, it just asking if I want to boot up normally, I say Yes and all is well on the office. Seems related to downloads of May 15, 2013. Any ideas?

    Hello

    Method 1:

    I suggest you to select last known good Configuration in Windows Advanced options and check if it works.

    To do this:

    a. restart the computer and press the F8 key for about four to five times.

    b. you will see the that last known good Configuration in the Advanced Windows options.

    c. Select last known good Configuration and press enter.

    Method 2:

    See the article and check if that helps:

    What to do if Windows does not start correctly

    http://Windows.Microsoft.com/en-us/Windows-Vista/what-to-do-if-Windows-wont-start-correctly

    For more protection, use System Restore backup and restore, which is designed to help save email, photos, documents and other personal files.

    Note: when checking your drive hard for errors, if bad sectors are found, it tries to repair this sector and if all the available data may be lost.

    Let us know if it helps.

  • Sliders on my muse adobe site are visible when I discovered the site in the browser within the program, but does not show up on published site

    Sliders on my muse adobe site are visible when I discovered the site in the browser within the program, but does not show up on the published site.

    explorersglobalfineart.com

    How can I rectify this?

    Thank you

    A large number of files in your site seems not to be on the server. If you use file > upload to FTP host, please repeat the process and select Download all files. If you use file > export as HTML and download with an FTP external program, please repeat the export process in an EMPTY FOLDER and then download everything that has been exported to your server.

  • Problem with the Organizer - it does not show changes to ACR

    When I open JPEG files in ACR, apply the changes (for example, Saturation - 100), click done, and then to open these files in the Organizer - it does not show changes in the cab so that I can't use an option File/Export as a new file. When I click on this file in the Organizer menu and open again in the editor, the image opens in ACR (not Photoshop editor) with changes


    In the example below you can see that in the Organizer in metadata / Camera Raw/Saturation (in Polish "my") = - 100, but does not show the image in black and white. I do something wrong? Help, please.


    organizer-problem.PNG

    In short, the changes you make in ACR are saved in the section of metadata of jpeg files when you click on "Done" you demonstrated.

    You are right, the thumbnails are not updated in the Organizer, and changes are not taken into account when the export of the Organizer (unlike what I thought).

    When you reopen the file of the editor or organizer, it is automatically opens again in the ACR dialog box and leaves you the choice of the original version, the default value 'auto', ACR, your 'custom' corrections correction or corrections of the already modified the file. That's fine when you modify or re - edit files individually, but this isn't the solution for the process of 'batch' as an export or by applying the same correction to a batch of files.

    My suggestion is to use a workflow that I tested recently.

    Let's say you have a batch of 20 files JPEG editing in ACR.

    -You can open them all in the cab to the command "open in camera raw" Editor.

    -You can leave the default conversion of ACR or add other corrections to some of the files.

    -to highlight all the files in the film strip and click 'done '.

    -You use the 'save' button to convert to DNG with the options you want. (I choose to create in the same location)

    As a result:

    -your files JPEG is unchanged, no thumbnail is updated, the corrections are ignored in the export process as described above.

    -You can import the DNG of their location (with a record of 'control' can help).

    -the DNG is displayed with thumbnails updated

    -they can be exported as you want

    -You can see JPEG and DNG files

    -You can even ignore the original JPEG (the DNG format keeps intact with a reasonable increase in file size).

    -If you want a redundant storage, we can use the function 'automatically suggest photo stacks' for battery original JPEG and DNG.

    If it works for you?

  • Why the CC lightroom does not recognize my users folder when you try to import?  I can not imaport images in the program.  It has worked well in the past

    Why the CC lightroom does not recognize my users folder when you try to import?  I can not imaport images in the program.  It has worked well in the past

    It is an Apple problem. They obviously fixed with a change to iTunes. Download the update on their part.

    HAL

  • Why the serial number does not appear after typing the code out of the card I bought?

    Why the serial number does not appear after typing the code out of the card I bought?

    See the following topics:

    Using redemption code

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

    http://helpx.Adobe.com/x-productkb/global/redemption-code-help.html

  • Why the object_not_found exception does not work?

    Posters,

    I have the following statement in a package.procedure:

    -- (...)
    Start

    Select dbms_metadata.get_dependent_ddl ('INDEX', 'OWNER', sTableName)
    in the cDDL - clob for index DDL
    of the double
    -- (...)

    exception
    When dbms_metadata.object_not_found then
    null;

    end;
    -- (...)

    Execution is stopped in the select, not enter the exception and the following message is displayed in PL/SQL Developer MicroHelp:

    + "ORA-31608: specified object type INDEX not found." + "

    I did it another way by adding the following clause:

    -- (...)
    Start

    Select dbms_metadata.get_dependent_ddl ('INDEX', 'OWNER', sTableName)
    in the cDDL - clob for index DDL
    of the double
    where exists (select 1+)
    of all_indexes+.
    where table_owner = 'OWNER'+.
    and table_name = sTableName); +
    -- (...)

    exception
    + When no_data_found then +.
    null;

    end;
    -- (...)

    It works, but: why the object_not_found exception does not work?

    Thanks in advance for everyone!
    Philips

    Oh I just noticed:

    What happens if instead of this:

    Select dbms_metadata.get_dependent_ddl ('INDEX', 'OWNER', sTableName)
    in the cDDL - clob for index DDL
    of the double

    you say:

    cDDL: = dbms_metadata.get_dependent_ddl ('INDEX', 'OWNER', sTableName);

    ?

  • LOV inside the inner table does not!

    Hello

    I have a Master Advanced Table and an internal Table (more advanced) retail. (I know it's a performance problem, but..)  :()

    I have a number of customer LOV in internal table. But when I select a row in the LOV I don't get the value returned to my return of goods. Page popup LOV just stay there without responding to any request post.

    I'm on 11.5.10 RUP4.

    Thank you
    Wine

    In my view, that this feature is not supported as indicated in the dev guide:

    "The inner table does not support LOVs. You must use a different user interface.

  • Why apple card app does not show the routes and directions between two places in India in an iphone 6 s more?

    map does not show the routes and directions

    This feature is not yet supported in India.

    http://www.Apple.com/in/iOS/feature-availability/#maps-directions

    In addition, your phone may be overheating for a number of reasons. The most common of which is low service area.

    Your attributes from battery to the majority of the production of heat, then adjust settings to put less load on the farm in general will help some.

    http://www.Apple.com/batteries/maximizing-performance/#iOS

  • 2.5 AppVolumes second appstack does not show in the BONE

    I have appvolumes deployed, and I created an appstack which has 3 possibilities of use in successfully (chrome, adobe reader and Notepad ++) for testing. I have this set on a non-persistent desktop with the AppVolumes agent installed and it works well. I went back to my VM capture and restored the snapshot, created a new appstack and installed firefox. After completing the capture process, I joined the new appstack to the same VM/user as the original appstack. The new appstack shows no firefox in the virtual machine. It seems that the new appstack VMDK is attached to the virtual machine, but I do not see a shortcut of firefox on the desktop, it does not appear in the program files either. Initially I thought that maybe it had something to do with having mulitple disks attached to the windows 7 x 64 VM. I thought maybe it was a problem of storage controller, but it seems that by default LSI logic SAS controller should take up to 15 HARD drives. This is where my day is over, but I'll be back tomorrow to take a look more, suggestions are welcome.

    Figured it out. We still had the trial installed, license which by default only allows to 1 appstack reach, by user, at the same time. We have installed the real license and it does not work as expected.

  • Since the upgrade to Wiondows 7 over the weekend, MSN does not show my piocture contact or Favorites

    After the upgrade to Windows 7 this weekend past, MSN Premium does not show my Contact picture or favorite unless I select "Run as Administrator" when I start it.  When I start it with "Run as Administrator", my picture of contacts in Windows Live Messenger, my favorites appear and the photo of the Contact displayed in the Panel to the screen.  Unfortunately, MSN work very slowly in administrator mode, mail is hot flushes extremely slow and Live Messenger every few seconds.

    This looks like to me a permissions problem.  Windows Live Mail has crashed with false file corruption errors until I used event ID Viewer files I needed to have the permissions.  Finally got my Windows Live Issuies known resolved.  This problem is the only thing preventing the upgrade to Windows 7 to be a success.  No one knows what files I need to add my username to access it?

    Hello

    If the question is limited with MSN, I suggest contac MSN support for assistance.

    https://support.MSN.com/contactus.aspx?WA=wsignin1.0&scrx=1

    If the problem persists with Hotmail, I suggest you write the topic in the forum link mentioned below and check.

    http://answers.Microsoft.com/en-us/windowslive/Forum/LIVEmail-wlsettings?tab=all

    Hope this information helps.

Maybe you are looking for