This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Flex and the fly likes Reloading custom mxml component Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Flex
Bookmark "Reloading custom mxml component" Watch "Reloading custom mxml component" New topic

Reloading custom mxml component

Siddhesh Deodhar
Ranch Hand

Joined: Mar 05, 2009
Posts: 117
Hi all ,

I am new to Flex and enjoying working on it.

I have my outer mxml file say Main.mxml and I have included another mxml file(Navigation.mxml) in it.

Navigation.mxml contains set of buttons(just a boarder containers) on click of which you can do something.

My GUI runs fine. When I make any changes to my custom buttons(like say color change), change is not geting reflected.

My question is about refreshing(reloading) my custom mxml components. How can i achieve this in my current scenario.
After searching on the internet I got few posts where it was said bind your compoenent to a variable.
I dint get clear view.

Can any one give input on this or point me to good link which explains handling custom mxml components

Good, Better, Best, Don't take rest until, Good becomes Better, and Better becomes Best.
Sidd : (SCJP 6 [90%] )
Siddhesh Deodhar
Ranch Hand

Joined: Mar 05, 2009
Posts: 117
So as of now I made my app working by putting work around.
In my event handler I am chaging the data that is supplied for the component.
I know this is not clean solution.
I will be investigating more deep onmy problem and will post solution here if i get one.
Consider Paul's rocket mass heater.
subject: Reloading custom mxml component
Similar Threads
Call servlets in Flex
SortCompareFunction is not working in Flex
issue to RemoteObject based on LCDS in my flex app demo
Navigating From one page to another Page
Flex and Java cannot add anything to list