[flexcoders] SetItemAt Not Updating Tilelist Icons Correctly
My app allows users to enter in a url a title and an image filename and then when they click a button a snapshot of this url is created and sent to the server as the filename they have entered and an item containing all this data is added to an array collection which displays all this within a tilelist, the item renderer is linked to the server which contains the images (via the i) so they are displayed within the tilelist. The thing is this I'm trying to allow my users to update these things using the setitemat method i.e. they click on an item and all it's data is displayed and they can edit it and then save it which will use the setitemat function to update this item in the array collection. My problem is this, if the user changes the url it takes a snapshot of this new url to overwrite the previous image on the server but if they keep the image filename the same it doesn't seem to refresh within the tilelist itself. I know the image on the server has been overwritten as the image on the server in question has been changed when I check it but for some reason the image in the tilelist isn't updating to the new image. It's as if flex has the old image stored in memory or something and won't switch to the new one. Is this common and is there anyway around this besides refreshing the whole array collection each time the user updates an item. Is there any way of refreshing only the item that has just been updated perhaps? The strange thing is if the user enters a different image filename. Here's the line of code which updates the selected item (with 'a' being the chosen item in the tilelist):- ArrayCollection(linkChoice.dataProvider).setItemAt({linkid:linkChoice.selectedIt em.linkid, categoryid:updatedcategoryid, label:updatedlabelentry.text, icon:updatediconentry.text, url:updatedurlentry.text}, a);
[flexcoders] Re: Recalculating SummaryRow in a filtered AdvancedDataGrid
--- In flexcoders@yahoogroups.com, "lachance.brian" wrote: > > Hi, group > > Does anybody know how to force a SummaryRow to recalculate on a filtered > dataProvider? > > I have two SummaryRows that were assigned to a GroupingCollection, which was > then passed to my AdvancedDataGrid. When setting my ADG's filterFunction, I > refresh the dataprovider just fine (as an IHierarchicalCollectionView -- Flex > seems to change the GroupingCollection to a HierarchicalCollectionView) and > the function is properly applied. The only problem is that the SummaryRow's > don't get recalculated. It just casts it that way, so it can work with any HierarchicalCollectionView, not just GroupingCollection. > Does anyone see anything inherently wrong with my approach? > > It may be something like the SummaryRows are applied to the dataProvider, and > not just the unfiltered elements, but I haven't been able to find anything > indicating this and I'd rather not have to explicitly modify my dataProvider > (to "remove" the unfiltered nodes) if possible. I think that you can have a custom summary function, but there might be something more elegant that you could find by poring over the docs for the classes involved. HTH; Amy
Re: [flexcoders] Need Help Getting A Value Into My App Via Flex And Php
Probably this has to do with the fact that you are setting the data type to xml but not outputting valid xml. Try with something like: echo "$next_increment"; Haykel Ben Jemia Allmas Web & RIA Development http://www.allmas-tn.com On Fri, Apr 23, 2010 at 10:49 PM, James wrote: > > > I know this may not be the place to ask about php but I thought people may > have came across a similar problem. Basically the data for my app is stored > in a mysql database table and what I need to do is get the auto increment > value of this table into my app via a http request. I'm trying to make a php > file which gets this value and outputs this value as xml but I am awful at > creating php to do such things and just get constant errors. Can anyone take > a look at this and help me out to tweak it so it does what I want please? > The table in question is called links and the field/row/column in the table > I'm after is called linkid. It's the next autoincrement value of that row > outputted as xml is what I want. Here's the php so far:- > > > header("Content-type: text/xml"); > > $host = ""; > $user = ""; > $pass = ""; > $database = ""; > > $linkID = mysql_connect($host, $user, $pass) or die("Could not connect to > host."); > mysql_select_db($database, $linkID) or die("Could not find database."); > > $tablename = "links"; > $next_increment = 0; > $qShowStatus = "SHOW TABLE STATUS LIKE '$tablename'"; > $qShowStatusResult = mysql_query($qShowStatus) or die ( "Query failed: " . > mysql_error() . "" . $qShowStatus ); > > $row = mysql_fetch_assoc($qShowStatusResult); > $next_increment = $row['Auto_increment']; > > echo "next increment number: [$next_increment]"; > > ?> > > >
[flexcoders] Flash Builder 4 Error 16
Hi All! I have just downloaded the 380 MB Standalone Win version of FB 4 trial. Before that i was having Flex Builder 3.0 and i uninstalled that first then i Installed the FB4, all the installation process is going on finely and completed. But when i try to launch it, it shows me ERROR 16. May i know what is the problem and what other things (Plug Ins) i may have to install first. -- With Regards Shabir Ahmad Gilkar Srinagar Kashmir J&K Voice: +91 9419942501 email: shabirgil...@gmail.com URL: http://shabirgilkar.wordpress.com Skype: shabirgilkar
Re: [flexcoders] make swf play and stop in frame one
In the handler of the 'complete' event cast the 'content' property to MovieClip and call gotoAndStop(1) on it. Haykel Ben Jemia Allmas Web & RIA Development http://www.allmas-tn.com On Sat, Apr 24, 2010 at 3:27 AM, markflex2007 wrote: > > > Hi, > > I want to use swfloader load a swf file and show the first frame of the > swf. > > Do you have a idea to do this?I need your help. > > Thanks > > Mark > > >
[flexcoders] How to compress Spark skins into swc/swf and use them in Flex 4?
In Flex 3 our designer basically created all custom skins in AI and compiled them into swf file, which I used in css file as: - .coolButton { upSkin: Embed(source="skins.swf", symbol="button_upSkin"); overSkin: Embed(source="skins.swf", symbol="button_overSkin"); downSkin: Embed(source="skins.swf", symbol="button_downSkin"); disabledSkin: Embed(source="skins.swf", symbol="button_disabledSkin"); } - Once the skin is changed, I (developer) just had to replace the (skins.swf). Can I follow the same logic in Flex 4? I know it should be different in CSS (skinClass = "someClass") but I don't really know how the designer should compile skins into swf or swc (using Catalyst?)... any idea on how to make a skin library for spark components?