JoachimPetersen
asked on
Flex Mobile - update/refresh current view
Hello
I am in this simple position where I wan't a button to refresh the current view, how can this be done?
I am in this simple position where I wan't a button to refresh the current view, how can this be done?
Check this http://www.nitrix-reloaded.com/2010/01/07/refreshreload-flex-app-using-javascript/
ASKER
I am in a Flex Mobile project, the code in the article will reload current webpage in the current browser, if your in a webbrowser. I am however not in a webbrowser.
The concept of doing a page refresh doesn't really fit a flex application
You can force a displayObject to redraw itself by doing this:
this.invalidateDisplayList ();
this.updateDisplayList();
This just redraws the displayObject and it's children though, it may not be what you are looking for
If you can give me a better idea of what you want to update I can help more (I'm thinking that you may need to be using data binding..?)
You can force a displayObject to redraw itself by doing this:
this.invalidateDisplayList
this.updateDisplayList();
This just redraws the displayObject and it's children though, it may not be what you are looking for
If you can give me a better idea of what you want to update I can help more (I'm thinking that you may need to be using data binding..?)
ASKER
my navigation is placed in the MXML Application - holds the actionbar(my refresh button is on the actionbar), I want to re-navigate to the current active view, how can this be done? or if it is possible to run the current view's creationComplete or initialize function?
Check a solution what I gave to another author
https://www.experts-exchange.com/questions/26946951/History-Management-for-desktop-application.html
https://www.experts-exchange.com/questions/26946951/History-Management-for-desktop-application.html
ASKER
So there is no way of executing the current view(navigator.activeView) creationComplete function? or atleast navigate to the currentview with navigator.pushView?
I just need to read the creationComplete function from the currentview as I then can use:
Object(navigator.activeVie w).THE_Fun ction
I just need to read the creationComplete function from the currentview as I then can use:
Object(navigator.activeVie
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.