[flexcoders] SQLite - Importing file
Is it possible for a Flex app to import a CSV file into the SQLite database? I know I could read the file with AS3, parse it as a CSV and insert the data ... but I see the sqlite3 has an import command and I just wondered if there was any other way for Flex to handle the importing of large text files on the client. -- Rick Root New Brian Vander Ark Album, songs in the music player and cool behind the scenes video at www.myspace.com/brianvanderark
Re: [flexcoders] SQLite - Importing file
Sadly that won't be an option in this case... I'm writing a desktop app that will parse locally generated text files and shoot the changes up to the server... since 80% or more of the data won't be changing on a daily basis. I still haven't decided if this is the best way to do it... rather than just shooting the whole data file up to the server and having the server do the parsing and updating. Rick On 2/4/08, Johannes Nel [EMAIL PROTECTED] wrote: i could not find an a way apart from parsing myself to do this. remember to use transactions for the insert. all this said, we build the sqlite db on the server and pump that down the wire. On Feb 4, 2008 11:22 AM, Rick Root [EMAIL PROTECTED] wrote: Is it possible for a Flex app to import a CSV file into the SQLite database? I know I could read the file with AS3, parse it as a CSV and insert the data ... but I see the sqlite3 has an import command and I just wondered if there was any other way for Flex to handle the importing of large text files on the client. -- Rick Root New Brian Vander Ark Album, songs in the music player and cool behind the scenes video at www.myspace.com/brianvanderark -- j:pn \\no comment -- Rick Root New Brian Vander Ark Album, songs in the music player and cool behind the scenes video at www.myspace.com/brianvanderark
[flexcoders] Type Coercion Issue with custom event
tryign to debug this line of code: systemManager.dispatchEvent(new AuthEvent(AuthEvent.AUTHSUCCESS, false, false, e)); You can view the entire function that line of code resides in here: http://cfm.pastebin.com/d3fcd26de steps into the systemManager object, then I step return and we're fine. Then step into the AuthEvent class.. also fine... I step over each until it returns to the above line. Here is the AuthEvent.as package ads.events { import flash.events.Event; import mx.rpc.events.ResultEvent; public class AuthEvent extends Event { public static const AUTHSUCCESS:String = 'authsuccess'; public static const AUTHFAILURE:String = 'authfailure'; public var authResult:ResultEvent = null; public function AuthEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false, authResult:ResultEvent=null) { this.authResult = authResult; super(type, bubbles, cancelable); } override public function clone():Event { return new AuthEvent(type, false, false, authResult); } } } At this point, the debugger shows this line still highlighted: systemManager.dispatchEvent(new AuthEvent(AuthEvent.AUTHSUCCESS, false, false, e)); And I do step into again... generates the following error: TypeError: Error #1034: Type Coercion failed: cannot convert ads.events::[EMAIL PROTECTED] to mx.rpc.events.ResultEvent. at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at ads::LoginWindow/authByUsernameResult()[C:\src\flexProjects\Components\ads\LoginWindow.mxml:83] so my question is - what's causing this problem? dispatchEvent() expects an Event, which it gets... so exactly why is anything being converted from ads.events.AuthEvent to mx.rpc.events.ResultEvent? Many thanks. -- Rick Root New Brian Vander Ark Album, songs in the music player and cool behind the scenes video at www.myspace.com/brianvanderark
Re: [flexcoders] Re: Type Coercion Issue with custom event
On 1/15/08, Alex Harui [EMAIL PROTECTED] wrote: You get this kind of error when one of the listeners is expecting a ResultEvent Thanks Alex.. I finally figured it out and was just coming back here to post. You are correct.. one of my listeners was listening for a ResultEvent... too bad FlexBuilder couldn't tell me that. At least now I'll remember to consider that if this comes up again! Rick -- Rick Root New Brian Vander Ark Album, songs in the music player and cool behind the scenes video at www.myspace.com/brianvanderark
[flexcoders] Coldfusion/Flex Developer
NO THIRD PARTIES!!! Hi all, We will VERY soon have an opening here at Duke in the Office of University Development. I don't have an official job description yet, but would like to solicit resumes of interested people. The position title is Sr. IT Analyst Primarily, the position will require advanced Coldfusion experience (3-5 years minimum) with experience using CFCs. No frameworks experience necessary. The position will also require intermediate experience using Flex 2. The more Flex experience, the better. The third major requirement would be database experience. We use SQL Server 2005 and DB2 - but I'm smart enough to know that any good RDBMS experience is fine. As long as you're pretty good with SQL. Good to have: Experience with CFREPORT and the Coldfusion Report Writer, basic java integration skills, linux/unix knowledge, experience with QAS, Cognos, SAS. This is a full time, salaried (monthly paid) position at Duke University in Durham, North Carolina. Great benefits (see http://hr.duke.edu/benefits/main.html ). This is NOT a telecommute opportunity. Please send your resume (PDF, Word, HTML, etc) and your salary requirements to [EMAIL PROTECTED] Put RESUME in the subject line. Thanks. Rick Root
[flexcoders] Re: shared object problem
ping On 12/17/07, Rick Root [EMAIL PROTECTED] wrote: Hi, I'm having a problem with a shared object.. it contains basically a coldfusion structure that holds a bunch of query reuslts and other structure elements. For some reason, I've started having trouble loading the shared object. I'm using Flex Builder 3 beta 2, compiling with the 2.0.1 hot fix 3 SDK. The specific error is: RangeError: Error #2006: The supplied index is out of bounds. at ObjectInput/readObject() at mx.collections::ArrayList/readExternal()[C:\dev\flex_201_gmc\sdk\frameworks\mx\collections\ArrayList.as:451] at mx.collections::ArrayCollection/readExternal()[C:\dev\flex_201_gmc\sdk\frameworks\mx\collections\ArrayCollection.as:130] at ObjectInput/readObject() at mx.utils::ObjectProxy/readExternal()[E:\dev\flex_201_borneo\sdk\frameworks\mx\utils\ObjectProxy.as:510] at flash.net::SharedObject$/getLocal() at views.criteria::queryTool/initQueryTool()[E:\Inetpub\flexProjects\Enquire\views\criteria\queryTool.mxml:43] at Enquire/initPostAuth() The line in question is simply this: soListData = SharedObject.getLocal('erListData3','/'); I haven't changed my code that deals with this shared object at all in quite some time I've only made a minor change to the coldfusion code that generates the structure of data but when I undo those changes, the problem is still occuring. I'm at a loss to figure out what's going on.. does anyone have any suggestions? Rick -- Rick Root Check out CFMBB, BlogCFM, ImageCFC, ImapCFC, CFFM, and more at www.opensourcecf.com -- Rick Root Check out CFMBB, BlogCFM, ImageCFC, ImapCFC, CFFM, and more at www.opensourcecf.com
[flexcoders] shared object problem
Hi, I'm having a problem with a shared object.. it contains basically a coldfusion structure that holds a bunch of query reuslts and other structure elements. For some reason, I've started having trouble loading the shared object. I'm using Flex Builder 3 beta 2, compiling with the 2.0.1 hot fix 3 SDK. The specific error is: RangeError: Error #2006: The supplied index is out of bounds. at ObjectInput/readObject() at mx.collections::ArrayList/readExternal()[C:\dev\flex_201_gmc\sdk\frameworks\mx\collections\ArrayList.as:451] at mx.collections::ArrayCollection/readExternal()[C:\dev\flex_201_gmc\sdk\frameworks\mx\collections\ArrayCollection.as:130] at ObjectInput/readObject() at mx.utils::ObjectProxy/readExternal()[E:\dev\flex_201_borneo\sdk\frameworks\mx\utils\ObjectProxy.as:510] at flash.net::SharedObject$/getLocal() at views.criteria::queryTool/initQueryTool()[E:\Inetpub\flexProjects\Enquire\views\criteria\queryTool.mxml:43] at Enquire/initPostAuth() The line in question is simply this: soListData = SharedObject.getLocal('erListData3','/'); I haven't changed my code that deals with this shared object at all in quite some time I've only made a minor change to the coldfusion code that generates the structure of data but when I undo those changes, the problem is still occuring. I'm at a loss to figure out what's going on.. does anyone have any suggestions? Rick -- Rick Root Check out CFMBB, BlogCFM, ImageCFC, ImapCFC, CFFM, and more at www.opensourcecf.com
Re: [flexcoders] Re: List Filter Problem driving me crazy!
(Sorry for quoting the whole freaking thing here... gmail won't let me edit the quoted part :( ) Alex, I am currently compiling using Flex Builder 3 and compiling my application with Flex 2.0.1 Hotfix 3 SDK. Under this scenario, the items do sometimes remain selected - but sometimes not. If I compile versus Flex 3 M3 (beta 2) SDK, I see that the items do not remain selected. so apparently, I was taking advantage of a bug in the Flex 2 SDK with the selectedIndices, eh? Bummer. so if I want these items to remain selected I need to store the list of selected items separately (as someone else mentioned on another list) But I still want them to appear selected in the list, after the a filter is removed or changed... is there a an event that fires off after a filter operation is completed? Also, I'm not sure how I can copy the item being selected to my temporary storage area... or more importantly, how to remove the item being deselected. The change() event on the list itself doesn't specific the item being clicked and whether its being selected or deselected... Any suggestions? Rick On 11/16/07, Alex Harui [EMAIL PROTECTED] wrote: Which version of Flex? Filtering essentially removes items from the List so it should drop its notion of what is selected. There were problems with selectedIndices in 2.x that should be fixed in 3.0 -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *ben.clinkinbeard *Sent:* Friday, November 16, 2007 10:30 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: List Filter Problem driving me crazy! Maybe call invalidateList() when the filter changes? Just a guess. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Rick Root [EMAIL PROTECTED] wrote: So I'm building an application which contains lists of items that I want users to be able to filter, select some items, filter again, select some more items, etc. However, when a selected item is filtered out, when the filter is removed, the item is no longer selected. Take the following example: http://www.it.dev.duke.edu/public/CheckBoxListTest/CheckBoxListTest.html select Item 1 then filter for Item 2... don't select anything. Remove the filter now. Item 1 is no longer selected. But the label still says it is selected.. the label is bound to the {cboRatings.selectedIndices.length} property. In my test application I can't get it to work the way I want it to at all. In my real application, it works sometimes but not others. I thought maybe it was the CheckBoxList component that someone had written for me... or the CheckBoxListItemRenderer that was part of that component, but i'm finding the same problem in the above test application which only uses a simple, standard list component. If it makes any different, I'm compiling the application with Flex Builder 3 (beta 2). I've compiled it with the Flex 2.0.1 HF3 SDK and the latest Flex 3 beta SDK. Why doesn't the list remember what's selected? Doesn't the filter simply prevent an item from displaying? -- Rick Root Check out CFMBB, BlogCFM, ImageCFC, ImapCFC, CFFM, and more at www.opensourcecf.com -- Rick Root Check out CFMBB, BlogCFM, ImageCFC, ImapCFC, CFFM, and more at www.opensourcecf.com
[flexcoders] List Filter Problem driving me crazy!
So I'm building an application which contains lists of items that I want users to be able to filter, select some items, filter again, select some more items, etc. However, when a selected item is filtered out, when the filter is removed, the item is no longer selected. Take the following example: http://www.it.dev.duke.edu/public/CheckBoxListTest/CheckBoxListTest.html select Item 1 then filter for Item 2... don't select anything. Remove the filter now. Item 1 is no longer selected. But the label still says it is selected.. the label is bound to the {cboRatings.selectedIndices.length} property. In my test application I can't get it to work the way I want it to at all. In my real application, it works sometimes but not others. I thought maybe it was the CheckBoxList component that someone had written for me... or the CheckBoxListItemRenderer that was part of that component, but i'm finding the same problem in the above test application which only uses a simple, standard list component. If it makes any different, I'm compiling the application with Flex Builder 3 (beta 2). I've compiled it with the Flex 2.0.1 HF3 SDK and the latest Flex 3 beta SDK. Why doesn't the list remember what's selected? Doesn't the filter simply prevent an item from displaying? -- Rick Root Check out CFMBB, BlogCFM, ImageCFC, ImapCFC, CFFM, and more at www.opensourcecf.com
Re: [flexcoders] Re: flex problem with coldfusion 8
I just had to create a sort functions for the columns, and use the sortCompareFunction property of the DataGridColumn. All is well now. private function sortLegal(obj1:Object, obj2:Object, fields:Array = null):Number { var total1:Number = Number(obj1.LEGCRAMT); var total2:Number = Number(obj2.LEGCRAMT); if(total1 total2) { return -1; } else { return 1; } } private function sortSoft(obj1:Object, obj2:Object, fields:Array = null):Number { var total1:Number = Number(obj1.SOFTAMT); var total2:Number = Number(obj2.SOFTAMT); if(total1 total2) { return -1; } else { return 1; } } -- Rick Root Check out CFMBB, BlogCFM, ImageCFC, ImapCFC, CFFM, and more at www.opensourcecf.com
[flexcoders] flex problem with coldfusion 8
I posted this problem to [EMAIL PROTECTED] a week or so ago but I haven't gotten a solution yet. So I'm trying flexcoders and cf-talk I have an application that doesn't seem to be working properly. Basically, I've got a query (in coldfusion 8) that returns a few columns directly to flex via a remoteobject call. Some of the columns are DECIMAL(10,2). Flex is interpreting the results as strings instead of numbers, so sorting data in my datagrid is failing to work properly. Here's my query (in cf): select DISTINCT GIFTAB1.ENTITY_ID, 'J. Q. Public' AS PREFERRED_NAME, GIFTAB1.CREDTDAT, CAST(GIFTAB1.LEGCRAMT AS money) AS LEGCRAMT, GIFTAB1.SOFTAMT FROM ... Note that I'm casing LEGCRAMT to money, while I'm leaving SOFTAMT as the regular type DECIMAL(10,2). My response handler in the Flex app: private function getMatchingGivingResult2(e:ResultEvent):void { var data = ArrayCollection(e.result); dgGivingHistory.dataProvider=data; refreshDataProvider(); } If I put a break in there, I see the contents of data, and both SOFTAMT and LEGCRAMT are strings. CREDTDAT is a date, as it should be. What's going on here? I need flex to understand that LEGCRAMT and SOFTAMT are numbers, not strings, so that when those numbers are sorted in the datagrid, they are sorted correctly. Thanks. -- Rick Root Check out CFMBB, BlogCFM, ImageCFC, ImapCFC, CFFM, and more at www.opensourcecf.com
[flexcoders] Flex Remoting over SSL - Coldfusion 8
Posted this to another list but haven't solved this problem yet... it really bugs me that this is so poorly documented. I have some Flex apps running that were running with a Coldfusion 7 backend using SSL. To do this, I merely modified the services-config.xml to use https instead of http, and changed the channel classes to the secure versions of those classes. All was well. Now that I've upgraded to Coldfusion 8, all my flex apps are sending their gateway requests over https. This is normal, of course, because I hadn't changed the config files yet. So I looked at the config files and I see there is now a services-config.xml and a remoting-config.xml. The services-config.xml contains channel definitions for both ssl and non-SSL (this is new)... the destinations are defined in remoting-config.xml. So I added a new destination called ColdFusionSSL - looks like this: destination id=ColdFusionSSL channels channel ref=my-cfamf-secure/ /channels properties source*/source !-- define the resolution rules and access level of the cfc being invoked -- access !-- Use the ColdFusion mappings to find CFCs, by default only CFC files under your webroot can be found. -- use-mappingsfalse/use-mappings !-- allow public and remote or just remote methods to be invoked -- method-access-levelremote/method-access-level /access property-case !-- cfc property names -- force-cfc-lowercasefalse/force-cfc-lowercase !-- Query column names -- force-query-lowercasefalse/force-query-lowercase !-- struct keys -- force-struct-lowercasefalse/force-struct-lowercase /property-case /properties /destination It's just a copy of the ColdFusion destination, except it refers to the secure channel. The secure channel is defined in the services-config.xml and was not changed. This is the default from CF8... channel-definition id=my-cfamf-secure class=mx.messaging.channels.SecureAMFChannel endpoint uri=https://{server.name}:{server.port}{context.root}/flex2gateway/cfamfsecure; class=flex.messaging.endpoints.SecureAMFEndpoint/ properties polling-enabledfalse/polling-enabled serialization instantiate-typesfalse/instantiate-types /serialization /properties /channel-definition I changed the destination of my mx:RemoteObject tags to refer to this new destination, compiled, and ran. No luck. I get the following error message: Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'https://advanceweb.ads.duke.edu/flex2gateway/cfamfsecure' I set the logging level to Debug and the following log entries appeared: [Flex] FlexSession created with id 'a430990913ea13bb4ad595c1936a7a554258TR' for an Http-based client connection. [Flex] Channel endpoint my-cfamf-secure received request. [Flex] Deserializing AMF/HTTP request Version: 3 (Message #0 targetURI=null, responseURI=/1) (Array #0) [0] = (Typed Object #0 'flex.messaging.messages.CommandMessage') operation = 5 correlationId = messageId = 987088B3-4172-5E89-C9BA-A5C58325ABE9 body = (Object #1) clientId = null timeToLive = 0 headers = (Object #2) DSId = nil timestamp = 0 destination = [Flex] Executed command: (default service) commandMessage: Flex Message (flex.messaging.messages.CommandMessage) operation = client_ping clientId = D9B7365E-821B-0933-EB49-0778BC185020 correlationId = destination = messageId = 987088B3-4172-5E89-C9BA-A5C58325ABE9 timestamp = 1192487125922 timeToLive = 0 body = {} hdr(DSId) = nil hdr(DSEndpoint) = my-cfamf-secure replyMessage: Flex Message (flex.messaging.messages.AcknowledgeMessage) clientId = D9B7365E-821B-0933-EB49-0778BC185020 correlationId = 987088B3-4172-5E89-C9BA-A5C58325ABE9 destination = null messageId = D9B7365E-822E-51FF-4E91-C20D589B541F timestamp = 1192487125922 timeToLive = 0 body = null hdr(DSId) = D9B7365E-820A-23DC-E6BB-A423E671BF99 [Flex] Serializing AMF/HTTP response Version: 3 (Message #0 targetURI=/1/onResult, responseURI=) (Typed Object #0 'flex.messaging.messages.AcknowledgeMessage') timestamp = 1.192487125922E12 headers = (Object #1) DSId = D9B7365E-820A-23DC-E6BB-A423E671BF99 body = null correlationId = 987088B3-4172-5E89-C9BA-A5C58325ABE9 messageId = D9B7365E-822E-51FF-4E91-C20D589B541F timeToLive = 0.0 clientId = D9B7365E-821B-0933-EB49-0778BC185020 destination = null Can anyone help me here? Why can't I get my flex apps to send the gateway requests over https? Thanks. Rick Root
[flexcoders] Flex 2, CF8, Remoting and SSL
(cross-posted from cf-talk) So I upgraded my server to CF8 this weekend, and of course once again, all my flex remoting calls are going over http instead of https. so I went into the remoting-config.xml (apparently this is where the destination Coldfusion is now defined... and I changed the default channel to my-cfamf-secure - a channel that is predefined in CF8's services-config.xml file I restarted the CF instances and recompiled my flex app... only now the attempted remoting request goes to https://advanceweb.ads.duke.edu/flex2gateway/cfamfsecure - as defined in services-config.xml This causes the following error: Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'https://advanceweb.ads.duke.edu/flex2gateway/cfamfsecure' The raw post (as seen by Fiddler2): POST /flex2gateway/cfamfsecure HTTP/1.1 Accept: */* Accept-Language: en-US Referer: https://advanceweb.ads.duke.edu/Enquire/Enquire.swf x-flash-version: 9,0,60,120 Content-Type: application/x-amf Content-Length: 223 UA-CPU: x86 Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2) Host: advanceweb.ads.duke.edu Connection: Keep-Alive Cache-Control: no-cache Cookie: CFID=xxx; CFTOKEN=xxx; FLASHCOOKIE=xxx; JSESSIONID=xxx; CFID=xxx; CFTOKEN=xxx; FLASHCOOKIE=xxx The raw response from the server: HTTP/1.1 200 OK Date: Thu, 04 Oct 2007 14:17:55 GMT Server: Microsoft-IIS/6.0 X-Powered-By: ASP.NET Expires: Sat, 25 Dec 1999 00:00:00 GMT Cache-Control: no-cache Content-Type: application/x-amf Content-Length: 331 There's no indication of an error - the response is status 200... but the method I'm calling is never called. In CF7, since I want *ALL* remoting requests to go over ssl, I just modified the my-cfamf endpoint to use SSL, without changing the default channel used or anything like that for the Coldfusion destination. I tried that in CF8 also with the broken results. How do I get my Flex remoting to work over SSL? -- Rick Root Check out CFMBB, BlogCFM, ImageCFC, ImapCFC, CFFM, and more at www.opensourcecf.com
[flexcoders] Sorting content in a List component
I have two lists, with the ability to drag items from one to the other. works fine.. However, my users have asked that the data in the destination list be sorted alphabetically rather than just dropped in place. I can't get this to work though. By default, the list items are dragged in and placed in the array collection where they are dropped. So I've added the following code to my dragComplete vent handler: var target:List = List(cboSelectedFundcodes); var sort:Sort = new Sort(); sort.fields = [new SortField(LABEL, true)]; ArrayCollection(target.dataProvider).sort = sort; ArrayCollection(target.dataProvider).refresh(); However, this doesn't seem to have any affect. Any suggestions? -- Rick Root Check out CFMBB, BlogCFM, ImageCFC, ImapCFC, CFFM, and more at www.opensourcecf.com
Re: [flexcoders] Sorting content in a List component
The data I want to sort on is the label, which is actually a row in the query that is returned... coldfusion manufacturers the label content in the query. So it's just a string. Rick On 10/2/07, Alex Harui [EMAIL PROTECTED] wrote: what does the data look like? -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Rick Root *Sent:* Tuesday, October 02, 2007 8:59 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Sorting content in a List component I have two lists, with the ability to drag items from one to the other. works fine.. However, my users have asked that the data in the destination list be sorted alphabetically rather than just dropped in place. I can't get this to work though. By default, the list items are dragged in and placed in the array collection where they are dropped. So I've added the following code to my dragComplete vent handler: var target:List = List(cboSelectedFundcodes); var sort:Sort = new Sort(); sort.fields = [new SortField(LABEL, true)]; ArrayCollection(target.dataProvider).sort = sort; ArrayCollection(target.dataProvider).refresh(); However, this doesn't seem to have any affect. Any suggestions? -- Rick Root Check out CFMBB, BlogCFM, ImageCFC, ImapCFC, CFFM, and more at www.opensourcecf.com -- Rick Root Check out CFMBB, BlogCFM, ImageCFC, ImapCFC, CFFM, and more at www.opensourcecf.com
Re: [flexcoders] Re: Problem filtering custom list component
Good to know that it's not just me, bad to know that it's a problem. My beta users (we're curretnly beta testing an application where I'm using this pretty heavily) absolutely love th feature. If they want to select 5 or so items from a list of several hundred, it makes things a LOT easier for them.. except when you select one item and it gets unselected when you filter again and select another item! :) Rick On 10/2/07, Charles Galpin [EMAIL PROTECTED] wrote: I wish I could help other than tell you I am facing similar problems with selections and think this stuff needs a good look at by adobe. I managed to make a simple test case that displayed my problem and Alex offered a workaround, but the workaround isn't working on my actual app! charles On Oct 2, 2007, at 12:03 PM, ricrootnc wrote: Ping Sadly, I'm still stumped by this one. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Rick Root [EMAIL PROTECTED] wrote: So I'm using this CheckBoxList component that someone on this list created for me. I've got a problem though when filtering the list using the dataProvider's filterFunction property. SOMETIMES the list items remain selected when they disappear from view due to being filtered, and sometimes they don't. The problem is somewhat erratic as to WHEN it happens. A secondary problem, which I can't replicate in my test app, is that when I clear the list by setting the selectedIndex property to -1, *SOMETIMES* the actual checkboxes stay checked, even though the items aren't selected any more (the blue highlight goes away, but the checkbox stays). The MXML code CheckBoxListTest.mxml, along with the components (CheckBoxList.as and CheckBoxListItemRenderer.as) are linkable from the test application: http://www.it.dev.duke.edu/public/CheckBoxListTest.html I appreciate any inside folks can offer. -- Rick Root Check out CFMBB, BlogCFM, ImageCFC, ImapCFC, CFFM, and more at www.opensourcecf.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%http://www.mail-archive.com/flexcoders%25 40yahoogroups.com Yahoo! Groups Links -- Rick Root Check out CFMBB, BlogCFM, ImageCFC, ImapCFC, CFFM, and more at www.opensourcecf.com
[flexcoders] Problem filtering custom list component
So I'm using this CheckBoxList component that someone on this list created for me. I've got a problem though when filtering the list using the dataProvider's filterFunction property. SOMETIMES the list items remain selected when they disappear from view due to being filtered, and sometimes they don't. The problem is somewhat erratic as to WHEN it happens. A secondary problem, which I can't replicate in my test app, is that when I clear the list by setting the selectedIndex property to -1, *SOMETIMES* the actual checkboxes stay checked, even though the items aren't selected any more (the blue highlight goes away, but the checkbox stays). The MXML code CheckBoxListTest.mxml, along with the components (CheckBoxList.as and CheckBoxListItemRenderer.as) are linkable from the test application: http://www.it.dev.duke.edu/public/CheckBoxListTest.html I appreciate any inside folks can offer. -- Rick Root Check out CFMBB, BlogCFM, ImageCFC, ImapCFC, CFFM, and more at www.opensourcecf.com
[flexcoders] REPOST: Problem switching to Flex Builder Plugin from standalone
(sorry if this shows up twice, I first sent it yesterday morning and it still hasn't shown up on this stupid list, I freakin HATE yahoo groups) I've been using a slightly modified version of this (as we discussed on the flexcoders list) for a while now: http://url.rickroot.com/u/18 I'm switching from the standalone flex builder to the flex builder plugin, and I can't get the app I use this in to compile anymore because of a strange error in this component: 1119: Access of possibly undefined property CHANGE through a reference with static type Class. EntityLookup/adsCheckBoxListItemRenderer.as /EntityLookup/ads/CheckBoxListItemRenderer.as Now, the line at which this error is occuring is in this method: override public function set listData(value:BaseListData):void { super.listData = value; this.selected = (listData.owner as ListBase).isItemSelected(listData.uid); //all we need to do is add an event listener to get notified whenever //there a change event dispatched by the main list control (value.owner as ListBase).addEventListener(ListEvent.CHANGE, listEventHandler); } I don't understand why it worked just fine before (when I was using FlexBuilder standaloen version) and it does not work in the plugin version Got any ideas? Rick
Re: [flexcoders] Problem removing popup window
On 4/19/07, Alex Harui [EMAIL PROTECTED] wrote: I think you just have to step into the removePopUp code and see what's up That seems reasonable - except it works fine when I put the breakpoint in. If I remove the breakpoint.. the popup doesn't get removed. That doesn't make any sense at all because the breakpoint should not affect how the code runs. Here's what I did. I set the breakpoint at this line: PopUpManager.removePopUp(this); Then I debug the app... it stops.. I step through all the stuff... and the popup is removed. So I debug the app again, this time I just continue after the breakpoint. Still, the popup is removed. So I remove the breakpoint, and debug again. This time, the popup is NOT removed. Rick
Re: [flexcoders] Security Sandbox Error
On 4/19/07, Alex Harui [EMAIL PROTECTED] wrote: What's the url of your swf? https://advanceweb.ads.duke.edu/entitylookup3/EntityLookup.swf. Loaded inside: https://advanceweb.ads.duke.edu/entitylookup3/index.cfm or sometimes: https://advanceweb.ads.duke.edu/entitylookup3/EntityLookup.html Either way, the SWF and the surrounding HTML file are always SSL. Rick
Re: [flexcoders] Problem resizing datagrid columns
On 4/19/07, Alex Harui [EMAIL PROTECTED] wrote: The DataGrid will not let you partially fill it with columns so it will stretch all or just the last column to completely cover its width. Man it bugs me that it takes 6 hours for my posts to show up on this list. I figured out the problem. I was actaully setting the minWidth =) *kicks self*
Re: [flexcoders] Security Sandbox Error
I'm posting a response I got off-list On 4/20/07, Matthew O'Meara [EMAIL PROTECTED] wrote: Likely when you are running from your dev environemnt it works fine, but when you run it through a browser on another machine is when it fails. Here's the rub! I don't have a dev environment. Shh, don't tell anyone. My swf files are compiled and generated to a directory mapped to the production web server...when I hit F11 to debug... sometimes I get the error, sometimes I don't. In any case, the SWF is *ALWAYS* located on the server, and it's ALWAYS accessed via SSL - both the SWF and the HTML file that flex generates. That being said... I tried the crossdomain.xml solution and it worked =) Thanks for the suggestion! Rick
Re: [flexcoders] Problem removing popup window
I also tried this within my progressWindow component... public function remove():void { callLater(remove2); } public function remove2():void { PopUpManager.removePopUp(this); } Which also didn't work. I mean, it still works in at all times in debug mode with the breakpoint.. but not without. Frustrating! Rick
Re: [flexcoders] Problem removing popup window
On 4/20/07, Tracy Spratt [EMAIL PROTECTED] wrote: Ah, try calling removePopup using callLater(). This magic incantation often solves problems like this for me. That's interesting doesn't seem to work... callLater(progressWindow.remove); //progressWindow.remove(); Seems to have no effect.. Rick
[flexcoders] Problem removing popup window
I have an application which uses PopUpManager to create a modal progress window. I do this in several locations in the app. The code in one component works... this one: private function runQuery():void { // blah blah blah lots of stuff here to reate xml and whatnot handleResponse = true; roAdvanceER.runQuery(reportXML); progressWindow = ProgressWindow(PopUpManager.createPopUp(this,ProgressWindow,true)); PopUpManager.centerPopUp(progressWindow); } public function runQueryResult(e:ResultEvent):void { if (!handleResponse) { return; } progressWindow.remove(); // blah blah blah lots of stuff here to handle result } I have what is essentially the EXACT same code in the other component.. but it doesn't work there. No errors are caused when I run it in debug mode.. it just doesn't remove the popup. I should mention... remove() is a public function of the progressWindow component.. it looks like this: public function remove():void { PopUpManager.removePopUp(this); } Since debugging doesn't seem to be helping.. how can I determine WHY the popup isn't being removed? I put a breakpoint at the remotePopUp line above... and it executes.. but doesn't remove the popup in some cases. Rick
[flexcoders] Problem resizing datagrid columns
I'm trying to specify the width of some datagrid columns and failing! The MXML code will follow my message the specific problem I'm having is with two simple columns that just contain text data... I'm trying to specify a width of 30 and they columns just won't shrink down to that size. they look fine in design view but render as if the minWidth was set to 70 (for the Status column) and 80 (for the type column). mx:DataGrid variableRowHeight=true id=dgResults doubleClickEnabled=true doubleClick=mx.core.Application.application.launchDetailsWindow(dgResults.selectedItem.ENTITYID); width=100% height=100% click=Alert.show(dgc1.width.toString(), 'width', Alert.OK); mx:columns mx:DataGridColumn headerText= width=30 dataField=ENTITYID mx:itemRenderer mx:Component mx:Canvas width=30 mx:Image source=/include/info-icon.gif/ /mx:Canvas /mx:Component /mx:itemRenderer /mx:DataGridColumn mx:DataGridColumn headerText=Entity ID width=80 dataField=ENTITYID mx:itemRenderer mx:Component mx:Label text={data.ENTITYID} selectable=true/ /mx:Component /mx:itemRenderer /mx:DataGridColumn mx:DataGridColumn headerText=Status minWidth=30 width=30 dataField=RECORD_STATUS dataTipField=RECORD_STATUS_DESC/ mx:DataGridColumn headerText=Type minWidth=30 width=30 dataField=RECORD_TYPE dataTipField=RECORD_TYPE_DESC id=dgc1/ mx:DataGridColumn headerText=Entity Details dataField=PRSRTNAM mx:itemRenderer mx:Component mx:Text htmlText={data.DETAILS}/ /mx:Component /mx:itemRenderer /mx:DataGridColumn mx:DataGridColumn headerText=Preferred Address dataField=PRSRTNAM sortable=false mx:itemRenderer mx:Component mx:Text htmlText={data.ADDRESSINFO}/ /mx:Component /mx:itemRenderer /mx:DataGridColumn /mx:columns /mx:DataGrid
[flexcoders] Security Sandbox Error
I get the following security error from time to time: Error #2044: Unhandled SecurityErrorEvent:. text=Error #2047: Security sandbox violation: LocalConnection.send: ads.duke.edu cannot access https://advanceweb.ads.duke.edu/entitylookup3/EntityLookup.swf. I can't seem to figure out why it happens some of the time and not others. And it doesn't seem to actually cause any problems. Rick
[flexcoders] Problem with calling web service
I'm trying to build a Flex File Manager (based on CFFM) and I'm using a web service to do all the work (rather than remoting).. I haven't done the web service thing in a while so I'm a little rusty - on the flex side, that is. Here's my MXML for the service: mx:WebService id=ws wsdl=http://localhost:8500/flexfm/flexfm.cfc?WSDL; showBusyCursor=true mx:operation name=init result=initResult(event) fault=genericFault(event)/ mx:operation name=getDirectory result=getDirectoryResult(event) fault=genericFault(event)/ /mx:WebService WHen I run ws.init(), I get a kind of generic web service error. Request implements version: http://schemas.xmlsoap.org/soap/envelope/, Response implements version null I don't know what's going on here. I googled the error result and there were zero results. I can load the WSDL just fine. I can call the methods via http GET just fine, they return the expected results. Can anyone offer some help here? Thanks. Rick -- CFMBB - Coldfusion Message Boards, Version 1.21 Now Available! http://www.cfmbb.org
Re: [flexcoders] List Control with checkbox items
On 3/28/07, Doug McCune [EMAIL PROTECTED] wrote: Not sure if this is what you were asking, but here's what I came up with: http://dougmccune.com/blog/2007/03/27/list-control-for-the-one-armed-man/ Doug, that's close, but you're emulating SHIFT-CLICK functionality... I'm looking to emulate CTRL-click functionality But maybe I can take your code and make it work. Rick
Re: [flexcoders] List Control with checkbox items
On 3/28/07, Rick Root [EMAIL PROTECTED] wrote: On 3/28/07, Doug McCune [EMAIL PROTECTED] wrote: Not sure if this is what you were asking, but here's what I came up with: http://dougmccune.com/blog/2007/03/27/list-control-for-the-one-armed-man/ http://dougmccune.com/blog/2007/03/27/list-control-for-the-one-armed-man/+ Doug, that's close, but you're emulating SHIFT-CLICK functionality... I'm looking to emulate CTRL-click functionality But maybe I can take your code and make it work. And I did! I'll email you the code off list if you're interested. Rick
[flexcoders] List Control with checkbox items
A while back, someone blogged about a custom component they'd built that rendered checkboxes in a select list. I can't find the blog entry, and I can't figure out how to do this myself. I tried using an item renderer, but the checkboxes didn't behave as I'd hoped. What I'm looking for is a way to a multi-select list control without the need for holding down the shift or control keys while selecting items.. Our users have this in an existing (VB) app right now and they like the extra visual feedback they get from the checkboxes along with not having to use extra key strokes to do the multiple selections. Any suggestions? rick -- CFMBB - Coldfusion Message Boards, Version 1.21 Now Available! http://www.cfmbb.org
Re: [flexcoders] List Control with checkbox items
(wow, gmail makes it difficult to quote emails from yahoo groups!) That almost works here's my MXML: mx:List allowMultipleSelection=true height=203 width=360 dataProvider={parentDocument.ro.getListData.lastResult.CONTROL_CODES} labelField=TABLFLD id=lstControlCodes rendererIsEditor=true itemRenderer=mx.controls.CheckBox /mx:List The problem here is that the checkboxes do not relate to the actual selected status of the items. For example, if I click 3 different items without holding down the control key, all 3 items have checkboxes, but only one (the last) is highlighted in blue.. meaning it's the only one REALLY selected as far as the list control is concerned. Rick -- CFMBB - Coldfusion Message Boards, Version 1.21 Now Available! http://www.cfmbb.org
Re: [flexcoders] List Control with checkbox items
Anyone else got any ideas here? On 3/27/07, Rick Root [EMAIL PROTECTED] wrote: (wow, gmail makes it difficult to quote emails from yahoo groups!) That almost works here's my MXML: mx:List allowMultipleSelection=true height=203 width=360 dataProvider={parentDocument.ro.getListData.lastResult.CONTROL_CODES} labelField=TABLFLD id=lstControlCodes rendererIsEditor=true itemRenderer=mx.controls.CheckBox /mx:List The problem here is that the checkboxes do not relate to the actual selected status of the items. For example, if I click 3 different items without holding down the control key, all 3 items have checkboxes, but only one (the last) is highlighted in blue.. meaning it's the only one REALLY selected as far as the list control is concerned. Rick -- CFMBB - Coldfusion Message Boards, Version 1.21 Now Available! http://www.cfmbb.org -- CFMBB - Coldfusion Message Boards, Version 1.21 Now Available! http://www.cfmbb.org
Re: [flexcoders] List Control with checkbox items
On 3/27/07, Clint Tredway [EMAIL PROTECTED] wrote: here is a couple of ideas. (I didnt test these, but either 'should work') 1. have a function tied to the click event of the checkbox that adds that index to the selectedItems of the list control 2. when submitting the info, loop through the list and check to see if any check boxes are checked. option 1 would mean you would need to change how your itemRenderer is built, but it should work. Good ideas.. I'll give them a try tomorrow! Thanks for the response. Rick
[flexcoders] Controlling item spacing in a vbox
I have a group of checkboxes that I'd like to put in a vbox. However, I need the spacing between the items in the box to be dramatically less than the standarding spacing because we have some real estate issues. I currently use absolute positioning on the checkboxes, and have them such that there is only about 1 px of space between each one. When I put them inside a vbox, they are automatically spaced in a way that I could only describe as double spacing... ie, there's room for another checkbox between each. I've tried setting the paddingTop and paddingBottom on the checkboxes and the vbox itself to no avail. Any suggestions? Rick -- CFMBB - Coldfusion Message Boards, Version 1.21 Now Available! http://www.cfmbb.org
[flexcoders] Checkbox Select List Component
Someone blogged about a custom component they'd built that was like a list component, but rendered the items as checkboxes... however I can't find it anywhere. Our users prefer the visual of the checkbox in a multi-select component, plus not having to SHIFT-click or CTRL-click makes it easier for them to use. Rick -- CFMBB - Coldfusion Message Boards, Version 1.21 Now Available! http://www.cfmbb.org
[flexcoders] Problem updating Flex Builder to 2.0.1
I'm attempting to update Flex Builder on my system from 2.0 to 2.0.1 Please note that Flex Builder 2 is running fine. When I run the installer (flexbuilder2_201updater.exe), I specify the location of Flex Builder 2 (C:\Program Files\Adobe\Flex Builder 2) and I get an error: Please choose an existing Eclipse 3.1 (or greater) folder to be updated. This folder must contain the standard Eclipse folders named 'plugins and features -- CFMBB - Coldfusion Message Boards, Version 1.21 Now Available! http://www.cfmbb.org
[flexcoders] Problem installing Flex 2.0.1 updater
I'm attempting to update Flex Builder on my system from 2.0 to 2.0.1 Please note that Flex Builder 2 is running fine. When I run the installer (flexbuilder2_201updater.exe), I specify the location of Flex Builder 2 (C:\Program Files\Adobe\Flex Builder 2) and I get an error: Please choose an existing Eclipse 3.1 (or greater) folder to be updated. This folder must contain the standard Eclipse folders named 'plugins and features The folder *DOES* contain those directories. So why can't I install the update? Rick -- CFMBB - Coldfusion Message Boards, Version 1.21 Now Available! http://www.cfmbb.org
[flexcoders] Re: Problem installing Flex 2.0.1 updater
BTW it would appear that nobody has ever had this problem before, because if I google for the exact phrase Please choose an existing Eclipse 3.1 there are zero documents. I'm always amazed when I google for something that doesn't exist! On 3/23/07, Rick Root [EMAIL PROTECTED] wrote: I'm attempting to update Flex Builder on my system from 2.0 to 2.0.1 Please note that Flex Builder 2 is running fine. When I run the installer (flexbuilder2_201updater.exe), I specify the location of Flex Builder 2 (C:\Program Files\Adobe\Flex Builder 2) and I get an error: Please choose an existing Eclipse 3.1 (or greater) folder to be updated. This folder must contain the standard Eclipse folders named 'plugins and features The folder *DOES* contain those directories. So why can't I install the update? Rick -- CFMBB - Coldfusion Message Boards, Version 1.21 Now Available! http://www.cfmbb.org -- CFMBB - Coldfusion Message Boards, Version 1.21 Now Available! http://www.cfmbb.org
[flexcoders] Determining the idle state of a flex application
Does anyone have any suggestions for monitoring idleness of a Flex application? The way my app works, pretty much any request to the server will renew a cookie for another 30 minutes.. so I could just have flex make a generic request every 10 minutes or so to avoid idling out, but I don't want to do that. What I'd like to do is perform that request - say every 5 minutes - if there has been any kind of activity in the flex app.. keyboard or mouse activity.. that way the server session stays active, and then if the user has been idle for more than 20 minutes (no keyboard or mouse activity) to actually blank the flex app window and pop up a login window, forcing the user to reauthenticate. I'm just not entirely sure of the best way to go about this. Rick -- I'm not certified, but I have been told that I'm certifiable... Visit http://www.opensourcecf.com today!
[flexcoders] Application Idleness
Does anyone have any suggestions for monitoring idleness of a Flex application? The way my app works, pretty much any request to the server will renew a cookie for another 30 minutes.. so I could just have flex make a generic request every 10 minutes or so to avoid idling out, but I don't want to do that (it's a violation of procedures set up during our last security audit!) What I'd like to do is perform that request - say every 5 minutes - if there has been any kind of activity in the flex app.. keyboard or mouse activity.. that way the server session stays active, and then if the user has been idle for more than 20 minutes (no keyboard or mouse activity) to actually blank the flex app window and pop up a login window, forcing the user to reauthenticate. I'm just not entirely sure of the best way to go about this. Rick -- I'm not certified, but I have been told that I'm certifiable... Visit http://www.opensourcecf.com today!
Re: [flexcoders] ColdFusion and Flex Integration - up to 10x gain, avoid cf object creation
I realize this discussion is all related to Cairngorn, and I don't use Cairngorn or really know what it is... but here's a question. If a CFC method returns a QUERY, then Coldfusion uses code optimized (in theory by Adobe engineers) in the flex connector to convert the query object to an array collection. Why write your own, non-optimized code, to have Coldfusion return an array of objects. Why not just return the query and let CF do the conversion. I'd be interested to know the comparison of returning the QUERY versus the array of (manually created) objects or the array of (manually created) structs. Rick
Re: [flexcoders] Coldfusion, Instances, and Flex Remoting
Shannon Hicks wrote: You should open up that services-config.xml I bet there's a misconfiguration in there. I wouldn't know what to look for. Nothing in there seems to specify the instance or anything like that. In fact, since all remoting calls are just AMF requests over HTTP(s) to the /flexgateway, I'm not sure i I can even do what I'm trying to do. The Adobe guy said I could.. but I don't see how, since all flex remoting requests come through the same url (for a given domain, such as www.it.dev.duke.edu/flexgateway ).. Rick -- 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 * 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Launching a details window
In my app, I'm looking up information on users within our database. the search results are loaded into a datagrid in the main application. When you click on one of those results, I'm using a popup title window component to show details about that user. the init function (via the creationcomplete event) loads all of the details about that user into an object and populates the overview screen. There are also 20+ windows that will contain all kinds of detailed information about the user - for example, addresses. Since I've already got the data completely loaded into an object in the overview window... How to I reference that object in the subsequent popup window? The overview window declares a private variable eInfo like this: private var eInfo:Object = null; A user can have more than one open overview window .. but the details windows will be modal. I'm launching the Details window like this: dataWindow = PopUpManager.createPopUp(tnDetails, DataSummary, true); In the details window (another titlewindow component, named DataSummary), I don't know how to properly access the eInfo object from the calling overview window. How do I connect the two? Rick -- 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 * 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Flex 2.1?
Adam Reynolds wrote: I am interested in when/if Flex 2.1/2.0.1 is around the corner? I've heard nothing about a bug fix release yet, but I'm not in the know :) I'm taking my cue from Coldfusion MX 6 on this which only really became viable with the release of 6.1. I have noticed a number of bug posts, but nothing critical which is great. That's really an invalid comparison. Coldfusion MX 6 was horrifically buggy from the start. It underwent a very limited beta, and it was a *MASSIVE* change in architecture in going from native C code to a java-based setup. Flex 2 - although it is a pretty significant update from Flex 1.5 - underwent a very in depth public beta, and aside from such minor bug reports as you may have seen, works quite well. I'm unfortunately being very pragmatic about this and am planning to begin serious development when I get the time (hard part) and ideally once there has been at least one 'patch' to Flex 2. Don't waste your time waiting. Even if there is a bug fix update to Flex 2, it won't be dramatic, because obviously Flex 2 already works really well. So you can start your learning curve now, or start it at some unspecified point in the future. Rick -- 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 * 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Flex License
Ritesh Jariwala wrote: Do my client require any kind of license to run the application because flex sdk is free. The swf's require no licence. Licenses for Flex only apply to Flex Builder (for the developer) and Flex Data Services (on the server, if used). Rick -- 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 * 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] mx:renderer not found
zenwarden wrote: What am I doing wrong? First thing you are doing wrong is not mentioning what version of flex you're using :) Flex 2 doesn't seem to have an mx:renderer tag. So if you're using Flex 2... maybe that's your problem. Rick -- 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 * 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Flex 2 Question
Eric Fleming wrote: I am at the beginning stages of learning Flex 2 but I cannot find any information about this online. If I have an application that has 5 tabs and when you click on a tab it will load a different form in each tab. Is there a way that the form can be loaded at runtime so that if you only click on two of the tabs, the other three are never loaded? Containers, like tab navigators, accordions, etc, have a creationPolicy parameter that controls this behavior. http://livedocs.macromedia.com/flex/2/langref/mx/core/Container.html#creationPolicy or http://tinyurl.com/y2bhd4 If you set creationPolicy=all, all of the tabs will be loaded right away. There was a holy war about this a week or so ago. :) Rick -- 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 * 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] input type=reset
DJ Lift wrote: Hey there, Is there something in flex that's similar to the input type=reset in html? So that all the form fields will reset to the values they were created with? Or do you have to program this yourself? Not that I'm aware of. I recently had to do this and just ended up programming a reset function for the form. Rick -- 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 * 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Custom datagridcolumns
ping... Rick Root wrote: I'm working on a datagrid that has various formatted items in it.. several currency columns, a data column, etc. Using a label function for each seems somewhat overkill. Ie... mx:DataGridColumn width=80 headerText=Legal Credit labelFunction=formatLegalCredit/ And here's my function: public function formatLegalCredit(data, col):String { var currency = new CurrencyFormatter(); currency.precision = 2; currency.rounding = nearest; return currency.format(data.LEGCRAMT); } But I'd have to build this function for every column with a number in it. Bleagh. Gotta be a better way. Can I build a datagridcolumn that automatically has a currencyFormatter - or a dataFormatter - built into it? Is there a better way? Rick -- 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 * 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Accordion initialization problem
Dirk Eismann wrote: You probably need to look at creationPolicy specifically all. oh oh... infinite loop :) Yahoo's greylisting on groups is kind of annoying. Sometimes people respond right away but their emails don't show up for an hour if they haven't posted in a while! Rick -- 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 * 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Filtering a Datagrid
Let's say I've got a datagrid containing a persons gifts to the University. Each item has a gift id, pledge id, legal and soft credit amounts, a fund code to which the gift is being credited, etc. By default, the grid loads all of a persons gifts. I'd like to be able to filter the data by fund - A simple way is to just use the sort functionality of the columns themselves, and then just havee them scroll down to find what they're looking for. But is there a simple way to filter the contents of a datagrid without going back to the server to re-retrieve the results? I could probably put the dataProvider into memory, then loop through it, creating a filtered dataprovider and assign it to the grid.. but I'm kind of hoping for a simpler solution :) rick -- 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 * 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Filtering a Datagrid
Excellent, thanks all.. those suggestions worked great. The cflex example was very nice. Rick -- 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 * 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Custom datagridcolumns
Thanks Michael... the key part was that I didn't understand the purpose of passing in the datagridcolumn object itself so I wasn't thinking dynamically return currency.format(data[ column.dataField ]); works great, so now I have a single currencyFormat label function... (and another for date formatting) Rick -- 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 * 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Accordion initialization problem
I'm building an application with an accordion pane, and I'm having problems accessing objects declared within a child panel. For example, look at the code I've attached to the end of this email... When you click any of the buttons, you get the following error: TypeError: Error #1009: Cannot access a property or method of a null object reference. at testProject/::toggleAccordion() at testProject/___Button1_click() ONLY AFTER VIEWING the second accordion pane does this go away. It's as if the children of the accordion pane aren't initialized until they are displayed. What's up with that? Here's the sample code: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.controls.Alert; private function toggleAccordion(idx:int) { acdMain.selectedIndex = idx-1; Alert.show(foo.text, 'test', Alert.OK); } ]] /mx:Script mx:Accordion left=10 right=10 top=40 bottom=10 id=acdMain mx:Canvas label=Pane 1 width=100% height=100% /mx:Canvas mx:Canvas label=Pane 2 width=100% height=100% mx:Label id=foo text=foo/ /mx:Canvas mx:Canvas label=Pane 3 width=100% height=100% /mx:Canvas /mx:Accordion mx:Button x=10 y=10 label=Button 1 click=toggleAccordion(1);/ mx:Button x=83 y=10 label=Button 2 click=toggleAccordion(2);/ mx:Button x=156 y=10 label=Button 3 click=toggleAccordion(3);/ /mx:Application rick -- 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 * 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Problem with setFocus()
I'm trying to use setFocus() to put the focus on a text input when my application starts. However, most of the time, I get the blue halo around the text input, but no cursor. I can't type until I click in the text input to put the cursor there. I'm using Flex Builder's generated HTML/javascript page for embedding the flex app, so I don't have the click to activate problem... rick -- 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 * 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Custom datagridcolumns
I'm working on a datagrid that has various formatted items in it.. several currency columns, a data column, etc. Using a label function for each seems somewhat overkill. Ie... mx:DataGridColumn width=80 headerText=Legal Credit labelFunction=formatLegalCredit/ And here's my function: public function formatLegalCredit(data, col):String { var currency = new CurrencyFormatter(); currency.precision = 2; currency.rounding = nearest; return currency.format(data.LEGCRAMT); } But I'd have to build this function for every column with a number in it. Bleagh. Gotta be a better way. Can I build a datagridcolumn that automatically has a currencyFormatter - or a dataFormatter - built into it? Is there a better way? Rick -- 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 * 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Flex academic/volune licensing
Matt Chotin wrote: Dave Gruber from Adobe tried to respond but I haven’t seen his post come through so let me re-post it. Thanks Matt, I got his response off list yesterday and responded. Unfortunately, FDS Express doesn't work for us cuz our machine has two CPUs. Unless FDS Express can be configured to only use one CPU even though it is installed on a 2 CPU machine. That's not mentioned in the FDS Express FAQ so I doubt it. I suppose my other option would be to buy a separate, single CPU server to run FDS Express on. FDS doesn't have to be on the same machine as Coldfusion, right? Rick -- 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 * 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Disappearing list items
Rick Root wrote: lyon.james wrote: I saw very similar things happen with list and datagrid controls, and we found out that our database fields had hidden ASCII markup (/r,/n,etc.) We cleared out that data and haven't seen problems again. This might be it, I'll have to check on Monday the problem didn't start occuring until I switched the database for the application from our local SQL Server repository to the DB2 mainframe.. Alas that wasn't it. I did notice this morning that it's *NOT* random. Every 5th item label is missing - even though the data is there. rick -- 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 * 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Disappearing list items
so, I solved this problem. My data provider was a query returned by a remoting call created like this: cfquery name=qry2 dbtype=query SELECT TABLKEY, TABLFLD FROM application.udf.getalldropdowns WHERE TABLID = '010' ORDER BY TABLFLD /cfquery cfset queryaddrow(qry2,1) cfset querysetcell(qry2,TABLKEY,) cfset querysetcell(qry2,TABLFLD,) cfquery name=qry dbtype=query SELECT * FROM qry2 ORDER BY TABLFLD /cfquery cfset retval.COUNTRIES = qry I did it this way so I could always have a blank item in the dropdown The solution was to change the second querysetcell line to be the following: cfset querysetcell(qry2,TABLFLD,- not selected -) For some reason, the blank item caused every 5th label to disappear for no apparent reason. This seems like a bug. What's the address to report flex bugs to? Rick -- 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 * 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Disappearing list items
Shannon Hicks wrote: I see two things I'd do differently... 1. querysetcell takes three arguments... querycetcell(query,column,value,row) third argument is optional, and defaults to the last row. QueryAddRow always adds to the end of a query, so the default is perfectly acceptable. 2. you don't need to do the query of a query at the end you can just do cfset retval.COUNTRIES = qry2 I could do that if I wanted the query in the exact same order. However, since I want the blank row that I added to be at the BEGINNING of the query, I have to do the query of queries rick -- 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 * 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Disappearing list items
Douglas Knudsen wrote: odd. Myself, I prefer not to return queries from CF to Flex. Instead convert to a array of objects or XML. That said, maybe try using the SQL for it direct, in case the Query functions are flaking somehow. The below would be for Oracle. You can't combine a query of queries with a database query in a single query. My datasource is application.udf.getalldropdowns, not a database table. And unfortunately, coldfusion requires a from clause and there is no dual. Or sysibm.sysdummy1. I suppose I could create a single row query to do the union with... That does work. Still doesn't solve the problem if the first items label field is an empty string. I reversed the order with the empty label at the end and everything was fine.. only when the empty label was the first item... crazy. At any rate, I'm perfectly happy with the solution of my labels being - not selected - instead of empty. Rick -- 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 * 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Disappearing list items
Aaron West wrote: Douglas, out of curiosity how come you prefer to not send queries from CF to Flex? Also, what do you do instead? You mentioned converting the query record-set to an Array of Objects or XML. What benefits do you get on the Flex end for doing this considering its more work for CF? I can't speak for Douglas, but I know that some people don't use coldfusion queries because they aren't portable objects.. ie, in the web service world, if you want your web service to be consumed by something other than flash player or coldfusion, you can't use queries as return types. Personally, since I know that the flash player is my recipient, I'd rather keep things simple and just return query objects. Rick -- 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 * 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Flex academic/volune licensing
Back when Flex 1 was announced, it was really expensive, like $15k for a 2 CPU server license. But there was a nice discount through the old MVLP volume licencing program where it was only like $7500. And there were no connection limitations or anything then. It was still on the pricey side for us and so we didn't buy. Flex 2 was announced, and after about a week or so I was able to get a volumn licencing price for Flex Builder 2 (our cost was ridiculously low), but there was no discounted prices for Flex Data Services. I've just been told that there is STILL no discounted pricing whatsoever on Flex Data Services. What's up with that?so I'm stuck buying a 2 CPU license for up to 100 concurrent connections for $12,000, or $40k for unlimited connections. Have I been misinformed by the reseller that I spoke with? My department doesn't exactly have bulging pockets full of $40,000 bills. Adobe seems to think everyone who wants to use Flex Data Services must be rich. Rick -- 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 * 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Disappearing list items
lyon.james wrote: I saw very similar things happen with list and datagrid controls, and we found out that our database fields had hidden ASCII markup (/r,/n,etc.) We cleared out that data and haven't seen problems again. This might be it, I'll have to check on Monday the problem didn't start occuring until I switched the database for the application from our local SQL Server repository to the DB2 mainframe.. Rick -- 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 * 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Disappearing list items
I have a flex app with several drop down select lists. Some of the item labels are not appearing (ie, showing up blank) for no discernable reason, and they do so in seemingly random fashion. I've animated a gif to show you what's happening.. https://www.it.dev.duke.edu/public/flexbug1.gif I don't have anything really strange in my mxml.. here's the tag: mx:ComboBox id=cboRecordTypes dataProvider={Application.application.ro.getListData.lastResult.RECORD_TYPES} labelField=TABLFLD change=RECTYPE.text=cboRecordTypes.selectedItem.TABLKEY;/mx:ComboBox Can anyone figure out what's going on here? rick -- 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 * 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [Junk E-Mail - MED] [flexcoders] Disappearing list items
Shannon Hicks wrote: I hate to ask the obvious, but does your dataprovider have empty rows in it? No. As you can see from the example I provided, when I select one of the items with the missing label, the label actually does appear The animated gif shows this behavior: https://www.it.dev.duke.edu/public/flexbug1.gif Rick -- 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 * 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Problem with DataGrid itemFocusIn event
I have a flex 2 application with a datagrid. I want to kick off a function when a row in the datagrid receives focus. So I'm trying to use the itemFocusIn event, as described here: http://livedocs.macromedia.com/flex/2/langref/mx/controls/DataGrid.html#event:itemFocusIn Here's my MXML: mx:DataGrid width=500 left=10 top=40 bottom=10 id=dgMoves dataProvider={ro.getMoves.lastResult} itemFocusIn=showDetails(event); Here's my function: public function showDetails(e:mx.events.DataGridEvent):void { var row:Object = dgMoves.dataProvider[e.rowIndex]; Alert.show(row.toString(),'row',Alert.OK); } No There are no compilation errors, but the showDetails() function doesn't get called when items in the datagrid recevie focus. A simple google search for flex itemFocusIn yields nothing useful ( http://www.google.com/search?q=flex+itemFocusIn ) Is there another event I should be using? Rick -- 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 * 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] state problem
I'm trying to work with states and having some difficulty. Here is my state code in the MXML: mx:states mx:State name=details mx:SetStyle target={dgCorpMoveSummary} name=visible value=0/ mx:SetStyle target={btnBack} name=enabled value=1/ /mx:State /mx:states I get no errors when compiling. The following function is executed: public function getMovesResult(e:ResultEvent):void { txtTitle.text = 'Moves against ' + e.result[0].PRMLNAME; currentState = 'details'; Alert.show(currentState, 'Current State', Alert.OK); } The alert shows the current state is details but the datagrid is still visible, and the button is dstill disabled. Everything looks fine in flex builder's design mode when I switch states, so I don't understand why it isn't working when I run the app. Rick -- 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 * 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: state problem
thunderstumpgesatwork wrote: 'visible' and 'enabled' are properties, not styles. Try changing the That's what I get for doing a copy and paste! Thanks all! Rick -- 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 * 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: state problem
Well this is downright strange... I changed mx:SetStyle .. to mx:SetProperty and the *APP* works now, but design mode doesn't show it. In design mode, it behaved properly when i switched states when I used mx:SetStyle ... to adjust the visible and enabled properties. Rick -- 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 * 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Flashmaps and Flex 2
Has anyone tried integrationg Flashmaps (www.flashmaps.com) into a Flex 2 application? A google query for flashmaps Flex 2doesn't yield many results... Rick -- 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 * 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Moving the Datagrid Sort Arrow
It appears on the right side of the column. How can I get it to appear on the left side of the column? I looked at the documentation for mx.skins.halo.DataGridSortArrow but that didn't really help me much. Rick -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Calling functions from an itemRenderer
I've got an itemRenderer in a datagrid that's rendering a linkbutton with a script. The following doesn't work because it's not valid XML, with the symbols in the click value... mx:DataGridColumn headerText=Entity ID width=100 dataField=ENTITYID mx:itemRenderer mx:Component mx:LinkButton label={data.ENTITYID} click=navigateToURL(new URLRequest(javascript:popup_ultraslim('/tools/entityLookup3/entity_details.cfm?ENTITYID= + this.label + ',750,550)), '_self');/ /mx:Component /mx:itemRenderer /mx:DataGridColumn I originally had a function defined in the same file that did that and I called like like this: mx:LinkButton label={data.ENTITYID} click=launchDetailsWindow(this.label);/ But it kept telling me that launchDetailsWindow was a possibly undefined function, leading me to believe that I don't understand scoping in itemrenders :) Rick -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Calling functions from an itemRenderer
Douglas Knudsen wrote: extract the URLRequest() call to a AS method. make sure your mx:script block has the CDATA schtuffs. This is what I had done, as mentioned here: I originally had a function defined in the same file that did that and I called like like this: mx:LinkButton label={data.ENTITYID} click=launchDetailsWindow(this.label);/ But it kept telling me that launchDetailsWindow was a possibly undefined function, leading me to believe that I don't understand scoping in itemrenders :) I had also tried Application.application.launchDetailsWindow(this.label); which also didn't work. so I just added mx.core. to the front of it and it's good now. Rick -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] SOT: Flash Player 9 distribution
I don't want to have to tell my client base *NOT* to download the Yahoo Toolbar, and it annoys the heck out of me that Adobe puts that on their download page and checks it by default. Are there any other options besides directing people to the adobe page herE: http://www.macromedia.com/go/getflashplayer Rick -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] SOT: Flash Player 9 distribution
John Dowdell wrote: FAQ here: http://www.adobe.com/products/flashplayer/productinfo/faq/#item-4-1 http://www.adobe.com/products/flashplayer/productinfo/faq/#item-4-1 Summary, as I recall: Those few IE/Win users who do not use the normal ActiveX background installation, but are instead directed to the Adobe webpages, are the ones who can see additional download offers on those pages. Specifying a minimum version in your OBJECT tag should be enough to avoid any exposure to unwanted offers. That's not really suitable IMO. I've found the automated install process to be less than reliable - numerous people that I've asked to test our new flex apps have gotten a Connecting.. dialog who were running Flash 7/8 that just hung there forever... before we roll out any flex apps I'd like to recommend people to to a web site to install because it seems to be more reliable that way. I second the idea about Adobe making enough money off their products that they shouldn't need to throw that yahoo toolbar crap at everyone. And don't give me the They can uncheck the box line either. You and I may be smart enough to do that but there are a phenomenal amount of people out there who just accept the defaults. Rick -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Image manipulation on client side
edugalvez wrote: Any idea? To expand on my last message.. if you're using something like Coldfusion on the backside, you could upload the jpg and load it into the flex app dynamically (I think)... and then use web service / flex remoting calls to a CFC that would perform server side image manipulation and cause the manipulated image to be reloaded into the flex app. Rick -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Image manipulation on client side
edugalvez wrote: Any idea? I don't wanna say it can't be done but... I'm pretty sure it can't be done. Not with the flash player at least. Not on the client side. Why not upload to the server and then manipulate? Rick -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] help with Variable scoping, namespaces, etc
I'm working on an app with a mainPanel and a couple of popup windows that do various things.. one of them allows a user to enter search criteria, and then the grid on the main panel is populated with results. The other popup allows a user to select options for dropping the data to a file. The main app contains the following actionscript code: ### public var lookupPeopleCriteria:Object; private function lookupPeople(criteria:Object):void { lookupPeopleCriteria = criteria; ro.lookupPeople(criteria); } public function generateDrop(colNames:Array):void { Alert.show(colNames.toString(),'OK',Alert.OK); Alert.show(lookupPeopleCriteria.toString(),'OK',Alert.OK); } ### lookupPeople() is called when the search criteria window is submitted and closed.. the criteria is passed in, and then assigned to the lookupPeopleCriteria variable. The remote service runs fine and the grid is populated. When I open my drop options window, and choose my options, and submit/close that window, it callls the generateDrop() function and passes in some column names in an array. the first alert works fine, but the second does not, and generates the following error TypeError: Error #1009: Cannot access a property or method of a null object reference. at DropOptionsWindow/::generateDrop() at DropOptionsWindow/__btnGenerateDrop_click() I think the problem here is that I don't fully understand how scoping works. I thought that declaring the lookupPeopleCriteria object outside of the function as a public variable would cause it to be accessible and to remain in memory even after the lookupPeople() function call is completed, but apparently, that is not the case. Rick -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] help with Variable scoping, namespaces, etc
Well, thanks to the flex debugger I found my problem. The lookupPeople() function wasn't being called in the main app, I was calling the remote object directly from the popup window. doh! thank you flex debugger ;) Rick -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] accessing item data in an XMLList
Gordon Smith wrote: Your code is properly traversing all nodes, including the root node. But when you recursively call showList(item.children()), the first thing that happens is that you set txtResults.txt = ; DING DING DING! Thanks Gordon. You see when I wrote the function originally I hadn't planned on it being recursive. I added an optional parameter to the function call that defines whether or not it's a recursive call, and then I only reset the txt if it is. node or not. (Shameless plug for spending money on FlexBuidler... it would have saved you 7 hours!) I have Flex Builder, and it only cost us $35 here thanks to a fabulous CLP program discount! I just forgot about the debugger. Thanks again Gordon. Rick -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Scoping Assistance
I'm working on an app with a mainPanel and a couple of popup windows that do various things.. one of them allows a user to enter search criteria, and then the grid on the main panel is populated with results. The other popup allows a user to select options for dropping the data to a file. The main app contains the following actionscript code: ### public var lookupPeopleCriteria:Object; private function lookupPeople(criteria:Object):void { lookupPeopleCriteria = criteria; ro.lookupPeople(criteria); } public function generateDrop(colNames:Array):void { Alert.show(colNames.toString(),'OK',Alert.OK); Alert.show(lookupPeopleCriteria.toString(),'OK',Alert.OK); } ### lookupPeople() is called when the search criteria window is submitted and closed.. the criteria is passed in, and then assigned to the lookupPeopleCriteria variable. The remote service runs fine and the grid is populated. When I open my drop options window, and choose my options, and submit/close that window, it callls the generateDrop() function and passes in some column names in an array. the first alert works fine, but the second does not, and generates the following error TypeError: Error #1009: Cannot access a property or method of a null object reference. at DropOptionsWindow/::generateDrop() at DropOptionsWindow/__btnGenerateDrop_click() I think the problem here is that I don't fully understand how scoping works. I thought that declaring the lookupPeopleCriteria object outside of the function as a public variable would cause it to be accessible and to remain in memory even after the lookupPeople() function call is completed, but apparently, that is not the case. Rick -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: XMLList with a single item as a dataprovder
Doug Lowder wrote: Here's the answer: http://livedocs.macromedia.com/flex/2/langref/XMLList.html#toXMLString http://livedocs.macromedia.com/flex/2/langref/XMLList.html#toXMLString() Thanks Doug.. so I was just using the wrong method. rick -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] accessing item data in an XMLList
So far, I've been unable to find examples of using a tree control and sending its data to a web service, remote object, etc. Lots of example code on using the tree control, enabling drag and drop, putting different kidns of data INTO the tree control- but nothing about getting the data out of it. My tree control is driven by an XMLList object. What i'd like to do is get an array of all the labels for each node, but I'm not having any luck. Here are my sample XMLList objects: mx:XMLList id=treeData1 node label=One item with subitem node label=Subitem/ /node /mx:XMLList mx:XMLList id=treeData2 node label=One Item Only/ /mx:XMLList and here is my function that shows me the items in the tree: private function showList(list):void { var item:XML; txtResults.text = ''; for each(item in list) { txtResults.text += item: + item.attribute('label') + '\n'; if (item.elements().length() 0) { showList(item.children()); } } } Unfortunately, it doesn't seem to return the label on the root node. I've also tried adding the following line above the for loop to no avail: txtResults += list.attribute('label'); Can someone point me in the right direction? Rick -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] accessing item data in an XMLList
ping... 7 hours later I haven't come up with a solution.. anyone? I suppose I could send the whole XMLList object to coldfusion as a string and have Coldfusion parse it, but that seems like an unnecessary use of network bandwidth when all I really want are the labels compiled into an array and sent. Rick Rick Root wrote: So far, I've been unable to find examples of using a tree control and sending its data to a web service, remote object, etc. Lots of example code on using the tree control, enabling drag and drop, putting different kidns of data INTO the tree control- but nothing about getting the data out of it. My tree control is driven by an XMLList object. What i'd like to do is get an array of all the labels for each node, but I'm not having any luck. Here are my sample XMLList objects: mx:XMLList id=treeData1 node label=One item with subitem node label=Subitem/ /node /mx:XMLList mx:XMLList id=treeData2 node label=One Item Only/ /mx:XMLList and here is my function that shows me the items in the tree: private function showList(list):void { var item:XML; txtResults.text = ''; for each(item in list) { txtResults.text += item: + item.attribute('label') + '\n'; if (item.elements().length() 0) { showList(item.children()); } } } Unfortunately, it doesn't seem to return the label on the root node. I've also tried adding the following line above the for loop to no avail: txtResults += list.attribute('label'); Can someone point me in the right direction? -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] XMLList with a single item as a dataprovder
Why can the XMLList object with a single node and no subitems be used as a dataprovider for a list driven item, such as a tree, but I can't dump it out using the inherited toString() method? For an example, please take a look at the following simple flex app. It contains two trees, each populated with data from an XMLList object. One of those has only a single node with no subitems, the other has a single node with one subitem. https://www.it.dev.duke.edu/temp/flex/bin/Test.html source: https://www.it.dev.duke.edu/temp/flex/Test.txt As you can see, in both cases, the data shows up in the tree items exactly as you would expect. But when I try to dump it to a textarea, the XMLList object with the single node and no subitems doesn't appear. I have read the documentation on XML on livedocs and looked at the XMLList documentation as well. Allegedly, the answer to my question is in there but I can't find it. rick -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Is this a bug, or is it just me?
sinatosk wrote: hmm... that shouldn't happen... so I'm gonna guessing it's something to do with the way you coded it. Can you post the code that outputs the text to the textarea? if so... post it please Right click on the flex app and view source. https://www.it.dev.duke.edu/temp/flex/bin/Test.html -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Is this a bug, or is it just me?
I still don't understand the following. When you drag one item over, it appears in the tree. The tree has a dataProvider. It contains that one item. dest.dataProvider.toString() absolutely should show something. I understand the whole root node thing, it still doesn't explain why I can't dump the dataProvider using the object's toString() method, because it STILL HAS DATA. Rick -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] UI Design Help
I'm building an app that will replace a current HTML-based app that allows users to search our database and then do a file drop of the results in CSV/Excel/Tab format. They have the ability to choose which fields to drop, if they want.. so I've got an HTML format that looks like this, a bunch of categorized checkboxes. https://www.it.dev.duke.edu/temp/dropfields_example.html I figure there has to be a better way to build this kind of form in Flex, but I really don't have enough knowledge about all the possibilities... I'd love to hear some suggestions. I was thinking about using some kind of tree component - but with checkboxes that can be selected, not selected, or partially selected (a node that was partially selected would have some children that were selected and some that were not selected). No idea how to do that though :) Thanks. Rick -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: UI Design Help
gotgoose09 wrote: Perhaps you could let them drag and drop fields they want into a List or something? What i'm trying right now is side-by-side tree components and dragging from one to the other. I added the dragEnabled=true property but apparently I have to write more code than that ;) Anyone out there have an example of doing drag and drop between two tree components? Rick -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Variable references
I've got an interesting issue which I'm sure real programmers understand but I don't know quite how to describe. Essentially, I've got a flex component that contains, among other things, an XMLList component with some data in it. I have assigned that as the data provider for a tree item, and I've enabled drag and drop so I can drag items from one tree to the other. I also have a reset button that I want to restore the source tree to its original state. So on my TitleWindow (the main component) I have creationComplete=treeDataInitial=treeData; And my reset button does this: private function resetFieldLists():void { treeData = treeDataInit; treeSelectedFields.dataProvider = []; } Unfortunately, treeDataInit seems to be linked to treeData, because it always contains the same content as treeData How to I avoid this? How do I make a copy of an object in Flex 2 so that it creates an entirely new object, not just a refernce to the original object? Rick -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Variable references
Never mind, I discovered XMLList.copy() =) It works! -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Is this a bug, or is it just me?
When a tree has only one item, the dataProvider is empty when dumped to a string. Example: https://www.it.dev.duke.edu/temp/flex/bin/Test.html Drag one of the parent items over and click Show List Items, and the textarea is populated with all of the nodes in the data provider. Now hit Reset Lists.. then drag only one child item and then click Show List Items again. No results. empty. Drag another child item over... repeat. Both child items now appear in the textarea. Is this a bug, or something I'm doing wrong? I've enabled View Source on this app so you can see for yourself. rick -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Is this a bug, or is it just me?
sinatosk wrote: no it's not a bug :p lets just say you have an xml tag var xml_tag:XML = tag att1=v1 att2=v2tag text/tag; an thats been assigned to a variable 'xml_tag'. when you come to output the contents of that variable... it will show tag text not v1 or v2 ( which are attributes ). To output the contents of those attributes ... you do [EMAIL PROTECTED] and that will output v1 the problem your having is there is nothing in between the tags so it's blank... infact... you closed the XML tag tag/... thats how xml is :p. I'm still learning XML I don't think that's true. If I drag two items into the list, I get this: node label=All School/Class/Major/Degree/ node label=Secondary Record Types/ So if I drag only one item into the tree, I'd expect this: node label=All School/Class/Major/Degree/ But I don't get that, I get nothing. And all I'm doing is outputting the dataProvider.toString() = the tree has a data provider - it's got one item in it, so it SHOULD output something! -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Rendering a variable height text area inside a datagrid cell
Doug Lowder wrote: Try: mx:DataGrid variableRowHeight=true ... Well how 'bout that, I was just looking at the wrong place =) that worked great, thanks Doug. Rick -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] WOW - FLEX/AS3 Performance
John Chipps-Harding wrote: I am porting a game done in AS2 to FLEX/AS3. It has physics collision detection on an isometric playing board. The AS2 version used to slow down when you had maybe 10 objects moving at a time but in FLEX/AS3 there seems to be no slowing down even with over 100 objects on screen! Amazing! I've especially noticed the difference in my apps in the datagrid component. Throwing 5,000 rows into a datagrid now - no problem! In AS2 - ouch. Rick -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: selectedindex and change event
Doug Lowder wrote: If you need the entire event, I guess you could call dispatchEvent() with your own event object. What I usually do instead is have the event handler call a function that takes the object as input, e.g. change=onSelectionChanged(event.target), in which case I can always call onSelectionChanged(theListObject) anytime selectedIndex changes in script. I do that in javascript all the time. In one large form application I have that has a LOT of dynamic content, pretty much *EVERY* item in the form has onChange=change(this);, then perform actions based on the object's ID. I'd imagine the same strategy would work well in actionscript. Rick -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Simple way to do Please wait... type window
Tim Hoff wrote: If you want, go ahead and post what your code currently looks like, and we'll get you fixed up. It's probably just a minor syntax issue. tim, you can view the code here... I won't paste it in because that kinda stuff never shows up well in mailing lists =) https://www.it.dev.duke.edu/temp/test.txt It's really a very simple app. When I put in the popup code, I get the following errors, both on the popUpParent = mainPanel; line: SeverityDescription ResourceIn Folder Location Creation Time Id 2 1120: Access of undefined property mainPanel. DukeMagSearch_ro.mxml DukeMagSearch_roline 22 August 2, 2006 8:01:31 AM 148 2 1120: Access of undefined property popUpParent. DukeMagSearch_ro.mxml DukeMagSearch_roline 22 August 2, 2006 8:01:31 AM 147 If I comment out the lines relating the popup,everything works just fine. Rick -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Flex, remoting, and dev/production environments
When building a flex app that uses remoting with coldfusion... if I'm building on my local machine and get it all working using my local coldfusion server, can I just copy the files to the production server, assuming the mappings and everything are set up the same? Or does remoting rely on the build process to know which server to go to? In that case I'd have to rebuild the swf with the production servers services-config.xml file, right? Thanks. Rick -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/