Re: [flexcoders] Reduce time to load httpservice result
Re: [flexcoders] Reduce time to load httpservice result
So the whole 60k records or partial records must be visible on the page? You have not mention which flex sdk version you are using. On Mar 29, 2012 11:20 PM, "isa_loyer" wrote: > ** > > > Hi, > > I do a query to mysql database with httpservice. > The result contains arround 6 records. > Time to create xml file is arround 40s, to slow for my customer. > > I try to accelerate the process with different methods, on server side, to > generate file > DOMDocument > XmlWriter > SimpleXMLElement > > As customer must be able to sort datagrid, I can not use pagging. > > So do you have an idea to load datagrid more speedly. > > Thanks > > >
[flexcoders] Load SpinnerList from SQL Select
Hi, I have taken over an app to convert to a mobile app and am new to Flex/Air. Using FB4.6 Here is the code: var sqlcon:SQLConnection =new SQLConnection(); var dbfile:File= File.applicationDirectory.resolvePath("data/aspe"); var ss:SQLStatement=new SQLStatement(); sqlcon.open(dbfile); ss.sqlConnection=sqlcon; ss.text="select distinct material as material from manning"; ss.execute(); var dgResultsults:Array=ss.getResult().data; dgMaterial.dataProvider=dgResultsults; sqlcon.close(); I get the following error: Description ResourcePathLocationType 1067: Implicit coercion of a value of type Class to an unrelated type mx.collections:IList. I can not find an example or a way to do this. They were using the mx.combobox, but figured the spinner is more appropriate for a mobile app plus I think it's lighter and was designed for mobile. Can someone point me in the right direction? Thanks Rich
RE: [flexcoders] Debug Woes - Redux
Thanks for the info. I didn't know FF will automatically cache after a period of time. I use to use the If (x) { } "pretty print" from my days as a PL/1 programmer. Lately, I've change it to If (x) { Do stuff } format. I went the first way for about 20 years and the current way for about 15 years so I'll probably change it again in another 5 years. I know the problem, I just can't make up my mind. But I will check that caching before I work on it again. I'm trying to convince the user to let me build it as a smart phone (AIR) app and more immediately I want to eliminate the goofy dots from an unordered list, but that is in a different thread. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of dorkie dork from dorktown Sent: Thursday, March 29, 2012 10:05 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Debug Woes - Redux It sounds like the SWF is cached. You'll need to find out if it is. I suggest you add a build number to your project that you can check if the swf is cached. There are ANT scripts online that increment a build number automatically before each build. If you can't find it online I can post an example when I get a chance. If it's a cached SWF then there are a few things you can do for your future development. BTW You don't need restart your browser or Flash Builder. That wouldn't help anyway. Use Firefox (not your normal browser) as your browser in Flash Builder for this test and debug the project. Check if the SWF is cached (using the build number or changing a background color or something). If it is then go to Tools > Clear Recent History and make sure the cache option is checked and time range is set to everything. Remember, Firefox will start caching the swf after an hour automatically and if that happens you need to clear the cache again. If the browser's not caching it but it's still cached then it sounds like it's something up the line IE your server etc. BTW Personally, I don't like when if statements don't use brackets. For kicks add brackets to your statement: if (something < 0) { something = 0; // put the break point here } If you see that you are setting the value but it doesn't stick then it may be a rare case that has to do with double bindings and temp variables. It's something along the lines of you assign a bindable variable to a temporary variable and then when you try to assign a value to that temporary variable it isn't assigned the value (or something like that). The way to get passed this is to set the actual variable not the temp variable. In my case I had to do something like this: this.something = 0; or document['something'] = 0; instead of something = 0; On Thu, Mar 29, 2012 at 5:51 AM, Paul Andrews wrote: On 28/03/2012 19:20, Davidson, Jerry wrote: I"ve got old eyes (along with the rest of me). How are they different? My bad - sort of. if (adjInc < 0) // for negatives adjInc = 0; I've pasted the above in from your earlier post and the adjInc text is identical. When I look at the original post in my email client the two variables look different - the I looks like l. Looking back and trying to edit the post I see that the " if (adjInc" is in a different font to "adjInc = 0;" (just as they look now as I type this line!), so I thought the names were different. Bizarre. So, you're right they are the same but they look different in my mail reader. Paul From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Paul Andrews Sent: Wednesday, March 28, 2012 11:36 AM To: flexcoders@yahoogroups.com Cc: John McCormack Subject: Re: [flexcoders] Debug Woes - Redux adjInc and adjInc are different variables. On 28/03/2012 17:03, John McCormack wrote: Just wondering... If you copy the variable's value to the variable 'temp' and test that, what do you see? John On 27/03/2012 21:34, Davidson, Jerry wrote: It's happening again. This never happened when I was using Flex 3.5. Make a change in the code. Do a Project | Clean. Make sure the debugging session is over. Do a File |Refresh. Start a debugging session and watch it go past a line: if (adjInc < 0) // for negatives adjInc = 0; Watch both lines (value at his point in this test is -43) execute. After the assignment watch the value not change to zero, but stay at -43. Repeat above steps 2-3 times with no difference. Shut down Flash Builder and start it
[flexcoders] Why doesn't this work?
Hi, I was curious about what the actual DPI was on the phones I'm testing my app on. So I created a label and in the creationComplete I have 1 line: dpi.text = String(Capabilities.screenDPI); Nothing is entered into the label? How can I get this info. Thanks Rich
Re: [flexcoders] Store HTML Files in Device
Hi, Surely someone knows the answer to this. Help a noob:) Rich - Original Message - From: "Richard Albrecht" To: flexcoders@yahoogroups.com Sent: Tuesday, March 20, 2012 12:39:40 PM Subject: [flexcoders] Store HTML Files in Device Hi, Have an engineering app that displays a lot of information in html files in the native browser. I want to store the files in the app so if they don't have internet access they can still get to them. I can display on in the rectangle web view or what ever it's called, but then the user can't zoom etc, very limiting. So I decided to use the internal browser, works fine if the files on the web, but I can't figure out what the correct path would be to send to the browser, There must be a way to do this?? Thanks Rich
[flexcoders] how to access Twitter from my flex application
can anyone please help me to do open Twitter in flex application Regards Sony
[flexcoders] Reduce time to load httpservice result
Hi, I do a query to mysql database with httpservice. The result contains arround 6 records. Time to create xml file is arround 40s, to slow for my customer. I try to accelerate the process with different methods, on server side, to generate file DOMDocument XmlWriter SimpleXMLElement As customer must be able to sort datagrid, I can not use pagging. So do you have an idea to load datagrid more speedly. Thanks
Re: [flexcoders] Debug Woes - Redux
It sounds like the SWF is cached. You'll need to find out if it is. I suggest you add a build number to your project that you can check if the swf is cached. There are ANT scripts online that increment a build number automatically before each build. If you can't find it online I can post an example when I get a chance. If it's a cached SWF then there are a few things you can do for your future development. BTW You don't need restart your browser or Flash Builder. That wouldn't help anyway. Use Firefox (not your normal browser) as your browser in Flash Builder for this test and debug the project. Check if the SWF is cached (using the build number or changing a background color or something). If it is then go to Tools > Clear Recent History and make sure the cache option is checked and time range is set to everything. Remember, Firefox will start caching the swf after an hour automatically and if that happens you need to clear the cache again. If the browser's not caching it but it's still cached then it sounds like it's something up the line IE your server etc. BTW Personally, I don't like when if statements don't use brackets. For kicks add brackets to your statement: if (something < 0) { something = 0; // put the break point here } If you see that you are setting the value but it doesn't stick then it may be a rare case that has to do with double bindings and temp variables. It's something along the lines of you assign a bindable variable to a temporary variable and then when you try to assign a value to that temporary variable it isn't assigned the value (or something like that). The way to get passed this is to set the actual variable not the temp variable. In my case I had to do something like this: this.something = 0; or document['something'] = 0; instead of something = 0; On Thu, Mar 29, 2012 at 5:51 AM, Paul Andrews wrote: > ** > > > On 28/03/2012 19:20, Davidson, Jerry wrote: > > I”ve got old eyes (along with the rest of me). How are they different? > > My bad - sort of. > > > *if* (adjInc < 0) *// > for negatives* > adjInc = 0; > > I've pasted the above in from your earlier post and the adjInc text is > identical. > > When I look at the original post in my email client the two variables look > different - the I looks like l. > > Looking back and trying to edit the post I see that the " *if* (adjInc" > is in a different font to "adjInc = 0;" (just as they look now as I type > this line!), so I thought the names were different. Bizarre. > > So, you're right they are the same but they look different in my mail > reader. > > Paul > > > > ** ** > > *From:* flexcoders@yahoogroups.com > [mailto:flexcoders@yahoogroups.com] > *On Behalf Of *Paul Andrews > *Sent:* Wednesday, March 28, 2012 11:36 AM > *To:* flexcoders@yahoogroups.com > *Cc:* John McCormack > *Subject:* Re: [flexcoders] Debug Woes - Redux > > ** ** > > > > adjInc and adjInc > > are different variables. > > > On 28/03/2012 17:03, John McCormack wrote: > > Just wondering... > If you copy the variable's value to the variable 'temp' and test that, > what do you see? > John > > On 27/03/2012 21:34, Davidson, Jerry wrote: > > It’s happening again. This never happened when I was using Flex 3.5. > > > > Make a change in the code. Do a Project | Clean. Make sure the debugging > session is over. Do a File |Refresh. > > > > Start a debugging session and watch it go past a line: > > *if* (adjInc < 0) *// > for negatives* > > adjInc = 0; > > Watch both lines (value at his point in this test is -43) execute. After > the assignment watch the value not change to zero, but stay at -43. > > > > Repeat above steps 2-3 times with no difference. Shut down Flash Builder > and start it again and repeat. No change. > > > > I’ve only got a little hair left and don’t think I can pull any more out.* > *** > > > > 1) How can I force Flex to recognize code? > > 2) How can I force Flex (Flash Builder 4) to execute – as in making > an assignment – the code? > > > > > > Jerry Davidson > > ** ** > > ** ** > > > > > >
Re: [flexcoders] external debugger
Not that I know of (if you declared it MXML). You could set enabled to false in the release version but probably the best option is to use conditional compilation, http://stackoverflow.com/questions/2736411/flash-flex-conditional-compilation-else On Mon, Mar 26, 2012 at 4:45 AM, Wouter Schreuders wrote: > ** > > > Is there any way to exlude this code being compiled into the release > version? > > > On 26 March 2012 11:20, Wouter Schreuders wrote: > >> great! thanks this is a super handy class >> >> >> On 23 March 2012 16:50, dorkie dork from dorktown < >> dorkiedorkfromdorkt...@gmail.com> wrote: >> >>> ** >>> >>> >>> You can use MiniInspector to get that type of information. >>> >>> http://code.google.com/p/flexcapacitor/source/browse/trunk/library/src/com/flexcapacitor/utils/MiniInspector.as >>> >>> >>> On Thu, Feb 9, 2012 at 5:22 AM, Wouter Schreuders >> > wrote: >>> ** well the kind of functionality I'm looking for is really for the back end programmers, occasionally they need to dip into the flex side of things and they have a lot of difficulty figuring out which class they need to work on(for instance you have your application, then a module, then a component which contains an itemrenderer which contains another itemrenderer and on of those has some custom component inside). If they can just hover their mouse over that element and it tells them what class it is it would help them alot. On 9 February 2012 07:17, Alex Harui wrote: > ** > > > FDB comes with the SDK. It is command-line, but I use it 99% of the > time as it is way faster than the GUI debugger in FlashBuilder for most > problems I have to solve. > > > > On 2/7/12 11:06 PM, "Wouter Schreuders" wrote: > > > > > > > Hi All > > Can anyone recommend a debugger for flex that allows you to inspect > and changed properties at runtime? Something like Flex-Spy or x-ray(for > as2), but I'm looking for something that is not obsolete. > > Any recommendations? > > Thanks > > Wouter > > > > > > -- > Alex Harui > Flex SDK Team > Adobe Systems, Inc. > http://blogs.adobe.com/aharui > > >>> >> > >
Re: [flexcoders] Debug Woes - Redux
On 28/03/2012 19:20, Davidson, Jerry wrote: I"ve got old eyes (along with the rest of me). How are they different? My bad - sort of. *if*(adjInc < 0) /// for negatives/ adjInc = 0; I've pasted the above in from your earlier post and the adjInc text is identical. When I look at the original post in my email client the two variables look different - the I looks like l. Looking back and trying to edit the post I see that the "*if*(adjInc" is in a different font to "adjInc = 0;" (just as they look now as I type this line!), so I thought the names were different. Bizarre. So, you're right they are the same but they look different in my mail reader. Paul *From:*flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] *On Behalf Of *Paul Andrews *Sent:* Wednesday, March 28, 2012 11:36 AM *To:* flexcoders@yahoogroups.com *Cc:* John McCormack *Subject:* Re: [flexcoders] Debug Woes - Redux adjInc and adjInc are different variables. On 28/03/2012 17:03, John McCormack wrote: Just wondering... If you copy the variable's value to the variable 'temp' and test that, what do you see? John On 27/03/2012 21:34, Davidson, Jerry wrote: It's happening again. This never happened when I was using Flex 3.5. Make a change in the code. Do a Project | Clean. Make sure the debugging session is over. Do a File |Refresh. Start a debugging session and watch it go past a line: *if*(adjInc < 0) /// for negatives/ adjInc = 0; Watch both lines (value at his point in this test is -43) execute. After the assignment watch the value not change to zero, but stay at -43. Repeat above steps 2-3 times with no difference. Shut down Flash Builder and start it again and repeat. No change. I've only got a little hair left and don't think I can pull any more out. 1)How can I force Flex to recognize code? 2)How can I force Flex (Flash Builder 4) to execute -- as in making an assignment -- the code? Jerry Davidson