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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T16:18:13+00:00 2026-06-18T16:18:13+00:00

I want to save the application state that contains some UIcomponents as shown in

  • 0

I want to save the application state that contains some UIcomponents as shown in image.

enter image description here

When the user leaves the editing mode the work should save in some form so the user can edit later.

I’m not able to retrieve data from sharedObject.

Instead, now I would like to use IExternalization. How I use this to save user work?

  • 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-06-18T16:18:14+00:00Added an answer on June 18, 2026 at 4:18 pm

    This question has an example of IExternalizable usage.

    You have a number of UIComponents descendants, perhaps they even share a parent. So, you take each of the classes and write that they implements IExternalizable, and write a coherent writeExternal and readExternal pair of methods, saving only the required properties (x, y, type, whatever else. Say a resistor, you save its x, y, type as enum or String, probably rotation, and that’s all. When you do a readExternal implementation, you read all the values in the same order you wrote them, and then reconstruct anything and everything within the object from the values you read. Anything external to the object should be restored by its parent, which will write a set of these objects (resistors, inductors, transistors etc) one by one, then will addChild() them at reading. This is a complicated enough structure, but will work if done properly.

    Yes, all this is able to be stored inside a SharedObject, with its natively available methods. Take care though, you will need to call a registerClassAlias method for all classes involved in IExternalizable implementation.

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

Sidebar

Related Questions

I want to save some custom data into application configuration file and I need
I want to store/save the whole application, that is to create a backup so
I want to save the contents of my Flex application form into a word
(using WPF application) I get an error when i want to save a bool
in my application, I have pdf files. I want to save those pdf files
I want to create my Application directory to save my configuration file. but blackberry
I want save the username and password when user login, and I added the
I'm trying to write my flex application so that it restores the user's settings
I want to save the state of my view controller. I searched and found
I understand how to save an application's state by using SharedPreferences, onSavedInstanceState() & onRestoreInstanceState(),

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.