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

  • SEARCH
  • Home
  • 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 3847676
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T16:35:18+00:00 2026-05-19T16:35:18+00:00

I have a component that, once it’s all ready, I need to set the

  • 0

I have a component that, once it’s all ready, I need to set the state based on a variable I’m reading in from XML. I tried doing it with creationComplete, but it’s apparently not ready, as the state isn’t being set with elements rendering properly, but the states & rendering work fine if I do a subsequent state change with a click action on some element.

What should I do in this situation to make sure the state gets set at the right time & elements that should appear due to includeIn exist so they can be rendered? initialize instead of creationComplete doesn’t seem to do the trick for the first time the component is created. Any successive calls to the component are fine.

  • 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-19T16:35:18+00:00Added an answer on May 19, 2026 at 4:35 pm

    FYI, it’s no surprise that initialize didn’t work, it’s fired before the child elements are created, and creationComplete then fires. Since creationComplete is the last event in the init lifecycle to fire.

    Sometimes you need to change child component state from the parent container, if the creationComplete event for the component is fired prematurely.

    creationComplete for any component fires after all of it’s child components have fired their creationComplete.

    Have a look at Adobe’s documentation for the component instantiation life cycle

    creationPolicy

    You may also need to set the creationPolicy attribute for your app, to all. (I think it’s default is auto)

    enterState

    You can hook an event handler on enterState in a state declaration, once that runs the objects within the state should be available.

    visible.state properties.

    Ultimately you can set the containers for your state based objects to be invisible / not included in the layout (visible and includeInLayout properties.) On occassion you won’t have any other method of reaching an object through code, because it won’t exist. However, enterState should only execute when a view state has been entered, so objects within that state should be fully available.

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

Sidebar

Related Questions

I have a visual component that I built from a TFrame (but then registered
Let's say you have a form with a component that displays data from a
I'd like to have a TabNavigator component that has a close button for some
In my Seam application, I have a Seam component that returns a ( @Datamodel
I have to write a component that re-creates SQL Server tables (structure and data)
I have a simple extender component that draws 3D borders around any Control. In
I have a managed Windows application that loads a managed C++ component that uses
I want to create a component that allows us to have compound keyboard shortcuts
I have an ascx component, that holds two-level menu, because there are several user
I have a DataGridColumn with an ItemRenderer that extends the Box component. The default

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.