Re: [flexcoders] DataGroup and XML problem
Hi Alex, Firstly thank you so much for your reply. When I try the first option you suggested: {new XMLListCollection(XMLList(getSpeedDialList.lastResult).SDLIST.charlist)} I stop getting errors, but the item renderer shows nothing. The second option pulls errors 1119 and 1118. I have been searching desperately for a working example of Datagroup with item renderers using XML as the provider, but just have not been able to find one. I welcome any advice you have. Warmest regards and many thanks. Craig
Re: [flexcoders] DataGroup and XML problem
SOLVED thanks to a...@adobe I changed my resultType=E4X and then used {new XMLListCollection(XMLList(getSpeedDialList.lastResult).chartlist)} This solved the problem perfectly. It's important to remember that when using E4X the first node is ignored in your xml. But with out the list conversion (since datagroups support Ilists and so on) I would have been lost. So all credit to Alex Harui from the Flex SDK Team Craig McLeod Phone: 086 111 4512 Fax:033 343 2265 Email:mailto:cr...@sumitsolutions.co.za cr...@sumitsolutions.co.za Website:http://www.sumitsolutions.co.za/ http://www.sumitsolutions.co.za sumit_solutions_logo.jpg This is an email from SUMIT Solutions. The contents are confidential to the intended recipient at the email address to which it has been addressed. It may not be disclosed copied or used by anyone other than this addressee. If you receive this email in error please contact SUMIT Solutions on +27 33 343 2888 quoting the name of the sender and the addressee then delete it from your system. Note that neither SUMIT Solutions nor the sender accepts responsibility for viruses and you are advised to scan attachments before opening or saving them image001.jpg
Re: [flexcoders] Re: Photo Viewer Sample App
Hi Amy, Thanks for the help. I don't really want the other viewstack children involved. When they are the carousel seems to initiate correctly. So I thought I'd set creationPolicy to none for viewstack and initiate a createComponentsFromDescriptors. This is not working though as I get a null error at the galleries.addEventListener CollectionChange Event.. here is what the photoservice code looks like. Any ideas where I go from here? public class PhotoService { private var service:HTTPService; private var app:PhotoViewer; [Bindable] public var galleries:ArrayCollection; public function PhotoService(url:String) { service = new HTTPService(); service.url = url; service.addEventListener(ResultEvent.RESULT, resultHandler); service.send(); galleries = new ArrayCollection([]); galleries.addEventListener(CollectionEvent.COLLECTION_CHANGE, app.views.createComponentsFromDescriptors); } private function resultHandler(event:ResultEvent):void { var result:ArrayCollection = event.result.galleries.gallery is ArrayCollection ? event.result.galleries.gallery as ArrayCollection : new ArrayCollection(ArrayUtil.toArray(event.result.galleries.gallery)); var temp:ArrayCollection = new ArrayCollection(); var cursor:IViewCursor = result.createCursor(); while (!cursor.afterLast) { temp.addItem(new Gallery(cursor.current)); cursor.moveNext(); } galleries = temp; } } } On Sat, Mar 20, 2010 at 5:13 PM, Amy amyblankens...@bellsouth.net wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, cjsteury2 cra...@... wrote: Hey Pete, I see you had the same issue I am experiencing today.. and its been 1/2 a day so far of pulling out hair. Do you remember how you solved this 3 years ago??? What you have is a race condition where the reset() function in Carousel.as assumes that you always have a valid Carousel, but of course the gallery property is beling set by a BindSetter that doesn't have anything to bind to until the PhotoService resultHandler has populated the photoService's galleries property. If you want to actually fix it, one way is to go into the PhotoService code and initialize the galleries variable to new ArrayCollection([new ArrayCollection)]); Not the cleanest solution, but that's kind of what you get when the code is too dependent on binding. The Carousel component unfortunately doesn't _know_ it's dependent on binding, so it isn't able to swallow up errors related to being passed in junk values via binding. If you want to just work around it, then you can just listen for COLLECTION_CHANGE on photoService.galleries, and switch the ViewStack pane once the result is received. HTH; Amy
[flexcoders] Re: Compiler Not Reporting Errors
Not sure if it's exactly the same thing, certainly the same symptoms, but there's a known issue if you're using modules as part of your project: https://bugs.adobe.com/jira/browse/FB-12298 --- In flexcoders@yahoogroups.com, okie_174 rj...@... wrote: Yesterday I found that Flex Builder (v3) was no longer reporting compiler errors when compiling. It is reporting warnings but no errors. I purposely introduced errors and it will build the project and then present a blank screen. I have looked to see if there's some sort of setting I made by mistake to make this happen but can't find anything. I re-installed Felx Builder but it didn't help. Anyone know why Flex Builder would suddenly stop reporting compiler errors?
Re: [flexcoders] Submenu Opens Below Menubar on First Click (PROBLEM)
Alex, Can you fill me in on what I need to do to get to 3.5 from 3.0 is it just a download? (I know i can look this up pretty easy but it's always good to get any upgrade tips from the 'insiders' if known!) Thanks, CS On Mon, Feb 22, 2010 at 1:50 PM, Alex Harui aha...@adobe.com wrote: I think we fixed that in 3.5 On 2/22/10 11:03 AM, cjsteury2 cra...@steury.com wrote: the Submenu of the MenuBar opens Below the Menu Item on the First Click but there is no space at bottom... So it is not view-able. Then on second click it open above the MenuBar Item, correctly. Does anyone know how to fix this, please?? Craig -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] Re: Identifying module loaded
In your event handler (dispModule in your example code), event.target will reference the IModuleInfo returned from your getModule(...) call. Use that to identify the module loaded. One additional caveat though: I'd highly recommend keeping a reference to the IModuleInfo returned from getModule until at least the module has loaded or failed to load. I've had numerous occasions where I didn't keep hold of the reference, called load() and then got nothing ... no READY or ERROR events getting fired. Presumably because it got GC'd. --- In flexcoders@yahoogroups.com, criptopus sd_br...@... wrote: When I load a module... private function loadModule(modName:String):void { module=ModuleManager.getModule(comps/InstCntr/ + modName + .swf); module.addEventListener(ModuleEvent.READY, dispModule); module.load(); } How does my listener (dispModule) decide what has been loaded Is their an AysyncToken or somthing? - Stephen
[flexcoders] Configuring a service for HTTPS access
Hi everyone, I'm hoping someone can shed some light on a problem I'm having trying to get a simple webservice working over HTTPS. The basic scenario is thus; I have a couple of web service components running on an IIS box which has been secured so that HTTPS access is required to get at the service components. My Flex app that uses the services uses HTTPService to access them. The website on which the services reside has HTTP and HTTPS channels open to the services and has a wide open crossdomain.xml file at its root: ?xml version=1.0? !DOCTYPE cross-domain-policy SYSTEM http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd; cross-domain-policy site-control permitted-cross-domain-policies=all/ allow-access-from domain=* to-ports=* secure=true / allow-http-request-headers-from domain=* headers=* secure=true / /cross-domain-policy Now, when I hit the services via HTTP, all is well. When I try and hit them via HTTPS though, I get a fault event every time I try and access a service. Specifically, I get the fault string, 'Security error accessing url'. I've put a little test app together too that runs locally and simply tries to access one of the services. This throws the same error but gives me a little more in the console window, Error: Request for resource at https://myserver.co.uk/myservice.ashx by requestor from http://localhost/dev/HttpsTest-debug/HttpsTest.swf is denied due to lack of policy file permissions. *** Security Sandbox Violation *** Connection to https://myserver.co.uk/myservice.ashx halted - not permitted from http://localhost/dev/HttpsTest-debug/HttpsTest.swf I'm not sure where to go from here, as the policy file is permitting access isn't it? I've done a lot of looking around and have found a few suggestions that browser and header issues might be the cause but I don't think its down to that ... I've tried the big 3 browsers and behaviour is the same on them all. I'm running out of ideas now, and would like to ask if anyone knows where I might be going wrong here? Any help would be very much appreciated. Regards, Craig
[flexcoders] Detecting Flash Player standalone menu events
Hi everyone, I'm hoping someone might be able to point me in the right direction with an integration issue I'm currently facing. The application I'm writing is going to be hosted on a client's platform that uses some kind of queuing mechanism to preload and schedule content that is to be delivered to an external screen. Apparently, the way it works is that it uses Standalone flash player to host any flash content. The content gets preloaded into this player, then is immediately 'stopped' (using the Flash Player's Stop menu) until the platform decides its ready to go to screen. When it goes to screen, Flash Player's 'Play' menu item is triggered, which is my queue to start my application. So my question is simple; does anyone know if I can hook up to those events, and if so, how? I'm guessing they're something to do with the timeline, but I'm not a CS3/4 developer, and I'm struggling to find any info on what exactly they do and the implications of them on SWFs developed in Flex. Any help much appreciated, Craig
[flexcoders] Detecting Flash Player standalone menu events
Hi everyone, I'm hoping someone might be able to point me in the right direction with an integration issue I'm currently facing. The application I'm writing is going to be hosted on a client's platform that uses some kind of queuing mechanism to preload and schedule content that is to be delivered to an external screen. Apparently, the way it works is that it uses Standalone flash player to host any flash content. The content gets preloaded into this player, then is immediately 'stopped' (using the Flash Player's Stop menu) until the platform decides its ready to go to screen. When it goes to screen, Flash Player's 'Play' menu item is triggered, which is my queue to start my application. So my question is simple; does anyone know if I can hook up to those events, and if so, how? I'm guessing they're something to do with the timeline, but I'm not a CS developer, and I'm struggling to find any info on what exactly they do and the implications of them on SWFs developed in Flex. Any help much appreciated, Craig
[flexcoders] Re: Synchronizing two ArrayCollections
Thanks that worked beautifully my final code follows: private function dgClick():void { var curTick:String = dgOrdExt.selectedItem.Ticker; for (var i:int = 0; i Array_Exits.length; i++) { if ( Exits(Array_Exits.getItemAt(i).Ticker ==c urTick) { dgExits.selectedIndex = i; } } } --- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote: Going to have to loop: var curTick:String = dg1.selectedItem.Ticker; for (var i:int = 0; i dg2.dataProvider.length; i++) { if ( Object(dg2.dataProvider.getItemAt(i)).Ticker == curTick ) { dg2.selectedIndex = i; } } Depending on your model, you could use for each instead. Also, replace dg2.dataProivider with the appropriate ArrayCollection name and replace Object with your VO class name; if you're using one. I'd use the change event instead of click. -TH --- In flexcoders@yahoogroups.com, Craig craigj@ wrote: Take 3... after further review, to simplify things I have bound 2 separate ArrayCollection to separate DataGrids they both share one common field - Ticker.. I'd like to select the corresponding row programmatically in the second datagrid which contains the value for 'Ticker' that is selected in the first datagrid. So far this does not work... mx:DataGrid id=dg1 click='onClick() / mx:DataGrid id=dg2 / private function onClick(): void { var curTick:String = dg1.selectedItem.Ticker; dg2.selectedItem.Ticker = curTick; dg2.selectedIndex= dg2.selectedItem.Ticker.rowindex; } Any suggestions?... Anyone?? I imagine the ListCollection will work but not sure the syntax. --- In flexcoders@yahoogroups.com, Craig craigj@ wrote: Actually after thinking about it, I should just add the 2nd Webservice result to the first ArrayCollection data model. They both share the same field 'Ticker' but have different fields thereafter. The first result is Array_OrdExt and the second is Arrray_Exits. The Array Build routines for both are below. [Bindable] public var Array_Exits:ArrayCollection; public function Exits_Result(e:ResultEvent):void { Array_Exits = e.result as ArrayCollection; for (var i:int=0;iArray_Exits.length;i++) { var Current_exit:Exits = new Exits(); Current_exit = new Exits(Array_Exits.getItemAt(i)); Array_Exits.setItemAt(Current_exit, i); } } [Bindable] public var Array_OrdExt:ArrayCollection; private function OrdExt_result(e:ResultEvent):void { Array_OrdExt = e.result as ArrayCollection; for (var i:int=0;iArray_OrdExt.length;i++) { var Current_ordext:OrdExt = new OrdExt(); Current_ordext = new OrdExt(Array_OrdExt.getItemAt(i)); Array_OrdExt.setItemAt(Current_ordext, i); } } These build from two WebsServices results WSDL format (XML). For the second one, which is Array_Exits... can I just add it to the first one with the same result event? I would like to use the first field of each collection 'Ticker' as the WHERE Ticker=Ticker then do the Get and Set... The Data Model for each Array is OrdExt.as and Exits.as is structured as follows: package DTO.OrdEnt { [Bindable] public class OrdEnt { public var Ticker:String = ; public var Company:String = ;..continues public function OrdEnt(obj:Object=null){ if (obj!=null){ this.Ticker=obj.Ticker; this.Company=obj.Company;..continues --- In flexcoders@yahoogroups.com, Craig craigj@ wrote: I need to create a DataModel.as that will synchronize two arraycollections and allow me to update a Form based on the contents of the 2nd arraycollection.index.item(s) when the first arraycollection selecteditem is clicked as the dataprovider for a datagrid. The 2 arraycollections are populated via webservices from sql database, (which I can not InnerJoin from 4 different tables due to performance)... so I end with two separate arraycollections: One populates a Datagrid, the other is just resident in an ArrayCollection: Here is some of the sample code: mx:columns mx:DataGridColumn dataField=Ticker headerText=Ticker/ positions:KindColumn id=Kind headerText=Kind dataField=Kind itemRenderer=com.steury.baseClasses.CellFieldTrd/ mx:DataGridColumn id=EnterPrice labelFunction={myPrice} dataField=EnterPrice headerText=EnterPrice/ mx:DataGridColumn id=ClosePrice labelFunction={myClosePr} dataField=Close headerText=Price/ positions:ProfitColumn id=Profit headerText=Profit dataField=Profit labelFunction={perCent} itemRenderer=com.steury.baseClasses.CellFieldInt/ /mx:columns
[flexcoders] Re: Synchronizing two ArrayCollections
Actually after thinking about it, I should just add the 2nd Webservice result to the first ArrayCollection data model. They both share the same field 'Ticker' but have different fields thereafter. The first result is Array_OrdExt and the second is Arrray_Exits. The Array Build routines for both are below. [Bindable] public var Array_Exits:ArrayCollection; public function Exits_Result(e:ResultEvent):void { Array_Exits = e.result as ArrayCollection; for (var i:int=0;iArray_Exits.length;i++) { var Current_exit:Exits = new Exits(); Current_exit = new Exits(Array_Exits.getItemAt(i)); Array_Exits.setItemAt(Current_exit, i); } } [Bindable] public var Array_OrdExt:ArrayCollection; private function OrdExt_result(e:ResultEvent):void { Array_OrdExt = e.result as ArrayCollection; for (var i:int=0;iArray_OrdExt.length;i++) { var Current_ordext:OrdExt = new OrdExt(); Current_ordext = new OrdExt(Array_OrdExt.getItemAt(i)); Array_OrdExt.setItemAt(Current_ordext, i); } } These build from two WebsServices results WSDL format (XML). For the second one, which is Array_Exits... can I just add it to the first one with the same result event? I would like to use the first field of each collection 'Ticker' as the WHERE Ticker=Ticker then do the Get and Set... The Data Model for each Array is OrdExt.as and Exits.as is structured as follows: package DTO.OrdEnt { [Bindable] public class OrdEnt { public var Ticker:String = ; public var Company:String = ;..continues public function OrdEnt(obj:Object=null){ if (obj!=null){ this.Ticker=obj.Ticker; this.Company=obj.Company;..continues --- In flexcoders@yahoogroups.com, Craig cra...@... wrote: I need to create a DataModel.as that will synchronize two arraycollections and allow me to update a Form based on the contents of the 2nd arraycollection.index.item(s) when the first arraycollection selecteditem is clicked as the dataprovider for a datagrid. The 2 arraycollections are populated via webservices from sql database, (which I can not InnerJoin from 4 different tables due to performance)... so I end with two separate arraycollections: One populates a Datagrid, the other is just resident in an ArrayCollection: Here is some of the sample code: mx:columns mx:DataGridColumn dataField=Ticker headerText=Ticker/ positions:KindColumn id=Kind headerText=Kind dataField=Kind itemRenderer=com.steury.baseClasses.CellFieldTrd/ mx:DataGridColumn id=EnterPrice labelFunction={myPrice} dataField=EnterPrice headerText=EnterPrice/ mx:DataGridColumn id=ClosePrice labelFunction={myClosePr} dataField=Close headerText=Price/ positions:ProfitColumn id=Profit headerText=Profit dataField=Profit labelFunction={perCent} itemRenderer=com.steury.baseClasses.CellFieldInt/ /mx:columns __ positions:DgOrdExt id=dgOrdExt width=100% height=50% textAlign=center dataProvider={Array_OrdExt} itemClick=onTick4() One Array is Array_OrdEx and the other Array is Array_Exits. When I select an item on the dgOrdExt DataGrid, I simply want to populate the text values of a Form with the appropriate Items in the second datagrid... Here is the trick... they both share the same 'Ticker' value, but just different other variables... so it's not too difficult, it's just trickier than my novice programming skills can handle - easily. [Bindable] public var ExtTicker:String; So the OnTick4() event will contain the following code: ExtTicker=dgOrdExt.selectedItem.Ticker; Then I need to somehow update the form as follows: formOrdExt.tiHigh.text=dgOrdExt.selectedItem.High; formOrdExt.tiLow.text=dgOrdExt.selectedItem.Low formOrdExt.tiStrategy.text=Array_Exists.getItemAt({ExtTicker}).Strategy; Or I need to build an DataModel.as class to sychronize the two arraycollections... I have thought about using source.concat but that will append the two collections and I will have 2 of every Ticker, where I only want 1 of every Ticker with the appropriate value (Open, High, Low, SellPrice, Profit, BudyDate, Exit, Strategy, etc). Can someone give me a hand? CS
[flexcoders] Re: Synchronizing two ArrayCollections
Take 3... after further review, to simplify things I have bound 2 separate ArrayCollection to separate DataGrids they both share one common field - Ticker.. I'd like to select the corresponding row programmatically in the second datagrid which contains the value for 'Ticker' that is selected in the first datagrid. So far this does not work... mx:DataGrid id=dg1 click='onClick() / mx:DataGrid id=dg2 / private function onClick(): void { var curTick:String = dg1.selectedItem.Ticker; dg2.selectedItem.Ticker = curTick; dg2.selectedIndex= dg2.selectedItem.Ticker.rowindex; } Any suggestions?... Anyone?? I imagine the ListCollection will work but not sure the syntax. --- In flexcoders@yahoogroups.com, Craig cra...@... wrote: Actually after thinking about it, I should just add the 2nd Webservice result to the first ArrayCollection data model. They both share the same field 'Ticker' but have different fields thereafter. The first result is Array_OrdExt and the second is Arrray_Exits. The Array Build routines for both are below. [Bindable] public var Array_Exits:ArrayCollection; public function Exits_Result(e:ResultEvent):void { Array_Exits = e.result as ArrayCollection; for (var i:int=0;iArray_Exits.length;i++) { var Current_exit:Exits = new Exits(); Current_exit = new Exits(Array_Exits.getItemAt(i)); Array_Exits.setItemAt(Current_exit, i); } } [Bindable] public var Array_OrdExt:ArrayCollection; private function OrdExt_result(e:ResultEvent):void { Array_OrdExt = e.result as ArrayCollection; for (var i:int=0;iArray_OrdExt.length;i++) { var Current_ordext:OrdExt = new OrdExt(); Current_ordext = new OrdExt(Array_OrdExt.getItemAt(i)); Array_OrdExt.setItemAt(Current_ordext, i); } } These build from two WebsServices results WSDL format (XML). For the second one, which is Array_Exits... can I just add it to the first one with the same result event? I would like to use the first field of each collection 'Ticker' as the WHERE Ticker=Ticker then do the Get and Set... The Data Model for each Array is OrdExt.as and Exits.as is structured as follows: package DTO.OrdEnt { [Bindable] public class OrdEnt { public var Ticker:String = ; public var Company:String = ;..continues public function OrdEnt(obj:Object=null){ if (obj!=null){ this.Ticker=obj.Ticker; this.Company=obj.Company;..continues --- In flexcoders@yahoogroups.com, Craig craigj@ wrote: I need to create a DataModel.as that will synchronize two arraycollections and allow me to update a Form based on the contents of the 2nd arraycollection.index.item(s) when the first arraycollection selecteditem is clicked as the dataprovider for a datagrid. The 2 arraycollections are populated via webservices from sql database, (which I can not InnerJoin from 4 different tables due to performance)... so I end with two separate arraycollections: One populates a Datagrid, the other is just resident in an ArrayCollection: Here is some of the sample code: mx:columns mx:DataGridColumn dataField=Ticker headerText=Ticker/ positions:KindColumn id=Kind headerText=Kind dataField=Kind itemRenderer=com.steury.baseClasses.CellFieldTrd/ mx:DataGridColumn id=EnterPrice labelFunction={myPrice} dataField=EnterPrice headerText=EnterPrice/ mx:DataGridColumn id=ClosePrice labelFunction={myClosePr} dataField=Close headerText=Price/ positions:ProfitColumn id=Profit headerText=Profit dataField=Profit labelFunction={perCent} itemRenderer=com.steury.baseClasses.CellFieldInt/ /mx:columns __ positions:DgOrdExt id=dgOrdExt width=100% height=50% textAlign=center dataProvider={Array_OrdExt} itemClick=onTick4() One Array is Array_OrdEx and the other Array is Array_Exits. When I select an item on the dgOrdExt DataGrid, I simply want to populate the text values of a Form with the appropriate Items in the second datagrid... Here is the trick... they both share the same 'Ticker' value, but just different other variables... so it's not too difficult, it's just trickier than my novice programming skills can handle - easily. [Bindable] public var ExtTicker:String; So the OnTick4() event will contain the following code: ExtTicker=dgOrdExt.selectedItem.Ticker; Then I need to somehow update the form as follows: formOrdExt.tiHigh.text=dgOrdExt.selectedItem.High; formOrdExt.tiLow.text=dgOrdExt.selectedItem.Low formOrdExt.tiStrategy.text=Array_Exists.getItemAt({ExtTicker}).Strategy; Or I need to build an DataModel.as class to sychronize the two arraycollections... I have thought about using source.concat but that will append the two collections and I will have 2 of every Ticker, where I only want 1 of every Ticker with the appropriate value (Open, High, Low, SellPrice, Profit, BudyDate, Exit
[flexcoders] Synchronizing two ArracyCollections
I need to create a DataModel.as that will synchronize two arraycollections and allow me to update a Form based on the contents of the 2nd arraycollection.index.item(s) when the first arraycollection selecteditem is clicked as the dataprovider for a datagrid. The 2 arraycollections are populated via webservices from sql database, (which I can not InnerJoin from 4 different tables due to performance)... so I end with two separate arraycollections: One populates a Datagrid, the other is just resident in an ArrayCollection: Here is some of the sample code: mx:columns mx:DataGridColumn dataField=Ticker headerText=Ticker/ positions:KindColumn id=Kind headerText=Kind dataField=Kind itemRenderer=com.steury.baseClasses.CellFieldTrd/ mx:DataGridColumn id=EnterPrice labelFunction={myPrice} dataField=EnterPrice headerText=EnterPrice/ mx:DataGridColumn id=ClosePrice labelFunction={myClosePr} dataField=Close headerText=Price/ positions:ProfitColumn id=Profit headerText=Profit dataField=Profit labelFunction={perCent} itemRenderer=com.steury.baseClasses.CellFieldInt/ /mx:columns __ positions:DgOrdExt id=dgOrdExt width=100% height=50% textAlign=center dataProvider={Array_OrdExt} itemClick=onTick4() One Array is Array_OrdEx and the other Array is Array_Exits. When I select an item on the dgOrdExt DataGrid, I simply want to populate the text values of a Form with the appropriate Items in the second datagrid... Here is the trick... they both share the same 'Ticker' value, but just different other variables... so it's not too difficult, it's just trickier than my novice programming skills can handle - easily. [Bindable] public var ExtTicker:String; So the OnTick4() event will contain the following code: ExtTicker=dgOrdExt.selectedItem.Ticker; Then I need to somehow update the form as follows: formOrdExt.tiHigh.text=dgOrdExt.selectedItem.High; formOrdExt.tiLow.text=dgOrdExt.selectedItem.Low formOrdExt.tiStrategy.text=Array_Exists.getItemAt({ExtTicker}).Strategy; Or I need to build an DataModel.as class to sychronize the two arraycollections... I have thought about using source.concat but that will append the two collections and I will have 2 of every Ticker, where I only want 1 of every Ticker with the appropriate value (Open, High, Low, SellPrice, Profit, BudyDate, Exit, Strategy, etc). Can someone give me a hand? CS
[flexcoders] Re: This is not as easy as it seems ... apparently...
I GIVE UP!! I have tried everything!!.. I have a dataGrid that binds to an ArrayCollection. I need to change the value of one columen (Profit) based on the value of another column (Kind) ie.. the results (either 'LONG' or SHORT'). Here is where I'm at. I've tried putting code into customer DataGridColumns and labelFunctions and ItemRenderers... but can not do it. What seem to be working most are events in the DataGrid Component, better than others, but comparing values in a DataGrid is obviously impossible. Somehow I need the code to access ArrayCollection getItemat() but I can't do it! Please help! mx:DataGrid xmlns:mx=http://www.adobe.com/2006/mxml; initialize=initTA() positions:KindColumn id=Kind headerText=Kind dataField=Kind itemRenderer=com.steury.baseClasses.CellFieldTrd/ positions:ProfitColumn id=Profit headerText=Profit/ mx:Script ![CDATA[ import mx.collections.ArrayCollection; import com.steury.baseClasses.*; import mx.core.Application; import mx.controls.dataGridClasses.DataGridListData; import flash.events.Event; import mx.core.ClassFactory; import com.steury.controls.positions.*; import mx.controls.dataGridClasses.DataGridColumn; import mx.controls.DataGrid; private function initTA():String { if (value[Kind.dataField]==LONG)Profit.dataField=Profit; if (value[Kind.dataField]==SHORT)Profit.dataField=ShProfit; Profit.itemRenderer=new ClassFactory(com.steury.baseClasses.CellFieldInt); return myDec.format(Profit)+%; } --- In flexcoders@yahoogroups.com, Craig cra...@... wrote: I am trying to access the value of a DataGridColumn and change the DataField for another column based on this value... Here is my code: ?xml version=1.0 encoding=utf-8? mx:DataGrid xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=getDp() ... Datagrid mx:columns mx:DataGridColumn dataField=Ticker headerText=Ticker/ mx:DataGridColumn id=Kind dataField=Kind itemRenderer=com.steury.baseClasses.CellFieldTrd / mx:DataGridColumn id=Profit headerText=Profit/ ActionScript: private function getDp():void { if(Application.application.CnvPos.dgOrdExt.selectedItem.Kind==LONG)Pro\ \ fit.dataField=Profit;Application.application.CnvPos.dgOrdExt.refresh()\ \ ; } //This code works find if I use if(Kind.DataField=Kind)Profit.dataField=Profit; //above to test the rest of the code. I can not figure out how to access the value of the Datagridcolumn. I have tied using event listeners, etc.. which did not work. Please let me know if anyone can help this fairly simple dilemma.
[flexcoders] Re: This is not as easy as it seems ... apparently...
so if it's doing it row by row, then it would need to be a labelfunction event right? where would you suggest the code go? there needs to be an if (datagrid.seleteditem[Kind]==LONG)datagrid.selecteditem[Profit]=Profit; then another line that stipulate the other option: if (datagrid.selecteditem[Kind]==Short)datagrid.selecteditem[Profit]=ShProfit; --- In flexcoders@yahoogroups.com, postwick p...@... wrote: if you just did dataGrid.selectedItem then that would be the selected row. add [columnname] to get to the column, so: dataGrid.selectedItem[columnname] it's not the label, it's the data column name. --- In flexcoders@yahoogroups.com, Craig craigj@ wrote: yes the datagrid is bound to an array collection. I don't want to select any item, I want to change the value of a column's DataField to a one of two values based on the value of another column's output. I don't want to have to 'selecteditem' but I can try that code below are you suggesting that I use it in the labelfunction of the datagrid column that I am trying to change? --- In flexcoders@yahoogroups.com, postwick paul@ wrote: Is the datagrid bound to a collection? if so, change the value in the collection. or try... yourDataGrid.selectedItem[dataColumn1] = yourDataGrid.selectedItem[dataColumn2] --- In flexcoders@yahoogroups.com, Craig craigj@ wrote: I am trying to set the value of a column based on the value of another column. If I use ...selectedItem... it does not work, unless I am mistaken. --- In flexcoders@yahoogroups.com, postwick paul@ wrote: You access the value in a column of a datagrid like this... yourDataGrid.selectedItem[dataColumnNameOfColumn] --- In flexcoders@yahoogroups.com, Craig craigj@ wrote: I GIVE UP!! I have tried everything!!.. I have a dataGrid that binds to an ArrayCollection. I need to change the value of one columen (Profit) based on the value of another column (Kind) ie.. the results (either 'LONG' or SHORT'). Here is where I'm at. I've tried putting code into customer DataGridColumns and labelFunctions and ItemRenderers... but can not do it. What seem to be working most are events in the DataGrid Component, better than others, but comparing values in a DataGrid is obviously impossible. Somehow I need the code to access ArrayCollection getItemat() but I can't do it! Please help! mx:DataGrid xmlns:mx=http://www.adobe.com/2006/mxml; initialize=initTA() positions:KindColumn id=Kind headerText=Kind dataField=Kind itemRenderer=com.steury.baseClasses.CellFieldTrd/ positions:ProfitColumn id=Profit headerText=Profit/ mx:Script ![CDATA[ import mx.collections.ArrayCollection; import com.steury.baseClasses.*; import mx.core.Application; import mx.controls.dataGridClasses.DataGridListData; import flash.events.Event; import mx.core.ClassFactory; import com.steury.controls.positions.*; import mx.controls.dataGridClasses.DataGridColumn; import mx.controls.DataGrid; private function initTA():String { if (value[Kind.dataField]==LONG)Profit.dataField=Profit; if (value[Kind.dataField]==SHORT)Profit.dataField=ShProfit; Profit.itemRenderer=new ClassFactory(com.steury.baseClasses.CellFieldInt); return myDec.format(Profit)+%; } --- In flexcoders@yahoogroups.com, Craig craigj@ wrote: I am trying to access the value of a DataGridColumn and change the DataField for another column based on this value... Here is my code: ?xml version=1.0 encoding=utf-8? mx:DataGrid xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=getDp() ... Datagrid mx:columns mx:DataGridColumn dataField=Ticker headerText=Ticker/ mx:DataGridColumn id=Kind dataField=Kind itemRenderer=com.steury.baseClasses.CellFieldTrd / mx:DataGridColumn id=Profit headerText=Profit/ ActionScript: private function getDp():void { if(Application.application.CnvPos.dgOrdExt.selectedItem.Kind==LONG)Pro\ \ fit.dataField=Profit;Application.application.CnvPos.dgOrdExt.refresh
[flexcoders] Re: This is not as easy as it seems ... apparently...
cause I was doing it within the custom component (column) itself for the datagrid, which can not hold an Id value, I can put it in the parent component however i'll give that a whack. --- In flexcoders@yahoogroups.com, postwick p...@... wrote: Not sure why you have all the Application.application stuff on there. Just reference the datagrid by it's id. mx:DataGrid id=mygrid mygrid.selectedItem[columname] = some value --- In flexcoders@yahoogroups.com, Craig craigj@ wrote: From within the custom component DataGrid Column I tried this code as you suggested at the initialize event but it errors: if(Application.application.CnvPos.dgOrdExt.selectedItem[Kind]==LONG) Profit.dataField=Profit; I don't think the selecteditem field is the answer. --- In flexcoders@yahoogroups.com, Craig craigj@ wrote: yes the datagrid is bound to an array collection. I don't want to select any item, I want to change the value of a column's DataField to a one of two values based on the value of another column's output. I don't want to have to 'selecteditem' but I can try that code below are you suggesting that I use it in the labelfunction of the datagrid column that I am trying to change? --- In flexcoders@yahoogroups.com, postwick paul@ wrote: Is the datagrid bound to a collection? if so, change the value in the collection. or try... yourDataGrid.selectedItem[dataColumn1] = yourDataGrid.selectedItem[dataColumn2] --- In flexcoders@yahoogroups.com, Craig craigj@ wrote: I am trying to set the value of a column based on the value of another column. If I use ...selectedItem... it does not work, unless I am mistaken. --- In flexcoders@yahoogroups.com, postwick paul@ wrote: You access the value in a column of a datagrid like this... yourDataGrid.selectedItem[dataColumnNameOfColumn] --- In flexcoders@yahoogroups.com, Craig craigj@ wrote: I GIVE UP!! I have tried everything!!.. I have a dataGrid that binds to an ArrayCollection. I need to change the value of one columen (Profit) based on the value of another column (Kind) ie.. the results (either 'LONG' or SHORT'). Here is where I'm at. I've tried putting code into customer DataGridColumns and labelFunctions and ItemRenderers... but can not do it. What seem to be working most are events in the DataGrid Component, better than others, but comparing values in a DataGrid is obviously impossible. Somehow I need the code to access ArrayCollection getItemat() but I can't do it! Please help! mx:DataGrid xmlns:mx=http://www.adobe.com/2006/mxml; initialize=initTA() positions:KindColumn id=Kind headerText=Kind dataField=Kind itemRenderer=com.steury.baseClasses.CellFieldTrd/ positions:ProfitColumn id=Profit headerText=Profit/ mx:Script ![CDATA[ import mx.collections.ArrayCollection; import com.steury.baseClasses.*; import mx.core.Application; import mx.controls.dataGridClasses.DataGridListData; import flash.events.Event; import mx.core.ClassFactory; import com.steury.controls.positions.*; import mx.controls.dataGridClasses.DataGridColumn; import mx.controls.DataGrid; private function initTA():String { if (value[Kind.dataField]==LONG)Profit.dataField=Profit; if (value[Kind.dataField]==SHORT)Profit.dataField=ShProfit; Profit.itemRenderer=new ClassFactory(com.steury.baseClasses.CellFieldInt); return myDec.format(Profit)+%; } --- In flexcoders@yahoogroups.com, Craig craigj@ wrote: I am trying to access the value of a DataGridColumn and change the DataField for another column based on this value... Here is my code: ?xml version=1.0 encoding=utf-8? mx:DataGrid xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=getDp() ... Datagrid mx:columns mx:DataGridColumn dataField=Ticker headerText=Ticker/ mx:DataGridColumn id=Kind dataField=Kind itemRenderer=com.steury.baseClasses.CellFieldTrd
[flexcoders] Re: This is not as easy as it seems ... apparently...
I am trying to set the value of a column based on the value of another column. If I use ...selectedItem... it does not work, unless I am mistaken. --- In flexcoders@yahoogroups.com, postwick p...@... wrote: You access the value in a column of a datagrid like this... yourDataGrid.selectedItem[dataColumnNameOfColumn] --- In flexcoders@yahoogroups.com, Craig craigj@ wrote: I GIVE UP!! I have tried everything!!.. I have a dataGrid that binds to an ArrayCollection. I need to change the value of one columen (Profit) based on the value of another column (Kind) ie.. the results (either 'LONG' or SHORT'). Here is where I'm at. I've tried putting code into customer DataGridColumns and labelFunctions and ItemRenderers... but can not do it. What seem to be working most are events in the DataGrid Component, better than others, but comparing values in a DataGrid is obviously impossible. Somehow I need the code to access ArrayCollection getItemat() but I can't do it! Please help! mx:DataGrid xmlns:mx=http://www.adobe.com/2006/mxml; initialize=initTA() positions:KindColumn id=Kind headerText=Kind dataField=Kind itemRenderer=com.steury.baseClasses.CellFieldTrd/ positions:ProfitColumn id=Profit headerText=Profit/ mx:Script ![CDATA[ import mx.collections.ArrayCollection; import com.steury.baseClasses.*; import mx.core.Application; import mx.controls.dataGridClasses.DataGridListData; import flash.events.Event; import mx.core.ClassFactory; import com.steury.controls.positions.*; import mx.controls.dataGridClasses.DataGridColumn; import mx.controls.DataGrid; private function initTA():String { if (value[Kind.dataField]==LONG)Profit.dataField=Profit; if (value[Kind.dataField]==SHORT)Profit.dataField=ShProfit; Profit.itemRenderer=new ClassFactory(com.steury.baseClasses.CellFieldInt); return myDec.format(Profit)+%; } --- In flexcoders@yahoogroups.com, Craig craigj@ wrote: I am trying to access the value of a DataGridColumn and change the DataField for another column based on this value... Here is my code: ?xml version=1.0 encoding=utf-8? mx:DataGrid xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=getDp() ... Datagrid mx:columns mx:DataGridColumn dataField=Ticker headerText=Ticker/ mx:DataGridColumn id=Kind dataField=Kind itemRenderer=com.steury.baseClasses.CellFieldTrd / mx:DataGridColumn id=Profit headerText=Profit/ ActionScript: private function getDp():void { if(Application.application.CnvPos.dgOrdExt.selectedItem.Kind==LONG)Pro\ \ fit.dataField=Profit;Application.application.CnvPos.dgOrdExt.refresh()\ \ ; } //This code works find if I use if(Kind.DataField=Kind)Profit.dataField=Profit; //above to test the rest of the code. I can not figure out how to access the value of the Datagridcolumn. I have tied using event listeners, etc.. which did not work. Please let me know if anyone can help this fairly simple dilemma.
[flexcoders] Re: This is not as easy as it seems ... apparently...
From within the custom component DataGrid Column I tried this code as you suggested at the initialize event but it errors: if(Application.application.CnvPos.dgOrdExt.selectedItem[Kind]==LONG) Profit.dataField=Profit; I don't think the selecteditem field is the answer. --- In flexcoders@yahoogroups.com, Craig cra...@... wrote: yes the datagrid is bound to an array collection. I don't want to select any item, I want to change the value of a column's DataField to a one of two values based on the value of another column's output. I don't want to have to 'selecteditem' but I can try that code below are you suggesting that I use it in the labelfunction of the datagrid column that I am trying to change? --- In flexcoders@yahoogroups.com, postwick paul@ wrote: Is the datagrid bound to a collection? if so, change the value in the collection. or try... yourDataGrid.selectedItem[dataColumn1] = yourDataGrid.selectedItem[dataColumn2] --- In flexcoders@yahoogroups.com, Craig craigj@ wrote: I am trying to set the value of a column based on the value of another column. If I use ...selectedItem... it does not work, unless I am mistaken. --- In flexcoders@yahoogroups.com, postwick paul@ wrote: You access the value in a column of a datagrid like this... yourDataGrid.selectedItem[dataColumnNameOfColumn] --- In flexcoders@yahoogroups.com, Craig craigj@ wrote: I GIVE UP!! I have tried everything!!.. I have a dataGrid that binds to an ArrayCollection. I need to change the value of one columen (Profit) based on the value of another column (Kind) ie.. the results (either 'LONG' or SHORT'). Here is where I'm at. I've tried putting code into customer DataGridColumns and labelFunctions and ItemRenderers... but can not do it. What seem to be working most are events in the DataGrid Component, better than others, but comparing values in a DataGrid is obviously impossible. Somehow I need the code to access ArrayCollection getItemat() but I can't do it! Please help! mx:DataGrid xmlns:mx=http://www.adobe.com/2006/mxml; initialize=initTA() positions:KindColumn id=Kind headerText=Kind dataField=Kind itemRenderer=com.steury.baseClasses.CellFieldTrd/ positions:ProfitColumn id=Profit headerText=Profit/ mx:Script ![CDATA[ import mx.collections.ArrayCollection; import com.steury.baseClasses.*; import mx.core.Application; import mx.controls.dataGridClasses.DataGridListData; import flash.events.Event; import mx.core.ClassFactory; import com.steury.controls.positions.*; import mx.controls.dataGridClasses.DataGridColumn; import mx.controls.DataGrid; private function initTA():String { if (value[Kind.dataField]==LONG)Profit.dataField=Profit; if (value[Kind.dataField]==SHORT)Profit.dataField=ShProfit; Profit.itemRenderer=new ClassFactory(com.steury.baseClasses.CellFieldInt); return myDec.format(Profit)+%; } --- In flexcoders@yahoogroups.com, Craig craigj@ wrote: I am trying to access the value of a DataGridColumn and change the DataField for another column based on this value... Here is my code: ?xml version=1.0 encoding=utf-8? mx:DataGrid xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=getDp() ... Datagrid mx:columns mx:DataGridColumn dataField=Ticker headerText=Ticker/ mx:DataGridColumn id=Kind dataField=Kind itemRenderer=com.steury.baseClasses.CellFieldTrd / mx:DataGridColumn id=Profit headerText=Profit/ ActionScript: private function getDp():void { if(Application.application.CnvPos.dgOrdExt.selectedItem.Kind==LONG)Pro\ \ fit.dataField=Profit;Application.application.CnvPos.dgOrdExt.refresh()\ \ ; } //This code works find if I use if(Kind.DataField=Kind)Profit.dataField=Profit; //above to test the rest of the code. I can not figure out how to access the value of the Datagridcolumn. I have tied using event listeners, etc.. which did not work. Please let me know if anyone can help this fairly simple dilemma.
[flexcoders] Re: This is not as easy as it seems ... apparently...
Ok... In the parent component to the datagrid I used an initialize event: public function initDg():void { if(dgOrdExt.selectedItem[Kind]==LONG)dgOrdExt.Profit.dataField=Profit; if(dgOrdExt.selectedItem[Kind]==SHORT)dgOrdExt.Profit.dataField=ShProfit; } it does not work. but if I replace the code with dgOrdExt.dataField=Profit; which just sets the dataField without referencing the other column the code is all working... I also tried creationcomplete event and that did not work either. --- In flexcoders@yahoogroups.com, Craig cra...@... wrote: cause I was doing it within the custom component (column) itself for the datagrid, which can not hold an Id value, I can put it in the parent component however i'll give that a whack. --- In flexcoders@yahoogroups.com, postwick paul@ wrote: Not sure why you have all the Application.application stuff on there. Just reference the datagrid by it's id. mx:DataGrid id=mygrid mygrid.selectedItem[columname] = some value --- In flexcoders@yahoogroups.com, Craig craigj@ wrote: From within the custom component DataGrid Column I tried this code as you suggested at the initialize event but it errors: if(Application.application.CnvPos.dgOrdExt.selectedItem[Kind]==LONG) Profit.dataField=Profit; I don't think the selecteditem field is the answer. --- In flexcoders@yahoogroups.com, Craig craigj@ wrote: yes the datagrid is bound to an array collection. I don't want to select any item, I want to change the value of a column's DataField to a one of two values based on the value of another column's output. I don't want to have to 'selecteditem' but I can try that code below are you suggesting that I use it in the labelfunction of the datagrid column that I am trying to change? --- In flexcoders@yahoogroups.com, postwick paul@ wrote: Is the datagrid bound to a collection? if so, change the value in the collection. or try... yourDataGrid.selectedItem[dataColumn1] = yourDataGrid.selectedItem[dataColumn2] --- In flexcoders@yahoogroups.com, Craig craigj@ wrote: I am trying to set the value of a column based on the value of another column. If I use ...selectedItem... it does not work, unless I am mistaken. --- In flexcoders@yahoogroups.com, postwick paul@ wrote: You access the value in a column of a datagrid like this... yourDataGrid.selectedItem[dataColumnNameOfColumn] --- In flexcoders@yahoogroups.com, Craig craigj@ wrote: I GIVE UP!! I have tried everything!!.. I have a dataGrid that binds to an ArrayCollection. I need to change the value of one columen (Profit) based on the value of another column (Kind) ie.. the results (either 'LONG' or SHORT'). Here is where I'm at. I've tried putting code into customer DataGridColumns and labelFunctions and ItemRenderers... but can not do it. What seem to be working most are events in the DataGrid Component, better than others, but comparing values in a DataGrid is obviously impossible. Somehow I need the code to access ArrayCollection getItemat() but I can't do it! Please help! mx:DataGrid xmlns:mx=http://www.adobe.com/2006/mxml; initialize=initTA() positions:KindColumn id=Kind headerText=Kind dataField=Kind itemRenderer=com.steury.baseClasses.CellFieldTrd/ positions:ProfitColumn id=Profit headerText=Profit/ mx:Script ![CDATA[ import mx.collections.ArrayCollection; import com.steury.baseClasses.*; import mx.core.Application; import mx.controls.dataGridClasses.DataGridListData; import flash.events.Event; import mx.core.ClassFactory; import com.steury.controls.positions.*; import mx.controls.dataGridClasses.DataGridColumn; import mx.controls.DataGrid; private function initTA():String { if (value[Kind.dataField]==LONG)Profit.dataField=Profit; if (value[Kind.dataField]==SHORT)Profit.dataField=ShProfit; Profit.itemRenderer=new ClassFactory(com.steury.baseClasses.CellFieldInt); return myDec.format(Profit)+%; } --- In flexcoders
[flexcoders] Re: This is not as easy as it seems ... apparently...
yes the datagrid is bound to an array collection. I don't want to select any item, I want to change the value of a column's DataField to a one of two values based on the value of another column's output. I don't want to have to 'selecteditem' but I can try that code below are you suggesting that I use it in the labelfunction of the datagrid column that I am trying to change? --- In flexcoders@yahoogroups.com, postwick p...@... wrote: Is the datagrid bound to a collection? if so, change the value in the collection. or try... yourDataGrid.selectedItem[dataColumn1] = yourDataGrid.selectedItem[dataColumn2] --- In flexcoders@yahoogroups.com, Craig craigj@ wrote: I am trying to set the value of a column based on the value of another column. If I use ...selectedItem... it does not work, unless I am mistaken. --- In flexcoders@yahoogroups.com, postwick paul@ wrote: You access the value in a column of a datagrid like this... yourDataGrid.selectedItem[dataColumnNameOfColumn] --- In flexcoders@yahoogroups.com, Craig craigj@ wrote: I GIVE UP!! I have tried everything!!.. I have a dataGrid that binds to an ArrayCollection. I need to change the value of one columen (Profit) based on the value of another column (Kind) ie.. the results (either 'LONG' or SHORT'). Here is where I'm at. I've tried putting code into customer DataGridColumns and labelFunctions and ItemRenderers... but can not do it. What seem to be working most are events in the DataGrid Component, better than others, but comparing values in a DataGrid is obviously impossible. Somehow I need the code to access ArrayCollection getItemat() but I can't do it! Please help! mx:DataGrid xmlns:mx=http://www.adobe.com/2006/mxml; initialize=initTA() positions:KindColumn id=Kind headerText=Kind dataField=Kind itemRenderer=com.steury.baseClasses.CellFieldTrd/ positions:ProfitColumn id=Profit headerText=Profit/ mx:Script ![CDATA[ import mx.collections.ArrayCollection; import com.steury.baseClasses.*; import mx.core.Application; import mx.controls.dataGridClasses.DataGridListData; import flash.events.Event; import mx.core.ClassFactory; import com.steury.controls.positions.*; import mx.controls.dataGridClasses.DataGridColumn; import mx.controls.DataGrid; private function initTA():String { if (value[Kind.dataField]==LONG)Profit.dataField=Profit; if (value[Kind.dataField]==SHORT)Profit.dataField=ShProfit; Profit.itemRenderer=new ClassFactory(com.steury.baseClasses.CellFieldInt); return myDec.format(Profit)+%; } --- In flexcoders@yahoogroups.com, Craig craigj@ wrote: I am trying to access the value of a DataGridColumn and change the DataField for another column based on this value... Here is my code: ?xml version=1.0 encoding=utf-8? mx:DataGrid xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=getDp() ... Datagrid mx:columns mx:DataGridColumn dataField=Ticker headerText=Ticker/ mx:DataGridColumn id=Kind dataField=Kind itemRenderer=com.steury.baseClasses.CellFieldTrd / mx:DataGridColumn id=Profit headerText=Profit/ ActionScript: private function getDp():void { if(Application.application.CnvPos.dgOrdExt.selectedItem.Kind==LONG)Pro\ \ fit.dataField=Profit;Application.application.CnvPos.dgOrdExt.refresh()\ \ ; } //This code works find if I use if(Kind.DataField=Kind)Profit.dataField=Profit; //above to test the rest of the code. I can not figure out how to access the value of the Datagridcolumn. I have tied using event listeners, etc.. which did not work. Please let me know if anyone can help this fairly simple dilemma.
[flexcoders] Re: This is not as easy as it seems ... apparently...
now we're getting somewhere! but will this update the value of the col2 or the value of col2 DataField? I am trying to change the value of col2 DataField to Profit not the value of col2 itself. Can I use: dgOrdExt.getChildAt(i)[Profit].dataField = Profit CS --- In flexcoders@yahoogroups.com, postwick p...@... wrote: You can't use selectedItem because there is no selectedItem. You haven't clicked a row. Try looping through the grid. In the end, I really don't understand why you don't do this in the dataCollection, or even in the source data. for (var i:Number = 0; i mygrid.numChildren; i++) { if (mygrid.getChildAt(i)[Kind] == LONG) { mygrid.getChildAt(i)[Profit] = Profit; } else { mygrid.getChildAt(i)[Profit] = ShProfit; } --- In flexcoders@yahoogroups.com, Craig craigj@ wrote: Ok... In the parent component to the datagrid I used an initialize event: public function initDg():void { if(dgOrdExt.selectedItem[Kind]==LONG)dgOrdExt.Profit.dataField=Profit; if(dgOrdExt.selectedItem[Kind]==SHORT)dgOrdExt.Profit.dataField=ShProfit; } it does not work. but if I replace the code with dgOrdExt.dataField=Profit; which just sets the dataField without referencing the other column the code is all working... I also tried creationcomplete event and that did not work either. --- In flexcoders@yahoogroups.com, Craig craigj@ wrote: cause I was doing it within the custom component (column) itself for the datagrid, which can not hold an Id value, I can put it in the parent component however i'll give that a whack. --- In flexcoders@yahoogroups.com, postwick paul@ wrote: Not sure why you have all the Application.application stuff on there. Just reference the datagrid by it's id. mx:DataGrid id=mygrid mygrid.selectedItem[columname] = some value --- In flexcoders@yahoogroups.com, Craig craigj@ wrote: From within the custom component DataGrid Column I tried this code as you suggested at the initialize event but it errors: if(Application.application.CnvPos.dgOrdExt.selectedItem[Kind]==LONG) Profit.dataField=Profit; I don't think the selecteditem field is the answer. --- In flexcoders@yahoogroups.com, Craig craigj@ wrote: yes the datagrid is bound to an array collection. I don't want to select any item, I want to change the value of a column's DataField to a one of two values based on the value of another column's output. I don't want to have to 'selecteditem' but I can try that code below are you suggesting that I use it in the labelfunction of the datagrid column that I am trying to change? --- In flexcoders@yahoogroups.com, postwick paul@ wrote: Is the datagrid bound to a collection? if so, change the value in the collection. or try... yourDataGrid.selectedItem[dataColumn1] = yourDataGrid.selectedItem[dataColumn2] --- In flexcoders@yahoogroups.com, Craig craigj@ wrote: I am trying to set the value of a column based on the value of another column. If I use ...selectedItem... it does not work, unless I am mistaken. --- In flexcoders@yahoogroups.com, postwick paul@ wrote: You access the value in a column of a datagrid like this... yourDataGrid.selectedItem[dataColumnNameOfColumn] --- In flexcoders@yahoogroups.com, Craig craigj@ wrote: I GIVE UP!! I have tried everything!!.. I have a dataGrid that binds to an ArrayCollection. I need to change the value of one columen (Profit) based on the value of another column (Kind) ie.. the results (either 'LONG' or SHORT'). Here is where I'm at. I've tried putting code into customer DataGridColumns and labelFunctions and ItemRenderers... but can not do it. What seem to be working most are events in the DataGrid Component, better than others, but comparing values in a DataGrid is obviously impossible. Somehow I need the code to access ArrayCollection getItemat() but I can't do it! Please help! mx:DataGrid xmlns:mx=http://www.adobe.com/2006/mxml; initialize=initTA() positions:KindColumn id=Kind headerText=Kind dataField=Kind itemRenderer
[flexcoders] Re: This is not as easy as it seems ... apparently...
--- In flexcoders@yahoogroups.com, postwick p...@... wrote: thank you, sir... I appreciate your help, I shall do as you say !! Craig That'll update the value of the cell. You can't do what you're trying to do. You can't have a column with a different dataField per row. The dataField for the column is the same for every row. Is this data coming from a database, through a view? You really should do this there. You can set up a view column with an if/then that returns the column's value you want. --- In flexcoders@yahoogroups.com, Craig craigj@ wrote: now we're getting somewhere! but will this update the value of the col2 or the value of col2 DataField? I am trying to change the value of col2 DataField to Profit not the value of col2 itself. Can I use: dgOrdExt.getChildAt(i)[Profit].dataField = Profit CS --- In flexcoders@yahoogroups.com, postwick paul@ wrote: You can't use selectedItem because there is no selectedItem. You haven't clicked a row. Try looping through the grid. In the end, I really don't understand why you don't do this in the dataCollection, or even in the source data. for (var i:Number = 0; i mygrid.numChildren; i++) { if (mygrid.getChildAt(i)[Kind] == LONG) { mygrid.getChildAt(i)[Profit] = Profit; } else { mygrid.getChildAt(i)[Profit] = ShProfit; } --- In flexcoders@yahoogroups.com, Craig craigj@ wrote: Ok... In the parent component to the datagrid I used an initialize event: public function initDg():void { if(dgOrdExt.selectedItem[Kind]==LONG)dgOrdExt.Profit.dataField=Profit; if(dgOrdExt.selectedItem[Kind]==SHORT)dgOrdExt.Profit.dataField=ShProfit; } it does not work. but if I replace the code with dgOrdExt.dataField=Profit; which just sets the dataField without referencing the other column the code is all working... I also tried creationcomplete event and that did not work either. --- In flexcoders@yahoogroups.com, Craig craigj@ wrote: cause I was doing it within the custom component (column) itself for the datagrid, which can not hold an Id value, I can put it in the parent component however i'll give that a whack. --- In flexcoders@yahoogroups.com, postwick paul@ wrote: Not sure why you have all the Application.application stuff on there. Just reference the datagrid by it's id. mx:DataGrid id=mygrid mygrid.selectedItem[columname] = some value --- In flexcoders@yahoogroups.com, Craig craigj@ wrote: From within the custom component DataGrid Column I tried this code as you suggested at the initialize event but it errors: if(Application.application.CnvPos.dgOrdExt.selectedItem[Kind]==LONG) Profit.dataField=Profit; I don't think the selecteditem field is the answer. --- In flexcoders@yahoogroups.com, Craig craigj@ wrote: yes the datagrid is bound to an array collection. I don't want to select any item, I want to change the value of a column's DataField to a one of two values based on the value of another column's output. I don't want to have to 'selecteditem' but I can try that code below are you suggesting that I use it in the labelfunction of the datagrid column that I am trying to change? --- In flexcoders@yahoogroups.com, postwick paul@ wrote: Is the datagrid bound to a collection? if so, change the value in the collection. or try... yourDataGrid.selectedItem[dataColumn1] = yourDataGrid.selectedItem[dataColumn2] --- In flexcoders@yahoogroups.com, Craig craigj@ wrote: I am trying to set the value of a column based on the value of another column. If I use ...selectedItem... it does not work, unless I am mistaken. --- In flexcoders@yahoogroups.com, postwick paul@ wrote: You access the value in a column of a datagrid like this... yourDataGrid.selectedItem[dataColumnNameOfColumn] --- In flexcoders@yahoogroups.com, Craig craigj@ wrote: I GIVE UP!! I have tried everything!!.. I have a dataGrid that binds to an ArrayCollection. I need to change the value of one columen (Profit) based on the value of another column (Kind) ie.. the results (either 'LONG
[flexcoders] This is not as easy as it seems ... apparently...
I am trying to access the value of a DataGridColumn and change the DataField for another column based on this value... Here is my code: ?xml version=1.0 encoding=utf-8? mx:DataGrid xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=getDp() ... Datagrid mx:columns mx:DataGridColumn dataField=Ticker headerText=Ticker/ mx:DataGridColumn id=Kind dataField=Kind itemRenderer=com.steury.baseClasses.CellFieldTrd / mx:DataGridColumn id=Profit headerText=Profit/ ActionScript: private function getDp():void { if(Application.application.CnvPos.dgOrdExt.selectedItem.Kind==LONG)Pro\ fit.dataField=Profit;Application.application.CnvPos.dgOrdExt.refresh()\ ; } //This code works find if I use if(Kind.DataField=Kind)Profit.dataField=Profit; //above to test the rest of the code. I can not figure out how to access the value of the Datagridcolumn. I have tied using event listeners, etc.. which did not work. Please let me know if anyone can help this fairly simple dilemma.
[flexcoders] HELP! - Can not access Web Service!
I get error below if webservice asmx and URL of domain do not match... they both have to have http://www or no 'www' in order to run... otherwise I get the following error below BUT my cross domain is at the root of the webserver!! what am I doing wrong???: [RPC Fault faultString=Security error accessing url faultCode=Channel.Security.Error faultDetail=Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL (http://www.velocitytrading.net/VTOrdEnt.asmx?WSDL)] at mx.rpc.wsdl::WSDLLoader/faultHandler() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent() at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler() at mx.rpc::Responder/fault() at mx.rpc::AsyncRequest/fault() at DirectHTTPMessageResponder/securityErrorHandler() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/redirectEvent() CROSS DOMAIN ?xml version=1.0? !DOCTYPE cross-domain-policy SYSTEM http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd; cross-domain-policy allow-access-from domain=http://velocitytrading.net/ allow-access-from domain=http://www.velocitytrading.net/ allow-access-from domain=*.*/ /cross-domain-policy
[flexcoders] Re: HELP! - Can not access Web Service!
By the way... I am running this via a SWF file that is hosted off of a folder of the same domain. --- In flexcoders@yahoogroups.com, Craig cra...@... wrote: I get error below if webservice asmx and URL of domain do not match... they both have to have http://www or no 'www' in order to run... otherwise I get the following error below BUT my cross domain is at the root of the webserver!! what am I doing wrong???: [RPC Fault faultString=Security error accessing url faultCode=Channel.Security.Error faultDetail=Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL (http://www.velocitytrading.net/VTOrdEnt.asmx?WSDL)] at mx.rpc.wsdl::WSDLLoader/faultHandler() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent() at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler() at mx.rpc::Responder/fault() at mx.rpc::AsyncRequest/fault() at DirectHTTPMessageResponder/securityErrorHandler() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/redirectEvent() CROSS DOMAIN ?xml version=1.0? !DOCTYPE cross-domain-policy SYSTEM http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd; cross-domain-policy allow-access-from domain=http://velocitytrading.net/ allow-access-from domain=http://www.velocitytrading.net/ allow-access-from domain=*.*/ /cross-domain-policy
[flexcoders] Need Guidance for Integrating Flex and ASP.NET
My project loads stock tickers from SQL into asp.net datatables and when a chart is needed, the SWF file for Flex runs as a separate program. The datatables and charts are duplicated and run separately so you select the ticker from the table in flex to load the flex chart. What I would really like is for the back end to remain ASP.NET and SQL and when a chart is needed, Flex will launch a 'pop up window' or sizable component module that displays the chart information - in context with the asp.net datatable of tickers. I need some guidance as to how this is accomplished - the easiest way possible. Help is appreciated. CS
[flexcoders] Re: Help with ViewStack Event Listeners for Custom Components
Jitendra, Hi, my original post was not incorrect. I am actually trying to make children of a viewstack visible using a tab navigator, however the tab navigator is not a parent of the viewstack components. It is a parent of two other components within a separate Viewstack... creating a click event for the tab navigator does not work. A click event works when tied to the the children of the tab navigator, but doesn't make the interface work. ie... here is code with click event tied to tab nav (which does not work)... import mx.events.FlexEvent; private function showPanel():void { if (tbNav.selectedChild==Panel1) { vwStk.selectedChild=pn1; } else { vwStk.selectedChild=pn2; } } ]] /mx:Script mx:TabNavigator id=tbNav x=100 y=19 width=350 mx:Panel id=Panel1 label=Panel1 click={showPanel()} height=40% width=40% mx:Label text=Panel1 / /mx:Panel mx:Panel id=Panel2 label=Panel2 click={showPanel()} height=40% width=40% mx:Label text=Panel2 / /mx:Panel /mx:TabNavigator mx:ViewStack id=vwStk x=100 y=154 height=40% width=348 mx:Panel id=pn1 label=Panel1 mx:Label text=panel1/ /mx:Panel mx:Panel id=pn2 label=Panel2 mx:Label text=panel2/ /mx:Panel /mx:ViewStack !--comp:myPanel1 id=pn1/ comp:myPanel2 id=pn2/ -- /mx:Application I suspect I will need to create some Listeners and Handlers, but I am not too good at understanding how to do that on my own, can you provide any guidance? Thanks !! Craig --- In flexcoders@yahoogroups.com, jitendra jain [EMAIL PROTECTED] wrote: instead of vwChart.selectedIndex=0 make it vwchart.selectedChild=lgch . It will work Thanks, with Regards, Jitendra Jain Software Engineer 91-9979960798 - Original Message From: Craig [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, June 28, 2008 10:00:53 AM Subject: [flexcoders] Help with ViewStack Event Listeners for Custom Components My Viewstack does not make custom components active (they do not show up with simple functions like this one... vwChrt.selectedinde x=0; vwChrt.selectedinde x=1; I suspect I need to add Event Handlers, and would like some guidance. My MXML code looks like this (shortened) - A viewstack surrounding two custom components (panels) mx:ViewStack id=vwChrt creationPolicy= queued mx:Panel id=lgCh label=Long width=100% height=100% comp:Charts id=Chart creationPolicy= queued /comp:Charts /mx:Panel mx:Panel id=shCh title=Short width=100% height=100% comp:ShortsChrt id=ShortChart creationPolicy= queued /comp:ShortsChrt /mx:Panel /mx:ViewStack I am not sure how to use the following event listeners. vwChrt.getChildAt( 0).addEventListe ner(FlexEvent. CREATION_ COMPLETE, getLong); vwChrt.getChildAt( 1).addEventListe ner(FlexEvent. CREATION_ COMPLETE, getShort); Can anyone offer any advice? Thank you in advance for any help. Craig
[flexcoders] Re: Help with ViewStack Event Listeners for Custom Components
--- In flexcoders@yahoogroups.com, Craig [EMAIL PROTECTED] wrote: Jitendra, Hi, my original post was not incorrect. I am actually trying to make children of a viewstack visible using a tab navigator, however the tab navigator is not a parent of the viewstack components. It is a parent of two other components within a separate Viewstack... creating a click event for the tab navigator does not work. A click event works when tied to the the children of the tab navigator, but doesn't make the interface work. ie... here is code with click event tied to tab nav (which does not work)... import mx.events.FlexEvent; private function showPanel():void { if (tbNav.selectedChild==Panel1) { vwStk.selectedChild=pn1; } else { vwStk.selectedChild=pn2; } } ]] /mx:Script mx:TabNavigator id=tbNav x=100 y=19 width=350 mx:Panel id=Panel1 label=Panel1 click={showPanel()} height=40% width=40% mx:Label text=Panel1 / /mx:Panel mx:Panel id=Panel2 label=Panel2 click={showPanel()} height=40% width=40% mx:Label text=Panel2 / /mx:Panel /mx:TabNavigator mx:ViewStack id=vwStk x=100 y=154 height=40% width=348 mx:Panel id=pn1 label=Panel1 mx:Label text=panel1/ /mx:Panel mx:Panel id=pn2 label=Panel2 mx:Label text=panel2/ /mx:Panel /mx:ViewStack !-- comp:myPanel1 id=pn1/ comp:myPanel2 id=pn2/ -- /mx:Application I suspect I will need to create some Listeners and Handlers, but I am not too good at understanding how to do that on my own, can you provide any guidance? Thanks !! Craig --- In flexcoders@yahoogroups.com, jitendra jain jitendra_jain_2007@ wrote: instead of vwChart.selectedIndex=0 make it vwchart.selectedChild=lgch . It will work Thanks, with Regards, Jitendra Jain Software Engineer 91-9979960798 - Original Message From: Craig craigj@ To: flexcoders@yahoogroups.com Sent: Saturday, June 28, 2008 10:00:53 AM Subject: [flexcoders] Help with ViewStack Event Listeners for Custom Components My Viewstack does not make custom components active (they do not show up with simple functions like this one... vwChrt.selectedinde x=0; vwChrt.selectedinde x=1; I suspect I need to add Event Handlers, and would like some guidance. My MXML code looks like this (shortened) - A viewstack surrounding two custom components (panels) mx:ViewStack id=vwChrt creationPolicy= queued mx:Panel id=lgCh label=Long width=100% height=100% comp:Charts id=Chart creationPolicy= queued /comp:Charts /mx:Panel mx:Panel id=shCh title=Short width=100% height=100% comp:ShortsChrt id=ShortChart creationPolicy= queued /comp:ShortsChrt /mx:Panel /mx:ViewStack I am not sure how to use the following event listeners. vwChrt.getChildAt( 0).addEventListe ner(FlexEvent. CREATION_ COMPLETE, getLong); vwChrt.getChildAt( 1).addEventListe ner(FlexEvent. CREATION_ COMPLETE, getShort); Can anyone offer any advice? Thank you in advance for any help. Craig
[flexcoders] Help with ViewStack Event Listeners for Custom Components
My Viewstack does not make custom components active (they do not show up with simple functions like this one... vwChrt.selectedindex=0; vwChrt.selectedindex=1; I suspect I need to add Event Handlers, and would like some guidance. My MXML code looks like this (shortened) - A viewstack surrounding two custom components (panels) mx:ViewStack id=vwChrt creationPolicy=queued mx:Panel id=lgCh label=Long width=100% height=100% comp:Charts id=Chart creationPolicy=queued /comp:Charts /mx:Panel mx:Panel id=shCh title=Short width=100% height=100% comp:ShortsChrt id=ShortChart creationPolicy=queued /comp:ShortsChrt /mx:Panel /mx:ViewStack I am not sure how to use the following event listeners. vwChrt.getChildAt(0).addEventListener(FlexEvent.CREATION_COMPLETE, getLong); vwChrt.getChildAt(1).addEventListener(FlexEvent.CREATION_COMPLETE, getShort); Can anyone offer any advice? Thank you in advance for any help. Craig
[flexcoders] Very Strange Behavior
I have a Panel with a Tab Navigator and two Divided Boxes with DataGrids. I am not sure why I can't get dgShorts to load properly... any ideas? It will only load if it's brought to the to front before I bind it to the array collection, whereas the dgResults (first) datagrid will load fine either first or second. CS mx:Panel id=closedOrd label=Closed Orders title=Closed Trades horizontalScrollPolicy=off verticalAlign=left width=30% height=100% borderStyle=none backgroundAlpha=0.32 mx:TabNavigator id=vwResults width=100% height=100% borderStyle=none selectedChild={shResults} mx:VDividedBox id=lgResults label=Long styleName=divBox width=100% height=100% horizontalAlign=left click=rsClick() comp:DgResults id=dgResults width=100% height=40% textAlign=center /comp:DgResults comp:OrdForm id=Order/ /mx:VDividedBox mx:VDividedBox id=shResults label=Short width=100% height=100% styleName=divBox horizontalAlign=left click=shClick() comp:DgShorts id=dgShorts width=100% height=40% textAlign=center /comp:DgShorts comp:ShOrdForm id=shOrder/ /mx:VDividedBox /mx:TabNavigator /mx:Panel
[flexcoders] Re: ASP.NET RSS proxy?
Hey Tracy, this looks pretty easy, I am using ASP.NET with Flex 3.0 and but when I create an aspx page I get an error with the code below... I don't use code behind and put it on one page and try to access the page itself. Do I need to access the page some other way or modify code? the RSS is an example feed, my RSS feeds will need a variable ie... http://finance.yahoo.com/rss/headline?s=MSFT (the ticker symbol will be the variable). I am trying to access the feeds through Flex SWF. Any suggestions? The remote server returned an error: (404) Not Found. Here is code Craig %@ Page Language=C# % %@ Import Namespace=System.Xml % !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; script runat=server void page_load(Object sender, EventArgs e) { string strOutput; XmlDocument myXml = new XmlDocument(); myXml.Load(http://www.weather.gov/alerts/ak.rss;); strOutput = myXml.OuterXml; Response.ContentType = text/xml; Response.Write(strOutput); } /script --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: An of course you can generalize this by passing an url to the aspx page from flex: var oRequest:Object = {url= www.whatever.com/example.xml}; myHTTPRequest.send(oRequest); then in the aspx doing: myXml.Load(Request(url)); Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of n0ctule Sent: Friday, August 03, 2007 9:11 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: ASP.NET RSS proxy? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Nick Durnell nick@ wrote: Hi all, I've read here that in order to access RSS data in my Flex application (from sites with no crossdomain policy files) I will need to proxy the RSS data on the server which hosts the Flex application. I have seen links to PHP proxy scripts but does anyone have an ASP.NET equivalent? Thanks, Nick. Hi Nick Try this: %@ Page Language=C# Debug=true % %@ Import Namespace=System.Xml % script runat=server void page_load(Object sender, EventArgs e) { string strOutput; XmlDocument myXml = new XmlDocument(); myXml.Load(www.whatever.com/example.xml); strOutput = myXml.OuterXml; Response.ContentType = text/xml; Response.Write(strOutput); } /script
[flexcoders] Re: ASP.NET RSS proxy?
That is what I see from the browser to the web page. I have not gotten around to accessing it from within Flex application yet. CS --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: What do you see if you hit that aspx page directly from a browser? You can get better error reporting that way. I don't see anything wrong, though I would have to verify that outerXML was a property of XMLDocument. Might have to get documentElement. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Craig Sent: Friday, May 23, 2008 2:58 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: ASP.NET RSS proxy? Hey Tracy, this looks pretty easy, I am using ASP.NET with Flex 3.0 and but when I create an aspx page I get an error with the code below... I don't use code behind and put it on one page and try to access the page itself. Do I need to access the page some other way or modify code? the RSS is an example feed, my RSS feeds will need a variable ie... http://finance.yahoo.com/rss/headline?s=MSFT http://finance.yahoo.com/rss/headline?s=MSFT (the ticker symbol will be the variable). I am trying to access the feeds through Flex SWF. Any suggestions? The remote server returned an error: (404) Not Found. Here is code Craig %@ Page Language=C# % %@ Import Namespace=System.Xml % !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd script runat=server void page_load(Object sender, EventArgs e) { string strOutput; XmlDocument myXml = new XmlDocument(); myXml.Load(http://www.weather.gov/alerts/ak.rss http://www.weather.gov/alerts/ak.rss ); strOutput = myXml.OuterXml; Response.ContentType = text/xml; Response.Write(strOutput); } /script --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt tspratt@ wrote: An of course you can generalize this by passing an url to the aspx page from flex: var oRequest:Object = {url= www.whatever.com/example.xml}; myHTTPRequest.send(oRequest); then in the aspx doing: myXml.Load(Request(url)); Tracy From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of n0ctule Sent: Friday, August 03, 2007 9:11 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: ASP.NET RSS proxy? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Nick Durnell nick@ wrote: Hi all, I've read here that in order to access RSS data in my Flex application (from sites with no crossdomain policy files) I will need to proxy the RSS data on the server which hosts the Flex application. I have seen links to PHP proxy scripts but does anyone have an ASP.NET equivalent? Thanks, Nick. Hi Nick Try this: %@ Page Language=C# Debug=true % %@ Import Namespace=System.Xml % script runat=server void page_load(Object sender, EventArgs e) { string strOutput; XmlDocument myXml = new XmlDocument(); myXml.Load(www.whatever.com/example.xml); strOutput = myXml.OuterXml; Response.ContentType = text/xml; Response.Write(strOutput); } /script
[flexcoders] Re: ASP.NET RSS proxy?
I did turn on the tracing and de-bugging where I could find it and it gave the following information. It highlighted Line 13 below in RED. However, I can access this RSS feed just fine in a browser. I am running this from within Visual Studio 2005 not on an actual web server, but I do believe it simulates a web environment, (though I guess I'm not sure). Craig Server Error in '/velocitytrading.net' Application. \ The remote server returned an error: (404) Not Found. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Net.WebException: The remote server returned an error: (404) Not Found. Source Error: Line 11: Line 12: XmlDocument myXml = new XmlDocument(); Line 13: myXml.Load(http://www.weather.gov/alerts/ak.rss;); (THIS SECTION WAS IN RED) Line 14: Line 15: strOutput = myXml.OuterXml; Source File: c:\Craig\VelocityTrading\Website\velocitytrading.net\RSS\yahoonews.aspx Line: 13 Stack Trace: [WebException: The remote server returned an error: (404) Not Found.] System.Net.HttpWebRequest.GetResponse() +944 System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials credentials) +124 System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials) +117 System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) +71 System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver) +111 System.Threading.CompressedStack.runTryCode(Object userData) +54 System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteed\ Cleanup(TryCode code, CleanupCode backoutCode, Object userData) +0 System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state) +174 System.Xml.XmlTextReaderImpl.OpenUrl() +264 System.Xml.XmlTextReaderImpl.Read() +104 System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +403 System.Xml.XmlDocument.Load(XmlReader reader) +159 System.Xml.XmlDocument.Load(String filename) +114 ASP.rss_yahoonews_aspx.page_load(Object sender, EventArgs e) in c:\Craig\VelocityTrading\Website\velocitytrading.net\RSS\yahoonews.aspx:\ 13 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +31 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +68 System.Web.UI.Control.OnLoad(EventArgs e) +88 System.Web.UI.Control.LoadRecursive() +74 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3018 --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: Do you control the server? Can you turn on verbose errors? That is in the web.config file. Can you debug the aspx page? Step through in Visual Studio to see where the error is. If for some reason you can't do that, comment out all the code until you get no error, uncomment a line,response.Write(here), hit the page in a browser until you find where the error is. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Craig Sent: Friday, May 23, 2008 4:07 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: ASP.NET RSS proxy? That is what I see from the browser to the web page. I have not gotten around to accessing it from within Flex application yet. CS --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt tspratt@ wrote: What do you see if you hit that aspx page directly from a browser? You can get better error reporting that way. I don't see anything wrong, though I would have to verify that outerXML was a property of XMLDocument. Might have to get documentElement. Tracy From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Craig Sent: Friday, May 23, 2008 2:58 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: ASP.NET RSS proxy? Hey Tracy, this looks pretty easy, I am using ASP.NET with Flex 3.0 and but when I create an aspx page I get an error with the code below... I don't use code behind and put it on one page and try to access the page itself. Do I need to access the page some other way or modify code? the RSS is an example feed, my RSS feeds will need a variable ie... http://finance.yahoo.com/rss/headline?s=MSFT http://finance.yahoo.com/rss/headline?s=MSFT http://finance.yahoo.com/rss/headline?s=MSFT http://finance.yahoo.com/rss/headline?s=MSFT
[flexcoders] Re: ASP.NET RSS proxy?
Tracy, I did play with de-bugging a little more and this error came up with I came to the line below - one line at a time. The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. Only one top level element is allowed in an XML document. Error processing resource 'http://localhost:1821/velocitytrading div id=__asptrace -^Any Ideas? Craig --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: Do you control the server? Can you turn on verbose errors? That is in the web.config file. Can you debug the aspx page? Step through in Visual Studio to see where the error is. If for some reason you can't do that, comment out all the code until you get no error, uncomment a line,response.Write(here), hit the page in a browser until you find where the error is. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Craig Sent: Friday, May 23, 2008 4:07 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: ASP.NET RSS proxy? That is what I see from the browser to the web page. I have not gotten around to accessing it from within Flex application yet. CS --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt tspratt@ wrote: What do you see if you hit that aspx page directly from a browser? You can get better error reporting that way. I don't see anything wrong, though I would have to verify that outerXML was a property of XMLDocument. Might have to get documentElement. Tracy From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Craig Sent: Friday, May 23, 2008 2:58 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: ASP.NET RSS proxy? Hey Tracy, this looks pretty easy, I am using ASP.NET with Flex 3.0 and but when I create an aspx page I get an error with the code below... I don't use code behind and put it on one page and try to access the page itself. Do I need to access the page some other way or modify code? the RSS is an example feed, my RSS feeds will need a variable ie... http://finance.yahoo.com/rss/headline?s=MSFT http://finance.yahoo.com/rss/headline?s=MSFT http://finance.yahoo.com/rss/headline?s=MSFT http://finance.yahoo.com/rss/headline?s=MSFT (the ticker symbol will be the variable). I am trying to access the feeds through Flex SWF. Any suggestions? The remote server returned an error: (404) Not Found. Here is code Craig %@ Page Language=C# % %@ Import Namespace=System.Xml % !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd script runat=server void page_load(Object sender, EventArgs e) { string strOutput; XmlDocument myXml = new XmlDocument(); myXml.Load(http://www.weather.gov/alerts/ak.rss http://www.weather.gov/alerts/ak.rss http://www.weather.gov/alerts/ak.rss http://www.weather.gov/alerts/ak.rss ); strOutput = myXml.OuterXml; Response.ContentType = text/xml; Response.Write(strOutput); } /script --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt tspratt@ wrote: An of course you can generalize this by passing an url to the aspx page from flex: var oRequest:Object = {url= www.whatever.com/example.xml}; myHTTPRequest.send(oRequest); then in the aspx doing: myXml.Load(Request(url)); Tracy From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of n0ctule Sent: Friday, August 03, 2007 9:11 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: ASP.NET RSS proxy? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Nick Durnell nick@ wrote: Hi all, I've read here that in order to access RSS data in my Flex application (from sites with no crossdomain policy files) I will need to proxy the RSS data on the server which hosts the Flex application. I have seen links to PHP proxy scripts but does anyone have
[flexcoders] Re: ASP.NET RSS proxy?
I am going to try to use the RSS PHP Proxy on this example...(below) I am using the Flex3 code to load and parse the RSS files from the Flex3 documentation... it looks the same as most of the code from the as3syndicationlib that is on Mike Chambers blog (also below). This PHP proxy looks fairly simple to implement along with the most of the same code that I am using now, it skips ASP as a proxy, which I thought would be the easiest route, but I am not finding a way to use ASP for RSS XML proxy that has been done and can be easily re-produced and I do not want to invent a new version of the wheel or in this case a new version of the Toyota Prius ... Thoughts and comments welcome. PHP example: http://www.infinitearray.com/experiments/feeder/srcview/index.html rssfetch.php Mike Chambers Blog http://www.mikechambers.com/blog/2008/01/22/parsing-rss-20-feeds-in-acti\ onscript-3/ [:))] --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: Yes, something is returning HTML to you instead of XML. At least the XML is not valid(not XHTML). This looks like an error from the site you are hitting. Are you sure it is an RSS feed? You will need to wrap that in a try catch block and handle the html error. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Craig Sent: Friday, May 23, 2008 4:48 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: ASP.NET RSS proxy? Tracy, I did play with de-bugging a little more and this error came up with I came to the line below - one line at a time. The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. Only one top level element is allowed in an XML document. Error processing resource 'http://localhost:1821/velocitytrading div id=__asptrace -^ Any Ideas? Craig --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote: Do you control the server? Can you turn on verbose errors? That is in the web.config file. Can you debug the aspx page? Step through in Visual Studio to see where the error is. If for some reason you can't do that, comment out all the code until you get no error, uncomment a line,response.Write(here), hit the page in a browser until you find where the error is. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Craig Sent: Friday, May 23, 2008 4:07 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: ASP.NET RSS proxy? That is what I see from the browser to the web page. I have not gotten around to accessing it from within Flex application yet. CS --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt tspratt@ wrote: What do you see if you hit that aspx page directly from a browser? You can get better error reporting that way. I don't see anything wrong, though I would have to verify that outerXML was a property of XMLDocument. Might have to get documentElement. Tracy From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Craig Sent: Friday, May 23, 2008 2:58 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: ASP.NET RSS proxy? Hey Tracy, this looks pretty easy, I am using ASP.NET with Flex 3.0 and but when I create an aspx page I get an error with the code below... I don't use code behind and put it on one page and try to access the page itself. Do I need to access the page some other way or modify code? the RSS is an example feed, my RSS feeds will need a variable ie... http://finance.yahoo.com/rss/headline?s=MSFT http://finance.yahoo.com/rss/headline?s=MSFT http://finance.yahoo.com/rss/headline?s=MSFT http://finance.yahoo.com/rss/headline?s=MSFT (the ticker symbol will be the variable). I am trying to access the feeds through Flex SWF. Any suggestions? The remote server returned an error: (404) Not Found. Here is code Craig %@ Page Language=C# % %@ Import Namespace=System.Xml % !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd script runat=server void page_load(Object sender, EventArgs e) { string strOutput; XmlDocument myXml = new XmlDocument(); myXml.Load(http://www.weather.gov/alerts/ak.rss http://www.weather.gov
[flexcoders] Learning to use RegEx Sting Replace
i know, it should be easy, the following code gives me: Output: QuoteRSS i am looking for it to give me: Output: IBM 100 can you tell me what i am doing wrong? var str:String = QuoteRSS: IBM 100; var pattern:RegExp = /QuoteRSS/gi; str.replace(pattern, ); var result:Object = pattern.exec(str); rssQteTitle = result.toString(); Craig
[flexcoders] Re: Handling html formatted tables in Flex
This is the code. it is item description XML from stock quote. ![CDATA[ table border=0 cellspacing=0 cellpadding=1 width=150TRTD bgcolor=#00 table border=0 cellspacing=0 cellpadding=0 width=100% class=pq_all TR bgcolor=#DDTD WIDTH=100% ALIGN=CENTER COLSPAN=2 nowrapa href=http://finance.yahoo.com/q?d=ts=IBM;IBM/a /TD/TR TR bgcolor=#EETD WIDTH=100% nowrapnbsp;Last /TD TD WIDTH=40% nowrap align=right123.62/TD TR bgcolor=#DDTD WIDTH=100% nowrapnbsp;Change /TD TD WIDTH=40% nowrap align=rightfont color=#FF-1.56/fontnbsp;/TD/TR TR bgcolor=#EETD WIDTH=100% nowrapnbsp;% Change /TD TD WIDTH=40% nowrap align=rightfont color=#FF-1.25%/fontnbsp;/TD/TR TR bgcolor=#DDTD WIDTH=100% nowrapnbsp;Volume /TD TD WIDTH=40% nowrap align=right8334760nbsp;/TD/TR TR bgcolor=#EETD WIDTH=100% nowrapnbsp;Last /TD TD WIDTH=40% nowrap align=right4:00pmnbsp;/TD/TR TR WIDTH=100% HEIGHT=1px nowrapTD COLSPAN=2 HEIGHT=1px WIDTH=100%/TD/TR !--TR bgcolor=#DDTD ALIGN=center colspan=3font class=pq_tinyPHPQuote Bybra href=http://www.booyahmedia.com/;font color=#55BooyahMedia.com/font/a/font/TD/TR-- /TABLE /TD/TR/TABLE script type=text/javascript!-- google_ad_client = pub-6885229503023534; google_ad_width = 200; google_ad_height = 90; google_ad_format = 200x90_0ads_al; //2007-03-15: quoterss google_ad_channel = 5439835924; //-- /script script type=text/javascript src=http://pagead2.googlesyndication.com/pagead/show_ads.js; /script ]] --- In flexcoders@yahoogroups.com, Battershall, Jeff [EMAIL PROTECTED] wrote: Craig, See the note from Claus if you haven't already - he makes the important point that if the data is in XHTML you'll be able to conver the data into a format that could drive your datagrid very easily without string parsing. Is that the case? Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Craig Sent: Tuesday, May 20, 2008 5:40 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Handling html formatted tables in Flex Jeff, Since you put it that way, I shall get to string parsing. I really do appreciate your input. Craig --- In flexcoders@yahoogroups.com, Battershall, Jeff jeff.battershall@ wrote: Too difficult Having a feed that has UI embedded in it, is 'less than optimum'. Ideally the data you'd be receiving would be in a UI aqgnostic format. That said, I think you'll have to get your string parsing skills up to snuff. You have, within Flash/Flex, a RegEx implementation that should help you do that. It seems a pretty large tangent to move to AIR just to solve this problem. I'd say its time to roll up your sleeves and learn string parsing. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Craig Sent: Tuesday, May 20, 2008 3:27 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Handling html formatted tables in Flex My parsed data includes table tr and td commands which can't be read from datagrid, (I think)... the data is embedded in these tags, so getting it out would be too difficult. I found AIR mx:HTML window but have to evaluate distributing app as AIR. Do you have comment / other suggestion? CS --- In flexcoders@yahoogroups.com, Battershall, Jeff jeff.battershall@ wrote: Use your parsed data to create a dataprovider for a DataGrid. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Craig Sent: Tuesday, May 20, 2008 9:51 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Handling html formatted tables in Flex An RSS Feed providing quotes for my Flex application is outputting an HTML formatted table. I am able to parse everything out but can not display it with TextArea.htmlText as htmlText does not support Tables. Does anyone know of a way to display Table formatted html code using Flex? There is probably an easy way to do it that I am missing. Thanks, CS -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Re: Learning to use RegEx Sting Replace
the morning sun shines a new light on the subject the code should read... var result:String = str.replace(pattern, ); rssQteTitle = result.toString(); instead of str.replace(pattern, ); var result:Object = pattern.exec(str); rssQteTitle = result.toString(); --- In flexcoders@yahoogroups.com, Craig [EMAIL PROTECTED] wrote: i know, it should be easy, the following code gives me: Output: QuoteRSS i am looking for it to give me: Output: IBM 100 can you tell me what i am doing wrong? var str:String = QuoteRSS: IBM 100; var pattern:RegExp = /QuoteRSS/gi; str.replace(pattern, ); var result:Object = pattern.exec(str); rssQteTitle = result.toString(); Craig
[flexcoders] CrossDomain RSS Error Accessing from Web Server
I have a Flex 3.0 app that connects to RSS feed fine from FlexBuilder IDE but when deployed on Web Server gets the following error Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://mywebserver.net/myflexapp.swf cannot load data from http://finance.yahoo.com/rss/headline?s=INMD. I have tried many different crossdomain.xml configurations and they are easily acccessible from my web server root: http://mywebserver.net/crossdomain.xml but still no luck. Is it true I have to create a proxy for accessing this RSS data and do I need to write Java Server Applet as Satish has on his Blog... cause I don't look forward to that. Any other suggestions
[flexcoders] Re: Handling html formatted tables in Flex
Jeff, Since you put it that way, I shall get to string parsing. I really do appreciate your input. Craig --- In flexcoders@yahoogroups.com, Battershall, Jeff [EMAIL PROTECTED] wrote: Too difficult Having a feed that has UI embedded in it, is 'less than optimum'. Ideally the data you'd be receiving would be in a UI aqgnostic format. That said, I think you'll have to get your string parsing skills up to snuff. You have, within Flash/Flex, a RegEx implementation that should help you do that. It seems a pretty large tangent to move to AIR just to solve this problem. I'd say its time to roll up your sleeves and learn string parsing. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Craig Sent: Tuesday, May 20, 2008 3:27 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Handling html formatted tables in Flex My parsed data includes table tr and td commands which can't be read from datagrid, (I think)... the data is embedded in these tags, so getting it out would be too difficult. I found AIR mx:HTML window but have to evaluate distributing app as AIR. Do you have comment / other suggestion? CS --- In flexcoders@yahoogroups.com, Battershall, Jeff jeff.battershall@ wrote: Use your parsed data to create a dataprovider for a DataGrid. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Craig Sent: Tuesday, May 20, 2008 9:51 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Handling html formatted tables in Flex An RSS Feed providing quotes for my Flex application is outputting an HTML formatted table. I am able to parse everything out but can not display it with TextArea.htmlText as htmlText does not support Tables. Does anyone know of a way to display Table formatted html code using Flex? There is probably an easy way to do it that I am missing. Thanks, CS -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Handling html formatted tables in Flex
An RSS Feed providing quotes for my Flex application is outputting an HTML formatted table. I am able to parse everything out but can not display it with TextArea.htmlText as htmlText does not support Tables. Does anyone know of a way to display Table formatted html code using Flex? There is probably an easy way to do it that I am missing. Thanks, CS
[flexcoders] Re: Handling html formatted tables in Flex
My parsed data includes table tr and td commands which can't be read from datagrid, (I think)... the data is embedded in these tags, so getting it out would be too difficult. I found AIR mx:HTML window but have to evaluate distributing app as AIR. Do you have comment / other suggestion? CS --- In flexcoders@yahoogroups.com, Battershall, Jeff [EMAIL PROTECTED] wrote: Use your parsed data to create a dataprovider for a DataGrid. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Craig Sent: Tuesday, May 20, 2008 9:51 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Handling html formatted tables in Flex An RSS Feed providing quotes for my Flex application is outputting an HTML formatted table. I am able to parse everything out but can not display it with TextArea.htmlText as htmlText does not support Tables. Does anyone know of a way to display Table formatted html code using Flex? There is probably an easy way to do it that I am missing. Thanks, CS -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Parse RSS XML in HTML format???
I am using the RSSParser to read XML data into Flex, but can't get past an item which is formatted in HTML, it is the itemdescription portion of the feed... it it between Script tags like this... description![CDATA[ table border=0 cellspacing=0 cellpadding=0 width=200 TR bgcolor=#DD TD ALIGN=LEFT COLSPAN=2 nowrapa href=http://www.nasdaq.com/quote.dll? mode=stockpage=multisymbol=MSFTselected=MSFTMSFT/a nbsp; /TD (html code removed) /TRTR TD COLSPAN=2 nowrapnbsp; /TD /TR /TABLE ]]/description My Parser reads it in but I don't know what to call it or do with it. Here is xml PARSING code: for each (var item:XML in rssXML..item) { var itemTitle:String = item.title.toString(); var itempubDate:String = item.pubDate.toString(); var itemDescription:String = item.description.toString() var itemLink:String = item.link.toString(); outXML += buildItemHTML(itemTitle, itempubDate, itemDescription, itemLink); } XML.prettyPrinting = false; rssOutput = outXML.toXMLString(); trace(rssOutput); rssTitle = rssXML.channel.title.toString(); dataWritten = new Event(dataWritten, true); dispatchEvent(dataWritten); } Here is HTML output code: private function buildItemHTML(itemTitle:String, itempubDate:String, itemDescription:String, itemLink:String):XMLList { default xml namespace = new Namespace(); var body:XMLList = new XMLList(); body += new XML(b + itemTitle + /b); body += new XML(itempubDate); var p:XML = new XML(p + itemDescription + /p) var link:XML = a/a; [EMAIL PROTECTED] = itemLink; // link href=itemLinkString/link [EMAIL PROTECTED] = #008000; // font color=#008000/font/a // 0x008000 = green link.font = More...; p.appendChild(br/); p.appendChild(link); body += p; return body; Any suggestions?
[flexcoders] Re: How to remove space at the end of line chart when using disabledDays = [6,0]!
I figured out the specifics of 'monkeypatching' and your patch works great. --- In flexcoders@yahoogroups.com, Craig [EMAIL PROTECTED] wrote: Hey Jim, I am ready to start in on this monkeypatch for disabled days white space... but don't know where or how to copy and paste the datetimeaxis class. Can you help me out? Also, what other specifics should I know? Should I call name it DateTimeAxis? I assume the program will not want two classes with the same name... I've taught myself AS and MXML and do custom mxml components but have not done a lot of custom classes. Any direction would be appreciated. Craig --- In flexcoders@yahoogroups.com, Jim Cheng lists@ wrote: It's a Flex 3 charting bug alright. This was originally reported about 9 months ago during the beta cycle on the Flex bugbase and was later closed by Adobe with a resolution of Cannot Fix for what I believe to be a rather spurious reason, see: https://bugs.adobe.com/jira/browse/FLEXDMV-963 Contrary to what's reported in the comments on that bug, the problem is actually not too difficult to fix provided you have access to the source code (e.g. using Flex Builder 3 Pro) and are willing to do a little bit of subclassing or monkey-patching to fix the issue. Read on if you're interested. The basic problem is that the DateTimeAxis class does not correctly calculate the total space available for charting when disabledDays and/or disabledRanges is enabled. This is always taken to be the difference between computedMaximum and computedMinimum (as seen in the transformCache, buildLabelCache and buildMinorTickCache methods). However, this calculation becomes wrong when there are disabled ranges, as it yields a total span that's now too large (not accounting for the ranges that have been removed). The visual consequence of this is that the chart now appears to be condensed to the left. The available space should instead be taken to be the difference between computedMaximum and computedMinimum, with the following term also subtracted (in the context of the DateTimeAxis class): dateRangeUtilities.calculateDisabledRange(computedMinimum, computedMaximum); This additional term accounts for the space that is removed by the disabled ranges (or days), and consequently allows the chart's axis and elements to correctly take up the full available width. To make a simple monkey-patch to fix this, you can copy the contents of Adobe's DateTimeAxis class into your own class path, doing a search and replace on all instances in the file like so (removing quotes and excess whitespace for formatting): Find: computedMaximum - computedMinimum Replace with: computedMaximum - computedMinimum - dateRangeUtilities.calculateDisabledRange(computedMinimum, computedMaximum); You can also do this as a subclass, but that's somewhat trickier since the methods that you'll need to override make references to a number of private variables and methods of DateTimeAxis. As an aside, perhaps someone at Adobe might want to consider evaluating this patch for possible inclusion into the Flex 3 Charting codebase. I haven't found any other side effects in testing and my own use of this change, and it correctly handles the test case from the JIRA bug listed at the top of message. Jim buithanhtuu wrote: I'm using chart of flex 3. When I use Linechart with DateTimeAxis tag, in this tag i used property disabledDays = [6,0] then weekend days did not show on chart, but a lot of white space are show at the end of chart. So, the width of line chart is not scale full the width of chart. I used sample from this link http://livedocs.adobe.com/flex/3/html/help.html? content=charts_displayingdata_04.html http://livedocs.adobe.com/flex/3/html/help.html? content=charts_displayingdata_04.html Could you please help me fix this problem or this is bugs of chart in flex 3 ?
[flexcoders] Re: How to remove space at the end of line chart when using disabledDays = [6,0]!
Hey Jim, I am ready to start in on this monkeypatch for disabled days white space... but don't know where or how to copy and paste the datetimeaxis class. Can you help me out? Also, what other specifics should I know? Should I call name it DateTimeAxis? I assume the program will not want two classes with the same name... I've taught myself AS and MXML and do custom mxml components but have not done a lot of custom classes. Any direction would be appreciated. Craig --- In flexcoders@yahoogroups.com, Jim Cheng [EMAIL PROTECTED] wrote: It's a Flex 3 charting bug alright. This was originally reported about 9 months ago during the beta cycle on the Flex bugbase and was later closed by Adobe with a resolution of Cannot Fix for what I believe to be a rather spurious reason, see: https://bugs.adobe.com/jira/browse/FLEXDMV-963 Contrary to what's reported in the comments on that bug, the problem is actually not too difficult to fix provided you have access to the source code (e.g. using Flex Builder 3 Pro) and are willing to do a little bit of subclassing or monkey-patching to fix the issue. Read on if you're interested. The basic problem is that the DateTimeAxis class does not correctly calculate the total space available for charting when disabledDays and/or disabledRanges is enabled. This is always taken to be the difference between computedMaximum and computedMinimum (as seen in the transformCache, buildLabelCache and buildMinorTickCache methods). However, this calculation becomes wrong when there are disabled ranges, as it yields a total span that's now too large (not accounting for the ranges that have been removed). The visual consequence of this is that the chart now appears to be condensed to the left. The available space should instead be taken to be the difference between computedMaximum and computedMinimum, with the following term also subtracted (in the context of the DateTimeAxis class): dateRangeUtilities.calculateDisabledRange(computedMinimum, computedMaximum); This additional term accounts for the space that is removed by the disabled ranges (or days), and consequently allows the chart's axis and elements to correctly take up the full available width. To make a simple monkey-patch to fix this, you can copy the contents of Adobe's DateTimeAxis class into your own class path, doing a search and replace on all instances in the file like so (removing quotes and excess whitespace for formatting): Find: computedMaximum - computedMinimum Replace with: computedMaximum - computedMinimum - dateRangeUtilities.calculateDisabledRange(computedMinimum, computedMaximum); You can also do this as a subclass, but that's somewhat trickier since the methods that you'll need to override make references to a number of private variables and methods of DateTimeAxis. As an aside, perhaps someone at Adobe might want to consider evaluating this patch for possible inclusion into the Flex 3 Charting codebase. I haven't found any other side effects in testing and my own use of this change, and it correctly handles the test case from the JIRA bug listed at the top of message. Jim buithanhtuu wrote: I'm using chart of flex 3. When I use Linechart with DateTimeAxis tag, in this tag i used property disabledDays = [6,0] then weekend days did not show on chart, but a lot of white space are show at the end of chart. So, the width of line chart is not scale full the width of chart. I used sample from this link http://livedocs.adobe.com/flex/3/html/help.html? content=charts_displayingdata_04.html http://livedocs.adobe.com/flex/3/html/help.html? content=charts_displayingdata_04.html Could you please help me fix this problem or this is bugs of chart in flex 3 ?
[flexcoders] Re: Need some help with charts
try Lynda.com. --- In flexcoders@yahoogroups.com, flexuser1 [EMAIL PROTECTED] wrote: If the CFC returns an arraycollection you can just bind it to a chart in Flex. Maybe I don't quite understand what you're asking.
[flexcoders] Re: How to remove space at the end of line chart when using disabledDays = [6,0]!
Jim buithanhtuu, Thank you for posting this issue and 'workaround'. This bug was re- entered by Matt Chotin on March 27th, probably as a result of his reading this entry, it previously had been unresolved, let's hope this bug is fixed, it is a serious problem with Charting Applications, I also have a huge project on this... I have given up trying to find an answer and appreciate this workaround below. I have not upgraded to 3.0 because of this issue and will now purchase Pro 3.0 to see if I can accomplish this... if there is anything else anyone knows to get around this issue with 2.0 please let me know... I have signed up to the Adobe Bug Report ... https://bugs.adobe.com/jira/browse/SDK-15081 Let's hope this one does not get closed out as unresolved like the others!! Craig --- In flexcoders@yahoogroups.com, Jim Cheng [EMAIL PROTECTED] wrote: It's a Flex 3 charting bug alright. This was originally reported about 9 months ago during the beta cycle on the Flex bugbase and was later closed by Adobe with a resolution of Cannot Fix for what I believe to be a rather spurious reason, see: https://bugs.adobe.com/jira/browse/FLEXDMV-963 Contrary to what's reported in the comments on that bug, the problem is actually not too difficult to fix provided you have access to the source code (e.g. using Flex Builder 3 Pro) and are willing to do a little bit of subclassing or monkey-patching to fix the issue. Read on if you're interested. The basic problem is that the DateTimeAxis class does not correctly calculate the total space available for charting when disabledDays and/or disabledRanges is enabled. This is always taken to be the difference between computedMaximum and computedMinimum (as seen in the transformCache, buildLabelCache and buildMinorTickCache methods). However, this calculation becomes wrong when there are disabled ranges, as it yields a total span that's now too large (not accounting for the ranges that have been removed). The visual consequence of this is that the chart now appears to be condensed to the left. The available space should instead be taken to be the difference between computedMaximum and computedMinimum, with the following term also subtracted (in the context of the DateTimeAxis class): dateRangeUtilities.calculateDisabledRange(computedMinimum, computedMaximum); This additional term accounts for the space that is removed by the disabled ranges (or days), and consequently allows the chart's axis and elements to correctly take up the full available width. To make a simple monkey-patch to fix this, you can copy the contents of Adobe's DateTimeAxis class into your own class path, doing a search and replace on all instances in the file like so (removing quotes and excess whitespace for formatting): Find: computedMaximum - computedMinimum Replace with: computedMaximum - computedMinimum - dateRangeUtilities.calculateDisabledRange(computedMinimum, computedMaximum); You can also do this as a subclass, but that's somewhat trickier since the methods that you'll need to override make references to a number of private variables and methods of DateTimeAxis. As an aside, perhaps someone at Adobe might want to consider evaluating this patch for possible inclusion into the Flex 3 Charting codebase. I haven't found any other side effects in testing and my own use of this change, and it correctly handles the test case from the JIRA bug listed at the top of message. Jim buithanhtuu wrote: I'm using chart of flex 3. When I use Linechart with DateTimeAxis tag, in this tag i used property disabledDays = [6,0] then weekend days did not show on chart, but a lot of white space are show at the end of chart. So, the width of line chart is not scale full the width of chart. I used sample from this link http://livedocs.adobe.com/flex/3/html/help.html? content=charts_displayingdata_04.html http://livedocs.adobe.com/flex/3/html/help.html? content=charts_displayingdata_04.html Could you please help me fix this problem or this is bugs of chart in flex 3 ?
Re: [flexcoders] Security error - can anyone help with this?
nope, not yet, will give that a shot.. thx Jeff Tapper [EMAIL PROTECTED] wrote: try setting useProxy="true" on your HttpService tagAt 12:05 PM 10/26/2005, you wrote:I am getting the following popup error when i try to access theexamples on my secured server. Any one seen this before and I ahve myflex-config wide open..HTTPService Fault:sun.security.validator.ValidatorExecption:no trusted certificate could be foundi am on a https connection, so it looks like that the service call isthinking it is a http. is there something in the tag that I need tochage to tell it that it is a https?--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txthttp://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comhttp://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKShttp://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQWeb site design development http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHwComputer software development http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQSoftware design and developmenthttp://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjwMacromedia flex http://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIwSoftware development best practice--YAHOO! GROUPS LINKS * Visit your group "http://groups.yahoo.com/group/flexcodersflexcoders" on the web. * * To unsubscribe from this group, send an email to: * mailto:[EMAIL PROTECTED][EMAIL PROTECTED] * * Your use of Yahoo! Groups is subject to the http://docs.yahoo.com/info/terms/Yahoo! Terms of Service.-- Yahoo! FareChase - Search multiple travel sites in one click. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] problem with cell renderer showing data in datagrid twice
Matt: Sure did, Kevin H sent me some files that showed how to fix... thanks Craig ps. sorry for not responding quicker, been REAL busy... Matt Chotin [EMAIL PROTECTED] wrote: Craig, did you solve this or do you still need help? From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Craig NewrothSent: Thursday, August 11, 2005 11:35 AMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] problem with cell renderer showing data in datagrid twice here are the files cnewroth55 [EMAIL PROTECTED] wrote: okay, heres one for all; i have a datagrid and the last cell i wanted to put a combo box in it with a set of selections for a user to pick from. got the cell renederer to work and it puts the combo box in it, however if yu select an item from them combo box, it will put that selection in the next row that is 'invisible' or below the datagrids visible rows.graphic representation:__[][][combo box]-i select an item here say '1' (say there are 7 visible rows to datagrid)__here is the next row (8) that you cannot see unless you use scroll bar--[][][combo box] -the item '1' shows up here...and in subsequent selection(s) numbering the amount of visible rows in the dg..?here is the cellrenderer code file and the main mxml fileany thoughts as to why or what I am doing wrong?(guess I will have to attach the files in a seperate reply to this post, dont see where to attach them here) Start your day with Yahoo! - make it your home page Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: Flash Player 8 Beta - found problem??!!
sorry it took so long to respond...here is the file Craig Abdul Qabiz [EMAIL PROTECTED] wrote: Hi, Can you please send the test file (mxml + swf) to me. I would like to see it... We tried compiling your code with Flex 1.5 and running the app in firefox and IE with Flash Player 8. I can't reproduce it... But I would like to see your file.. -abdul From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Craig NewrothSent: Thursday, July 14, 2005 9:28 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: Flash Player 8 Beta - found problem??!! okay, maybe i did not make my self clear...when I was using Flash PLayer 7 and set the property 'alpha' to zero, then not only could I NOT see the bar (which is what I wanted) but i COULD STILL see the text in the control. Now in Flah Player 8, if i set the SAME property (alpha) in the SAME control to zero not only can I NOT see the BAR in the control, but the text is invisible now also... If i set the property to "1" then I cannot see the bar, but CAN still see the text of the 'LinkBar" tag... PR Muruganandh [EMAIL PROTECTED] wrote: Hi In FP7[IE] FP8[FireFox] The following code works the same way ?xml version="1.0" encoding="utf-8"? mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" mx:Link label="Anand" textRollOverColor="#0099CC" alpha="0"/ /mx:Application If I change alpha="100", then also FP7[IE] FP8[FireFox] works similar! Might be some problem with this mouseOver="triggerShowEffectNeedReports()" ! - anand From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Abdul QabizSent: Thursday, July 14, 2005 6:05 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: Flash Player 8 Beta - found problem??!! Hi, We tried reproducing the same here at our end and we don't see any difference between two players (FP7 FP8 Beta). -abdul From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Craig NewrothSent: Thursday, July 14, 2005 5:41 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Re: Flash Player 8 Beta - found problem??!! and here is what I did to get it to do what I wanted, evidently the Flash player 8 takes it literally on the alpha property :) - i set it to 1 (one) instead of zero (0) and it is back to being transparent like I wanted it to be... whew! WIll post that to the feedback Andrew, thx Craig Andrew Spaulding [EMAIL PROTECTED] wrote: Well I'm yet to find a bug but there seems to be some noticableimprovements in performance.Be sure to post your bug using the feedback form found herehttp://www.macromedia.com/bin/fp8betafeedback.cgi?Cheers,Andrew Spauldingwww.flexdaddy.info--- In flexcoders@yahoogroups.com, "cnewroth55" [EMAIL PROTECTED] wrote: Okay, saw the post about the beta Flash Player 8 beta, and as I like to jump in with both feet, installed it for IE, Netscape 7.2 and Fire Fox 1.0.4...went to one of my flex apps and found that I could no longer see my label in the Link tag in my app. I was setting the property 'alpha' to zero so that the "bar" that highlights the selection is invisible and just the rollovers would be seen. Removing the alpha property lets my labe be seen but then (as I am using haloBlue) i get a big ugly blue bar across my link label...I have a graphic behind the link bar and did not want this to show up (the bar)...it used to work in Flash player 7...so beta team thought you would like to knowI really, really dont want to give up my alpha :) ps. did noticed a slight improvement in load speed... this on longer works mx:Link label="{link1Data[0]}" color="#123154" modalTransparency="0" borderStyle="none" alpha="0" textRollOverColor="#0099CC" mouseOver="triggerShowEffectNeedReports ()" /--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Start your day with Yahoo! - make it your home page --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Do you Yahoo!?Yahoo! Mail - You care about security. So do we. --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders
Re: [flexcoders] Re: Flash Player 8 Beta - found problem??!!
which would be the preferred method Sjors, except that i did not see a visible property to this single item in the menu bar itself, either the whole bar is 'visible' with all it's sub itmes, or the entire bar is invisible, and this was not what I wanted... Sjors Pals [EMAIL PROTECTED] wrote: Well i think not "rendering" objects with alpha zero is a big mistake.There is a visible property, and i think that should be the criteria to render an object.Especially when you look to backward compatibility i hope macromedia will decide to (not) fix this isue.Greets,SjorsAlias wrote: Craig, This sounds like it's actually the result of a *fix* that's in the new player. If an object's _alpha is set to zero, it shouldn't be displayed at all - however, there were some issues with rendering device text with alpha, which is due to the limited font information the host platform passes back. However, as I understand it, the flash 8 player has much improved font rendering capabilities. So on a player level, this is expected behavior - it's just one of those unfortunate cases where a bug becomes a fact of life, and fixing it ends up causing problems. I'd say - design for the new player. HTH, Alias On 7/14/05, Craig Newroth [EMAIL PROTECTED] wrote:okay, maybe i did not make my self clear...when I was using Flash PLayer 7 and set the property 'alpha' to zero, then not only could I NOT see the bar (which is what I wanted) but i COULD STILL see the text in the control. Now in Flah Player 8, if i set the SAME property (alpha) in the SAME control to zero not only can I NOT see the BAR in the control, but the text is invisible now also... If i set the property to "1" then I cannot see the bar, but CAN still see the text of the 'LinkBar" tag... PR Muruganandh [EMAIL PROTECTED] wrote: Hi In FP7[IE] FP8[FireFox] The following code works the same way ?xml version="1.0" encoding="utf-8"? mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" mx:Link label="Anand" textRollOverColor="#0099CC" alpha="0"/ /mx:Application If I change alpha="100", then also FP7[IE] FP8[FireFox] works similar! Might be some problem with this mouseOver="triggerShowEffectNeedReports()" ! - anand From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Abdul Qabiz Sent: Thursday, July 14, 2005 6:05 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Flash Player 8 Beta - found problem??!! Hi, We tried reproducing the same here at our end and we don't see any difference between two players (FP7 FP8 Beta). -abdul ____ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Craig Newroth Sent: Thursday, July 14, 2005 5:41 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Flash Player 8 Beta - found problem??!! and here is what I did to get it to do what I wanted, evidently the Flash player 8 takes it literally on the alpha property :) - i set it to 1 (one) instead of zero (0) and it is back to being transparent like I wanted it to be... whew! WIll post that to the feedback Andrew, thx Craig Andrew Spaulding [EMAIL PROTECTED] wrote: Well I'm yet to find a bug but there seems to be some noticable improvements in performance. Be sure to post your bug using the feedback form found here http://www.macromedia.com/bin/fp8betafeedback.cgi? Cheers, Andrew Spaulding www.flexdaddy.info --- In flexcoders@yahoogroups.com, "cnewroth55" [EMAIL PROTECTED] wrote: Okay, saw the post about the beta Flash Player 8 beta, and as I like to jump in with both feet, installed it for IE, Netscape 7.2 and Fire Fox 1.0.4...went to one of my flex apps and found that I could no longer see my label in the Link tag in my app. I was setting the property 'alpha' to zero so that the "bar" that highlights the selection is invisible and just the rollovers would be seen. Removing the alpha property lets my labe be seen but then (as I am using haloBlue) i get a big ugly blue bar across my link label...I have a graphic behind the link bar and did not want this to show up (the bar)...it used to work in Flash player 7...so beta team thought you would like to knowI really, really dont want to give up my alpha :) ps. did noticed a slight improvement in load speed... this on longer works mx:Link label="{link1Data[0]}" color="#123154" modalTransparency="0" borderStyle="none" alpha="0" textRollOverColor="#0099CC" mouseOver="triggerShowEffectNeedReports ()" / -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archive
Re: [flexcoders] Re: Flash Player 8 Beta - found problem??!!
and as Studio 8 was released on mnayday that is what I intend to doyes, that did help, thx Alias Alias [EMAIL PROTECTED] wrote: Craig,This sounds like it's actually the result of a *fix* that's in the newplayer. If an object's _alpha is set to zero, it shouldn't bedisplayed at all - however, there were some issues with renderingdevice text with alpha, which is due to the limited font informationthe host platform passes back. However, as I understand it, the flash8 player has much improved font rendering capabilities.So on a player level, this is expected behavior - it's just one ofthose unfortunate cases where a bug becomes a fact of life, and fixingit ends up causing problems. I'd say - design for the new player.HTH,AliasOn 7/14/05, Craig Newroth [EMAIL PROTECTED] wrote: okay, maybe i did not make my self clear...when I was using Flash PLayer 7 and set the property 'alpha' to zero, then not only could I NOT see the bar (which is what I wanted) but i COULD STILL see the text in the control. Now in Flah Player 8, if i set the SAME property (alpha) in the SAME control to zero not only can I NOT see the BAR in the control, but the text is invisible now also... If i set the property to "1" then I cannot see the bar, but CAN still see the text of the 'LinkBar" tag...PR Muruganandh [EMAIL PROTECTED] wrote: Hi In FP7[IE] FP8[FireFox] The following code works the same way ?xml version="1.0" encoding="utf-8"? mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" mx:Link label="Anand" textRollOverColor="#0099CC" alpha="0"/ /mx:Application If I change alpha="100", then also FP7[IE] FP8[FireFox] works similar! Might be some problem with this mouseOver="triggerShowEffectNeedReports()" ! - anand From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Abdul Qabiz Sent: Thursday, July 14, 2005 6:05 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Flash Player 8 Beta - found problem??!! Hi, We tried reproducing the same here at our end and we don't see any difference between two players (FP7 FP8 Beta). -abdul____ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Craig Newroth Sent: Thursday, July 14, 2005 5:41 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Flash Player 8 Beta - found problem??!!and here is what I did to get it to do what I wanted, evidently the Flash player 8 takes it literally on the alpha property :) - i set it to 1 (one) instead of zero (0) and it is back to being transparent like I wanted it to be... whew!WIll post that to the feedback Andrew, thxCraig Andrew Spaulding [EMAIL PROTECTED] wrote:Well I'm yet to find a bug but there seems to be some noticable improvements in performance. Be sure to post your bug using the feedback form found here http://www.macromedia.com/bin/fp8betafeedback.cgi? Cheers, Andrew Spaulding www.flexdaddy.info--- In flexcoders@yahoogroups.com, "cnewroth55" [EMAIL PROTECTED] wrote: Okay, saw the post about the beta Flash Player 8 beta, and as I like to jump in with both feet, installed it for IE, Netscape 7.2 and Fire Fox 1.0.4...went to one of my flex apps and found that I could no longer see my label in the Link tag in my app. I was setting the property 'alpha' to zero so that the "bar" that highlights the selection is invisible and just the rollovers would be seen. Removing the alpha property lets my labe be seen but then (as I am using haloBlue) i get a big ugly blue bar across my link label...I have a graphic behind the link bar and did not want this to show up (the bar)...it used to work in Flash player 7...so beta team thought you would like to knowI really, really dont want to give up my alpha :)ps. did noticed a slight improvement in load speed...this on longer works mx:Link label="{link1Data[0]}" color="#123154" modalTransparency="0" borderStyle="none" alpha="0" textRollOverColor="#0099CC" mouseOver="triggerShowEffectNeedReports ()" / -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Start your day with Yahoo! - make it your home page -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com
Re: [flexcoders] problem with cell renderer showing data in datagrid twice
here are the files cnewroth55 [EMAIL PROTECTED] wrote: okay, heres one for all; i have a datagrid and the last cell i wanted to put a combo box in it with a set of selections for a user to pick from. got the cell renederer to work and it puts the combo box in it, however if yu select an item from them combo box, it will put that selection in the next row that is 'invisible' or below the datagrids visible rows.graphic representation:__[][][combo box]-i select an item here say '1' (say there are 7 visible rows to datagrid)__here is the next row (8) that you cannot see unless you use scroll bar--[][][combo box] -the item '1' shows up here...and in subsequent selection(s) numbering the amount of visible rows in the dg..?here is the cellrenderer code file and the main mxml fileany thoughts as to why or what I am doing wrong?(guess I will have to attach the files in a seperate reply to this post, dont see where to attach them here) Start your day with Yahoo! - make it your home page -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. MyCheckRenderer.mxml Description: 2002487617-MyCheckRenderer.mxml refresh.mxml Description: 3102065804-refresh.mxml
[flexcoders] Flex Portal Integration - Flex as a Portlet
I've been trying in vain over the last few weeks to get a simple Flex app deployed as a portlet in Jetspeed-2 (as a JSR-168 portlet). The resources I've found on the web so far have helped get me heading down the right track (both the articles on the Macromedia Dev site and a blog post by Cristophe Coenraets. However, I still cant get it to work, simply because I can't get the portlet to look outside of its own context. For example, I have jetspeed-2 running on Tomcat at http://myserver.com/jetspeed/ - this displays the jetspeed landing page. Flex is installed on the same Tomcat instance, at http://myserver.com/flex - however, when I create the portlet and try and point the .java to a view.jsp - it only allows files to be viewed/exectued within the portlet that are contained within that portlet context. This means that I can't put the mxml inside the portlet context because it is not within the Flex context (so it won't execute), and neither can I put the mxml outside in the flex context because my portlet can't access it. Does anybody have a very basic cookbook for getting flex functioning within portlets. I know *somebody* out there must have done it, I know I am just not seeing/missing something obvious. Any help, much appreciated. Cheers, Craig McDonald\ -- == UCOnline Development Team University of Canberra e: [EMAIL PROTECTED] p: +61-2-6201-5514 -- 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: Column chart using webservice result
Tony, I would be interested in seeing how you did this, I have a similar situation, but have not been able to get it to do what I want either. thanks, Craig tony_lic [EMAIL PROTECTED] wrote: Hi Matt, Thanks for your help. I'm now able to render the chart successfully.with regards,tony--- In flexcoders@yahoogroups.com, "Matt Chotin" [EMAIL PROTECTED] wrote: Hard to know what you're running into without seeing your problems. But before you post them I'd just take a look at the existing chart samples like the char explorer to see if you can match up on anything that might already exist. There are plenty of flexcoders posts about charts as well, the archives might have code that you're looking for.Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of tony_lic Sent: Tuesday, July 12, 2005 1:07 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Column chart using webservice resultMatt Chotin: Ha. i tried with that it works. I have one more problem. now i'm able to set the horizontal axis from the web service result. but how can i set other details like Column series values of each series. it would be a great help for me if you could help me. with regards, tony --- In flexcoders@yahoogroups.com, "Matt Chotin" [EMAIL PROTECTED] wrote: Shouldn't you be able to replace the last two lines with colchartKPI.horizontalAxis = series?I haven't played with this much...From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of tony_lic Sent: Monday, July 11, 2005 4:24 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Column chart using webservice resulthi, I have to build a column chart, where all the properties like columnseries, categoryaxis the y-axis values all should come from a web service. I dont know where to provide the data provider property. I tried some coding but it does not appear to work. let me provide with you the code snippet. please help me.for(var i=0;i oRequest.AxisData.item[0].Set.item.length; i++) { tempValues.push (oRequest.AxisData.item[0].Set.item[i].Caption.toString()); //Alert.show(oRequest.AxisData.item [0].Set.item[i].Caption.toString()); } colchartKPI.dataProvider = oRequest.AxisData.item[0].Set; var series:CategoryAxis = new CategoryAxis(); series.dataProvider = tempValues;colchartKPI.horizontalAxis.CategoryAxis.dataProvider = tempValues; colchartKPI.horizontalAxis.addItem(series);with regards, tony -- 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 * Visit your group "flexcoders http://groups.yahoo.com/group/flexcoders " on the web.* To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] subject=Unsubscribe * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . -- 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 * Visit your group "flexcoders http://groups.yahoo.com/group/flexcoders " on the web.* To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]subject=Unsubscribe * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Computer software testing Macromedia flex Development Software developer Start your day with Yahoo! - make it your home page -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: Flash Player 8 Beta - found problem??!!
okay, maybe i did not make my self clear...when I was using Flash PLayer 7 and set the property 'alpha' to zero, then not only could I NOT see the bar (which is what I wanted) but i COULD STILL see the text in the control. Now in Flah Player 8, if i set the SAME property (alpha) in the SAME control to zero not only can I NOT see the BAR in the control, but the text is invisible now also... If i set the property to "1" then I cannot see the bar, but CAN still see the text of the 'LinkBar" tag... PR Muruganandh [EMAIL PROTECTED] wrote: Hi In FP7[IE] FP8[FireFox] The following code works the same way ?xml version="1.0" encoding="utf-8"? mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" mx:Link label="Anand" textRollOverColor="#0099CC" alpha="0"/ /mx:Application If I change alpha="100", then also FP7[IE] FP8[FireFox] works similar! Might be some problem with this mouseOver="triggerShowEffectNeedReports()" ! - anand From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Abdul QabizSent: Thursday, July 14, 2005 6:05 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: Flash Player 8 Beta - found problem??!! Hi, We tried reproducing the same here at our end and we don't see any difference between two players (FP7 FP8 Beta). -abdul From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Craig NewrothSent: Thursday, July 14, 2005 5:41 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Re: Flash Player 8 Beta - found problem??!! and here is what I did to get it to do what I wanted, evidently the Flash player 8 takes it literally on the alpha property :) - i set it to 1 (one) instead of zero (0) and it is back to being transparent like I wanted it to be... whew! WIll post that to the feedback Andrew, thx Craig Andrew Spaulding [EMAIL PROTECTED] wrote: Well I'm yet to find a bug but there seems to be some noticableimprovements in performance.Be sure to post your bug using the feedback form found herehttp://www.macromedia.com/bin/fp8betafeedback.cgi?Cheers,Andrew Spauldingwww.flexdaddy.info--- In flexcoders@yahoogroups.com, "cnewroth55" [EMAIL PROTECTED] wrote: Okay, saw the post about the beta Flash Player 8 beta, and as I like to jump in with both feet, installed it for IE, Netscape 7.2 and Fire Fox 1.0.4...went to one of my flex apps and found that I could no longer see my label in the Link tag in my app. I was setting the property 'alpha' to zero so that the "bar" that highlights the selection is invisible and just the rollovers would be seen. Removing the alpha property lets my labe be seen but then (as I am using haloBlue) i get a big ugly blue bar across my link label...I have a graphic behind the link bar and did not want this to show up (the bar)...it used to work in Flash player 7...so beta team thought you would like to knowI really, really dont want to give up my alpha :) ps. did noticed a slight improvement in load speed... this on longer works mx:Link label="{link1Data[0]}" color="#123154" modalTransparency="0" borderStyle="none" alpha="0" textRollOverColor="#0099CC" mouseOver="triggerShowEffectNeedReports ()" /--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Start your day with Yahoo! - make it your home page --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Do you Yahoo!? Yahoo! Mail - You care about security. So do we. -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Flex Portal Integration - Flex as a Portlet
Do you need Flex to run in a separate context? If not, you can deploy the Flex classes etc. to the jetspeed context How exactly do I go about doing this - do I deploy the entire Flex war file in the jetspeed container? Or is there a sub-selection of appropriate flex libraries that will allow flex to function without having to deploy the entire flex app. What implications does this have for licensing if I am deploying two instances of Flex - one in one context and another in the jetspeed context? I guess my problem is stemming from a slightly incorrect installation of Flex then, correct? If so, what is the procedure for installing Flex in a portal environment? I am guessing I have to allow flex to run in the /jetspeed/flex context rather than the /flex context. Thanks for your help so far. Cheers, Craig -- 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: okay, so I can't beleive that......
i have tried every combination of the "Type" that I can, now the cffunction has a returntype that i had set to query, so I will try array there, but am not hopeful that will work... will let you knowdo you have any examples of a RO accepting mutlitple data and returning results? If so then please send, maybe I am missing something else.. thanks, Craig "Mercer, Dustin" [EMAIL PROTECTED] wrote: Ok sorry, I thought he was going to Java not CFC. A method signature is just what the method is expecting and what it is returning. Basically how you typed the function. I.E. a java method signature looks like this : private static void someFunction( String param1, String param2 ). I dont know if I have enough knowledge to help you with CF, but here goes Looks like your CF code should look like this : Here is the CFC:!--- Thrust Query (Summary) --- cffunction name="Thrust_Query" returntype="query" output="true" access="remote" cfargument name="ThrustName" required="no" type="string" cfset var MyQuery="" cfquery name="MyQuery" datasource="somedb" !--query removed for security reasons-- /cfquery cfreturn MyQuery /cffunction Look at the cold bolded and red. This code should look like this if you want to use selectedItems: cfargument name="ThrustName" required="no" type="array" You have to make sure your query will support an array though You may have to change the way you are doing this to include some code to parse the array. I would really have to see what you are doing to explain better. Hopefully this was enough of an explanation to help you. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of gotjosh819iSent: Wednesday, June 08, 2005 12:12 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Re: okay, so I can't beleive that.. I am helping him on this, what do you mean method signature?The method is Thrust_Query the argument is ThrustName the web srv works fine.. the RO does not.Here is the CFC:!--- Thrust Query (Summary) --- cffunction name="Thrust_Query" returntype="query" output="true" access="remote" cfargument name="ThrustName" required="no" type="string" cfset var MyQuery="" cfquery name="MyQuery" datasource="somedb" !--query removed for security reasons-- /cfquery cfreturn MyQuery /cffunctionHere is the RO call in flex:mx:RemoteObject source="gvs._cfc.Copygvs_queries" id="gvsQueriesRO" endpoint="http://mydomains.com/flashservices/gateway" mx:method name="Thrust_Query" result="one(event)" mx:arguments ThrustName{thrustCB.selectedItems}/ThrustName /mx:arguments /mx:method /mx:RemoteObject--- In flexcoders@yahoogroups.com, "Mercer, Dustin" [EMAIL PROTECTED] wrote: What is your RO expecting as a parameter? An array or a single object? selectedItems is an array so you must set your RO to accept an array as a parameter. What is the Thrust_Query method signature?_ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of cnewroth55 Sent: Wednesday, June 08, 2005 11:36 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] okay, so I can't beleive that..okay, so i can't beleive that I cannot pass multiple valuse into a RO tagI have a list control, it is being fed from an array, multiple selections are set to truei have tried SEVERAL different ways to pass the 'selectedItems' property to my Remote Object tag...see below the cfc call (obvious parts removed): cffunction name="Thrust_Query" returntype="query" output="true" access="remote" cfargument name="ThrustName" required="no" type="string" (have tired every thing in the type for this piece) the function; var revResult:Object; function one(myEvent:Object):Void { revResult=myEvent.result; } //Thanks Matt Boles the list control mx:List dataProvider="{link2Data}" change="gvsQueriesRO.Thrust_Query.send()" id="thrustCB" multipleSelection="true" width="250" toolTip="Select from this list to get an overview. Hold the control key down to select multiple items." alpha="0" color="#FF" textRollOverColor="#33" /mx:List the RO tag: mx:RemoteObject source="gvs._cfc.Copygvs_queries" id="gvsQueriesRO" endpoint="http://mydomains.com/flashservices/gateway" mx:method name="Thrust_Query" result="one(event)" mx:arguments ThrustName{thrustCB.selectedItems}/ThrustName /mx:arguments /mx:method /mx:RemoteObject no matter WHAT I do tyring to use this returns squat! if i change just this in the mx:arguments tag it works, ThrustName{th
Re: [flexcoders] Calendar
use the caledar that is built in to flex Joel Parish [EMAIL PROTECTED] wrote: Is there any way to impliment a calendar in flex? I am looking intousing a TileList but I really don't want to reinvent the wheel(granted it's allready invented). Any insights into how i may do this,or how others have allready done it are welcome!Thank you,Joel Discover Yahoo! Have fun online with music videos, cool games, IM & more. Check it out! 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 the Yahoo! Terms of Service.
RE: [flexcoders] prblem with getting dat back from A Remote Object
yes, i did not have the send, and it appears that I am not really sending the data in the parameter to the RO. If i run it as a web service i get this in the network monitor: Method: Thrust_QueryParameter 1: name : ThrustNametype : string value[array] : length[Number] : 1[0][String] : ASMT - Affordable Structures Mfg. Tech if i run it as a RO i get this in the network monitor: Method: gvs._cfc.gvs_queries.Thrust_ReportParameter 1: name : param1type : object value[array] : length[Number] : 1[0][String] : ASMT - Affordable Structures and Mfg. Tech so it look like in need to add mx:Arguments tag to my RO tag? not sure how to do this, i think i saw it somewhere in the online docs, but not sure where :-) Craig Tracy Spratt [EMAIL PROTECTED] wrote: I am assuming I missed the send().Have you traced or alerted the result in your result handler?Tracy-Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] OnBehalf Of cnewroth55Sent: Thursday, June 02, 2005 12:11 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] prblem with getting dat back from A Remote Objecthi all, I am haiving a problem getting my data back from my call to a RO. It looks like (in the network monitor) that the call is working, but I am not getting any data back into my datagrid (where i think i have the binding right). the netowrk monitor shows this:Method: gvs._cfc.gvs_queries.Thrust_QueryParameter 1: name : param1type : objectvalue[object] : ThrustName[array] : length[Number] : 1[0][String] : ASMT - Affordable Structures and Mfg. Techand my code is this://the call to the ROmx:RemoteObject id="gvsQueriesWS" endpoint="http://www-stl-100d.mw.nos.boeing.com/flashservices/gateway" source="gvs._cfc.gvs_queries" mx:method name="Thrust_Query" result="onGetThrustList(event.result)" //mx:RemoteObjectthe scraip call to put everything where is it supposed to go (this is where I think i am doing it wrong)mx:Script ![CDATA[ var thrustSelectedData:Object; //array of selected thrust reports var reviewThrusts:Object; //array of thrusts // Store selected items into thrust object function thrustSelect():Void{ thrustSelectedData.ThrustName = thrustCB.selectedItems; } function getThrustQueriesWS(){ //pass the data to the RO gvsQueriesWS.Thrust_Query({ThrustName:thrustCB.selectedItems}); showSelectedThrusts.text = thrustCB.selectedItems; }// assign returned thrust data to review data model function onGetThrustList(result:Object):Void{ reviewThrusts = result; }the rest of the code (got some extra stuff in this but that doesn't matter, not being used) mx:HBox mx:List dataProvider="{link2Data}" change="getThrustQueriesWS()" id="thrustCB" multipleSelection="true" width="250" toolTip="Select from this list to get an overview. Hold the control key down to select multiple items." alpha="0" color="#FF" textRollOverColor="#33" /mx:List mx:VBox mx:HBox mx:Text text="Select from below to create your report" width="240" color="#FF" / /mx:HBox mx:HBox mx:Spacer / mx:FormItemmx:RadioButtonGroup id="reportType" / mx:RadioButton label="Summary" groupName="reportType" data="" selected="true" color="#FF"/ mx:RadioButton label="Detail" groupName="reportType" data="" color="#FF"/ /mx:FormItem mx:FormItem mx:RadioButtonGroup id="reportFormat" / mx:RadioButton label="PDF Format" groupName="reportFormat" data="" selected="true" color="#FF" / mx:RadioButton label="Flash Paper Format" groupName="reportFormat" data="" color="#FF"/ mx:RadioButton label="Excel Format" groupName="reportFormat" data="" color="#FF"/ /mx:FormItem /mx:HBox mx:HBox mx:Spacer width="55" / mx:Button label="Create Report" toolTip="Be sure you selected a report format" click="getPDFReports()" id="createReportButton" / mx:Text text="Text" id="showSelectedThrusts" / /mx:HBox /mx:VBox /mx:HBox mx:Text text="Thrust Report(s) - Summary Overview" width="229" color="#FF" /mx:StylemyLinkBar.LinkBar { horizontal-gap: 22; stroke-color: #CC; roll-over-color: #e1e1e1; selection-color: #cc; text-rollover-color: #cc; disabled-Color: #0099CC; } reportType.RadioButton { fill-colors: #0099ff, #ff; }/mx:Style!-- Create a LinkBar container to navigate the ViewStack container. --!-- Define the ViewStack and the three child containers. -- mx:DataGrid id="datagrid1" x="0" y="44" dataProvider="{reviewThrusts}" rowCount="10" width="100%" visible
Re: [flexcoders] can I bind more that one checkbox to a send requ est?
That helped alot, thanks Jeff. --- Jeff Steiner [EMAIL PROTECTED] wrote: Craig, I have a specific example on FlexAuthority. Visit: http://www.flexauthority.com/samplesIndex.cfm?sampleID=23 I have multiple checkboxes that pass along their checked state to a CFC that returns XML to populate a chart. Let me know if that does not answer your specific question. Jeff http://www.flexauthority.com - Original Message - From: Craig Newroth [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, May 24, 2005 4:55 AM Subject: RE: [flexcoders] can I bind more that one checkbox to a send requ est? Matt: Thanks for the response, I am trying to pass a list of the ones that are checked..values in the checkboxes are going to be passed to a cfc to get data from query and returned to datagrid. so I guess that you are saying to build an array out of the checkboxes (if they are checked) and then pass that array value to my cfc call? Craig --- Matt Chotin [EMAIL PROTECTED] wrote: Are you trying to pass a list of the ones that are checked or just one? Your changeThrusts method can simply store which checkboxes are selected and then you can build an array to pass to your web service for the query. If only one of those checkboxes is meant to be checked maybe you should look into using RadioButtons instead and then take advantage of RadioButtonGroup.selectedData. Matt _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of cnewroth55 Sent: Thursday, May 19, 2005 10:44 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] can I bind more that one checkbox to a send request? I have a form that has several different checkboxes and need to pass any of their respected labels (or data) to a webservice cfc..what i what to do is be able to pass any of the below up to my webservice call. the code for the web service call is below this...; mx:VBox mx:CheckBox label=Select All Thrust color=#123154 labelPlacement=right id=ThrustReportsCHB1 click=changeThrusts( event ); / mx:CheckBox label=ASMT - Affordable Structures amp; Mfg. Tech color=#123154 labelPlacement=right id=ThrustReportsCHB2 / mx:CheckBox label=ALE - Adv. Lean amp; Efficient color=#123154 labelPlacement=right id=ThrustReportsCHB3 / mx:CheckBox label=ASC - Adv. Support Concepts color=#123154 labelPlacement=right id=ThrustReportsCHB4 / mx:CheckBox label=ASC - APS - Adv. Platform Systems color=#123154 labelPlacement=right id=ThrustReportsCHB5 / mx:CheckBox label=NCO - Net-Centric Operations color=#123154 labelPlacement=right id=ThrustReportsCHB6 / mx:HBox x=5 y=230 mx:FormItem mx:CheckBox label=Summary color=#123154 labelPlacement=top id=summaryCHB click=changeOther( event );/ /mx:FormItem mx:FormItem mx:CheckBox label=Detail color=#123154 labelPlacement=top id=detailCHB click=changeOther( event );/ /mx:FormItem /mx:HBox /mx:VBox WEB SERVICE CALL mx:WebService wsdl=http://nameremoved.com/gvs/_cfc/gvs_queries.cfc? http://nameremoved.com/gvs/_cfc/gvs_queries.cfc? wsdl id=gvsQueriesWS mx:operation name=Thrust_Query mx:request ThrustName{WhereIneedToPassCheckboxDATA}/ThrustName /mx:request /mx:operation /mx:WebService _ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! http://docs.yahoo.com/info/terms/ Terms of Service. __ Do you Yahoo!? Yahoo! Small Business - Try our new Resources site http://smallbusiness.yahoo.com/resources/ Yahoo! Groups Links __ Do you Yahoo!? Yahoo! Small Business - Try our new Resources site http://smallbusiness.yahoo.com/resources/ 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] can I bind more that one checkbox to a send requ est?
Matt: Thanks for the response, I am trying to pass a list of the ones that are checked..values in the checkboxes are going to be passed to a cfc to get data from query and returned to datagrid. so I guess that you are saying to build an array out of the checkboxes (if they are checked) and then pass that array value to my cfc call? Craig --- Matt Chotin [EMAIL PROTECTED] wrote: Are you trying to pass a list of the ones that are checked or just one? Your changeThrusts method can simply store which checkboxes are selected and then you can build an array to pass to your web service for the query. If only one of those checkboxes is meant to be checked maybe you should look into using RadioButtons instead and then take advantage of RadioButtonGroup.selectedData. Matt _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of cnewroth55 Sent: Thursday, May 19, 2005 10:44 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] can I bind more that one checkbox to a send request? I have a form that has several different checkboxes and need to pass any of their respected labels (or data) to a webservice cfc..what i what to do is be able to pass any of the below up to my webservice call. the code for the web service call is below this...; mx:VBox mx:CheckBox label=Select All Thrust color=#123154 labelPlacement=right id=ThrustReportsCHB1 click=changeThrusts( event ); / mx:CheckBox label=ASMT - Affordable Structures amp; Mfg. Tech color=#123154 labelPlacement=right id=ThrustReportsCHB2 / mx:CheckBox label=ALE - Adv. Lean amp; Efficient color=#123154 labelPlacement=right id=ThrustReportsCHB3 / mx:CheckBox label=ASC - Adv. Support Concepts color=#123154 labelPlacement=right id=ThrustReportsCHB4 / mx:CheckBox label=ASC - APS - Adv. Platform Systems color=#123154 labelPlacement=right id=ThrustReportsCHB5 / mx:CheckBox label=NCO - Net-Centric Operations color=#123154 labelPlacement=right id=ThrustReportsCHB6 / mx:HBox x=5 y=230 mx:FormItem mx:CheckBox label=Summary color=#123154 labelPlacement=top id=summaryCHB click=changeOther( event );/ /mx:FormItem mx:FormItem mx:CheckBox label=Detail color=#123154 labelPlacement=top id=detailCHB click=changeOther( event );/ /mx:FormItem /mx:HBox /mx:VBox WEB SERVICE CALL mx:WebService wsdl=http://nameremoved.com/gvs/_cfc/gvs_queries.cfc? http://nameremoved.com/gvs/_cfc/gvs_queries.cfc? wsdl id=gvsQueriesWS mx:operation name=Thrust_Query mx:request ThrustName{WhereIneedToPassCheckboxDATA}/ThrustName /mx:request /mx:operation /mx:WebService _ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! http://docs.yahoo.com/info/terms/ Terms of Service. __ Do you Yahoo!? Yahoo! Small Business - Try our new Resources site http://smallbusiness.yahoo.com/resources/ 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] Announcing Flex Style Explorer
with the exception that CSS style selectors are not supported in components...would have to load a .css file I am assuming... --- Jeff Beeman [EMAIL PROTECTED] wrote: This tool is absolutely fantastic! I've got a bug report that one of our developers noticed, though, and since I can't make a comment on the site, I'll just note it here and hope someone sees it :) Entering hex values using the keyboard seems to work for everything except components that have 2 color values (panel headings, buttons, etc). When choosing a color from the drop down, the color displays correctly. When typing in a hex value, it displays as black. Also, I'd like to make a feature request - Would it be possible to make the text area where the resulting CSS appears be editable? I'd love to be able to edit the resulting CSS on-the-fly and see the results. Regardless, thanks for the great tool! /** * Jeff Beeman **/ -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jae Hess Sent: Tuesday, May 17, 2005 7:27 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Announcing Flex Style Explorer Not sure if you have heard the news: Announcing Flex Style Explorer http://www.markme.com/mc/archives/007740.cfm Yahoo! Groups Links __ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail 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] how to use a repeater question
THanks Matt, that worked great...and thanks for the answer to the last part about performance...no, thrust data isn't going to change (at least in the near future :-)), but I wanted to be able to use a query to provide the different labels from the DB so that they would be dynamic if needed... --- Matt Chotin [EMAIL PROTECTED] wrote: I think the repeater for this would be: mx:Repeater id=r dataProvider={thrustData} mx:CheckBox label={r.currentItem} / /mx:Repeater So it's pretty easy, though if thrustData isn't going to change I think it's more efficient code-wise to write it out by hand. Matt _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of cnewroth55 Sent: Thursday, May 12, 2005 10:57 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] how to use a repeater question is it possible to use a repeater control to 'duplicate' a group of checkboxes? I have this text array i would like to have put into a group of checkboxes; ![CDATA[ var thrustData:Array = [All Reports, ASMT - Affordable Structures Mfg. Tech., ALE - Advanced Lean Efficient, ASC - Advanced Support Concepts, APS - Advanced Platform Systems, NCO - Netcentric Operations ]; ]] and would like for it to be the checkboxes label. is it faster to do a repeater or just make them up normally.. Craig Newroth Structures Technology - STL Executive Computing Support The Boeing Company _ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! http://docs.yahoo.com/info/terms/ Terms of Service. __ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail 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 enabling or disabling a control when a user selects something - Solved
okay, now just one more thing that works, in that it disables the listbox on the right, now I have made a button on the file that runs the following AS code when clicked: function resetForm(){ srcgrid.enabled = !srcgrid.enabled } so that works in that it enables the listbox, but if i drag All Reports back into the originiating listbox then drag it back into the destination listbox control box,(it should disable the box) it doesn't disable the control... what in the world am I doing wrong. It should be a simple thing to enable / disable a control based on the selectionh Craig --- Craig Newroth [EMAIL PROTECTED] wrote: Thanks Tracy for getting me on the right track.!!! In the action script file that I posted here is what I changed/added in the below function to make it work... Now all I have to do is do a test on it to see if they selected it somewhere in the middle of the process. :-) ** function doDragDrop(event) { doDragExit(event); var items = event.dragSource.dataForFormat(items); var dest = event.target; var dropLoc = dest.getDropLocation(); items.reverse(); for(var i = 0; i items.length; i++) { dest.addItemAt(dropLoc,items[i]); // * THE CHANGE/ADDED CODE ** // Check to see if the drop location contains 'All Reports', if is does then disable the srcgrid so the user cannot select any other reports if (dropLoc,items[i] == 'All Reports'){ srcgrid.enabled = !srcgrid.enabled; } } } * --- Tracy Spratt [EMAIL PROTECTED] wrote: The enable toggle works correctly right? Say if you were to run it directly from a button? And the drag/drop works correctly? Your code wasn't complete enough for me to run, so I need to ask, When you drag an item into the list, is it automatically selected? If so, you want to test: event.target.selectedItem.label == All Reports (or whatever the label column property is named) If not, you will need to iterate through the items to see if the All Reports option is included. Can you extract the issue into a simple example? Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Craig Newroth Sent: Friday, May 06, 2005 2:05 PM To: flexcoders@yahoogroups.com Cc: [EMAIL PROTECTED] Subject: Re: [flexcoders] help enabling or disabling a control when a user selects something well, it is supposed to test for the content of the selected item and then what I want to do is enable or disable a list control.. I have tired both the number zero (the selected index) of my first list and the text value and cannot get it to work. --- Manish Jethani [EMAIL PROTECTED] wrote: On 5/5/05, cnewroth55 [EMAIL PROTECTED] wrote: if (event.target.selectedIndices == All Reports){ srcgrid.enabled = !srcgrid.enabled; } I'm sorry if this is a stupid question as I haven't gone through your entire code line by line, but what does the above if-condition want to test? 'selectedIndices' will be an array of Number objects, so I wonder if comparing it to a string like that is correct. Yahoo! Mail Stay connected, organized, and protected. Take the tour: http://tour.mail.yahoo.com/mailtour.html Yahoo! Groups Links Yahoo! Mail Stay connected, organized, and protected. Take the tour: http://tour.mail.yahoo.com/mailtour.html Discover Yahoo! Stay in touch with email, IM, photo sharing and more. Check it out! http://discover.yahoo.com/stayintouch.html 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 enabling or disabling a control when a user selects something
Tracy: I have attached the files that I am using as weel as the AS file for control...in the as file look around line 58 for the code that I am trying. You will need to comment out the ones that do the topmenu and the display. StandardReports.mxml is the file in question. WHen I select all reports from srcgrid and drag it into destgrid I want 'srcgrid' to be disabled... thanks, Craig --- Tracy Spratt [EMAIL PROTECTED] wrote: The enable toggle works correctly right? Say if you were to run it directly from a button? And the drag/drop works correctly? Your code wasn't complete enough for me to run, so I need to ask, When you drag an item into the list, is it automatically selected? If so, you want to test: event.target.selectedItem.label == All Reports (or whatever the label column property is named) If not, you will need to iterate through the items to see if the All Reports option is included. Can you extract the issue into a simple example? Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Craig Newroth Sent: Friday, May 06, 2005 2:05 PM To: flexcoders@yahoogroups.com Cc: [EMAIL PROTECTED] Subject: Re: [flexcoders] help enabling or disabling a control when a user selects something well, it is supposed to test for the content of the selected item and then what I want to do is enable or disable a list control.. I have tired both the number zero (the selected index) of my first list and the text value and cannot get it to work. --- Manish Jethani [EMAIL PROTECTED] wrote: On 5/5/05, cnewroth55 [EMAIL PROTECTED] wrote: if (event.target.selectedIndices == All Reports){ srcgrid.enabled = !srcgrid.enabled; } I'm sorry if this is a stupid question as I haven't gone through your entire code line by line, but what does the above if-condition want to test? 'selectedIndices' will be an array of Number objects, so I wonder if comparing it to a string like that is correct. Yahoo! Mail Stay connected, organized, and protected. Take the tour: http://tour.mail.yahoo.com/mailtour.html Yahoo! Groups Links Yahoo! Mail Stay connected, organized, and protected. Take the tour: http://tour.mail.yahoo.com/mailtour.html 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/ DragEventHandlers.as Description: 229667049-DragEventHandlers.as standardReports.mxml Description: 767879685-standardReports.mxml gvsStartA.mxml Description: 2325252969-gvsStartA.mxml
Re: [flexcoders] help enabling or disabling a control when a user selects something
well, it is supposed to test for the content of the selected item and then what I want to do is enable or disable a list control.. I have tired both the number zero (the selected index) of my first list and the text value and cannot get it to work. --- Manish Jethani [EMAIL PROTECTED] wrote: On 5/5/05, cnewroth55 [EMAIL PROTECTED] wrote: if (event.target.selectedIndices == All Reports){ srcgrid.enabled = !srcgrid.enabled; } I'm sorry if this is a stupid question as I haven't gone through your entire code line by line, but what does the above if-condition want to test? 'selectedIndices' will be an array of Number objects, so I wonder if comparing it to a string like that is correct. Yahoo! Mail Stay connected, organized, and protected. Take the tour: http://tour.mail.yahoo.com/mailtour.html 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: creditcard dashboard - for Alistair
well, that's the preoblem, I have tried all these and still get the error that I posted...however I will look at them one more time and post resutls... it's a little frustrating to read the code, understand the code, read the chapters, follow along with them, and yet still not get it to work to 'see' it in actionhumm... Steven Webster [EMAIL PROTECTED] wrote: Craig,Can I clarify what your setup is here ?Are you invoking the remote object as an unnamed service ? (eg source="")Have you removed the named service for the delegate, including thenode.If you have done both those things, have your * configuration in the remote-objects whitelist then you shouldn't be having any access problems.Steven -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Craig Newroth Sent: 29 April 2005 19:43 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: creditcard dashboard - for Alistair I'll try to be more civil Steven... so okay let try this ONE more time, as I know that I posted the error that I am getting the first time...-- No virus found in this outgoing message.Checked by AVG Anti-Virus.Version: 7.0.308 / Virus Database: 266.10.4 - Release Date: 27/04/2005Yahoo! 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/__Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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 the Yahoo! Terms of Service.
RE: [flexcoders] Re: creditcard dashboard - for Alistair
Dear MR. WEBSTER: READ pages that you mention, and READ chapter 21, and I DO UNDERSTAND the concepts of the whitelist VERY well, and I DO have a CLEAR understanding of the mentioned concepts. Rather than make a smart assed comment like "...it's probably worth making sure you've got a clear understanding of the concepts covered in the relevant and preceeding chapters" or "...and then make sure you understand why that's a woefully insecure way of achieving your short term goal of getting the code to work" and (my favorite), "...if you still don'tunderstand the concept of the whitelist,..." you could offer a better answer...MY SHORT TERM GOAL IS NOT TO MAKE YOUR CODE WORK, but to see it in action so that I can better understand WHY it is working the way it does and to see if your concepts mentioned in your book can be of use in my own development. If that is your understanding of my questions, then please don't answer...I'll figure it out on my own. You have NO idea of how I have my system configured, or where I have placed 'your' code in relation to my install, so making your statements the way you did is just ludicrous. AND Iresent your implication(s) that I don'tUNDERSTAND the concept of what I am doing!BTW...here is what I have in the whitelist and it still don't work smart guy! oh, wait, I forgot, don'tanswer me! whitelist !-- whitelist config for unnamed objects -- unnamedsourcecom.bng.flex.remoteObject.*/sourcesourcecom.iterationtwo.boe.business.ApplicationDelegate/sourcesourcecom.iterationtwo.boe.business.CreditCardDelegate/sourcesourcecom.iterationtwo.boe.business.Responder/sourcesource*/source !-- For security, the whitelist is locked down by default. Uncomment the source element below to enable access to all classes, or add the individual URLs you wish to access. We strongly recommend not allowing access to all source files in production, since this exposes Java and Flex system classes. source*/source -- /unnamed !-- whitelist config for named objects --namedobject name="ApplicationDelegate"sourcecom.iterationtwo.boe.business.ApplicationDelegate/sourcetypestateless-class/typeallow-unnamed-accessfalse/allow-unnamed-accessuse-custom-authenticationfalse/use-custom-authentication/object/namedSteven Webster [EMAIL PROTECTED] wrote: did look at flex-config.mxml... not a clue sorry. CTRL-F (Find) "whitelist" or "remote" or "remote-object in flex-config.xml and you should find the whitelist and the book it self doesn't seem to explain where or give example for whitelist..Index at the back. W. Whitelist. Page 685 - "whitelists, overview495-496"On page 495-497, there are 3 pages of clear description of how to set the whitelist for RemoteObject calls, HTTPService calls and WebService calls,and the concept of named services and unnamed services. In fact Chapter 21opens with a section titled "The Flex Whitelist".Before trying to compile the code from the book and get the examplesworking, it's probably worth making sure you've got a clear understandingof the concepts covered in the relevant and preceeding chapters. The code is there to underline points in the text, not vice versa.Once you've read through the chapter material, if you still don'tunderstand the concept of the whitelist, go and set*and then make sure you understand why that's a woefully insecureway of achieving your short term goal of getting the code to work.Steven-- No virus found in this outgoing message.Checked by AVG Anti-Virus.Version: 7.0.308 / Virus Database: 266.10.4 - Release Date: 27/04/2005Yahoo! 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/__Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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 the Yahoo! Terms of Service.
RE: [flexcoders] Re: creditcard dashboard - for Alistair
I'll try to be more civil Steven... so okay let try this ONE more time, as I know that I posted the error that I am getting the first time... onFault Client.NotAllowed You are not allowed to access the service com.iterationtwo.boe.business.ApplicationDelegate. The service is not in the configured whitelist. I have tried to place an instance of this in every flex-config.xml file that I can find, and have used, source*/source (even though I know about the security) just to make it work to no avail...that is why i posted the question in the first place... I have enjoyed your book and learned quite alot from it, so i cannot understand why this is not working out of the box so to speak...just about everything else has (with the exception of the chart thing - thank god for grep and global replace) Craig --- Steven Webster [EMAIL PROTECTED] wrote: Craig, On page 576 of the book, the RemoteObject service is defined as an unnamed service (using the source=) tag, which I will presume to be what you have in yoru code. You have placed the service in your whitelist (double-check, I presume this is under the remote-objects node) as both an unnamed and named service, so you probably expect either named/unnamed services to both work. However, in your named service block you have allow-unnamed-accessfalse/allow-unnamed-access This means that even though you are (I imagine, unless you have changed the code from p 576) accessing the RemoteObject as an unnamed service, your flex-config is prohibiting that for this very service. Make sense ? If this isn't your issue, then perhaps you could post the error message you are receiving ... in gateway-config.xml you can turn on a little more debugging of events over the wire as well. Your original email suggested that ...the book doesn't seem to explain or give examples for the whitelist... which is why I pointed you in my last response to the appropriate sections in the book where the whitelist is explained, and examples given. The more specific you can specify the problem you are having, and the error messages you are receiving, the more specific our responses can be. I hope that the above helps you find the source of your problem. Kindest Regards, Steven _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Craig Newroth Sent: 29 April 2005 17:27 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: creditcard dashboard - for Alistair Dear MR. WEBSTER: READ pages that you mention, and READ chapter 21, and I DO UNDERSTAND the concepts of the whitelist VERY well, and I DO have a CLEAR understanding of the mentioned concepts. Rather than make a smart assed comment like ...it's probably worth making sure you've got a clear understanding of the concepts covered in the relevant and preceeding chapters or ...and then make sure you understand why that's a woefully insecure way of achieving your short term goal of getting the code to work and (my favorite), ...if you still don't understand the concept of the whitelist,... you could offer a better answer...MY SHORT TERM GOAL IS NOT TO MAKE YOUR CODE WORK, but to see it in action so that I can better understand WHY it is working the way it does and to see if your concepts mentioned in your book can be of use in my own development. If that is your understanding of my questions, then please don't answer...I'll figure it out on my own. You have NO idea of how I have my system configured, or where I have placed 'your' code in relation to my install, so making your statements the way you did is just ludicrous. AND I resent your implication(s) that I don't UNDERSTAND the concept of what I am doing! BTW...here is what I have in the whitelist and it still don't work smart guy! oh, wait, I forgot, don't answer me! whitelist !-- whitelist config for unnamed objects -- unnamed sourcecom.bng.flex.remoteObject.*/source sourcecom.iterationtwo.boe.business.ApplicationDelegate/source sourcecom.iterationtwo.boe.business.CreditCardDelegate/source sourcecom.iterationtwo.boe.business.Responder/source source*/source !-- For security, the whitelist is locked down by default. Uncomment the source element below to enable access to all classes, or add the individual URLs you wish to access. We strongly recommend not allowing access to all source files in production, since this exposes Java and Flex system classes. source*/source -- /unnamed !-- whitelist config for named objects -- named object name=ApplicationDelegate sourcecom.iterationtwo.boe.business.ApplicationDelegate/source typestateless-class/type allow-unnamed
RE: [flexcoders] Charting
I would like to see those also. let me know when they are up if you could please.. Craig Matt Chotin [EMAIL PROTECTED] wrote: I mailed Christophe to see if he can update it. Unfortunately they changed the passwords on that machine so I cant grab the data. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 20, 2005 6:54 AMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Charting Thats nice but I really want to see the structure of the xml filesused in the examples at macromedia.com. Anyone from mm have these ?Rich__Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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 the Yahoo! Terms of Service.
RE: [flexcoders] Comments: Tab Navigator with Tabs at Bottom
Thanks Steven...after you guys explained how the SWC was packaged, it made more sense. DUH!, i'm slow :-) Craig Steven Webster [EMAIL PROTECTED] wrote: Craig, If you feel better about it, you can change your code to: mx:Canvas xmlns:keepAwayFromAli="com.iterationtwo.containers.*" and then instantiate your component as: keepAwayFromAli:AdvancedTabNavigator / In the SWC, Ali has packaged the component as com.iterationtwo.containers.AdvancedTabNavigator You are simply creating a namespace within which you can unambiguously refer to the AdvancedTabNavigator; call it what you like. It makes sense however, that the namespace reflect the SWC/package from which you are using the component, eg mx = Macromedia built-ins, iterationtwo = iteration::two, etc. But your call how you use namespacesbut you're not going near our servers. Steven From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Craig NewrothSent: 19 April 2005 14:58To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Comments: Tab Navigator with Tabs at Bottom Alistair: THiunk i fixed with the namespace 'clue', here is what I added to my mx:canvas tag: mx:Canvas xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns:iterationtwo="com.iterationtwo.containers.*" now the next question? Why does that work, am i going to your server somewhere to get the correct namespace for the URI? if so then that won't do...I need to make sure that it is reading the swc that you provided on my box... Craig Alistair McLeod [EMAIL PROTECTED] wrote: Hi,iterationtwo:AdvancedTabNavigator tabPlacement="bottom" //What goes here, do i do the same thing as a 'regular'tabnavigator?/iterationtwo:AdvancedTabNavigator Yes, inside the definition above, you put the same containers you would putin the standard TabNavigator. I'm suspecting that you've not set thenamespace up correctly - what error is the compiler returning?Ali--Alistair McLeodDevelopment Directoriteration::two[EMAIL PROTECTED]Office: +44 (0)131 338 6108This e-mail and any associated attachments transmitted with it may containconfidential information and must not be copied, or disclosed, or used byanyone other than the intended recipient(s). If you are not the intendedrecipient(s) please destroy this e-mail, an! d any copies of it, immediately.Please also note that while software systems have been used to try to ensurethat this e-mail has been swept for viruses, iteration::two do not acceptresponsibility for any damage or loss caused in respect of any virusestransmitted by the e-mail. Please ensure your own checks are carried outbefore any attachments are opened.-Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] OnBehalf Of cnewroth55Sent: 19 April 2005 14:09To: flexcoders@yahoogroups.comSubject: [flexcoders] Comments: Tab Navigator with Tabs at BottomAlistair: this component is being called from gvsStartA.mxmx Here is the code:!-- component displayGVSData.mxml --?xml version="1.0" encoding="utf-8"?mx:Canvas xmlns:mx="http://www.macromedia.com/2003/mxml"mx:Label text="Thrust Report Results for ASMT" x="316" y="6" / mx:Model id="thrustdata" source="thrust.xml"/ mx:DataGridid="datagrid1" x="8" y="24" dataProvider="{thrustdata.thrusts}" rowCount="10" mx:columns mx:Array mx:DataGridColumn headerText="Need ID" columnName="NeedID" width="125" / mx:DataGridColumn headerText="Business Unit" columnName="BusinessUnit" width="140" / mx:DataGridColumn headerText="Business Program" columnName="BusinessProgram" width="140" / mx:DataGridColumn headerText="Need Title" columnName="NeedTitle" widt! h="300" / mx:DataGridColumn headerText="Need Value Index" columnName="NeedValue" width="150" / /mx:Array /mx:columns /mx:DataGrid iterationtwo:AdvancedTabNavigator tabPlacement="bottom" What goeshere, do i do the same thing as a 'regular' tabnavigator? /iterationtwo:AdvancedTabNavigator Yahoo! Groups Links Do you Yahoo!?Plan great trips with Yahoo! Travel: Now over 17,000 guides! --No virus found in this incoming message.Checked by AVG Anti-Virus.Version: 7.0.308 / Virus Database: 266.9.17 - Release Date: 19/04/2005 --No virus found in this outgoing message.Checked by AVG Anti-Virus.Version: 7.0.308 / Virus Database: 266.9.17 - Release Date: 19/04/2005__Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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 the Yahoo! Terms of Service.
RE: [flexcoders] Comments: Tab Navigator with Tabs at Bottom
I have read the namespaces info in the docs, but the namespace that you give to use is, "com.iterationtwo.containers.*"...and that 'path' doesn't exist on my box...so i am wondering why that works?, or is that not a 'path' as it were..Alistair McLeod [EMAIL PROTECTED] wrote: Hi Craig, No you're not going to our server - the namespace is simply an identifier - read up on namespaces in the Flex docs. Cheers, Ali -- Alistair McLeodDevelopmentDirector iteration::two[EMAIL PROTECTED] Office: +44 (0)131 338 6108 This e-mail and any associated attachments transmitted with it may contain confidential information and must not be copied, or disclosed, or used by anyone other than the intended recipient(s). If you are not the intended recipient(s) please destroy this e-mail, and any copies of it, immediately.Please also note that while software systems have been used to try to ensure that this e-mail has been swept for viruses, iteration::two do not accept responsibility for any damage or loss caused in respect of any viruses transmitted by the e-mail. Please ensure your own checks are carried out before any attachments are opened. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Craig NewrothSent: 19 April 2005 14:58To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Comments: Tab Navigator with Tabs at Bottom Alistair: THiunk i fixed with the namespace 'clue', here is what I added to my mx:canvas tag: mx:Canvas xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns:iterationtwo="com.iterationtwo.containers.*" now the next question? Why does that work, am i going to your server somewhere to get the correct namespace for the URI? if so then that won't do...I need to make sure that it is reading the swc that you provided on my box... Craig Alistair McLeod [EMAIL PROTECTED] wrote: Hi,iterationtwo:AdvancedTabNavigator tabPlacement="bottom" //What goes here, do i do the same thing as a 'regular'tabnavigator?/iterationtwo:AdvancedTabNavigator Yes, inside the definition above, you put the same containers you would putin the standard TabNavigator. I'm suspecting that you've not set thenamespace up correctly - what error is the compiler returning?Ali--Alistair McLeodDevelopment Directoriteration::two[EMAIL PROTECTED]Office: +44 (0)131 338 6108This e-mail and any associated attachments transmitted with it may containconfidential information and must not be copied, or disclosed, or used byanyone other than the intended recipient(s). If you are not the intendedrecipient(s) please destroy this e-mail, an! d any copies of it, immediately.Please also note that while software systems have been used to try to ensurethat this e-mail has been swept for viruses, iteration::two do not acceptresponsibility for any damage or loss caused in respect of any virusestransmitted by the e-mail. Please ensure your own checks are carried outbefore any attachments are opened.-Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] OnBehalf Of cnewroth55Sent: 19 April 2005 14:09To: flexcoders@yahoogroups.comSubject: [flexcoders] Comments: Tab Navigator with Tabs at BottomAlistair: this component is being called from gvsStartA.mxmx Here is the code:!-- component displayGVSData.mxml --?xml version="1.0" encoding="utf-8"?mx:Canvas xmlns:mx="http://www.macromedia.com/2003/mxml"mx:Label text="Thrust Report Results for ASMT" x="316" y="6" / mx:Model id="thrustdata" source="thrust.xml"/ mx:DataGridid="datagrid1" x="8" y="24" dataProvider="{thrustdata.thrusts}" rowCount="10" mx:columns mx:Array mx:DataGridColumn headerText="Need ID" columnName="NeedID" width="125" / mx:DataGridColumn headerText="Business Unit" columnName="BusinessUnit" width="140" / mx:DataGridColumn headerText="Business Program" columnName="BusinessProgram" width="140" / mx:DataGridColumn headerText="Need Title" columnName="NeedTitle" widt! h="300" / mx:DataGridColumn headerText="Need Value Index" columnName="NeedValue" width="150" / /mx:Array /mx:columns /mx:DataGrid iterationtwo:AdvancedTabNavigator tabPlacement="bottom" What goeshere, do i do the same thing as a 'regular' tabnavigator? /iterationtwo:AdvancedTabNavigator Yahoo! Groups Links Do you Yahoo!?Plan great trips with Yahoo! Travel: Now over 17,000 guides! Do you Yahoo!? Yahoo! Mail - You care about security. So do we. 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 the Yahoo! Terms of Service.
RE: [flexcoders] Comments: Tab Navigator with Tabs at Bottom
Alistair: THiunk i fixed with the namespace 'clue', here is what I added to my mx:canvas tag: mx:Canvas xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns:iterationtwo="com.iterationtwo.containers.*" now the next question? Why does that work, am i going to your server somewhere to get the correct namespace for the URI? if so then that won't do...I need to make sure that it is reading the swc that you provided on my box... Craig Alistair McLeod [EMAIL PROTECTED] wrote: Hi,iterationtwo:AdvancedTabNavigator tabPlacement="bottom" //What goes here, do i do the same thing as a 'regular'tabnavigator?/iterationtwo:AdvancedTabNavigator Yes, inside the definition above, you put the same containers you would putin the standard TabNavigator. I'm suspecting that you've not set thenamespace up correctly - what error is the compiler returning?Ali--Alistair McLeodDevelopment Directoriteration::two[EMAIL PROTECTED]Office: +44 (0)131 338 6108This e-mail and any associated attachments transmitted with it may containconfidential information and must not be copied, or disclosed, or used byanyone other than the intended recipient(s). If you are not the intendedrecipient(s) please destroy this e-mail, and any copies of it, immediately.Please also note that while software systems have been used to try to ensurethat this e-mail has been swept for viruses, iteration::two do not acceptresponsibility for any damage or loss caused in respect of any virusestransmitted by the e-mail. Please ensure your own checks are carried outbefore any attachments are opened.-Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] OnBehalf Of cnewroth55Sent: 19 April 2005 14:09To: flexcoders@yahoogroups.comSubject: [flexcoders] Comments: Tab Navigator with Tabs at BottomAlistair: this component is being called from gvsStartA.mxmx Here is the code:!-- component displayGVSData.mxml --?xml version="1.0" encoding="utf-8"?mx:Canvas xmlns:mx="http://www.macromedia.com/2003/mxml"mx:Label text="Thrust Report Results for ASMT" x="316" y="6" / mx:Model id="thrustdata" source="thrust.xml"/ mx:DataGridid="datagrid1" x="8" y="24" dataProvider="{thrustdata.thrusts}" rowCount="10" mx:columns mx:Array mx:DataGridColumn headerText="Need ID" columnName="NeedID" width="125" / mx:DataGridColumn headerText="Business Unit" columnName="BusinessUnit" width="140" / mx:DataGridColumn headerText="Business Program" columnName="BusinessProgram" width="140" / mx:DataGridColumn headerText="Need Title" columnName="NeedTitle" width="300" / mx:DataGridColumn headerText="Need Value Index" columnName="NeedValue" width="150" / /mx:Array /mx:columns /mx:DataGrid iterationtwo:AdvancedTabNavigator tabPlacement="bottom" What goeshere, do i do the same thing as a 'regular' tabnavigator? /iterationtwo:AdvancedTabNavigator Yahoo! Groups Links Do you Yahoo!? Plan great trips with Yahoo! Travel: Now over 17,000 guides! 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 the Yahoo! Terms of Service.
Re: [flexcoders] how to make an object active?
thanks jester, that helped and thanks to Steven Webster's book, chapter 7 :-) here is what worked and what I did... mx:Scriptfunction changeOther( event ){if ( event.target == summaryCHB )detailCHB.enabled = !detailCHB.enabled;if ( event.target == detailCHB )summaryCHB.enabled = !summaryCHB.enabled;}/mx:Script mx:FormItem mx:CheckBox label="Summary" labelPlacement="bottom" id="summaryCHB" click="changeOther( event );"/ /mx:FormItem mx:FormItem mx:CheckBox label="Detail" labelPlacement="bottom" id="detailCHB" click="changeOther( event );"/ /mx:FormItem Craig Newroth JesterXL [EMAIL PROTECTED] wrote: Check out the enabled property, almost all controls support this gem.radioButton.enabled = false;- Original Message - From: "cnewroth55" [EMAIL PROTECTED]To: flexcoders@yahoogroups.comSent: Thursday, April 14, 2005 10:10 AMSubject: [flexcoders] how to make an object active?Here's a quickie that I am sure someone can answer pretty quickly; I have a radio group that has x number of items, and what I want to do is make a coulple of checkboxes either be greyed out (active) or in-active depending on which radiobutton a user clicks on; my code:if a user click on the first radiobutton I want the summary check box to be active and the detail check box to gey out...can reply to [EMAIL PROTECTED] or here... mx:RadioButtonGroup id="thrustReportsGroup" / mx:RadioButton label="All" groupName="thrustReportsGroup" x="24" y="14" / mx:RadioButton label="ASMT - Affordable Structures amp; Mfg. Tech." groupName="thrustReportsGroup" x="24" y="34" / mx:RadioButton label="ALE - Advanced Lean amp; Efficient" groupName="thrustReportsGroup" x="24" y="54" / mx:RadioButton label="ASC - Advanced Support Concepts" groupName="thrustReportsGroup" x="24" y="74" / mx:RadioButton label="APS - Advanced Platform Systems" groupName="thrustReportsGroup" x="24" y="94" / mx:RadioButton label="NCO - Netcentric Operations" groupName="thrustReportsGroup" x="24" y="114" / /mx:VBox mx:VBox mx:FormItem label="Summary" mx:CheckBox label="Checkbox" / /mx:FormItem mx:FormItem label="Detail" mx:CheckBox label="Checkbox" / /mx:FormItem /mx:VBoxYahoo! Groups Links Do you Yahoo!? Yahoo! Small Business - Try our new resources site! 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 the Yahoo! Terms of Service.
Data Service Layer Client-Client Message Interception
I have been testing Flex SWFs embedded in PDF files against Flash SWFs embedded in same using arbitrated script messaging. When a frame seek command is sent from the PDF to the embedded Flash SWF and the Flash SWF has a web service connector present, the Flash movie correctly processes the seek message as being a direct client- client message. When the same frame seek command is sent from the PDF to the embedded Flex SWF which has a web service present it makes a response back to the PDF, generating a status message. The message can be seen in Acrobat 6 Editor. An enormous delay is essentially the result when doing even a simple arbitrated command like setting a basic TextArea component's text property as each character in the command stream gets a response from the Flex SWF. Flash SWFs don't have this problem. The delay also show up with Remote Object data services in Flex SWFs using AMF messaging. Also no problem with AMF messaging present in Flash SWFs. You can see what I mean by tring the following PDF with Adobe Reader 6.0 and the current Flash Player. (Windows Platform only) http://24.71.76.197:8080/flex/soapExample.pdf Play around with the Flash portion first. Notice everything works lickety split. Then try the Flex portion. It delays everything when messaging from the PDF buttons. The Soap services themselves are not affected. Only commands going from the PDF to the Flex SWF from the PDF command buttons. Any insight here would be helpful. Also remember that the significant delay only happens in the Flex SWFs when data services are present in the file. Although there is a modest delay even without the data services. (Flex about a second) No problem with Flash at all, only about 3-4 milliseconds lag time) Craig