Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6738315
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:21:10+00:00 2026-05-26T11:21:10+00:00

<s: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 creationComplete=init()> This is my header, and this is

  • 0
<s: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"
           creationComplete="init()">

This is my header, and this is the function that is being called by creationComplete:

protected function init():void
        {
            var mySort:Sort = new Sort();
            mySort.fields = [new SortField('title')];
            acCart.sort = mySort;
            acCart.refresh();
        }

Now, I’m adding some objects from one arraycollection (shop) to another (cart) basically (shown in a datagrid). The cart-datagrid is being modified everytime I press the button “add to cart”.

I thought that the creationcomplete-statement was only executed once, but now I’m in doubt, because it’s the only function that contains the refresh() and if I delete it, my cart isn’t updatet anymore. Can somebody provide me with some more information about the creationcomplete statement? A search on the internet and in my textbook hasn’t learned me what it exactly does.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T11:21:11+00:00Added an answer on May 26, 2026 at 11:21 am

    Upon creation complete, your acCart ArrayCollection is sorted; however, components bound to that ArrayCollection should update upon adding objects to an ArrayCollection.

    ArrayCollection is a very heavy collection, dispatching events upon collection change.

    Once bound to a DataGrid, alterations to the collection will be reflected within the DataGrid.

    http://blog.flexdevelopers.com/2009/03/flex-basics-arraycollection.html

    …an ArrayCollection is a “wrapper class that exposes an Array as a
    collection that can be accessed and manipulated using the methods and
    properties of the ICollectionView or IList interfaces”.
    Two members of the ArrayCollection class are integral to the ArrayCollection’s ability to support data binding – The
    collectionChange event and addEventListener method. To participate in
    data binding, an object must be able to:

    1. dispatch an event when something changes
    2. allow other objects to listen and respond to event

    Creation Complete:

    Dispatched when the component, and all its child components, and all
    their children, and so on, have been created, laid out, and are
    visible.

    Flex dispatches the creationComplete event for a container when those
    children that are initially required are fully processed and drawn on
    the screen, including all required children of the children, and so
    on. Create a listener for the creationComplete event, for example, if
    you must have the children’s dimensions and positions in your event
    handler. Do not use the creationComplete event for actions that set
    layout properties, as doing so results in excess processing time.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have main Application which is Spark component <s:Application xmlns:fx=http://ns.adobe.com/mxml/2009 xmlns:s=library://ns.adobe.com/flex/spark minWidth=955 minHeight=600 initialize=initApp();
<?xml version=1.0 encoding=utf-8?> <s: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 width=1501 height=960 minWidth=955 minHeight=600> <fx:Declarations> <!-- Place
So I have such code for my application <?xml version=1.0 encoding=utf-8?> <s:Application xmlns:fx=http://ns.adobe.com/mxml/2009 xmlns:s=library://ns.adobe.com/flex/spark
Here's what I have so far, <?xml version=1.0 encoding=utf-8?> <s: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
I have something like this: <?xml version=1.0 encoding=utf-8?> <s: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 creationComplete=init()> <fx:Declarations>
<mx:Application xmlns:mx=http://www.adobe.com/2006/mxml backgroundImage=images/Login_01.jpg verticalCenter=0 horizontalCenter=0 width=800 height=600 horizontalAlign=center verticalAlign=middle > I need to align
Here is what I have: <?xml version=1.0 encoding=utf-8?> <mx:Application xmlns:mx=http://www.adobe.com/2006/mxml backgroundColor=#ffffff> <mx:VBox percentHeight=100 percentWidth=100
I am adding a key listener to my AIR application like so: <mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml
Starting from a totally empty MXML application: <?xml version=1.0 encoding=utf-8?> <mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=absolute >
Consider the following radio button example. <?xml version=1.0 encoding=utf-8?> <mx:Application xmlns:mx=http://www.adobe.com/2006/mxml> <mx:Script> <![CDATA[ private

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.