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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T03:03:31+00:00 2026-05-19T03:03:31+00:00

I did submit a thread which was (after reading it again) totally wrong formulated.

  • 0

I did submit a thread which was (after reading it again) totally wrong formulated. This is actually what i wanted to know:

In a Flex application using MATE suppose we have a view called View.mxml with a property called ViewProp and a class called ClassManager with a property ClassProp. Suppose we have another view called SecondView.mxml with a property SecondProp.

Is it possible to define somehow the following:
whenever the ViewProp changes (in View.mxml) the ClassProp is also changed in ClassManager, which in turn reflects its changes in Secondview.mxml in property SecondProp?!

I hope this time to have described it correctly!

Thanks in advance

  • 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-19T03:03:31+00:00Added an answer on May 19, 2026 at 3:03 am

    This is a bit different from your first question.

    View classes MUST not access the model classes directly, and because of that the View class must dispatch an event to change the model class.

    1.)You must define some kind of new event

    public class ViewPropIsChangedEvent extends Event
    {
    
      public static const SET_NEW_VALUE:String = "theNewValue";
      private var _value:Object;
    
      public ViewPropIsChangedEvent(type:String, value:Object, bubbling:Boolean=true, cancelable:Boolean=false)
      {
        super(type,bubbling,cancelable);
        _value = value;
      }
       public function get value():Object
      {
        return _value;
      }
    }
    

    2.) When you changed the ViewProp in View.mxml, you must dispatch an event

    dispatchEvent(new ViewPropIsChangedEvent(ViewPropIsChangedEvent.SET_NEW_VALUE, theNewValue))
    

    3.) In the EventMap you must handle the event

    </EventHandlers type="{ViewPropIsChangedEvent.SET_NEW_VALUE}"> 
      <PropertySetter generator="{ClassManager}" 
                      targetKey="ClassProp" 
                      source="{event.value}"/>
    </EventHandlers>
    

    4.) In the ModelMap you must already bind the Secondview.SecondProp to ClassManager.ClassProp

    <Injectors target="{Secondview}">
       <PropertyInjector targetKey="SecondProp" 
                         source="{ClassManager}"
                         sourceKey="ClassProp"/>
    </Injectors>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Did you know that : Map<Object,Object> m1 = new HashMap<Object, Object>(); Map<Object,Object> m2 =
Did anyone try that feature and has some feedback? Or Does anyone know some
Did you ever have to choose between WISA or LAMP at the beginning of
Did you ever had a bug in your code, you could not resolve? I
Did anyone of you ever find a way of getting the Microsoft Report Viewer
Did you ever use Oracle auditing features on a production db? How did that
Did Microsoft abandon support for Windows Presentation Foundation (WPF) on Visual Studio 2005? There
Did the recent purchase of MySQL by Sun and the subsequent buggy releases kill
Did anyone try to read programmatically an Alibre Design CAD file? I see that
I did a lot of PHP programming in the last years and one thing

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.