Trioxera
06-30-2008, 10:19 AM
Hi:
I have a header img. I get its path along the oher app preferences from a database.
Isn't it a waste to use a property in my preferences class just for a value that will be static all the time? Wouldn't it be better assign the img source directly using Actionscript?
And also I would like to make the header a component (to add other elements apart from the img). But I can't manage it if I use Binding for the source value. The component does not "receive" the loaded value from the container. Do I need an event listener in the Header component?
Any good practice tip?
Regards: Jeremy
I have a header img. I get its path along the oher app preferences from a database.
Isn't it a waste to use a property in my preferences class just for a value that will be static all the time? Wouldn't it be better assign the img source directly using Actionscript?
And also I would like to make the header a component (to add other elements apart from the img). But I can't manage it if I use Binding for the source value. The component does not "receive" the loaded value from the container. Do I need an event listener in the Header component?
Any good practice tip?
Regards: Jeremy