Flex :: How To Auto-Refresh <mx:List
Jun 23, 2011I want to use event timer every 3 seconds to refresh List. I have created event timer but don't know about function to refresh List.
View 1 RepliesI want to use event timer every 3 seconds to refresh List. I have created event timer but don't know about function to refresh List.
View 1 RepliesI am a Java developer who tries Flex.I have a list component in Flex filled by objects got from Java (by binding dataprovider).I have put drag-drop support on list.Everything is good.But I wanted to have a reset function to reinitialize list, namely get back drag-dropped elements to the list.I tried several thing on event handler of reset button but could not reinitialise the list data. For example:
public function resetList():void {
trace("reset")
listsrc.dataProvider = srv.getTerritories.lastResult
}
"reset" is debugged but there is no change on list.
I have the list shown below:
<s:List id="list2" width="100%" height="100%" dataProvider="{ recordingsShown }"
itemRenderer="components.VideoItemRenderer2"
selectedIndex="0" visible="false">
[Code].....
I have a simple list and a background refresh protocol.When the list is scrolled down, the refresh scrolls it back to the top. I want to stop this.I have tried catching the COLLECTION_CHANGE event and validateNow(); // try to get the component to reset to the new datalist.ensureIndexIsVisible(previousIndex); // actually, I search for the previous data id in the IList, but that's not importantThis fails because the list resets itself after the change).I hate to use a Timer, ENTER_FRAME, or callLater(), but I cannot seem to figure out a way.The only other alternatives I can see is sub-classing the List so it can catch the dataProviderChanged event the DataGroup in the skin is throwing.
View 4 RepliesIn my air app I have a list(vertical) on the left side, like a sidebar. It`s working fine! The things is I want to put some animation in this list, which all the times when I select one item all the list moves, and this item goes to the center of the list!Someone have same example or URL, or something?
View 2 RepliesIs there a way so that every time the list is changed (data add, data deleted, etc.), the list will re-update or "refresh?"
View 2 RepliesI'm developing a Calendar application, and I'm using a Spark List inside a Panel for each individual day, in a 5x7 grid. I'd like to make sure that the individual lists stay the same size and simply add scrollbars when needed, but I'd also like to avoid setting an explicit width or height to maintain compatibility with multiple screen resolutions.
View 1 Repliesi have a spark List control. it has a dataProvider that shows reply from twitter search.i have created a function for change handler like this:
protected function list_changeHandler(event:IndexChangeEvent):void
{
ta.text = coverflow.selectedItem.title;
}
so, whenever i select each of the items in the List i will see the message(ta.text)but now, instead of me manually clicking the first time, i want it to automatically click/select the first item and see the first message(ta.text)how do i do it?
I can not auto refresh the TextField? [code]..
View 3 Repliesi can not auto refresh the TextField , how can I do?
Code:
var myTextLoader:URLLoader = new URLLoader();var myTextField_listner:TextField = new TextField();
myTextField_listner.wordWrap=false;
Does anyone know how to auto refresh with the Twitter API within a Flash App ?
View 0 RepliesCode:
function LoadXML(loaded) {
if (loaded) {
_root.kul_ad.text = this.firstChild.firstChild.childNodes[0].nodeValue;
_root.kul_kalyon = this.firstChild.childNodes[1].firstChild.nodeValue;
[code]....
I have swf get values from a xml.I want:when I send a change to xml, flash will detect that automatically
Code:
myLoadInteval = setInterval(LoadFile, 2000);
function LoadFile() {
xmlData.load("xml.php");
}
didn't work
I created a flash that's loading dynamic text from an external txt file. It's ON AIR flash that you can see on top right on [URL]
Now the thing is that I WANT THIS TXT CONTENT TO REFRESH AUTOMATICALLY... because I am actually loading txt file that's getting updated every few minutes, but flash content does not update, so the visitor must refresh page on go to some other page so the content will change again.
How do I make this work so that dynamic text in flash change whenever external txt file content change, without refreshing or changing the page.
I create a widget that displays the weather from a feed supplied from weather site, but after the initial load the weather isn't updated until the page is refreshed. Its not going to be web based widget so HTML refresh won't work. How would I go about getting the swf to auto refresh every 4 hours?
View 3 RepliesI created a flash that's loading dynamic text from an external txt file. It's ON AIR flash that you can see on top right on www.topfm.rs Now the thing is that I WANT THIS TXT CONTENT TO REFRESH AUTOMATICALLY... because I am actually loading txt file that's getting updated every few minutes, but flash content does not update, so the visitor must refresh page on go to some other page so the content will change again. How do I make this work so that dynamic text in flash change whenever external txt file content change, without refreshing or changing the page. [URL]
View 1 RepliesI created a flash that's loading dynamic text from an external txt file. It's ON AIR flash that you can see on top right on [URL]. Now the thing is that I want this text content to refresh automatically... because I am actually loading txt file that's getting updated every few minutes, but flash content does not update, so the visitor must refresh page on go to some other page so the content will change again. How do I make this work so that dynamic text in flash change whenever external txt file content change, without refreshing or changing the page. I am attaching .fla file.
View 1 RepliesI had an issue with my index.html testing on IE and the preloader just stalls on "loading 0%". he told me that locally the progress event doesn't have time to load and to try uploading it to your server and see if it works. It worked just fine. Rah Rah Kglad.
So today I'm fine tuning the swf/ fla to clean it up. Reduced some picture sizes and deleted unused files and reduced the swf from 4000 KB to 350 KB Rah Rah Gene. replaced the swf in Dreamweaver and re-uploaded with Filezilla. Rah ah Filezilla.
Everything working great and my preload went from 23 seconds to less than 3. So I'm real happy except for one small issue. Firefox and IE both do this. If I hit the refresh button, it stalls on "loading 0%" once again just like it did locally.
If I hit the refresh several times it WILL refresh randomly....2 times refresh......10 times refresh etc.
[URL]
Spoke to my hosting company who said everything seems fine on the server. BTW he said Chrome did NOT have this issue Rah Rah Chrome.
I'm using flex 4.1 to write an application. i read in the documents that has the rowCount property to set how many items to display. the does not have that property. how can I limit the list to display 3 items ?
View 3 RepliesFlex 3 List control had a itemRollOver event. Flex 4 List doesn't have it. Is there an equivalent or a workaround for this issue?
View 2 RepliesHere is a snip from within my code:
[Code]...
The 'recommendations' dataProvider is an ArrayCollection of String, which are generally sentences about as long as this one. By setting the variableRowHeight and wordWrap properties as shown, if a sentence is too long to fit on a single line, everything works fine- the row expands and the messages show on two lines, or occasionally three.
The space allocated for this panel within the entire canvas means if the total text size of 'recommendations' exceeds six lines, I need for the entire list scroll. This is also working just fine. The trouble is when using the mouse wheel to do the scrolling- Flex scrolls both the entire list and the single item where the mouse is hovering. Often this results in only the second half of a sentence being visible. Non-programmer friends I have asked to look at this noticed this, and tell me it as a problem. If a user does not notice the dual scrolling, and sees only a fragment of a sentence, it will be perceived as an error in the application.
[Code]....
When a user selects a category from the first drop down box then i want the 2nd drop down to be updated based on the selection of the first drop down. I have created multiple ArrayCollections whose names are set to the "data" values of the first drop down, for instance:
[Bindable]
public var countries:ArrayCollection = new ArrayCollection([
{label:"USA",data:"USA"},
[code].....
I am currently working on a project in Flex and I am having a hard time having a list's contents ALL be selected by default. Wondering how to do this.
<mx:List id="list" dataProvider="{dp}" allowMultipleSelection="true"/>
I'm just trying to have the list all selected.
I'm trying to animate a list as I delete the top row. All the examples I can find use itemsChangeEffect to bind to the effect, but this property exists only in MX lists, not spark lists.
Any idea how I can get the same effect done in Spark Lists?
I'm trying to remove the top most item in the list with a slight fade out effect before the rest of the items move up to replace the gap.
while i using drag & drop from listbox1 to listbox2 ,how can i get all the items of listbox2 in flex
View 1 RepliesThe traditional way to assign an icon would be to use the icon field of the item renderer,which reads the value of "icon" property in your data, for example:
listData.addItem({label: "Logout", icon: "com.classpth.DefualtThemeLogoutIconClass"});
But i want the DefualtThemeLogoutIconClass to changed to another class: ightThemeLogoutIconClass when the theme is changed.The only way to do this would be to use a style declaration containing a classReference to the icon, and change its the value in each of the CSS files of the various themes.The question is, is there any way to assign this style to an icon in a List, something as easy as intuitive as list[0].getIcon().setStyle("styleName");
I am using a Tab Navigator component in which there are three canvas components. When I click one of the canvas (or tab), a Pie Chart is displayed. Actually what happens is that on-click
1. the canvas sends an HTTPService whose url is set to a php file
2. That php file actually gets information from a database. Based on that information an xml file is created
3. Fusion Chart uses that xml file to display a pie chart
The database is being updated after some time. Is there any way the Pie Chart may get updated after every 3 minutes to reflect the modifications in the database? or
Can I send the particular HTTPService again and again after every 3 minutes 'in background'? or
Is there any good way to update the information in a particular canvas (or tab) of Tab Navigator?
I am using a combobox to list the contents of a folder. With a button click I use that combobox.selectedItem to delete that folder. After I delete the data is still in the combobox. How do I go about refreshing that combobox?
View 1 RepliesI am using a datagrid. It has itemEditor components, combo boxes, etc. as aprt of columns.datagrid.invalidateList() method works to reload the datagrid with new dataProvider data.But, for me it is appending to the old data and new data gets added below the older data. I am not able to fix this reload of datagrid.
View 3 RepliesI am writing a Flex application to receive xml from an httpservice. That works because I can populate a datagrid with the information. The xml sends image pathnames. A combobox sends a new HttpService call onChange. This repopulates the datagrid and puts new images in the folder that flex is accessing. I want to dynamically change the image without changing the pathname of the image.
<mx:Canvas id="borderCanvas"><mx:Canvas id="dropCanvas">
<mx:Tile id="adTile"><mx:Image></mx:Image>
</mx:Tile></mx:Canvas></mx:Canvas>
This is my component. I assign my Image sources using this code:
var i:Number = 0;
while ( i <= dg_conads.rowCount){
var img:Image = new Image();
img.source = null;
img.source = imageSource+i+".jpg";
adTile.addChild(img);
i++; }
My biggest problem is that the images are not refreshing. I get the same image even though I've prevented caching from the HTML wrapper and the ASP.Net website. The image automatically loads in the folder and refreshes in the folder but I can't get the image to refresh in the application. I've tried
removeAllChildren();
delete(adTile.getChildAt(0));
And neither worked.
I've got a Flex 3 website. I set-up adBrite in an iFrame to serve ads, and it works fine. I've got 2 ad zones in 2 iFrames. My problem is that as Flex has a "pageless" architecture, I only get credit for one hit even if the user clicks every button on the site. In short, I get one pageview instead of several. adBrite said that if I can figure out a way to refresh the ads when the user selects a new item in my navigation menu, they're cool with it. They suggested just refreshing the whole app.
View 1 Replies