[SPAM] Re: [flexcoders] DataGrid is blank
sometimes setting the dataprovider to null (or new Object) worked for me. partsGrid.dataProvider = null; partsGrid.dataProvider = partsListCollection; or set the dataProvider in another event like creationComplete. --- In flexcoders@yahoogroups.com, Tracy Spratt tr...@... wrote: I think I would create a composite component with a header and either a List or a VBox and a repeater. Instead of using DataGrid Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Alex Harui Sent: Thursday, January 21, 2010 12:10 AM To: flexcoders@yahoogroups.com Subject: [SPAM] Re: [flexcoders] DataGrid is blank It is unusual to be creating new DataGrids in a loop On 1/20/10 8:08 PM, normc_actionscript normcousin...@... wrote: My DataGrid contains data, but is now showing it. (See itemClickEvent function.) Anybody know why? (PS feel free to critisize any other aspect of my code, i'm just learning) public function itemClickEvent(e:ListEvent):void{ Alert.show(String(e.target.selectedItem)); // THIS SHOWS WHAT'S EXPECTED } public function addToGrid(e:Event):void{ // This adds several 1 column dataGrids to an hbox, because I need lists with column headers. // One dataGrid won't work, because the lists are different lengths. categories = new XMLList(urlLoader.data) for each (var cat:XML in categories.*){ var partsGrid:DataGrid = new DataGrid(); var partsListCollection:XMLListCollection = new XMLListCollection(cat.children()) var df:XML=XML(partsListCollection.getItemAt(0)) partsGrid.dataProvider = partsListCollection; var dgc:DataGridColumn = new DataGridColumn(); dgc.headertext=c...@...(); dgc.dataField=df.name(); var cols:Array =new Array() cols.push(dgc) partsGrid.columns = cols; gridHbox.addChild(partsGrid) partsGrid.addEventListener(ListEvent.ITEM_CLICK, itemClickEvent) partsGrid.validateNow()// just to show you that I tried this but it doesn't work. } } -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs. http://blogs.adobe.com/aharui adobe.com/aharui
[flexcoders] Trapping on BlazeDS server a lost connection to a Flex client. How?
Hi all, I think it has been asked before but I don't recall any answer as this is: 1. Not a Flex directly related issue, 2. Not even a BlazeDS issue per se, My client-server application depends on a Flex client and a Tomcat + BlazeDS + MySQL + Hibernate backend server. It tracks whether a user is logged in by keeping a InSession boolean field in the database. This InSession starts the session clock by the time the user has properly logged in and stops by the time he has properly logged out by Exit the app. Then the database is updated and that user is marked as InSession=false, while that session has been timed. But if the communication channel goes down (Internet, LAN, etc), or the client's browser is inadvertently force closed, the database loses track/sync of the user and keeps reporting as InSession=true, while session time keeps running indefinately. What I need is a server side procedure that: 1. Either catch an exception on losing connection event, or 2. in a continuous loop scans for connected users (out of a list of InSession=true) Obviously losing the client-server connection is a very generalized problem to track and needs more specific solutions. I am not sure if this can be solved in BlazeDS level, or I have to go to WEB server sockets. But may I ask if anyone has a suggestion, or some relevant documentation for me to study? Thanks all George
Re: [flexcoders] Trapping on BlazeDS server a lost connection to a Flex client. How?
If you are using sessions you can add a session destroy filter in tomcat that retrieves the user id from the session and updates the db that the user has logged out - that will work - the only problem is that if you use a long session timeout your db field will be updated at the end of this period... On Thu, Jan 21, 2010 at 11:14 AM, GeorgeB grg_b...@yahoo.com wrote: Hi all, I think it has been asked before but I don't recall any answer as this is: 1. Not a Flex directly related issue, 2. Not even a BlazeDS issue per se, My client-server application depends on a Flex client and a Tomcat + BlazeDS + MySQL + Hibernate backend server. It tracks whether a user is logged in by keeping a InSession boolean field in the database. This InSession starts the session clock by the time the user has properly logged in and stops by the time he has properly logged out by Exit the app. Then the database is updated and that user is marked as InSession=false, while that session has been timed. But if the communication channel goes down (Internet, LAN, etc), or the client's browser is inadvertently force closed, the database loses track/sync of the user and keeps reporting as InSession=true, while session time keeps running indefinately. What I need is a server side procedure that: 1. Either catch an exception on losing connection event, or 2. in a continuous loop scans for connected users (out of a list of InSession=true) Obviously losing the client-server connection is a very generalized problem to track and needs more specific solutions. I am not sure if this can be solved in BlazeDS level, or I have to go to WEB server sockets. But may I ask if anyone has a suggestion, or some relevant documentation for me to study? Thanks all George -- Fotis Chatzinikos, Ph.D. Founder, LivinData Technologies www.styledropper.com fotis.chatzini...@gmail.com,
[flexcoders] Re: Trapping on BlazeDS server a lost connection to a Flex client. How?
Hi Fotis, One relative question about using sessions: Should in this case the persistent storage of the context be disabled in Tomcat 6.0? (This is enabled by default) Thanks George --- In flexcoders@yahoogroups.com, Fotis Chatzinikos fotis.chatzini...@... wrote: If you are using sessions you can add a session destroy filter in tomcat that retrieves the user id from the session and updates the db that the user has logged out - that will work - the only problem is that if you use a long session timeout your db field will be updated at the end of this period... On Thu, Jan 21, 2010 at 11:14 AM, GeorgeB grg_b...@... wrote: Hi all, I think it has been asked before but I don't recall any answer as this is: 1. Not a Flex directly related issue, 2. Not even a BlazeDS issue per se, My client-server application depends on a Flex client and a Tomcat + BlazeDS + MySQL + Hibernate backend server. It tracks whether a user is logged in by keeping a InSession boolean field in the database. This InSession starts the session clock by the time the user has properly logged in and stops by the time he has properly logged out by Exit the app. Then the database is updated and that user is marked as InSession=false, while that session has been timed. But if the communication channel goes down (Internet, LAN, etc), or the client's browser is inadvertently force closed, the database loses track/sync of the user and keeps reporting as InSession=true, while session time keeps running indefinately. What I need is a server side procedure that: 1. Either catch an exception on losing connection event, or 2. in a continuous loop scans for connected users (out of a list of InSession=true) Obviously losing the client-server connection is a very generalized problem to track and needs more specific solutions. I am not sure if this can be solved in BlazeDS level, or I have to go to WEB server sockets. But may I ask if anyone has a suggestion, or some relevant documentation for me to study? Thanks all George -- Fotis Chatzinikos, Ph.D. Founder, LivinData Technologies www.styledropper.com fotis.chatzini...@...,
[flexcoders] Re: Datagrid itemrenderer for adding multiple linkbuttons in same gridcolumn
As far as I know the code is open source but you could add a comment at his blog (http://www.jabbypanda.com/blog/?p=28). You will either have to disable the datagrids click event handler on that specific column or figure out a way to put each link in its own column. --- In flexcoders@yahoogroups.com, aramsdell2000 aramsdell2...@... wrote: Actually I am not so sure how this will work in a datagrid. One datagrid cell would have multiple hyperlink buttons. Right now the click event for the datagrid behaves differently depending on which column you click. In another column I have one link button per row. But for this one, I would have several link buttons in one row's cell. Do I do nothing on the datagrid's click event and then the listerner events for the links would take over? Haven't tried anything yet, just thinking about how to approach it. Thanks! --- In flexcoders@yahoogroups.com, aramsdell2000 aramsdell2000@ wrote: Oh wow, this looks great! Thank you! This looks like what I want to do, just curious, how do I cite it if I use it/ modified version of it?? I can add a link to his website and blog in the code? --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote: Here is a quick and dirty example using the hyperlink component from jabbypanda (http://jabbypanda.com/labs/hyperLink/srcview/index.html): ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute width=700 mx:Script ![CDATA[ import mx.collections.ArrayCollection; [Bindable] public var initDG:ArrayCollection = new ArrayCollection([ {Company: 'Apple Computer', WebSites: 'www.apple.com,store.apple.com,developer.apple.com'}, {Company: 'Google', WebSites: 'www.google.com,code.google.com,mail.google.com'} ]); ]] /mx:Script mx:DataGrid id=myGrid dataProvider={initDG} rowCount={initDG.length} mx:columns mx:DataGridColumn width=120 dataField=Company editable=false/ mx:DataGridColumn width=500 dataField=WebSites itemRenderer=Renderers.LinksRenderer/ /mx:columns /mx:DataGrid /mx:Application LinksRenderer.as: package Renderers { import flash.net.*; import htmltext.controls.HyperLink; import htmltext.controls.events.HyperlinkEvent; import mx.containers.HBox; public class LinksRenderer extends HBox { private var link1:HyperLink = new HyperLink(); private var link2:HyperLink = new HyperLink(); private var link3:HyperLink = new HyperLink(); public function LinksRenderer() { super(); } override public function set data(value:Object):void { super.data = value; if(value != null) { var linksArray:Array = data.WebSites.split(,); link1.linkText = linksArray[0]; link1.addEventListener(HyperlinkEvent.HYPERLINK_CLICK, hyperLinkClicked); link2.linkText = linksArray[1]; link2.addEventListener(HyperlinkEvent.HYPERLINK_CLICK, hyperLinkClicked); link3.linkText = linksArray[2]; link3.addEventListener(HyperlinkEvent.HYPERLINK_CLICK, hyperLinkClicked); addChild(link1); addChild(link2); addChild(link3); } } private function hyperLinkClicked(event:HyperlinkEvent):void { navigateToURL(new URLRequest(http://; + event.target.linkText), '_blank'); } } } --- In flexcoders@yahoogroups.com, Tino Dai oberoc@ wrote: Have you looked at the class LinkBar? I think that would be a good way to return a multiple buttons in a cell of a datagrid. http://livedocs.adobe.com/flex/3/langref/mx/controls/LinkBar.html -Tino On Wed, Jan 13, 2010 at 10:11 AM, aramsdell2000 aramsdell2000@: OK, that's the problem. I don't know how to add multiple link buttons through action script. And here goes my feeble attempt at explaining what I did so that it makes sense: This is how I am now populating the column with multiple hyperlinks, using the itemrenderer approach from Alex's Flex Closet HTML in an Item Renderer on this website: http://blogs.adobe.com/aharui/item_renderers/ var params:Array = (data[column.dataField]).split(, ); var urls:String = ; for (var i:Number=0; i params.length; i++) { ... urls += a href='http://webaddress?charname=; + params[i] + amp;someid= + station +
[flexcoders] Re: Item renderer in dynamically generated DataGrid columns
--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: DgcDaaGridColumn.itemRenderer = new ClassFactory(MyHBoxWrappingTwoLabels); I'd add to that: if you're going to go with this method, you're probably going to want to pass in a function or two that will give you back the strings you want to use. You'll attach these to the ClassFactory like so: cf:ClassFactory = new ClassFactory(com.yourDomain.view.CustomRenderer); cf.properties = {string1Function:someFunction; string2Function:someOtherFunction}; Another way you can handle this is to use the DataGrid_withStyle at flexdiary.blogspot.com, then have your styleFunction pass back an object with properties that you'll then use to populate your strings in commitProperties (see the example itemRenderer for how you can handle grabbing the style information and use it). HTH; Amy
Re: [flexcoders] Re: Trapping on BlazeDS server a lost connection to a Flex client. How?
Hi George, I have not touched session persistence in my installation - so if enabled by default you can leave it as is.. On Thu, Jan 21, 2010 at 4:11 PM, GeorgeB grg_b...@yahoo.com wrote: Hi Fotis, One relative question about using sessions: Should in this case the persistent storage of the context be disabled in Tomcat 6.0? (This is enabled by default) Thanks George --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Fotis Chatzinikos fotis.chatzini...@... wrote: If you are using sessions you can add a session destroy filter in tomcat that retrieves the user id from the session and updates the db that the user has logged out - that will work - the only problem is that if you use a long session timeout your db field will be updated at the end of this period... On Thu, Jan 21, 2010 at 11:14 AM, GeorgeB grg_b...@... wrote: Hi all, I think it has been asked before but I don't recall any answer as this is: 1. Not a Flex directly related issue, 2. Not even a BlazeDS issue per se, My client-server application depends on a Flex client and a Tomcat + BlazeDS + MySQL + Hibernate backend server. It tracks whether a user is logged in by keeping a InSession boolean field in the database. This InSession starts the session clock by the time the user has properly logged in and stops by the time he has properly logged out by Exit the app. Then the database is updated and that user is marked as InSession=false, while that session has been timed. But if the communication channel goes down (Internet, LAN, etc), or the client's browser is inadvertently force closed, the database loses track/sync of the user and keeps reporting as InSession=true, while session time keeps running indefinately. What I need is a server side procedure that: 1. Either catch an exception on losing connection event, or 2. in a continuous loop scans for connected users (out of a list of InSession=true) Obviously losing the client-server connection is a very generalized problem to track and needs more specific solutions. I am not sure if this can be solved in BlazeDS level, or I have to go to WEB server sockets. But may I ask if anyone has a suggestion, or some relevant documentation for me to study? Thanks all George -- Fotis Chatzinikos, Ph.D. Founder, LivinData Technologies www.styledropper.com fotis.chatzini...@..., -- Fotis Chatzinikos, Ph.D. Founder, LivinData Technologies www.styledropper.com fotis.chatzini...@gmail.com,
[flexcoders] Adobe pulls Single CPU and 100-user licenses
I'm curious how many of your projects were deployed into production using the no-charge Single CPU (or the 100-user departmental) licenses of LCDS 2.x. Since the release of LCDS 3.0, neither of these licenses exist. This leaves our small business customers running in production using the Single CPU license with no upgrade path going forward, unless they can come up with the steep license fees for ES2. I doubt any of our customers will be able to afford it. Needless to say, this seriously impedes our ability to do business on the LCDS platform going forward in the SMB market we serve. It also leaves our hands tied with respect to the software we've already developed and deployed. BlazeDS is not an option - it would require a total rewrite of client and server, and mass annihilation of features. How are these changes affecting your business?
[flexcoders] Re: Adobe pulls Single CPU and 100-user licenses
Wouldn't BlazeDS be the upgrade path for the 'no charge' versions? I'm on unclear on the exact differences, but I thought LCDS had more advanced push / real time capabilities. Apps that truly need that are rare in my experience. --- In flexcoders@yahoogroups.com, busitech m...@... wrote: I'm curious how many of your projects were deployed into production using the no-charge Single CPU (or the 100-user departmental) licenses of LCDS 2.x. Since the release of LCDS 3.0, neither of these licenses exist. This leaves our small business customers running in production using the Single CPU license with no upgrade path going forward, unless they can come up with the steep license fees for ES2. I doubt any of our customers will be able to afford it. Needless to say, this seriously impedes our ability to do business on the LCDS platform going forward in the SMB market we serve. It also leaves our hands tied with respect to the software we've already developed and deployed. BlazeDS is not an option - it would require a total rewrite of client and server, and mass annihilation of features. How are these changes affecting your business?
Re: [flexcoders] Re: Adobe pulls Single CPU and 100-user licenses
No Jeff, BlazeDS is the 'downgrade' path ... LCDS provides data management which is not available on BlazeDS. Indeed people using Free or Departmental will end up with a locked product. I wish that LCDS would become more affordable somehow and become more mainstream. -- João Fernandes Adobe Certified Expert Adobe Community Professional http://www.twitter.com/joaofernandes http://www.riapt.org Portugal Adobe User Group (http://aug.riapt.org)
Re: [flexcoders] Re: Adobe pulls Single CPU and 100-user licenses
check this out http://www.insideria.com/2010/01/getting-real-with-graniteds.html 2010/1/21 João Fernandes joaopedromartinsfernan...@gmail.com No Jeff, BlazeDS is the 'downgrade' path ... LCDS provides data management which is not available on BlazeDS. Indeed people using Free or Departmental will end up with a locked product. I wish that LCDS would become more affordable somehow and become more mainstream. -- João Fernandes Adobe Certified Expert Adobe Community Professional http://www.twitter.com/joaofernandes http://www.riapt.org Portugal Adobe User Group (http://aug.riapt.org)
[flexcoders] Quick Question?
I have loaded an image into a mx:Image/ component, how do I get the dimentions of the source image in the file it comes from. when I try contentWidth contentHeight I just get the current displayed width and hight, not the image files width and height? - Stephen
Re: [flexcoders] Quick Question?
Hi Stephen, You'll find those values in the Image component's contentHeight and contentWidth properties. Tibor. www.tiborballai.com criptopus wrote: I have loaded an image into a mx:Image/ component, how do I get the dimentions of the source image in the file it comes from. when I try contentWidth contentHeight I just get the current displayed width and hight, not the image files width and height? - Stephen -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: flexcoders-dig...@yahoogroups.com flexcoders-fullfeatu...@yahoogroups.com * To unsubscribe from this group, send an email to: flexcoders-unsubscr...@yahoogroups.com * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Quick Question?
Not in mine, I have an image 800x800 and i display it in a much smaller window and contentHeight and contentWidth are much smaller! --- In flexcoders@yahoogroups.com, Tibor Ballai ballai.t...@... wrote: Hi Stephen, You'll find those values in the Image component's contentHeight and contentWidth properties. Tibor. www.tiborballai.com criptopus wrote: I have loaded an image into a mx:Image/ component, how do I get the dimentions of the source image in the file it comes from. when I try contentWidth contentHeight I just get the current displayed width and hight, not the image files width and height? - Stephen
[flexcoders] Re: Quick Question?
Strange its working now, no idea what that was, but thanks for the confirmation. --- In flexcoders@yahoogroups.com, Tibor Ballai ballai.t...@... wrote: Hi Stephen, You'll find those values in the Image component's contentHeight and contentWidth properties. Tibor. www.tiborballai.com criptopus wrote: I have loaded an image into a mx:Image/ component, how do I get the dimentions of the source image in the file it comes from. when I try contentWidth contentHeight I just get the current displayed width and hight, not the image files width and height? - Stephen
[flexcoders] Re: DataGrid is blank
Thanks for the help, makes sense. I'll make a new component with a List and label above, and repeat that. DataGrid is overkill for what's needed anyway. Norm
RE: [flexcoders] Re: Quick Question?
There is no way for these properties to be correct until the image has been loaded. So to get the correct values, you probably need to wait for a 'complete' event from the Image. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of criptopus Sent: Thursday, January 21, 2010 9:50 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Quick Question? Strange its working now, no idea what that was, but thanks for the confirmation. --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Tibor Ballai ballai.t...@... wrote: Hi Stephen, You'll find those values in the Image component's contentHeight and contentWidth properties. Tibor. www.tiborballai.com criptopus wrote: I have loaded an image into a mx:Image/ component, how do I get the dimentions of the source image in the file it comes from. when I try contentWidth contentHeight I just get the current displayed width and hight, not the image files width and height? - Stephen
[flexcoders] spark list functions missing?
Where are these methods in the spark list control: 1) indexToItemRenderer() 2) set verticalScrollPosition() - that uses the index of the item in the data provider 3) isItemVisible() 4) scrollToIndex I am also not finding them in DataGroup.
[flexcoders] How to dynamically populate the Header Text of Flex Datagrid from XML or from an arrayCollection
Hi, I currently return an XML File(below) to Flex and have been assigning it to an array collection in order to populate a data grid. As of now i have the header Text hardcoded . I want to put it dynamically from the arraycollection below, and some timee there are some of the columns need to hide and show too.How can i do this? var xLabels:Array = (Xs[0].label as Array); labels = new ArrayCollection(xLabels); var hObj:Object=new Object(); for (var lObj:int=0; lObj labels.length; lObj++) { hlabel =labels[lObj]; } public var arrRawData:ArrayCollection = new ArrayCollection(); __model.arrNewData = event.result.rawdata.record as ArrayCollection; var xmlResult:XML = XML(event.result); Any help would be greatly appreciated. Thanks, blue 1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: rawdata record ServiceSer1/Service Health1Health Availability100%Availability Risk2/Risk /record record ServiceSer1/Service Health1Health Availability100%Availability Risk2/Risk /record record ServiceSer1/Service Health1Health Availability100%Availability Risk2/Risk /record record ServiceSer1/Service Health1Health Availability100%Availability Risk2/Risk /record /rawdata
[flexcoders] Re: Should I follow this recommendation when it comes to Flex learning curve?
Why can't you learn both at the same time? Flex by itself is all nice and dandy but the power comes from being able to create cross-browser, desk top deployable front-end to business processes and data. Techincally, the business logic can be built into Flex for a lot of stuff, but it's actually better to do that elsewhere like a middleware between the data and front end. Anywho... having skills to handle both modeling data on the server, processing it via the business logic layer, and then serving it up/to the flex front end is some strong Kung Fu. --- In flexcoders@yahoogroups.com, fred44455 fred44...@... wrote: I already know some html and CSS . Should I consider stopping learning Flex getting into PHP and coming back to Flex 3 again? The statement below is the recommendation of a friend programmer. I'm a little curious why you're jumping straight into advanced stuff and skipping the basics completely. Start with HTML and CSS. Those are literally the building blocks of the web. If you don't know them, it doesn't really matter if you understand OOP, because you'll never be able to format the output for the web. Then I'd move on to something like PHP... get a good solid grounding in basic programming logic used on the web. THEN jump into ActionScript/Flash programming and Flex. You're kind of starting at the wrong end of the progression
[flexcoders] Re: Adobe pulls Single CPU and 100-user licenses
It might be a good opportunity to loosely couple things and apply a more Service Oriented Architecture approach. Using SOA principles, changing out the business logic layer ie BlazeDS or LiveCycle wouldn't require a massive rewrite of the data or client layer. Just in how the data and presentation layers interact with whatever you implement in the business layer. Sort of like the whole MVC architecture applied enterprise wide. Not the easiest thing in the world to do, but it does come him handy and helps prevent massive re-design in all 3 enterprise application entities. Obviously that sounds nice on paper and doesn't change things after the fact, but it might be a good approach going forward. --- In flexcoders@yahoogroups.com, busitech m...@... wrote: I'm curious how many of your projects were deployed into production using the no-charge Single CPU (or the 100-user departmental) licenses of LCDS 2.x. Since the release of LCDS 3.0, neither of these licenses exist. This leaves our small business customers running in production using the Single CPU license with no upgrade path going forward, unless they can come up with the steep license fees for ES2. I doubt any of our customers will be able to afford it. Needless to say, this seriously impedes our ability to do business on the LCDS platform going forward in the SMB market we serve. It also leaves our hands tied with respect to the software we've already developed and deployed. BlazeDS is not an option - it would require a total rewrite of client and server, and mass annihilation of features. How are these changes affecting your business?
[flexcoders] Re: Adobe pulls Single CPU and 100-user licenses
It might be a good opportunity to loosely couple things and apply a more Service Oriented Architecture approach. Using SOA principles, changing out the business logic layer ie BlazeDS or LiveCycle wouldn't require a massive rewrite of the data or client layer. Just in how the data and presentation layers interact with whatever you implement in the business layer. Sort of like the whole MVC architecture applied enterprise wide. Not the easiest thing in the world to do, but it does come him handy and helps prevent massive re-design in all 3 enterprise application entities. Obviously that sounds nice on paper and doesn't change things after the fact, but it might be a good approach going forward. --- In flexcoders@yahoogroups.com, busitech m...@... wrote: I'm curious how many of your projects were deployed into production using the no-charge Single CPU (or the 100-user departmental) licenses of LCDS 2.x. Since the release of LCDS 3.0, neither of these licenses exist. This leaves our small business customers running in production using the Single CPU license with no upgrade path going forward, unless they can come up with the steep license fees for ES2. I doubt any of our customers will be able to afford it. Needless to say, this seriously impedes our ability to do business on the LCDS platform going forward in the SMB market we serve. It also leaves our hands tied with respect to the software we've already developed and deployed. BlazeDS is not an option - it would require a total rewrite of client and server, and mass annihilation of features. How are these changes affecting your business?
Re: [flexcoders] IP adress for Language
maxmind.com on the backend. -Tino On Wed, Jan 20, 2010 at 4:10 PM, Glenn Williams gl...@tinylion.co.ukwrote: [Attachment(s) #1264d92685539177_TopText from Glenn Williams included below] Not sure if this will help but.. I use web services from a uk company called *postcodeanywhere.com* url: http://docs.postcodeanywhere.co.uk/webservices/ they offer lots of web services (with flex examples to), one of which will translate IP addresses into regions for you I’ve used this company for a couple of years now and have always found them first rate. The guy I talk to there is called *Alex Bryan*, al...@postcodeanywhere.co.uk , he’s always extremely helpful and I’m sure he’ll be of just as much help to you. I can’t recommend them enough. They’ve always been a wonderful company to deal with. Give Alex an email with your problem, and please mention that I gave you his name (you never know, but I always think it never hurts to have a recommendation from someone) I’m not affiliated with this company in anyway, just use their services and recommend them. Hope this helps Regards Glenn williams Tinylion uk Ps – to other UK flex users, take a look at their site. They offer some really great services. tiny*lion* development design *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Christophe *Sent:* 20 January 2010 15:58 *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] IP adress for Language Hello, I have a bilingual Flex application. French and English. How to automatically set the French or English version in function of the IP adress localisation of the client PC ? Thank you, Christophe, image001.jpg
[flexcoders] Resize and Save an Image
Hey does anyone know if it's possible to resize and image in flex and save it to a mysql database so that I have say a 512x512 and a 60x60? If so, is there a tutorial out on the web somewhere? This is just to avoid having to resize it myself manually when I receive the 512x512.
[flexcoders] Drawing a Grid
Does anyway happen to know the best way to draw a grid inside of Sprite that uses the least amount of mem/processing? I have a sprite that can be up to 40,000 pixels wides by 40,000 pixels high and I need to draw a grid in the background of the sprite, similar to Visio. The issue is when I just try drawing the lines in the sprite it takes up a huge amount of memory. I was wondering if maybe I only draw the lines 2x the width and height of the screen and then if the user scrolls the swf then redraw the lines based on position? Anyone ever tried this or have any suggestions or examples?
[flexcoders] Troublesome problem with debugger - local variables not showing
I ran into an extremely strange problem today with the debugger. Placing a breakpoint in a certain function was NOT showing my local scope variables in the list. At all. The only thing I have showing is this and, if the function has any inputs, _arg1, _arg2 etc. Some variables I can place a watch on and I can see, but others in the same function show that they do not exist. Oddly, the code seems to trace properly as I step through it. I have run into strange problems before with the debugger losing sync with code, etc that were usually fixed with a clean (and occasionally a restart of Flex) but nothing I do clears this. I have found, however, that *moving* the function to some other place higher up in the file will allow it to work. I have noted also that it is not tied to a particular function, but rather their seems to be a place beyond which in my file that this problem occurs. Of course the obvious thing would be to try and isolate where that point is, and examine the code, but I cannot find anything suspicious. Has anyone seen a problem like this??
[flexcoders] User manual
Hello, Does the user manual is still existing for a flex application ? Or did the FAQ is sufficient ? Thank you, Christophe,
[flexcoders] horizontalAlign Puzzling
var boxArray:Array=new Array(); var boxIdx:int=boxArray.length; boxArray.push(new Box()); boxArray[boxIdx].percentWidth=100; Why not...? boxArray[boxIdx].horizontalAlign=center; - Stephen
[flexcoders] Re: Resize and Save an Image
If the image is in a container, you could capture a bitmap of the container component and save that: import flash.display.Bitmap; import flash.display.BitmapData; import mx.core.UIComponent; import mx.graphics.ImageSnapshot; private function getSnapshotImage( component:UIComponent ):Bitmap { var bitmapData:BitmapData = ImageSnapshot.captureBitmapData( component ); var bitmap:Bitmap = new Bitmap( bitmapData ); return bitmap; } -TH --- In flexcoders@yahoogroups.com, s_hernandez01 s_hernande...@... wrote: Hey does anyone know if it's possible to resize and image in flex and save it to a mysql database so that I have say a 512x512 and a 60x60? If so, is there a tutorial out on the web somewhere? This is just to avoid having to resize it myself manually when I receive the 512x512.
[flexcoders] Re: horizontalAlign Puzzling
I think because horizontalAlign is a style, not a property. Try setStyle(); -TH --- In flexcoders@yahoogroups.com, criptopus sd_br...@... wrote: var boxArray:Array=new Array(); var boxIdx:int=boxArray.length; boxArray.push(new Box()); boxArray[boxIdx].percentWidth=100; Why not...? boxArray[boxIdx].horizontalAlign=center; - Stephen
[flexcoders] HSlider max/min position
Hi, I have to swap max/min position in HSlider control. By default max come to right and min on left. Any help would be appreciated Thanks Kashif Inam Sent from my iPhone
[flexcoders] Creating control logic diagram
Hi, I am new to flex and trying to create a network diagram type application.These are the things which I am trying to achieve : 1.Create a library of 'SVG' files which will contain different images for different things such as AND gate, NAND gate, etc.2.Drag n Drop those items on canvas from library.3.These items should have ports\connectors on them which can be used to connect them with other images using line. Kindly let me know what should be the best approach for achieving this.
[flexcoders] Read svg file in FLEX
Hi, I am new to flex and am using svg file for one of my application which basically contains 2-3 rectangles and few paths. Now I want to parse this svg file in my application and get rect coordinates. Kindly let me know how to achieve this.
[flexcoders] Reg Flex Certification
Hi, I am new to flex and want to take Flex certification. Any recommendation on the book and the questions to practice from would be of great help. Thnaks, Radha
[flexcoders] ContextMenu: is there a maximum number of menuItems that can't be exceeded?
Hello everybody, I'm working on a snippet which must cover the lack of a column selector or column chooser in the AdvancedDatagrid component. I noticed that the maximum number of menuItems is 16 and the menuItems exceeding 16 will not be shown. Has anyone encountered this issue? And how have you solved it? Feel free to use the custom datagrid I'm working on : package it.custom.controls { import flash.events.ContextMenuEvent; import flash.events.Event; import flash.ui.ContextMenu; import flash.ui.ContextMenuItem; import mx.collections.ArrayCollection; import mx.controls.AdvancedDataGrid; import mx.controls.advancedDataGridClasses.AdvancedDataGridColumn; public class CustomDataGrid extends AdvancedDataGrid { public function CustomDataGrid() { super(); this.contextMenu = generateContextMenu(); } override public function set dataProvider(value:Object):void{ super.dataProvider = value; this.contextMenu = generateContextMenu(); } private function generateContextMenu():ContextMenu{ var newContext:ContextMenu = new ContextMenu(); newContext.hideBuiltInItems(); var items:ArrayCollection = new ArrayCollection(); for each (var col:AdvancedDataGridColumn in columns){ var menuIText:String = col.headerText; var menuI:ContextMenuItem = new ContextMenuItem(col.headerText); if(col.visible) menuIText = * + menuIText; menuI.caption = menuIText; menuI.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, handleMenuItemSelect); items.addItem(menuI); } newContext.customItems = items.toArray(); return newContext; } private function handleMenuItemSelect(e:Event):void { var t:ContextMenuItem = e.target as ContextMenuItem; var menuIText:String = t.caption; var items:Array = this.contextMenu.customItems; var colIdx:int = items.indexOf(t); var columns:Array = this.columns; var column:AdvancedDataGridColumn = columns[colIdx]; if(menuIText.substr(0,2) == (* )){ t.caption = t.caption.substr(2); column.visible = false; } else{ t.caption = * + t.caption; column.visible = true; } } } }
Re:Re:Re: [flexcoders] Enable mousewheel function on spark List
protected function onMouseWheelEventHandler(event:MouseEvent):void{ ? = event.delta; } s:List id=myList mousewheel=onMouseWheelEventHandler / How should I do to enable the mousewheel function to scroll the Spark List ?
Re: [flexcoders] Read svg file in FLEX
Hey flexlearner, What's your question exactly? How to parse XML? After you parse the XML (you can use e4x) you'll convert SVG attributes into actionscript graphics functions like graphics.lineTo(). Are you having trouble with something in particular? Aaron On Thu, Jan 21, 2010 at 3:30 AM, flexlearner flexlear...@yahoo.com wrote: Hi, I am new to flex and am using svg file for one of my application which basically contains 2-3 rectangles and few paths. Now I want to parse this svg file in my application and get rect coordinates. Kindly let me know how to achieve this.
[flexcoders] How to parse xml with namespaces
Hi. Here is a snippet of xml: It contains an element with a namespace (c:question) and several elements without a namespace. If I get the whole thing as an XML object, how do I go about accessing all the different fields. E.G. I need to access the c:question text or c:question subelements So: 1. c:question text: This is a wine question 2. c:question subelements: p.ul.li: Penfolds Grange - no effect or p: A bottle shop in a remote country pub sells five different bottled wines. The publican increases the price of a bottle of Jacob's Creek core range by 50 cents. 3. question attribute format: radio Ive tried setting a namespace for c and a default namespace but cannot consistently access elements and values from both namespaces. Id love your help.. Thanks. Kr. Luke. = ?xml version=\1.0\ encoding=\UTF-8\? c:question xmlns=\http://www.w3.org/1999/xhtml\; xmlns:c=\http://www.eddygordon.com/namespaces/course\;This is a wine question pA bottle shop in a remote country pub sells five different bottled wines. The publican increases the price of a bottle of Jacob's Creek core range by 50 cents. /p pAssuming that the prices of the other wines do not change, the Jacob's Creek price increase is likely to affect sales of the other products as follows: /p p ul liPenfolds Grange - no effect; /li liWyndham Estate Bin Range - the Wyndham Estate products are slightly more expensive but the price increase has narrowed the gap so a slight increase can be expected; /li liLindemans Bin Range - large increase in sales as this is a direct competitor; /li liRosemount Split Label Range - large increase in sales as this is a direct competitor /li /ul/ppBased on this information, which wines are in the same market as Jacob's Creek? /p question format=\radio\ name=\part1\ answer correct=\true\Lindemans Bin Range and Rosemount Split Label Range are definitely in the same market and Wyndham Estate may be. /answer answerPenfolds Grange is the only wine in the same market. /answer answerLindemans Bin Range and Rosemount Split Label Range are the only wines in the same market. /answer /questionp/ /c:question
[flexcoders] Sequence flicker issue
Between each effect there is a flicker when the next effect started. I try to use flex3.4 but the problem is still there. I really confused ~~ s:Application .. transitions={[bm_tran]} s:states s:State name=state1 / s:State name=state2 / /s:states fx:Declarations s:Transition id=bm_tran s:Sequence target={bitmapimage1} duration=500 s:Resize / s:Pause/ !-- seem isn't available -- s:CrossFade / /s:Sequence /s:Transition /fx:Declarations s:BitmapImage height.state2=113 height.state1=149 id=bitmapimage1 source.state2=@Embed('Image_0002.png') source.state1=@Embed('Image_0001.png') width=429 / s:Button label=Click Me! click={currentState = (currentState == 'state1') ? 'state2':'state1';}/
Re:[flexcoders] spark list functions missing?
yes, I find this problem too. Is anybody figure out this ? 在2010-01-22 02:59:50,Ariel J arielj...@yahoo.com 写道: Where are these methods in the spark list control: 1) indexToItemRenderer() 2) set verticalScrollPosition() - that uses the index of the item in the data provider 3) isItemVisible() 4) scrollToIndex I am also not finding them in DataGroup.
Re: [flexcoders] Enable mousewheel function on spark List
Like I said, you shouldn’t need to add any code. Try it on Windows. MouseWHeel may not work on Mac. On 1/21/10 6:02 PM, j2me_soul j2me_s...@163.com wrote: protected function onMouseWheelEventHandler(event:MouseEvent):void{ ? = event.delta; } s:List id=myList mousewheel=onMouseWheelEventHandler / How should I do to enable the mousewheel function to scroll the Spark List ? -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
Re: [flexcoders] Drawing a Grid
There is a limit of 8000 pixels or so. You can end up with artifacts if you go out beyond that. I would virtualize since you can only see 1000 pixels or so at a time. On 1/21/10 2:10 PM, flexaustin flexaus...@yahoo.com wrote: Does anyway happen to know the best way to draw a grid inside of Sprite that uses the least amount of mem/processing? I have a sprite that can be up to 40,000 pixels wides by 40,000 pixels high and I need to draw a grid in the background of the sprite, similar to Visio. The issue is when I just try drawing the lines in the sprite it takes up a huge amount of memory. I was wondering if maybe I only draw the lines 2x the width and height of the screen and then if the user scrolls the swf then redraw the lines based on position? Anyone ever tried this or have any suggestions or examples? -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
Re: [flexcoders] spark list functions missing?
I haven’t actually tried it but you could use 1. dataGroup.getElementAt 2. dataGroup.verticalScrollPosition 3. dataGroup.getElementAt(dataProvider.getItemIndex(item)) != null) 4. ensureIndexIsVisible On 1/21/10 7:14 PM, j2me_soul j2me_s...@163.com wrote: yes, I find this problem too. Is anybody figure out this ? 在2010-01-22 02:59:50,Ariel J arielj...@yahoo.com 写道: Where are these methods in the spark list control: 1) indexToItemRenderer() 2) set verticalScrollPosition() - that uses the index of the item in the data provider 3) isItemVisible() 4) scrollToIndex I am also not finding them in DataGroup. -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] Image not loading [1 Attachment]
Hi, In my application images are not laoding. I have attached the code.
Re: [flexcoders] Adobe pulls Single CPU and 100-user licenses
I am saddened by this situation... if you read a couple of posts on my blog you'll understand at least one of the reasons I left Adobe: http://blog.jvroom.com/2009/12/11/understanding-the-market-for-software-platforms/ http://blog.jvroom.com/2009/10/29/tips-for-buying-and-selling-enterprise-software/ In terms of how to go forward for customers that can't afford the new license, has anyone seen the flex 4 license for fds.swc? That gets shipped with the Flex Builder data tools and unless they changed things since I left, contains the client half of the LCDS APIs. Maybe there are restrictions in how that code can be used though? It has the hardest part of the association implementation, offline, etc. in there. If you can use all of the client features, you could emulate the server parts you use on blazeDS or GraniteDS so you can move your applications over to a different infrastructure without having pay the big license fee and rewrite your client apps. Doing simple CRUD stuff using BlazeDS would be pretty easy, in fact you can do that with FB 4 's data management just not using the assembler interface on the server. That does not do sync, associations, change batching though. The two trickiest features in LCDS2.6 were auto-sync and RTMP. If you don't need those (i.e. manual sync and long-polling are ok), it is not a huge bit of server code to replace the rest since most of that is in BlazeDS. Are there enough affect customers out there that we should start a project around this? I'm in the middle of a pretty big project of my own and so don't have a ton of time but would be happy to chip in. Jeff On Thu, Jan 21, 2010 at 7:38 AM, busitech m...@paradisesoftware.net wrote: I'm curious how many of your projects were deployed into production using the no-charge Single CPU (or the 100-user departmental) licenses of LCDS 2.x. Since the release of LCDS 3.0, neither of these licenses exist. This leaves our small business customers running in production using the Single CPU license with no upgrade path going forward, unless they can come up with the steep license fees for ES2. I doubt any of our customers will be able to afford it. Needless to say, this seriously impedes our ability to do business on the LCDS platform going forward in the SMB market we serve. It also leaves our hands tied with respect to the software we've already developed and deployed. BlazeDS is not an option - it would require a total rewrite of client and server, and mass annihilation of features. How are these changes affecting your business?
RE: [SPAM] [flexcoders] How to parse xml with namespaces
Namespaces are a pain. You can declare a default' namespace, assigning it http://www.w3.org/1999/xhtml;. That will give you access to the nodes without a specific namespace. Then I guess you will need to use the :: syntax for the specified namespcaces. Google this there are several detailed discussions. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of luketvanderfluit Sent: Thursday, January 21, 2010 10:04 PM To: flexcoders@yahoogroups.com Subject: [SPAM] [flexcoders] How to parse xml with namespaces Hi. Here is a snippet of xml: It contains an element with a namespace (c:question) and several elements without a namespace. If I get the whole thing as an XML object, how do I go about accessing all the different fields. E.G. I need to access the c:question text or c:question subelements So: 1. c:question text: This is a wine question 2. c:question subelements: p.ul.li: Penfolds Grange - no effect or p: A bottle shop in a remote country pub sells five different bottled wines. The publican increases the price of a bottle of Jacob's Creek core range by 50 cents. 3. question attribute format: radio Ive tried setting a namespace for c and a default namespace but cannot consistently access elements and values from both namespaces. Id love your help.. Thanks. Kr. Luke. = ?xml version=\1.0\ encoding=\UTF-8\? c:question xmlns=\http://www.w3. http://www.w3.org/1999/xhtml org/1999/xhtml\ xmlns:c=\http://www.eddygord http://www.eddygordon.com/namespaces/course on.com/namespaces/course\This is a wine question pA bottle shop in a remote country pub sells five different bottled wines. The publican increases the price of a bottle of Jacob's Creek core range by 50 cents. /p pAssuming that the prices of the other wines do not change, the Jacob's Creek price increase is likely to affect sales of the other products as follows: /p p ul liPenfolds Grange - no effect; /li liWyndham Estate Bin Range - the Wyndham Estate products are slightly more expensive but the price increase has narrowed the gap so a slight increase can be expected; /li liLindemans Bin Range - large increase in sales as this is a direct competitor; /li liRosemount Split Label Range - large increase in sales as this is a direct competitor /li /ul/ppBased on this information, which wines are in the same market as Jacob's Creek? /p question format=\radio\ name=\part1\ answer correct=\true\Lindemans Bin Range and Rosemount Split Label Range are definitely in the same market and Wyndham Estate may be. /answer answerPenfolds Grange is the only wine in the same market. /answer answerLindemans Bin Range and Rosemount Split Label Range are the only wines in the same market. /answer /questionp/ /c:question