[flexcoders] Flex performance problem, pure MVC, AIR
I made Image Browser application. User can select any number of images and browse them in application. I use Flex SDK 3.4 AIR framework Pure MVC Framework Main screen contains big container for images and one container that preview same images just smaller (thumbnails). For thumbs I used TileList controll with Simple Image item renderer. Each image is represented like PImage class value object that contains image ID and path. When user select images that want to browse all images (PImage) are stored in ArrayCollection. Problem: When I select big number of images 50...200 or more and scroll in thumbnail container left-right I feel bad performance. User want to have smooth scroll but it's slow. I turned on live scroll on that container but still it's slow. Is there any other way to solve this performance issue? PS Images must be storred in that ArrayCollection.
[flexcoders] Fluorine fx, enterprise library, flex problem
Hi all, I have one problem, I used enterprise library Data Access Application block for my .net project (GUI was built in windows forms) and app.config was stored in GUI project. Now I switched from main windows form project to fluorineFx site project and I can't access my database anymore. I don't know anymore how to locate this app.config and I don't know what to put in web.config because I think that now old app.config data should be in new FluorineFX web.config. And now I cant point my .net code from flex :( Thanks
[flexcoders] Re: Fluorine fx, enterprise library, flex problem
What I don't know is where in FluorineFX web.config put this XML configSections> connectionStrings> configuration> --- In flexcoders@yahoogroups.com, "Vladimir" wrote: > > Hi all, > > I have one problem, I used enterprise library Data Access Application block > for my .net project (GUI was built in windows forms) and app.config was > stored in GUI project. Now I switched from main windows form project to > fluorineFx site project and I can't access my database anymore. I don't know > anymore how to locate this app.config and I don't know what to put in > web.config because I think that now old app.config data should be in new > FluorineFX web.config. And now I cant point my .net code from flex :( > > Thanks >
[flexcoders] AIR with database advice
Hi, I want to make desktop AIR application. This application must have access to its database which is made in MS SQL Server. Now I have created .NET application (Web Service) that access this database. And initial thought was to host this service somewhere but problem is that my clients want to have their databases on their computers and that computers will not be connected to the internet. Now I don't know what to do. 1) To use other technology? 2) To use SQLite - I have never work with this, I don't know is data security, can I daily make database backup etc. 3) Any other suggestion? Thanks
[flexcoders] How to bind a ProgressBar to an XML file loading process
I have an XML file loaded like: private function studentServiceResultHandler(event:ResultEvent):void { var students:ArrayCollection = event.result.catalog.student; var temp:ArrayCollection = new ArrayCollection(); var cursor:IViewCursor = students.createCursor(); while (!cursor.afterLast) { var student:Student = new Student(); student.fill(cursor.current); temp.addItem(student); cursor.moveNext(); } catalog = temp; } I can't figure out how to put the ProgressBar that will fill as the array gets loaded with data from the XML. Please help!!! Thx in advance, Vlada Stankovic
[flexcoders] DataGrid - Swap columns and rows
Hello everybody! I have an XML file containing data of only one student sth like: Vlada Stankovic 24.09.1984. 5+ FON . . . I would like to show data in the grid view but instead of columns I would like rows to take the names of the student tags and to have 2 columns (one with tags and the other with data). How can I do this in flex? Thx in advance! Vlada From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of da FoX Sent: 5. decembar 2007 13:49 To: flexcoders@yahoogroups.com Subject: [flexcoders] Call to Web Service in WebSphere I'm playing around with Flex and want to call a custom made Web Service in WebSphere. When I run my application, It seems that a lot of requests are done to the Web Service repeatably requesting the same XSD's (complex types). It looks like the application is in an infinite loop, constantly doing the same requests.. No call the the web service is made yet at this point. If I call the requested XSD manually in my browser, it is resolved without problems. And if I call another very simple web service, everything is working as expected. My Web Service definition looks like this: http://localhost:9080/CustomerModuleWeb/sca/CustomerDataServiceExport/ wsdl/CustomerDataServiceExport_CustomerDataServiceHttp_Service.wsdl" endpointURI="http://localhost:9080/CustomerModuleWeb/sca/CustomerDataService Export" service="CustomerDataServiceExport_CustomerDataServiceHttpService" port="CustomerDataServiceExport_CustomerDataServiceHttpPort" useProxy="false" showBusyCursor="true" fault="Alert.show(event.fault.faultString), 'Error'"> 16 What am I doing wrong here?? __ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
[flexcoders] Re: Setting combobox selectedindex
>From code, You can change selected index using productSubTypeCB.selectedIndex = 1; --- In flexcoders@yahoogroups.com, Max Frigge <[EMAIL PROTECTED]> wrote: > > You are using selectedItem instead of selectedIndex. > > > dataProvider= "{selectedProduc t.typeNames} " > > selectedIndex= "1" > > change="productOffe r.productSubType = event.currentTarget .value" /> > > Max > > - Original Message > From: gur_sukh <[EMAIL PROTECTED]> > To: flexcoders@yahoogroups.com > Sent: Thursday, February 7, 2008 4:18:30 AM > Subject: [flexcoders] Setting combobox selectedindex > > > > > > > > > > > > > > > > > The combobox dataprovider sets selectedindex to 0. How do we set it to > > something else. > > > > AS the dataprovider is bound to model and every time it changes the > > selected index is 0. > > > > For demo purposed i need to set this to 1. > > > > > dataProvider= "{selectedProduc t.typeNames} " > > selectedItem= "1" > > change="productOffe r.productSubType = event.currentTarget .value" /> >
[flexcoders] Re: Setting combobox selectedindex
I'm a little bit lost in those replays :) Next example will do next: When array collecting which is data provider changes, selected index will set to initial (for example second item - 1). On page creationComplete, add event listener method implementation is following: private function init():void { //Every time selectedProduct.typeNames changes method WatcherListener will be called ChangeWatcher.watch(this.selectedProduct, "typeNames", WatcherListener); } public function WatcherListener(event:Event):void { productSubTypeCB.selectedIndex = 1; } If You have any questions feel free to contact me on [EMAIL PROTECTED] --- In flexcoders@yahoogroups.com, "gur_sukh" <[EMAIL PROTECTED]> wrote: > > yes tried that too, but when dataprovider is set the selectedIndex > gets reset to 0 and hence the value. > > > > --- In flexcoders@yahoogroups.com, "Battershall, Jeff" > wrote: > > > > The way I accomlished this was by sub-classing ComboBox, to take a value > > as a parameter and set the selectedIndex accordingly. Ben Forta has an > > example of this somewhere on his website. > > > > Jeff > > > > -Original Message- > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > > Behalf Of gur_sukh > > Sent: Wednesday, February 06, 2008 1:02 PM > > To: flexcoders@yahoogroups.com > > Subject: [flexcoders] Re: Setting combobox selectedindex > > > > > > No this is not the scenario i want to have initially a value selected > > when the combobox is shown. > > > > > > --- In flexcoders@yahoogroups.com, Scott Melby wrote: > > > > > > It seems you are asking how to change your code so that your combo box > > > selectedIndex property gets updated each time your model changes. For > > > > > demo purposes you could just do something like the following: > > > > > > /** > > > * Returns the index of the > > > */ > > > private function > > getSelectedProductSubTypeIndex(selectedProduct:Product):int > > > { > > > //TODO: in real system search the selectedProduct for the correct > > > sub type and return correct index > > > //the thing to search for could be passed as a param as well > > > return 1; > > > } > > > > > > > > > > > dataProvider="{selectedProduct.typeNames}" > > > selectedIndex="{this.getSelectedProductSubTypeIndex(selectedProduct)}" > > > change="productOffer.productSubType = event.currentTarget.value" /> > > > > > > > > > Assuming your productType member is Bindable this method will get > > > triggered (due to it having a parameter that is bindable) every time > > an > > > assignment is made to productType (like your model changes), since it > > > always returns 1 your selected index will be set for you. > > > > > > hth > > > Scott > > > > > > Scott Melby > > > Founder, Fast Lane Software LLC > > > http://www.fastlanesw.com > > > > > > > > > > > > gur_sukh wrote: > > > > > > > > > > > > The combobox dataprovider sets selectedindex to 0. How do we set it > > > > to something else. > > > > > > > > AS the dataprovider is bound to model and every time it changes the > > > > selected index is 0. > > > > > > > > For demo purposed i need to set this to 1. > > > > > > > > > > > dataProvider="{selectedProduct.typeNames}" > > > > selectedItem="1" > > > > change="productOffer.productSubType = event.currentTarget.value" /> > > > > > > > > > > > > > > > > > > > > > -- > > Flexcoders Mailing List > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > > Search Archives: > > http://www.mail-archive.com/flexcoders%40yahoogroups.com > > Yahoo! Groups Links > > >