Hello

I have
- one Class that extends Canvas and contains a Label
- a private property named _message
- get/set public functions to get/set _message
- the set function
--- sets the value of the private property _message
--- sets the same value to the text property of the Label


-----------------------------------
calling the class from mxml I obtain two different behaviors:

1)
<comps:ExtendedCanvas
message="text text text just text" />

All works fine...
Text is visible in the Label inside the ExtendedCanvas

2)
<comps:ExtendedCanvas
message="{resourceManager.getString('localizedContent',
'messageString01')}" />


Text is not visible in the Label inside the ExtendedCanvas...



I've tried:
Tracing the value in the container/parent of the ExtendedCanvas I can
see it's there...
Tracing the value in the createChildren function that creates the
Label and assigns the text
I've already lost the value...




Sorry to ask... maybe it's too much a newbie question for all of you
But I was wondering...
If the tracing 'before' the mxml tag that creates the ExtendedCanvas
returns
the right text, why shouldn't the text be there when I'm already
filling the ExtendedCanvas
with childrens?

Am I getting something wrong?
Any suggestion is really appreciated...
Obviously is really appreciated also any hint on where to look for
better understanding on the matter...
Already had a look to the commitProperties method and it seems that I
could obtain the localized string
if I trigger it just in the moment when the 'message' property is
assigned a value...
so I can visualize the text I need...
BUT still I'd like to uderstand why... why the different behavior?


Thanks in advance
Jo

Reply via email to