Hi.
In partial answer to my own question (and not seem a complete and utter idiot)
here's what Im currently doing:
In my component (SiteList) I have a setter function:
private var personId:String;
public function set setPersonId(p:String):void {
personId = p;
}
In my main component:
<SiteList width="218" height="378" setPersonId="{personId}"/>
Is this the recommended way?
What are the alternatives?
Thanks again.
Kr.
Luke.
Luke Vanderfluit wrote:
> Hi.
>
> I have a flex application that gets called from an html link and is passed a
> parameter. The param is personid.
>
> I retrieve the parameter in the flex application (BrowserManager).
> So I have access to it in the main application file.
>
> I have a number of components within the main application, that do server
> requests. In some of those requests I need to pass the personid (that I have
> retrieved from the browser url).
>
> My question is:
>
> What is the accepted method of passing variables (params) between components,
> specifically, in this case, from parent to child component?
>
> Thanks for your responses.
>
> Kind regards.
> Luke.
>
--
Luke Vanderfluit
Analyst / Web Programmer
e3Learning.com.au
08 8221 6422