Hi.

I have a component that displays a form.
When the form displays I want to display different stuff based on whether a 
property of an object that I send to the form is null or not.

Im calling the form component from the parent like this:
<OrgForm organisation="{organisation}"/>

Now how do I access the properties of organisation inside the component before 
it displays?
My component instantiates an AS Organisation object but I cant access it in a 
script block.

My function to change the form is:
        private var saveOrUpdate:String = "Update";
        if (organisation.organisationId == null) {
                saveOrUpdate = "Save";
        }

I guess I need some event to trigger the function.
The event model and how that works is something that I havent quite grokked yet 
)-:

I guess I could also pass another attribute along such as
<OrgForm organisation="{organisation}" something="no"/>
but how do I then access that attribute?

Thanks very much for your help (-:

-- 
Luke Vanderfluit
Analyst / Web Programmer
e3Learning.com.au
08 8221 6422

Reply via email to