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 6037407
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:04:10+00:00 2026-05-23T06:04:10+00:00

I am new to Flex. Recently, I am learning about ‘state’ concept in Flex.

  • 0

I am new to Flex. Recently, I am learning about ‘state’ concept in Flex.

When state is changed, we can define the new properties for the new state overidding the properties of the base state.

But, I had a doubt.
What is the difference between using setProperty() and removeChild() in Flex ?

Take the following case.
Suppose there are 2 Vbox inside the application container. When the state is changed by some event, I need only 1 VBox in the appln container.

(a) Should I set setProperty for that particular VBox of width and
height to 0 ? or
(b) Should I remove the
VBox from the new state by using
removeChild() property ?

  • 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-23T06:04:10+00:00Added an answer on May 23, 2026 at 6:04 am

    They are different.
    SetProperty means changing some properties of the instance, you can set any property that you can access in the context. In case you need to re-use the VBox in future (i think this is your case), you should utilize this function. Normally, don’t set width and height to 0 (some components has minimumWidth and minimumHeight that can break your logic). Instead, set its visible to false and includeInLayout to false too.

    You only use removeChild when you no longer need that VBox. Otherwise, when you need to addChild it into your layout, you have to rearrange the order of the component’s children.

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

Sidebar

Related Questions

I am new in flex and recently read about Validation and Invalidation in components
We recently built a new dev server for flex builder and installed coldfusion 8.
I am completely new to Flex. Can I realistically develop, say, a medium complex
I recently ported some code from a Flex project over to a new pure
I'm pretty new in Flex development. Now I'm learning layouts in Flex. I try
I'm new to Flex, and I'm wondering about the best practices when it comes
I've recently changed to Mate as a framework for flex. However am running into
I use Eclipse for both Java and Flex development. Recently, I changed its color
I'm creating a new Flex component (Flex 3). I'd like it to have a
In Flex builder 3 when I create a new flex application targeting the flex

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.