try

[Bindable]
private var msgString:String = "<b>The account " + this.acctName + " has
been created </b>.

content.htmlText = "{msgString}"

and make sure your acctName is not blank.

On Thu, Apr 30, 2009 at 9:55 AM, valdhor <valdhorli...@embarqmail.com>wrote:

>
>
> What do you mean by "That didn't work"?
>
>
> --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>,
> "fumeng5" <fume...@...> wrote:
> >
> > Hi --
> >
> > I want to output a variable and hardcoded text in the htmlText property
> of a Text component.
> >
> > Here's what I tried first:
> >
> > content.htmlText = "<b>The account " + this.acctName + " has been created
> </b>."
> >
> > ('acctName' is a private var that has accessor methods to get/set it.)
> >
> > That didn't work, so I read thru the archives and found a solution that
> didn't work either.
> >
> > [Bindable]
> > private var msgString:String = "<b>The account " + {acctName} + " has
> been created </b>.
> >
> > content.htmlText = "{msgString}"
> >
> > What am I missing here? Can anyone offer any helpful pointers?
> >
>
>  
>



-- 
/**
* Pedro Sena
* Systems Architect
* Sun Certified Java Programmer
* Sun Certified Web Component Developer
*/

Reply via email to