[flexcoders] validators in datagrid colmun
Hi All Below is the simple data grid I want to apply some like numeric validators on some particular column of data grid. Is there any example for this..?xml version=1.0?mx:Application xmlns:mx=http://www.adobe.com/2006/mxml mx:Script ![CDATA[ import mx.controls.TextInput; import mx.events.DataGridEvent; [Bindable] public var initDG:Array = [ {Artist:'Pavement', Album:'Slanted and Enchanted', Price:11.99}, {Artist:'Pavement', Album:'Brighten the Corners', Price:11.99} ]; // Define event listener for the itemEditEnd event. private function getCellInfo(event:DataGridEvent):void { // Get the item editor and cast it to TextInput. var myEditor:TextInput = TextInput(event.currentTarget.itemEditorInstance); // Get the new value from the editor. var newVal:String = myEditor.text; // Get the old value. var oldVal:String = event.currentTarget.editedItemRenderer.data[event.dataField]; // Write out the cell coordinates, new value, // and old value to the TextArea control. cellInfo.text = cell edited.\n; cellInfo.text += Row, column: + event.rowIndex + , + event.columnIndex + \n; cellInfo.text += New value: + newVal + \n; cellInfo.text += Old value: + oldVal; } ]] /mx:Script mx:TextArea id=cellInfo width=300 height=150/ mx:DataGrid id=myGrid dataProvider={initDG} editable=true itemEditEnd=getCellInfo(event); mx:columns mx:DataGridColumn dataField=Artist / mx:DataGridColumn dataField=Album/ mx:DataGridColumn dataField=Price/ /mx:columns /mx:DataGrid /mx:ApplicationThanksKP __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Re: cairngorm: managing hundred of views
Maybe the provided examples are a little bit misleading, because they are too simple. On the other hand, who is able to create an example with hundreds of views :) But the point is, ModelLocator is just that, a locator for the model and not the model itself. If you have a view or a group of views, which needs multiple properties of your model, you should create a class for that and add an instance of this class to the ModelLocator. Cheers, Ralf. On 9/11/06, Tim Hoff [EMAIL PROTECTED] wrote: With views, the main thing to keep in mind is directory organization. Respectfully, I have a few differing ideas, than Steven, when it comes to views. But at Cairngorm's current iteration, all state == model (local and common). Organize the actual view classes in functional directory groups; for easy identification. In the ModelLocator, bind the state of the views accordingly. With hundreds of views, you will probably want to subclass the ModelLocator, into functional groups, to aid in organization. Ultimately, it boils down to each application's requirements. For me, I just try to keep things as simple and maintainable as possible; even when endless local state variables tend to clutter and complicate the ModelLocator. I'm calling this model happy. :) -TH --- In flexcoders@yahoogroups.com, Bjorn Schultheiss [EMAIL PROTECTED] wrote: Good Question and I hope this thread gets a lot of posts. Personally I don't think that the modelLocator is always upto the job. Don't get me wrong, in a data-driven application this methodology is beautiful, But my feeling is it will not satisfy all requirements. For example, say you have about 100 view states that are loaded in and disposed of, at runtime, as required. I don't think the ModelLocator is up to the task. I think possibly a ViewManager of sorts is required that acts as a middle tier between the Views and the ModelLocator. I don't have any concrete classes to show an example of what I mean as I haven't developed such a solution as yet. But I am at the beginning of a project that will require such consideration. Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Diego Guebel Sent: Monday, 11 September 2006 12:07 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] cairngorm: managing hundred of views Hi there, My questions is theoretical and best practice oriented, I just wonder what is the best approach to manage hundreds of views since viewhelper/viewlocator is out of fashion. I was reading previous post but didn't find a good example or tutorial. Can anyone put some light on this? Sorry if some of you receive this post twice, I think the first once was moderated. Thanks in advance. Diego. -- 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 -- 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 (Yahoo! ID required) mailto:[EMAIL PROTECTED] -- Ralf Bokelberg [EMAIL PROTECTED] Flex Flash Consultant based in Cologne/Germany -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Passing Const to custom component error
I have this class:package apps.common.asFiles{ public class ScreenLabelConstants { public static const NAMEINFO_LABEL:String = Name; }}I have this code in my app: mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml width=100% height=100% label=Name xmlns:components=apps.common.components.* mx:Script ![CDATA[ import apps.common.asFiles.ScreenLabelConstants; ]] /mx:Script mx:Spacer height=30/ components:FreedTextLabel id=nameTextLabel ls={ ScreenLabelConstants.NAMEINFO_LABEL} //mx:VBoxThe FreedTextLabel has this:?xml version=1.0 encoding=utf-8?mx:Panel xmlns:mx= http://www.adobe.com/2006/mxml creationComplete=initFunc() borderThickness=1 cornerRadius=0 shadowDistance=0 width=80%mx:Script ![CDATA[ import apps.common.asFiles.ScreenLabelConstants; [Bindable] private var _ls:String; [Bindable] public var mainLabelText:String;public function get ls():String { return _ls; }public function set ls(newValue:String):void { _ls = newValue; mainLabelText = _ls + :; } public function initFunc():void { mainLabelText = ls + :; } ]]/mx:Script mx:Label id=mainLabel text={mainLabelText}/ /mx:PanelThe problem is that it won't work. No data gets passed to my custom component. Why is that? Is it because my app is binding the var to constant value? Or because I'm using a setter/getter on the var receiving the reference? Thanks,Tom2 __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Re: How can I keep one component in front of all other components?
But I think the problem is the component that should always be in front are not created by SystemManger. It is the grandson of application. How can I swap it with the SystemManager created component? Thanks Ark --- In flexcoders@yahoogroups.com, Jeremy Lu [EMAIL PROTECTED] wrote: PopUpManager create pop-ups via SystemManager, which had a children list, and all DisplayObjectContainer( like SystemManager) has a setChildIndex() method to let you swap each child's depth, that's where you can start to implement. On 9/11/06, hastyarkxu [EMAIL PROTECTED] wrote: Hi, I want to keep one component always in front. It looks like the 'task bar' in windows. no matter how many windows you opened, task bar is always on top of all the windows. I want to keep it in front even the other components are poped up by the popup manager. What should I do then? (I think the z-order is useless because other component is created by popup manager..) regards, Ark -- 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 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: How would I do something like this....
Hi, I did the same GridTree but with the Flash Components V2 and now I would like port my app to Flex. But I use another way, I put the datagrid immediately at the right side of the tree. This work fine and I think is a more ease solution, because your base is the tree and not the datagrid, then you can manage more ease the xml data and don't need to deal with itemrenderer in the datagrid, only the checkboxes in the tree. Now, I'm really newbie with Flex and I can't get the length of the only visible items in the tree :( Really stupid, but this is my first time with flex, I can't see nothing in the Tree and XML classes. thanks in advance Rafael --- In flexcoders@yahoogroups.com, jeremy lu [EMAIL PROTECTED] wrote: well, just flip thru my gridtree component (http://tinyurl.com/grcfs) developed two months ago (which is still in a mess), it's around 2000 lines of code (after refactoring it three times) and lot of algorithm behind to handle following function: addNode removeNode cutNode copyNode pasteNode indent/outdent code I think the first methods Anatole mentioned will definitely be a b***h to tackel with, for the nature of List-based component is a little bit tricky then it looks (all the list items are dynamically generated and draw on the screen, this will cause some trouble) I'm currently implementing gridtree using item renderer for the first column, it's pretty much the same work to extends gridbase and inject the tree grid code into it so the API would be more compatible, by using this method I could easily feed a non-xml structure (ie:resultset from java/php) to the component and let it draw the hierarchy and set indent/outdent of each node. now I'm thinking maybe I should draw those lines and plus sign instead of a simple arrowhead, so it's more like VS2005 :-) FYI, the component took a whole weekend for prototyping and concept-proofing, *but*, it took almost one and a half month for debugging and refactoring to stablize the code and become really usable in the on-going product/project. originally I want to open-source the component but later on this become one of my assigned day-job project (so I can fulltime developing it with the approval of my employer), but anyway, I would love to answer any related questions. jeremy. On 4/23/06, Anatole Tartakovsky [EMAIL PROTECTED] wrote: Depends on your requirements: For generic case it is 3 step process: 1. Wait for beta 3 that supposely comes with the source code. 2. Study the code for data grid header, treeview, datagrid, etc 3. Write your own code for the control inherited on the top of BaseGrid, with automatic wrapper for the first column - 1500-2000 lines in total to support generic case For quick and dirty : Create first column as cell renderer. I believe I posted code in this group for Flex 1.5 tree cell renderer that allowed to add nodes lines to the regular tree - you just paint it within item - still about 200 lines of code for core functionality, another 100 lines for cascade retrieve/grouped sort on the header clicks, 2-3 days of work altogether Have not seen anything in the public domain, just few developed for hire in consulting gigs. HTH, Anatole -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Passing Const to custom component error
It's te components namespace you set in the component. The compiler doesn't like xmlns:components=apps.common.components.* not sure why, perhaps components is a reserved word?!? Using getters and setters is good practice for use within components. Overall the code is fine. --- In flexcoders@yahoogroups.com, Tom Ortega [EMAIL PROTECTED] wrote: I have this class: package apps.common.asFiles { public class ScreenLabelConstants { public static const NAMEINFO_LABEL:String = Name; } } I have this code in my app: mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; width=100% height=100% label=Name xmlns:components=apps.common.components.* mx:Script ![CDATA[ import apps.common.asFiles.ScreenLabelConstants; ]] /mx:Script mx:Spacer height=30/ components:FreedTextLabel id=nameTextLabel ls={ ScreenLabelConstants.NAMEINFO_LABEL} / /mx:VBox The FreedTextLabel has this: ?xml version=1.0 encoding=utf-8? mx:Panel xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=initFunc() borderThickness=1 cornerRadius=0 shadowDistance=0 width=80% mx:Script ![CDATA[ import apps.common.asFiles.ScreenLabelConstants; [Bindable] private var _ls:String; [Bindable] public var mainLabelText:String; public function get ls():String { return _ls; } public function set ls(newValue:String):void { _ls = newValue; mainLabelText = _ls + :; } public function initFunc():void { mainLabelText = ls + :; } ]] /mx:Script mx:Label id=mainLabel text={mainLabelText}/ /mx:Panel The problem is that it won't work. No data gets passed to my custom component. Why is that? Is it because my app is binding the var to constant value? Or because I'm using a setter/getter on the var receiving the reference? Thanks, Tom2 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Binding drop down according to value of a data field!
Hi all, I m having a datagrid which has a column Rating as a drop down.The dataprovider _model is an arraycollection. Now what I want is that if the datafield ratingId is 'B' I should populate Beginner in the drop down. Similarly if I ve ratingId as 'I', I should populate Intermediate in the drop down.Similarly if I ve ratingId as 'E', I should populate Expert in the drop down.How to bind the drop down as such? Or is there a better way of doing this? - DROP DOWN:- mx:Component id=skillLevel mx:ComboBox mx:StringBeginner/mx:String mx:StringIntermediate/mx:String mx:StringExpert/mx:String /mx:dataProvider /mx:ComboBox /mx:Component - DATA GRID mx:DataGrid id=skillDG width=100% height=100% sortableColumns=true dataProvider={_model} editable=true mx:columns mx:Array mx:DataGridColumn headerText=Skill Name dataField=skillName editable=false/ mx:DataGridColumn headerText=Rating dataField=ratingId editorDataField=selectedItem itemEditor={skillLevel}/ /mx:Array /mx:columns /mx:DataGrid Thanks, Anurag. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Datagrid with a dropdown column!
Hi all, I am having a datagrid skillDG with 2 datagridcolumn as skillName and ratingId which is picking data from arraycollection. mx:DataGrid id=skillDG width=100% height=100% sortableColumns=true dataProvider={_model} editable=true mx:columns mx:Array mx:DataGridColumn headerText=Skill Name dataField=skillName editable=false/ mx:DataGridColumn headerText=Rating dataField=ratingId / /mx:Array /mx:columns /mx:DataGrid But now i want that my datafieldcolumn ratingId to be a dropdown with skills namely beginner,intermediate and expert. Is it possible? Thanks and Regards, Anurag. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: How can I keep one component in front of all other components?
Hi, But I have two thing that not very clear: 1. The component that always on top are not created by SystemManger, it is the grandson of application, how can I swap this instance with the Poped up instance which is the child of system manager. 2. Is the component created by System Manager always be the child of it? I don't know because when I create a popup, I have to assgin a parent to it? Doesn't this parent not really the component's parent? The system manager always be it's parent? --- In flexcoders@yahoogroups.com, Jeremy Lu [EMAIL PROTECTED] wrote: PopUpManager create pop-ups via SystemManager, which had a children list, and all DisplayObjectContainer( like SystemManager) has a setChildIndex() method to let you swap each child's depth, that's where you can start to implement. On 9/11/06, hastyarkxu [EMAIL PROTECTED] wrote: Hi, I want to keep one component always in front. It looks like the 'task bar' in windows. no matter how many windows you opened, task bar is always on top of all the windows. I want to keep it in front even the other components are poped up by the popup manager. What should I do then? (I think the z-order is useless because other component is created by popup manager..) regards, Ark -- 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 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: cairngorm: managing hundred of views
True indeed. But when dealing with 100+ screens, surely not all view related logic can be contained on a traditional Model. I think Cairngorm leave alot of freedom in terms of how you implement the view. DataBinding is an efficient way of updating the view with business logic. But there is still the requirement of using a view framework. The mx framework offers a awesome components and extending the existing viewstack, box, etc, you can achieve good managable code. But i think there are various view specific patterns to use inconjuction with cairngorm. A key flex advantage in my opinion is that used with cairngorm 2, the difficulty of handling client data has been totally removed. This leaves more time available for enhanced the view and providing Awesome GUI's. I cant wait for Blaze and Robert Penner's AS3 Animation contribution. My current 100+ View Screen app that i'm working on is in AS2, i would so love to be using AS3 instead. Regards, Bjorn --- In flexcoders@yahoogroups.com, Ralf Bokelberg [EMAIL PROTECTED] wrote: Maybe the provided examples are a little bit misleading, because they are too simple. On the other hand, who is able to create an example with hundreds of views :) But the point is, ModelLocator is just that, a locator for the model and not the model itself. If you have a view or a group of views, which needs multiple properties of your model, you should create a class for that and add an instance of this class to the ModelLocator. Cheers, Ralf. On 9/11/06, Tim Hoff [EMAIL PROTECTED] wrote: With views, the main thing to keep in mind is directory organization. Respectfully, I have a few differing ideas, than Steven, when it comes to views. But at Cairngorm's current iteration, all state == model (local and common). Organize the actual view classes in functional directory groups; for easy identification. In the ModelLocator, bind the state of the views accordingly. With hundreds of views, you will probably want to subclass the ModelLocator, into functional groups, to aid in organization. Ultimately, it boils down to each application's requirements. For me, I just try to keep things as simple and maintainable as possible; even when endless local state variables tend to clutter and complicate the ModelLocator. I'm calling this model happy. :) -TH --- In flexcoders@yahoogroups.com, Bjorn Schultheiss bjorn.schultheiss@ wrote: Good Question and I hope this thread gets a lot of posts. Personally I don't think that the modelLocator is always upto the job. Don't get me wrong, in a data-driven application this methodology is beautiful, But my feeling is it will not satisfy all requirements. For example, say you have about 100 view states that are loaded in and disposed of, at runtime, as required. I don't think the ModelLocator is up to the task. I think possibly a ViewManager of sorts is required that acts as a middle tier between the Views and the ModelLocator. I don't have any concrete classes to show an example of what I mean as I haven't developed such a solution as yet. But I am at the beginning of a project that will require such consideration. Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Diego Guebel Sent: Monday, 11 September 2006 12:07 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] cairngorm: managing hundred of views Hi there, My questions is theoretical and best practice oriented, I just wonder what is the best approach to manage hundreds of views since viewhelper/viewlocator is out of fashion. I was reading previous post but didn't find a good example or tutorial. Can anyone put some light on this? Sorry if some of you receive this post twice, I think the first once was moderated. Thanks in advance. Diego. -- 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 -- 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 (Yahoo! ID required) mailto:[EMAIL PROTECTED] -- Ralf Bokelberg [EMAIL PROTECTED] Flex Flash Consultant based in Cologne/Germany -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To
[flexcoders] unsubscribe
__._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Custom TreeItemRenderer to display a label followed by an icon/image?
Hi all... I've been playing around with the code that's been floating around to put render a checkbox next to each item in a tree control, but I'm not having any luck accomplishing the task of getting an image to display after a label in a tree control. I'm using a shared object to store information about different items in a tree and I'd like to put a little comments icon next to an item in the tree that has a shared object associated with it. I can't change the branch/leaf icons I'm already using custom icons and they must remain as they are. Can the labelFunction be used to return an object containing my label and my icon instead of just a string? If not, can someone point me in the direction with a few lines of code from the updateDisplayList function that will help me accomplish my task? Thanks! Wayne -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Localizing application
Diego, take a look here http://weblogs.macromedia.com/arayne/archives/2006/08/internationalis.cfm#mo re João Fernandes -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Diego Guebel Sent: segunda-feira, 11 de Setembro de 2006 3:50 To: Flex coders Subject: [flexcoders] Localizing application Hi there, Based on the flex documentation I have to compile one swf per each language, is that right? I'd like to be able to switch between languages during runtime. isn't that possible? Thanks, Diego. -- 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 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Multiple XML loads?
Hi all, I'm about a week into learning Flex, liking a lot of what I'm seeing for how things have been built. Reminds me of wy back when Visual Basic was one of the larger tools on the market for front-end based applications in that all the components and presentation manipulation are right there. I have one conceptual/programming question right now I'm struggling with. Say in the blogreader sample app tutorial, you wanted to have several buttons to read several different RSS or XML feeds. My attempts using HTTPService have failed because you don't know which feed to pull at runtime or been able to use a variable in the HTTPService url. Other attempts have been equally unsuccessful. Put the code from that tutorial in below for reference. Any help thanks! ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=feedRequest.send() mx:HTTPService id=feedRequest url=pathtoxml goes here useProxy=false/ mx:Panel x=10 y=10 width=475 height=400 layout=absolute title={feedRequest.lastResult.rss.channel.title} mx:DataGrid x=20 y=20 id=dgPosts width=400 dataProvider={feedRequest.lastResult.rss.channel.item} mx:columns mx:DataGridColumn headerText=Posts dataField=title/ mx:DataGridColumn headerText=Date dataField=pubDate width=150/ /mx:columns /mx:DataGrid mx:TextArea x=20 y=175 width=400 height=100 htmlText={dgPosts.selectedItem.description} / mx:LinkButton x=20 y=283 label=Read Full Post click=navigateToURL(new URLRequest(dgPosts.selectedItem.link)); / /mx:Panel /mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: cairngorm: managing hundred of views
The technique I use is probably a bit unorthodox. I have view stack that holds every screen possible in the application. In Cairngorm, each screen that has a helper (based off ViewHelper) registers itself. I modified this process to have a BaseHelper class that extends ViewHelper, and the helper classes for each view extend BaseHelper. Now, in BaseHelper I have each view register itself in a collection in the model, along with whether it's a system screen (login page, main menu, etc), whether the view has any requirements before being switched to or exited from. I do this by having a Screen VO with different properties (application title string [for menu at top], page title string, whether it's a system screen, and a boolean of if it's accessible, which defaults to false.) Each view helper implements IEnterExit, an interface that has four methods: enter(), exit(), setup() and destruct(). I really only use the first three in my application. The command that switches state will reference the view that's being called by the collection that the BaseHelper registered it's parent with. It can then perform any enter or exit logic on the screen being entered and the screen being left. I also have in the relational database what screens each user is permitted to see. My applications process is this: Application begins, each view registers itself with both the ViewLocator and the BaseHelper's collection. Since the login view is the first in the stack, it is shown. Upon successful login, the user's available screens are filtered through the application's total screens, and a final collection of Screen VO objects are put in this collection. Each screen the user has accessed to switches the access from false to true. So to switch screens I have full flexibility in being able to search through available screens per user, along with showing certain ones (my main menu shows every available screen that isn't a system screen.) Switching screens becomes as easy as dispatching a cairngorm switch screen event with the screen you want to access, for instance: CairngormEventDispatcher.getInstance().dispatchEvent(new SwitchScreenEvent(mainmenu)); or, if you're like me: CairngormEventDispatcher.getInstance().dispatchEvent(new SwitchScreenEvent( Constants.MAINMENU )); And in the BaseState's registration, it takes the screen's page title from that same constants file. So Constants.MAINMENU : String might equal Welcome to the Application's Main Menu, and this is the same string being dispatched. Sorry if this is incoherent and sloppy. Brennan --- In flexcoders@yahoogroups.com, bjorn.schultheiss [EMAIL PROTECTED] wrote: True indeed. But when dealing with 100+ screens, surely not all view related logic can be contained on a traditional Model. I think Cairngorm leave alot of freedom in terms of how you implement the view. DataBinding is an efficient way of updating the view with business logic. But there is still the requirement of using a view framework. The mx framework offers a awesome components and extending the existing viewstack, box, etc, you can achieve good managable code. But i think there are various view specific patterns to use inconjuction with cairngorm. A key flex advantage in my opinion is that used with cairngorm 2, the difficulty of handling client data has been totally removed. This leaves more time available for enhanced the view and providing Awesome GUI's. I cant wait for Blaze and Robert Penner's AS3 Animation contribution. My current 100+ View Screen app that i'm working on is in AS2, i would so love to be using AS3 instead. Regards, Bjorn --- In flexcoders@yahoogroups.com, Ralf Bokelberg ralf.bokelberg@ wrote: Maybe the provided examples are a little bit misleading, because they are too simple. On the other hand, who is able to create an example with hundreds of views :) But the point is, ModelLocator is just that, a locator for the model and not the model itself. If you have a view or a group of views, which needs multiple properties of your model, you should create a class for that and add an instance of this class to the ModelLocator. Cheers, Ralf. On 9/11/06, Tim Hoff TimHoff@ wrote: With views, the main thing to keep in mind is directory organization. Respectfully, I have a few differing ideas, than Steven, when it comes to views. But at Cairngorm's current iteration, all state == model (local and common). Organize the actual view classes in functional directory groups; for easy identification. In the ModelLocator, bind the state of the views accordingly. With hundreds of views, you will probably want to subclass the ModelLocator, into functional groups, to aid in organization. Ultimately, it boils down to each application's requirements. For me, I just try to keep things as simple and maintainable as possible; even when endless local state variables tend to clutter and complicate
Re: [flexcoders] Re: Passing Const to custom component error
I wish badly that you were correct, but alas, I fear not.I replaced components with freedCom for both the namespace and directory names. Compiled and passing a const into the FreedTextLabel still results in a null value, while passing in a plain string value of Name works. Even passing a binding to a variable such as ls={someVar} where someVar is set to the const will result in a null value being displayed. I did a bit of debugging though and discovered this. If I pass it a simple string value, the setter gets fired. If I pass it a reference to a var or const, the setter doesn't fire. Maybe the var reference doesn't register as a true value assignment and thus doesn't fire/trigger the setter? -Tom2On 9/11/06, bjorn.schultheiss [EMAIL PROTECTED] wrote: It's te components namespace you set in the component. The compiler doesn't like xmlns:components=apps.common.components.* not sure why, perhaps components is a reserved word?!? Using getters and setters is good practice for use within components. Overall the code is fine. --- In flexcoders@yahoogroups.com, Tom Ortega [EMAIL PROTECTED] wrote: I have this class: package apps.common.asFiles { public class ScreenLabelConstants { public static const NAMEINFO_LABEL:String = Name; } } I have this code in my app: mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml width=100% height=100% label=Name xmlns:components=apps.common.components.* mx:Script ![CDATA[ import apps.common.asFiles.ScreenLabelConstants; ]] /mx:Script mx:Spacer height=30/ components:FreedTextLabel id=nameTextLabel ls={ ScreenLabelConstants.NAMEINFO_LABEL} / /mx:VBox The FreedTextLabel has this: ?xml version=1.0 encoding=utf-8? mx:Panel xmlns:mx=http://www.adobe.com/2006/mxml creationComplete=initFunc() borderThickness=1 cornerRadius=0 shadowDistance=0 width=80% mx:Script ![CDATA[ import apps.common.asFiles.ScreenLabelConstants; [Bindable] private var _ls:String; [Bindable] public var mainLabelText:String; public function get ls():String { return _ls; } public function set ls(newValue:String):void { _ls = newValue; mainLabelText = _ls + :; } public function initFunc():void { mainLabelText = ls + :; } ]] /mx:Script mx:Label id=mainLabel text={mainLabelText}/ /mx:Panel The problem is that it won't work. No data gets passed to my custom component. Why is that? Is it because my app is binding the var to constant value? Or because I'm using a setter/getter on the var receiving the reference? Thanks, Tom2 __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Flex with FMS (something like Breeze...)
Hi there, Does anyone know of an instance where flex is being used in conjunction with Media server? I am looking to do something that I can upload a .swf presentation then click through the presentation (like you would powerpoint) and everyone else see and hear what Im doing Cheers David -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] background color of a text?
My guess is that each control acts a little differently, but if it's not listed as a style or property in the docs for the control you want, then you can usually extend the class and set the background color of the UITextField that's actually rendering the text. On 9/9/06, oktay nba [EMAIL PROTECTED] wrote: hi; how can i give a background color to a text control (like thespan style='background-color=#xx'anything/spanusage in html)or label? oktay __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Datagrid with a dropdown column!
Hi Anurag, Yes, it's possible. What you want is an itemRenderer or itemEditor for that specific DataGrid column or columns. Here's a couple of links that should point you in the right direction: http://livedocs.macromedia.com/flex/2/langref/mx/controls/DataGrid.html http://thesourcecode.org/?p=15 HTH... P E A C E Hasan hasan.otuome.com www.marxmedia.net thesourcecode.org Adobe Certified Professional (Flash MX2004 Developer) sahay17 wrote: Hi all, I am having a datagrid "skillDG" with 2 datagridcolumn as "skillName" and "ratingId" which is picking data from arraycollection. mx:DataGrid id="skillDG" width="100%" height="100% " sortableColumns= "true" dataProvider= "{_model} " editable="true" mx:columns mx:Array mx:DataGridColumn headerText=" Skill Name" dataField="skillNam e" editable="false" / mx:DataGridColumn headerText=" Rating" dataField="ratingId " / /mx:Array /mx:columns /mx:DataGrid But now i want that my datafieldcolumn "ratingId" to be a dropdown with skills namely beginner,intermedia te and expert. Is it possible? Thanks and Regards, Anurag. __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Need help using XML files without embedding them in SWF
Right now I use several XML files in my Flex 2 app and they are being embedded in the SWF file. I define them in an mx:XML tag like this: mx:XML id=inboxConfig format=e4x source=../xml/site_configs/inboxConfig.xml/ As you can see by the relative pathing the files are in the same file structure as the final SWF. How can I decouple these files so they are not embedded in the swf but are read at runtime? Since they are config files it would be useful to change them without having to recompile the app to get them re-embedded. Should I be using a URLLoader or HTTPService instead? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Video Controller
KP, You are correct that the Flex 2 mx.controls.VideoDisplay and the flash.media.Video that it utilizes are FLV only (either streaming via FMS or progressive). Regarding running video files with different formats (.mov,.mpeg,wmv,etc.), yes that was commonplace with Flash prior to the introduction of the FLV format with Flash Player 6. I came up with the following after googling: Flash Quicktime Integrating Flash and QuickTime for Dynamic Media Delivery If you can integrate Flash with the playback of other video formats, surely you can do it with Flex 2. But I advise that you should not expect components from Adobe for supporting streaming formats other than FLV. Not with FLV now so ubiquitous, and with the solid quality with the FLV On2 codec introduced with Flash 8. If others do not post with more here about integrating Flex in players for other video formats, you might try posting also on the Flashcoders list. hth, gOn 9/11/06, KP [EMAIL PROTECTED] wrote: Hi All, I want to run video files with format (.mov,.mpeg,wmv) etc. But what I found when I tried to use video controller that is present in flex components it supports only flv formats files. Is there any way of running video files with different formats. Please Help. Thanks KP __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Re: Order of drawing/rendering in a custom AS component
Hi Mike, Thanks -- the only thing is, those methods do not (for me) control the ordering of drawing, i.e. not which one is on top. They do control the z-order, but not the drawing order. I recall someone's earlier post that while ActionScript 2 did allow an easy way to control the drawing order, i.e. which items are on top of which other ones, that ActionScript3 does not and that I have to override the updateDisplayList function, but I'm not sure what updateDisplayList does _now_ that I would have to duplicate while adding my own functionality. Any help appreciated. Jeremy --- In flexcoders@yahoogroups.com, Michael Schmalle [EMAIL PROTECTED] wrote: Hi, getChildAt() getChildByName() getChildIndex() all IDisplayObjectContainer interface methods and properties. setChildAt() work great for setting depth along with the property numChildren [0] == top numChildren - 1 == bottom Peace, Mike On 9/1/06, jeremyrichman [EMAIL PROTECTED] wrote: I've been trying to do just this -- the z-order as you say has nothing to do with the order of drawing, i.e. what ends up on top. What function do I need to override or create in order to control the drawing order? (I've tried updateDisplayList but haven't been able to make that work.) Thanks, Jeremy --- In flexcoders@yahoogroups.com flexcoders% 40yahoogroups.com, Ralf Bokelberg ralf.bokelberg@ wrote: The z-order is determined by the position in the display list of their parent. Unless you control the drawing by yourself, this is not necessarily the order in which things are drawn. Cheers, Ralf On 8/8/06, RBullotta Rick.Bullotta@ wrote: Is there a z-order to drawing when multiple IDisplayComponents are contained in another component? What I'm trying to do is control the order in which they are rendered so that I can use Graphics.xxx drawing primitives on top of the other objects... Any help appreciated. - Rick -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders% http://www.mail-archive.com/flexcoders%25 40yahoogroups.com Yahoo! Groups Links -- Ralf Bokelberg ralf.bokelberg@ Flex Flash Consultant based in Cologne/Germany -- What goes up, does come down. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Video Controller
If you want to play the video inside of Flex, you will need to convert it to FLV hands down. A lot of people on this newsgroup mention FFmpeg for video conversion (http://ffmpeg.mplayerhq.hu/). You might want to look at that. -Andy _ Andrew Trice Cynergy Systems, Inc. http://www.cynergysystems.com Blog: http://www.cynergysystems.com/blogs/page/andrewtrice Email: [EMAIL PROTECTED] Office: 866-CYNERGY From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of greg h Sent: Monday, September 11, 2006 11:13 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Video Controller KP, You are correct that the Flex 2 mx.controls.VideoDisplay and the flash.media.Video that it utilizes are FLV only (either streaming via FMS or progressive). Regarding running video files with different formats (.mov,.mpeg,wmv,etc.), yes that was commonplace with Flash prior to the introduction of the FLV format with Flash Player 6. I came up with the following after googling: Flash Quicktime Integrating Flash and QuickTime for Dynamic Media Delivery If you can integrate Flash with the playback of other video formats, surely you can do it with Flex 2. But I advise that you should not expect components from Adobe for supporting streaming formats other than FLV. Not with FLV now so ubiquitous, and with the solid quality with the FLV On2 codec introduced with Flash 8. If others do not post with more here about integrating Flex in players for other video formats, you might try posting also on the Flashcoders list. hth, g On 9/11/06, KP jain_kumar11@yahoo.co.in wrote: Hi All, I want to run video files with format (.mov,.mpeg,wmv) etc. But what I found when I tried to use video controller that is present in flex components it supports only flv formats files. Is there any way of running video files with different formats. Please Help. Thanks KP __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Video Controller
Hi,Adobe Flash Player can only player .flv files, you can however covert other videos types (.avi, .wmv etc) to .flv using Open Source tool FFMPEG.Conversion takes depending on the length and compression of the video files. Some of the conversions might not work properly.. You also have to take care of different licensing issues..-abdulOn 9/11/06, greg h [EMAIL PROTECTED] wrote: KP, You are correct that the Flex 2 mx.controls.VideoDisplay and the flash.media.Video that it utilizes are FLV only (either streaming via FMS or progressive). Regarding running video files with different formats (.mov,.mpeg,wmv,etc.), yes that was commonplace with Flash prior to the introduction of the FLV format with Flash Player 6. I came up with the following after googling: Flash Quicktime Integrating Flash and QuickTime for Dynamic Media Delivery If you can integrate Flash with the playback of other video formats, surely you can do it with Flex 2. But I advise that you should not expect components from Adobe for supporting streaming formats other than FLV. Not with FLV now so ubiquitous, and with the solid quality with the FLV On2 codec introduced with Flash 8. If others do not post with more here about integrating Flex in players for other video formats, you might try posting also on the Flashcoders list. hth, gOn 9/11/06, KP [EMAIL PROTECTED] wrote: Hi All, I want to run video files with format (.mov,.mpeg,wmv) etc. But what I found when I tried to use video controller that is present in flex components it supports only flv formats files. Is there any way of running video files with different formats. Please Help. Thanks KP __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] My Adobe Developer Derby Xbox 360 Charity Auction
Hey all, Sorry to be off topic but it is for a good cause so please don't flame me. I just wanted to pass the word along that I have put my xBox 360 that was part of the Adobe Flex Developer Derby up for auction with 100% of the proceeds going to Toys for Tots. It is new and hasn't been opened. Here is the post: http://www.everythingflex.com/blog/1/2006/09/My-Adobe-Xbox-360-Charity-Auction.cfm Here is the auction: http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItemitem=330027238013 The auction runs for 10 days so please spread the word as I would like to see as big a donation as possible. Thanks, Rich -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Can someone help me understand this price info and what I get for it?
Thanks for the answer. Not what I wanted to hear ;) Well I can't see us paying 80,000 (20k per cpu times 2 cpu's times 2 servers) So that sell is out. David --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Per application means a conceptual application. Each one of our samples is an application. While the component explorer is made up of over 100 small application.mxml files it is still conceptually 1 application because it's delivered through that one URL. So for departmental it doesn't matter how many CPUs you actually have, you are limited to 100 concurrent users across the whole cluster for a given application (section 3.1.2 in the EULA doesn't say per CPU it says per CPU group/cluster). If you want to support more than 100 concurrent users you will need to use the enterprise license. HTH, Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David Brown Sent: Friday, September 08, 2006 4:02 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Can someone help me understand this price info and what I get for it? Flex Data Services (Departmental license) : $6,000 per CPU, with a limit of 100 concurrent users per cluster Q3: How do you measure concurrent users in the Flex Data Services departmental license? A: Concurrent users will be counted by the number of unique IP connections to the CPU and/or CPU cluster We have two hardware load balanced servers both with two cpu's in them. They are not clustered in anyway. Does this mean I can have 200 concurrent users (100 for one server and 100 for the other server) because each server has 2 cpu's and is 12k each. Or does this mean that I can have 400 concurrent users (100 per cpu per box) so 2 cpus one server and 2 cpu's the other gives me 400? The EULA also reads: http://www.adobe.com/products/eulas/pdfs/AdobeFlexSDK- DataServices2_0.pd f#search=%22flex%20data%20services%20departmental%22 http://www.adobe.com/products/eulas/pdfs/AdobeFlexSDK- DataServices2_0.p df#search=%22flex%20data%20services%20departmental%22 About 100 per application per cpu.. But this is beyond me. Any help. Thanks David -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Localizing application
Hey João, Thanks for the code sample ... Very helpful. In particular, I like how you bind the a function to an event, I was trying to figure out how to do that ... I like it how it magically adds the class in as an event listener. [Bindable(event=languageChange)] public function getString( key : String ) : String { var value : String = activeLanguage.languageKeyValues[ key ]; if ( value == null ) { throw new Error( No value in languange bundle for key + key ); } return value; } } Best, -Daniel João Fernandes wrote: Diego, take a look here http://weblogs.macromedia.com/arayne/archives/2006/08/internationalis.cfm#mo http://weblogs.macromedia.com/arayne/archives/2006/08/internationalis.cfm#mo re João Fernandes -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com] On Behalf Of Diego Guebel Sent: segunda-feira, 11 de Setembro de 2006 3:50 To: Flex coders Subject: [flexcoders] Localizing application Hi there, Based on the flex documentation I have to compile one swf per each language, is that right? I'd like to be able to switch between languages during runtime. isn't that possible? Thanks, Diego. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] FDS: Trouble Pushing Data To the Client
We are having some trouble pushing data back to the client based on the results of a server side operation. Basically after updating some 'preference' data, we need to get the newly generated information for the preference changes. The updates seem to be working, but when we try to refresh the data on the client with DataServiceTransaction.refreshFill() or updateItem() the problems ensue. Here are some of the details:Client Side code to retreive the data (ServiceNames is a list of enumerated values for our destination names) : // LOAN APPLICATIONloanAppReference = service.getDataService(ServiceNames.LOAN_APPLICATION).getItem({loanID: model.user.activeLoanNumber}, model.loanApplication);service.getDataService(ServiceNames.LOAN_APPLICATION).addEventListener(ResultEvent.RESULT, onLoanApplicationResult);service.getDataService(ServiceNames.LOAN_APPLICATION).addEventListener(FaultEvent.FAULT, onLoanApplicationFault); Server Side Code that we have tried to push data to the client // RefreshFillDataServiceTransaction dst =DataServiceTransaction.getCurrentDataServiceTransaction( ); dst.refreshFill( "aims.finding", null ); dst.commit( ); List loanID = new ArrayList();loanID.add( newPrefs.getLoanID( ) );dst.refreshFill( "aims.loanApplication", loanID ); dst.commit( ); This doesn't see to have any effect. // updateItemMap loanID = new HashMap(); loanID.put( "loanID", newPrefs.getLoanID( ) ); Object updatedFindings = (Object) new FindingAssembler( ).getFinding( loanID ); dst.updateItem( "aims.loanApplication", updatedFindings, null, null ); dst.commit( ); Receive The Following Error: [RPC Fault faultString="Could not invoke sync method on data adapter for destination 'aims.borrowerPreference' due to the following error: class java.lang.ClassCastException:java.lang.String."faultCode="Server.Processing" faultDetail="null"] Although the aims.borrowerPreferences destination doesn't have anything to do with the aims.finding destination that we are trying to update.~So this is where we stand. If you could point us in the direction of a solution, or something else to try we'd much very happy!Thanks in advance for any help thrown our way.John. __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Anybody use the AS3 downloaded from labs.adobe.com?
Hi all, I just found that there is no 'comments' related methods and classes exist in that package. Does someone meet the same problem? Ark -- 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] Video Controller
Andrew and Adbul, For some good, light-hearted fun you may want to check this out: www.adobe.com/devnet/tip/001.html This is a Flash 5 Tip of the Week from Macromedia themselves with a streaming demo of how to create your own Macromedia Flash controller for a QuickTime movie. I am not making this stuff up. (Funnier still, please note that they published this pre-Captivate-like demo in QuickTime. lol) It has been said that necessity is the mother of invention, and before FLV, Flash developers did some amazing things to get the interactivity of Flash integrated with true video on the net. Should it be anyone's *first* choice today? N! Unless maybe like this guy who posted last year that he has over 10,000 videos I already have captured and rendered as wmv. Then, rather than re-encode his video library as FLVs, it might make sense to do 1 flash movie and then 'float' the windows media player embed over the top of the flash movie. It is really a business decision between re-encoding existing video versus creating your own Flex/Flash video player using some of the old school Flash techniques that are out there. I came into Flash with MX 2004, aka Flash Player 6. So I am with you all the way that FLV is the way to go. The closest I ever came to non-FLV video in Flash was a legacy site that embedded each video on the site in individual SWFs and then created their own player in Flash that used loadMovie() to play each single video SWF on-demand. At the time my first reaction was Why?, but when I sat back and considered the options that were available pre-FLV, I understood. So if it makes sense for KP to use Flex to play, or should I say control playback of, his existing videos encoded in .mov,.mpeg,wmv,etc. it can be done. He will just have create his own custom player ;-) And KP, if you know what to google for, there is are still a lot of Flash how-to related links out there. (Note: many large commercial sites have now converted their video libraries to FLV and thus have taken down their old content integrating Flash with WMV and Quicktime.) For more Geez! I can't believe they did that! fun check out these too: Flash 4! March 24, 2000 Making Interactive QuickTime Video, May 8, 2002 How to simulate video in Macromedia Flash, Macromedia Technote! (Look Ma! No video, but it looks like video!) Jan 6, 2006 Windows media player embed in div over flash movie? (runnable prototype) Oh, and THANK YOU MACROMEDIA FOR FLV ... AND ESPECIALLY FOR FLV WITH On2 Oh yeah, AND FOR FLEX 2 TOO! :-) g On 9/11/06, Abdul Qabiz [EMAIL PROTECTED] wrote: Hi,Adobe Flash Player can only player .flv files, you can however covert other videos types (.avi, .wmv etc) to .flv using Open Source tool FFMPEG.Conversion takes depending on the length and compression of the video files. Some of the conversions might not work properly.. You also have to take care of different licensing issues..-abdulOn 9/11/06, greg h [EMAIL PROTECTED] wrote: KP, You are correct that the Flex 2 mx.controls.VideoDisplay and the flash.media.Video that it utilizes are FLV only (either streaming via FMS or progressive). Regarding running video files with different formats (.mov,.mpeg,wmv,etc.), yes that was commonplace with Flash prior to the introduction of the FLV format with Flash Player 6. I came up with the following after googling: Flash Quicktime Integrating Flash and QuickTime for Dynamic Media Delivery If you can integrate Flash with the playback of other video formats, surely you can do it with Flex 2. But I advise that you should not expect components from Adobe for supporting streaming formats other than FLV. Not with FLV now so ubiquitous, and with the solid quality with the FLV On2 codec introduced with Flash 8. If others do not post with more here about integrating Flex in players for other video formats, you might try posting also on the Flashcoders list. hth, gOn 9/11/06, KP [EMAIL PROTECTED] wrote: Hi All, I want to run video files with format (.mov,.mpeg,wmv) etc. But what I found when I tried to use video controller that is present in flex components it supports only flv formats files. Is there any way of running video files with different formats. Please Help. Thanks KP __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company
[flexcoders] issue with type=stacked for bar/column chart
the below code works if the type of the chart is clustered but it doesn't work, if it is stacked. any one have a clue? if i change mySilver value from 200 to 20, then it works. i am guessing the autoadjust is not working in some cases. thanks for your time, -Suri ?xml version=1.0? !-- Simple example to demonstrate the ColumnChart and BarChart controls. -- mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ import mx.collections.ArrayCollection; [Bindable] private var medalsAC:ArrayCollection = new ArrayCollection( [ { Country: USA, Gold: 35 }, { Country: China, Silver:17, mySilver:200 }, { Country: Russia, Bronze: 38 } ]); ]] /mx:Script mx:Panel title=ColumnChart and BarChart Controls Example height=100% width=100% layout=horizontal mx:BarChart id=column1 height=100% width=100% paddingLeft=5 paddingRight=5 showDataTips=true dataProvider={medalsAC} type=stacked mx:verticalAxis mx:CategoryAxis categoryField=Country/ /mx:verticalAxis mx:series mx:BarSeries xField=Silver displayName=Silver/ mx:BarSeries xField=mySilver displayName=mySilver/ mx:BarSeries xField=Gold displayName=Gold/ mx:BarSeries xField=Bronze displayName=Bronze/ /mx:series /mx:BarChart mx:Legend dataProvider={column1}/ /mx:Panel /mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Can someone help me understand this price info and what I get for it?
I think the list price is more of an initial negotiation point rather than set in stone tablets. There's no cost involved in talking your project over with adobe and seeing how things turn out. I have yet to experience any major vendor actually sell something to a big project and remain firm on price. How good are your negotiating skills? Paul - Original Message - From: David Brown [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, September 11, 2006 5:12 PM Subject: [flexcoders] Re: Can someone help me understand this price info and what I get for it? Thanks for the answer. Not what I wanted to hear ;) Well I can't see us paying 80,000 (20k per cpu times 2 cpu's times 2 servers) So that sell is out. David --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Per application means a conceptual application. Each one of our samples is an application. While the component explorer is made up of over 100 small application.mxml files it is still conceptually 1 application because it's delivered through that one URL. So for departmental it doesn't matter how many CPUs you actually have, you are limited to 100 concurrent users across the whole cluster for a given application (section 3.1.2 in the EULA doesn't say per CPU it says per CPU group/cluster). If you want to support more than 100 concurrent users you will need to use the enterprise license. HTH, Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David Brown Sent: Friday, September 08, 2006 4:02 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Can someone help me understand this price info and what I get for it? Flex Data Services (Departmental license) : $6,000 per CPU, with a limit of 100 concurrent users per cluster Q3: How do you measure concurrent users in the Flex Data Services departmental license? A: Concurrent users will be counted by the number of unique IP connections to the CPU and/or CPU cluster We have two hardware load balanced servers both with two cpu's in them. They are not clustered in anyway. Does this mean I can have 200 concurrent users (100 for one server and 100 for the other server) because each server has 2 cpu's and is 12k each. Or does this mean that I can have 400 concurrent users (100 per cpu per box) so 2 cpus one server and 2 cpu's the other gives me 400? The EULA also reads: http://www.adobe.com/products/eulas/pdfs/AdobeFlexSDK- DataServices2_0.pd f#search=%22flex%20data%20services%20departmental%22 http://www.adobe.com/products/eulas/pdfs/AdobeFlexSDK- DataServices2_0.p df#search=%22flex%20data%20services%20departmental%22 About 100 per application per cpu.. But this is beyond me. Any help. Thanks David -- 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 (Yahoo! ID required) mailto:[EMAIL PROTECTED] -- 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] validators in datagrid colmun
There is an example in the doc for this situation: http://livedocs.macromedia.com/flex/2/docs/0873.html Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of KumarSent: Monday, September 11, 2006 2:44 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] validators in datagrid colmun Hi All Below is the simple data grid I want to apply some like numeric validators on some particular column of data grid. Is there any example for this..! ?xml version="1.0"?mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" mx:Script ![CDATA[ n! bsp;import mx.controls.TextInput; import mx.events.DataGridEvent; [Bindable] public var initDG:Array = [ {Artist:'Pavement', Album:'Slanted and Enchanted', Price:11.99},{Artist:'Pavement', Album:'Brighten the Corners', Price:11.99} ]; // Define event listener for the itemEditEnd event. private function getCellInfo(event:DataGridEvent):void! { // Get the item editor and cast it to TextInput. var myEditor:TextInput = TextInput(event.currentTarget.itemEditorInstance);! nbsp; // Get the new value from the editor. var newVal:String = myEditor.text; // Get the old value.n! bsp; nb! sp; ;var oldVal:String = event.currentTarget.editedItemRenderer.data[event.dataField]; // Write out the cell coordinates, new value, // and old value to the TextArea control. cellInfo.text = "cell edited.\n";! cellInfo.text += "Row, column: " + event.rowIndex + ", " + event.columnIndex + "\n"; cellInfo.text += "New value: " + newVal + "\n"; cellInfo.text += "Old value: " + oldVal; }! ; ! n bsp;]] /mx:Script mx:TextArea id="cellInfo" width="300" height="150q! uot;/ mx:DataGrid id="myGrid" dataProvider="{initDG}" editable="true" itemEditEnd="getCellInfo(event);" mx:columns mx:DataGridColumn dataField="Artist" / mx:DataGridColumn! dataField="Album"/mx:DataGridColumn dataField="Price"/ /mx:columns /mx:DataGrid /mx:Application! nbsp;ThanksKP __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
RE: [flexcoders] FDS: Trouble Pushing Data To the Client
Hi John, I think the first thing is to see the stack trace of the ClassCastException you are getting. If you go to WEB-INF/flex/services-config.xml, search for level= and change that to Debug, then make sure the patterns tag below that has both Message.* and DataService.* in it, it will give you some nice diagnostics on the server side and should include the stack trace for that exception. It looks from the error like this is happening in your assemblers sync method. That would abort whatever update operation you are trying to perform. Jeff From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of John Crosby Sent: Monday, September 11, 2006 8:56 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] FDS: Trouble Pushing Data To the Client We are having some trouble pushing data back to the client based on the results of a server side operation. Basically after updating some 'preference' data, we need to get the newly generated information for the preference changes. The updates seem to be working, but when we try to refresh the data on the client with DataServiceTransaction.refreshFill() or updateItem() the problems ensue. Here are some of the details: Client Side code to retreive the data (ServiceNames is a list of enumerated values for our destination names) : // LOAN APPLICATION loanAppReference = service.getDataService(ServiceNames.LOAN_APPLICATION).getItem({loanID: model.user.activeLoanNumber}, model.loanApplication); service.getDataService(ServiceNames.LOAN_APPLICATION).addEventListener(ResultEvent.RESULT, onLoanApplicationResult); service.getDataService(ServiceNames.LOAN_APPLICATION).addEventListener(FaultEvent.FAULT, onLoanApplicationFault); Server Side Code that we have tried to push data to the client // RefreshFill DataServiceTransaction dst = DataServiceTransaction.getCurrentDataServiceTransaction( ); dst.refreshFill( aims.finding, null ); dst.commit( ); List loanID = new ArrayList(); loanID.add( newPrefs.getLoanID( ) ); dst.refreshFill( aims.loanApplication, loanID ); dst.commit( ); This doesn't see to have any effect. // updateItem Map loanID = new HashMap(); loanID.put( loanID, newPrefs.getLoanID( ) ); Object updatedFindings = (Object) new FindingAssembler( ).getFinding( loanID ); dst.updateItem( aims.loanApplication, updatedFindings, null, null ); dst.commit( ); Receive The Following Error: [RPC Fault faultString=Could not invoke sync method on data adapter for destination 'aims.borrowerPreference' due to the following error: class java.lang.ClassCastException:java.lang.String. faultCode=Server.Processing faultDetail=null] Although the aims.borrowerPreferences destination doesn't have anything to do with the aims.finding destination that we are trying to update. ~ So this is where we stand. If you could point us in the direction of a solution, or something else to try we'd much very happy! Thanks in advance for any help thrown our way. John. __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Re: Using Auth.cfc from CF Wizard
Nimer, Thanks for your help! I'm a big fan of your books btw! So i tried to put your CFLOGIN code in play, but i can still get to the main a pplication. Wouldn't the CFLOGIN have to within the IF statement? Becuase if the user isn't found in the database then there is no need to set CFLOGIN at all right? Also, i think what i get confused with flex is with events. If my auth.cfc method login sends a value of FALSE as the return value, then wouldn't my on Fault event come into play? Or would it just be the Result variable? If so, wouldn't i have to put a more detialed if statment within the login_result function of Login.mxml? Here is the code from that file: ?xml version=1.0 encoding=utf-8? mx:Form xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=* width=100% height=100% creationComplete=initApp() mx:Metadata [Event(forgotpassword)] [Event(loginSuccessful)] /mx:Metadata mx:Script ![CDATA[ import mx.events.ValidationResultEvent; import mx.rpc.events.ResultEvent; import mx.rpc.events.FaultEvent; import mx.utils.ObjectUtil; import mx.controls.Alert; private var lso:SharedObject; private function initApp():void { this.lso = SharedObject.getLocal(auth); if( this.lso.data['user'] != null ) { this.user.text = this.lso.data['user']; this.rememberLogin.selected = true; } if( this.lso.data['password'] != null ) { this.password.text = this.lso.data['password']; this.rememberLogin.selected = true; } } private function isValid():Boolean { var pswdValidResult:ValidationResultEvent = this.pswdValidate.validate(this.password.text); if (pswdValidResult.type==ValidationResultEvent.VALID) { return true; } else { return false; } } private function authenticateUser():void { if( isValid() ) { authManager.login( this.user.text, this.password.text ); } } private function errorMessage(msg:String):void { //Alert.show( ObjectUtil.toString(event.message) ); this.errorMsg.text = msg; this.errorMsg.height = 15; this.errorMsg.visible = true; } private function serverFault(event:FaultEvent):void { errorMessage(event.message['message']); } private function login_result(event:ResultEvent):void { // login successful, remember the user. if( Boolean(event.result)) { if( this.rememberLogin.selected ) { this.lso.data['user'] = this.user.text; this.lso.data['password'] = this.password.text; } else { this.lso.data['user'] = null; this.lso.data['password'] = null; } this.dispatchEvent( new Event('loginSuccessful') ); } else { // login didn't work. show message errorMessage(Login unsuccessful); } } ]] /mx:Script mx:RemoteObject id=authManager destination=ColdFusion source=Tiomkin.Tiomkin_Admin.components.cfgenerated.managers.Auth showBusyCursor=true mx:method name=login result=login_result(event) fault=serverFault(event) / /mx:RemoteObject mx:StringValidator id=pswdValidate source={this.password} property=text required=true / mx:Text id=errorMsg visible=true color=red width=100% height=0 / mx:FormItem width=100% label=User Name required=true mx:TextInput id=user width=175/ /mx:FormItem mx:FormItem width=100% label=Password required=true mx:TextInput id=password displayAsPassword=true width=175/ /mx:FormItem mx:FormItem mx:CheckBox id=rememberLogin label=Remember Login selected=false / /mx:FormItem mx:VBox width=100% horizontalAlign=right mx:Button label=Login click=authenticateUser();/ mx:LinkButton label=Forgot Password? click=this.dispatchEvent(new Event('forgotpassword'));
RE: [flexcoders] Can someone help me understand this price info and what I get for it?
Hi, The info that Matt provides below is totally accurate. I would only add; please reach out to us if you have a compelling reason to use our technology and would like to explore custom pricing options. Feel free to reach out to me directly ([EMAIL PROTECTED]) as I dont frequent the list as much as I should. J Eric Adobe Systems. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin Sent: Sunday, September 10, 2006 7:59 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Can someone help me understand this price info and what I get for it? Per application means a conceptual application. Each one of our samples is an application. While the component explorer is made up of over 100 small application.mxml files it is still conceptually 1 application because its delivered through that one URL. So for departmental it doesnt matter how many CPUs you actually have, you are limited to 100 concurrent users across the whole cluster for a given application (section 3.1.2 in the EULA doesnt say per CPU it says per CPU group/cluster). If you want to support more than 100 concurrent users you will need to use the enterprise license. HTH, Matt From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of David Brown Sent: Friday, September 08, 2006 4:02 PM To: [EMAIL PROTECTED]ups.com Subject: [flexcoders] Can someone help me understand this price info and what I get for it? Flex Data Services (Departmental license) : $6,000 per CPU, with a limit of 100 concurrent users per cluster Q3: How do you measure concurrent users in the Flex Data Services departmental license? A: Concurrent users will be counted by the number of unique IP connections to the CPU and/or CPU cluster We have two hardware load balanced servers both with two cpu's in them. They are not clustered in anyway. Does this mean I can have 200 concurrent users (100 for one server and 100 for the other server) because each server has 2 cpu's and is 12k each. Or does this mean that I can have 400 concurrent users (100 per cpu per box) so 2 cpus one server and 2 cpu's the other gives me 400? The EULA also reads: http://www.adobe.com/products/eulas/pdfs/AdobeFlexSDK-DataServices2_0.pdf#search=%22flex%20data%20services%20departmental%22 About 100 per application per cpu.. But this is beyond me. Any help. Thanks David __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Remote Object Destinations
I am using remote objects to collect data from my db and pass it to my flex front end. I built a test app to make sure that I am getting connectivity from flex to my cf server. I have also added the the destination RETS to the services-config.xml file. I have had this problem previously, and restarting fb would clear it up because the services-config.xml file was cached. Now not even this will do it. I know my destination is correct because I have included/output it in my flex app. This is the error that I get. faultCode:Server.Processing faultString:'No destination 'RETS' exists in service flex.messaging.services.RemotingService' faultDetail:'null' but in my output from my Services.xml file, I have this. I can clearly see that I have the destination RETS set in my services-config.xml file. services coldfusion-flashremoting-service messageTypes=flex.messaging.messages.RemotingMessage destination id=RETS channels channel ref=my-cfamf/ /channels /destination destination id=ColdFusion channels channel ref=my-cfamf/ /channels /destination /coldfusion-flashremoting-service channels channel id=my-cfamf type=mx.messaging.channels.AMFChannel endpoint uri=http://beta.homesmartagent.com/flex2gateway// properties polling-enabledfalse/polling-enabled /properties /channel /channels /services Here is the full desination from my services-config.xml file. destination id=RETS channels channel ref=my-cfamf/ /channels properties sourcecom.RetsSearch/source !-- define the resolution rules and access level of the cfc being invoked -- access !-- Use the ColdFusion mappings to find CFCs, by default only CFC files under your webroot can be found. -- use-mappingsfalse/use-mappings !-- allow public and remote or just remote methods to be invoked -- method-access-levelremote/method-access-level /access property-case !-- cfc property names -- force-cfc-lowercasefalse/force-cfc-lowercase !-- Query column names -- force-query-lowercasefalse/force-query-lowercase !-- struct keys -- force-struct-lowercasefalse/force-struct-lowercase /property-case /properties /destination -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] calendar component
i recently read that an open sourced calendar componet was close to being released http://weblogs.macromedia.com/amcleod/archives/2006/08/fade_to_gray_ef. cfm i can not find any other info on this topic, has anyone seen or heard anything about it and if it is available yet? thanks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] calendar component
Hi, We're still working on the calendar component. I will post to my blog (and here) when it is ready for release. Regards, Ali -- Alistair McLeod Technical Leader (Rich Internet Applications and LiveCycle) Adobe Consulting Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UK p: +44 (0) 131 338 6108 [EMAIL PROTECTED], http://weblogs.macromedia.com/amcleod -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bghoward3 Sent: 11 September 2006 19:59 To: flexcoders@yahoogroups.com Subject: [flexcoders] calendar component i recently read that an open sourced calendar componet was close to being released http://weblogs.macromedia.com/amcleod/archives/2006/08/fade_to_gray_ef. cfm i can not find any other info on this topic, has anyone seen or heard anything about it and if it is available yet? thanks -- 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 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Remote Object Destinations
Jeremy, try menu Project Clean. João Fernandes From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jeremy Rottman Sent: segunda-feira, 11 de Setembro de 2006 20:14 To: flexcoders@yahoogroups.com Subject: [flexcoders] Remote Object Destinations I am using remote objects to collect data from my db and pass it to my flex front end. I built a test app to make sure that I am getting connectivity from flex to my cf server. I have also added the the destination RETS to the services-config.xml file. I have had this problem previously, and restarting fb would clear it up because the services-config.xml file was cached. Now not even this will do it. I know my destination is correct because I have included/output it in my flex app. This is the error that I get. faultCode:Server.Processing faultString:'No destination 'RETS' exists in service flex.messaging.services.RemotingService' faultDetail:'null' but in my output from my Services.xml file, I have this. I can clearly see that I have the destination RETS set in my services-config.xml file. services coldfusion-flashremoting-service messageTypes=flex.messaging.messages.RemotingMessage destination id=RETS channels channel ref=my-cfamf/ /channels /destination destination id=ColdFusion channels channel ref=my-cfamf/ /channels /destination /coldfusion-flashremoting-service channels channel id=my-cfamf type=mx.messaging.channels.AMFChannel endpoint uri=http://beta.homesmartagent.com/flex2gateway// properties polling-enabledfalse/polling-enabled /properties /channel /channels /services Here is the full desination from my services-config.xml file. destination id=RETS channels channel ref=my-cfamf/ /channels properties sourcecom.RetsSearch/source !-- define the resolution rules and access level of the cfc being invoked -- access !-- Use the ColdFusion mappings to find CFCs, by default only CFC files under your webroot can be found. -- use-mappingsfalse/use-mappings !-- allow public and remote or just remote methods to be invoked -- method-access-levelremote/method-access-level /access property-case !-- cfc property names -- force-cfc-lowercasefalse/force-cfc-lowercase !-- Query column names -- force-query-lowercasefalse/force-query-lowercase !-- struct keys -- force-struct-lowercasefalse/force-struct-lowercase /property-case /properties /destination __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
RE: [flexcoders] Public getter, private setter?
Actually on a second review Ive been told that the engineer misunderstood the question. The bug is in the spec, mixed visibility is intended not to be allowed (at the moment). Theyre going to discuss this further at the ECMAScript 4 Committee meeting. Anyway, you at least know what works and doesnt work currently J Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Michael Schmalle Sent: Saturday, September 09, 2006 3:58 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Public getter, private setter? Hah! So in my post a couple days ago... This is just a guess but, I would be willing to bet this is a Player bug. I was right. hehe Peace, Mike On 9/8/06, Matt Chotin [EMAIL PROTECTED]com wrote: So actually we investigated further and it turns out this is a bug. The engineer on the language team said that using mixed visibility is supposed to be allowed (I was wrong, this happens occasionally). We have a bug filed. Thanks for pointing it out Thunder! J Matt From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On Behalf Of Christian Edward Gruber Sent: Friday, September 08, 2006 6:42 AM To: [EMAIL PROTECTED]ups.com Subject: Re: [flexcoders] Public getter, private setter? Hey Paul, I can't speak for Adobe, but in many other languages, accessors/mutators are simply conventions, not actual language constructs. Java, for example, has no understanding that a method is an accessor. It is merely a bean convention that getFoo/setFoo are getters and settors for Foo. So in many languages there is infinite freedom, but less language support. .NET, by contrast, is probably what you are comparing to with it's properties and property accessors. It might be useful to compare languages from a desirability standpoint, but it's often not helpful because languages are implemented differently, and each has its own implementation challenges. It's hard to say why Adobe went this way, but if accessors are more carefully managed by the language, it may be a much easier implementation to pair their access levels. regards, Christian. Paul Andrews wrote: Matt, what has made Adobe depart from what is standard behaviour in other languages. I'm having trouble understanding any reason for this than perhaps an implementation issue (ie, we would have preferred to support independent visibility but we preferred to get it out the door without delay, since this is a relatively minor issue). Paul - Original Message - From: Matt Chotin To: [EMAIL PROTECTED]ups.com Sent: Friday, September 08, 2006 4:48 AM Subject: RE: [flexcoders] Public getter, private setter? It's intentional right now that a getter/setter pair must have a matching visibility modifier. You can't change whether a variable is visible to the compiler based on whether it's being read or being written. While we understand the use-case (and debated it internally ourselves) this is the approach we're taking right now. -- christian gruber+ process coach and architect Israfil Consulting Services Corporation email [EMAIL PROTECTED]net+ bus 905.640.1119 + mob 416.998.6023 -- What goes up, does come down. __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Re: Remote Object Destinations
Nope even with cleaning the project, I still get this error. Does it matter that I am not using FDS? If I use the desination ColdFusion, everything works fine. But to better organize my project, I want to be able to have custom destinations setup. -- 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] Localizing application
João, Thanks for the link, really appreciated Diego On Tue, 12 Sep 2006 01:56:09 +1200, João Fernandes [EMAIL PROTECTED] wrote: Diego, take a look here http://weblogs.macromedia.com/arayne/archives/2006/08/internationalis.cfm#mo re João Fernandes -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Diego Guebel Sent: segunda-feira, 11 de Setembro de 2006 3:50 To: Flex coders Subject: [flexcoders] Localizing application Hi there, Based on the flex documentation I have to compile one swf per each language, is that right? I'd like to be able to switch between languages during runtime. isn't that possible? Thanks, Diego. -- 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 -- 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 (Yahoo! ID required) mailto:[EMAIL PROTECTED] -- 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] background color of a text?
Here is an example of a custom component subclassing Label to give it a burgundy backgroundColor: package { import mx.controls.Label; import flash.display.Graphics; public class MyLabel extends Label { override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); var g:Graphics = graphics; g.clear(); g.beginFill(0xCC0033); g.drawRect(0, 0, unscaledWidth, unscaledHeight); g.endFill(); } } } Hope this helps. Joan From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Daniel Freiman Sent: Monday, September 11, 2006 7:15 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] background color of a text? My guess is that each control acts a little differently, but if it's not listed as a style or property in the docs for the control you want, then you can usually extend the class and set the background color of the UITextField that's actually rendering the text. On 9/9/06, oktay nba [EMAIL PROTECTED]com wrote: hi; how can i give a background color to a text control (like thespan style='background-color=#xx'anything/spanusage in html)or label? oktay __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] fds/jms messaging. detecting client disconnection.
hi all, I am building a java app that uses fds to pub/subs flex clients to a set of jms topics and queues and I need a way to obtain a connected client list on the java side... the traditional way would be to create a topic to ping clients on a given interval. alternatively, is there any fds low level message that indicates a client disconnection?? Thanks, Aldo -- : Aldo Bucchi : mobile (56) 8 429 8300 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Datagrid with a dropdown column!
Anurag, Yes, as someone pointed out before, you can use a custom itemRenderer. Yours would look something like the code provided below. Notice that if you want the ComboBox to be editable, you should specify that renderIsEditor=true and specify the editorDataField. mx:DataGrid id=skillDG width=100% height=100% sortableColumns=true dataProvider={_model} editable=true mx:columns mx:Array mx:DataGridColumn headerText=Skill Name dataField=skillName editable=false/ mx:DataGridColumn headerText=Rating dataField=ratingId rendererIsEditor=true editorDataField=selectedItem mx:itemRenderer mx:Component mx:ComboBox mx:dataProvider mx:String beginner/mx:String mx:String intermediate/mx:String mx:String expert/mx:String /mx:dataProvider /mx:ComboBox /mx:Component /mx:itemRenderer /mx:DataGridColumn /mx:Array /mx:columns /mx:DataGrid Joan From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of sahay17 Sent: Monday, September 11, 2006 2:38 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Datagrid with a dropdown column! Hi all, I am having a datagrid skillDG with 2 datagridcolumn as skillName and ratingId which is picking data from arraycollection. mx:DataGrid id=skillDG width=100% height=100% sortableColumns=true dataProvider={_model} editable=true mx:columns mx:Array mx:DataGridColumn headerText=Skill Name dataField=skillName editable=false/ mx:DataGridColumn headerText=Rating dataField=ratingId / /mx:Array /mx:columns /mx:DataGrid But now i want that my datafieldcolumn ratingId to be a dropdown with skills namely beginner,intermediate and expert. Is it possible? Thanks and Regards, Anurag. __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Re: cairngorm: managing hundred of views
thank you all for the reply, Can someone point me to the Steve approach? I still wonder how do Tim and Ralf register the views, are you creating a viewstack with all the views? for example: how are you managing the visibility? Thanks, Diego. On Mon, 11 Sep 2006 17:51:34 +1200, Tim Hoff [EMAIL PROTECTED] wrote: With views, the main thing to keep in mind is directory organization. Respectfully, I have a few differing ideas, than Steven, when it comes to views. But at Cairngorm's current iteration, all state == model (local and common). Organize the actual view classes in functional directory groups; for easy identification. In the ModelLocator, bind the state of the views accordingly. With hundreds of views, you will probably want to subclass the ModelLocator, into functional groups, to aid in organization. Ultimately, it boils down to each application's requirements. For me, I just try to keep things as simple and maintainable as possible; even when endless local state variables tend to clutter and complicate the ModelLocator. I'm calling this model happy. :) -TH --- In flexcoders@yahoogroups.com, Bjorn Schultheiss [EMAIL PROTECTED] wrote: Good Question and I hope this thread gets a lot of posts. Personally I don't think that the modelLocator is always upto the job. Don't get me wrong, in a data-driven application this methodology is beautiful, But my feeling is it will not satisfy all requirements. For example, say you have about 100 view states that are loaded in and disposed of, at runtime, as required. I don't think the ModelLocator is up to the task. I think possibly a ViewManager of sorts is required that acts as a middle tier between the Views and the ModelLocator. I don't have any concrete classes to show an example of what I mean as I haven't developed such a solution as yet. But I am at the beginning of a project that will require such consideration. Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Diego Guebel Sent: Monday, 11 September 2006 12:07 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] cairngorm: managing hundred of views Hi there, My questions is theoretical and best practice oriented, I just wonder what is the best approach to manage hundreds of views since viewhelper/viewlocator is out of fashion. I was reading previous post but didn't find a good example or tutorial. Can anyone put some light on this? Sorry if some of you receive this post twice, I think the first once was moderated. Thanks in advance. Diego. -- 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 -- 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 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] fds/jms messaging. detecting client disconnection.
Aldo,Here's some sample code that I used to know when a client disconnected. The FlexSession.sessionDestroyed event corresponds to a disconnection public FlexSessionTest() { FlexSession.addSessionCreatedListener(this); } public void sessionCreated( FlexSession session ) { session.addSessionDestroyedListener(this); System.out.println( sessionCreated! ); }public void sessionDestroyed( FlexSession session ) { System.out.println( sessionDestroyed! ); }HTH,Tom On 9/11/06, Aldo Bucchi [EMAIL PROTECTED] wrote: hi all, I am building a java app that uses fds to pub/subs flex clients to a set of jms topics and queues and I need a way to obtain a connected client list on the java side... the traditional way would be to create a topic to ping clients on a given interval. alternatively, is there any fds low level message that indicates a client disconnection?? Thanks, Aldo -- : Aldo Bucchi : mobile (56) 8 429 8300 __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Re: How to refresh a tree
My problem isn't solved by your suggestion unfortunately. My tree shows the correct data but still doesn't update the scrollbar appropriately. And at times children nodes will overlap parent nodes further down the list. I've been calling validateDisplayList on the tree, but should I call it on something else? --- In flexcoders@yahoogroups.com, Marcel Fahle [EMAIL PROTECTED] wrote: Hey Guys, my problem was, that the tree was reacting weird when scrolling around after adding data to its dataprovider (XMLListCollection) using setChildren. (When the user clicks a branch node, it's childnodes should be loaded from my streamingserver (=returns XML)) I found out, that the problem was, that the tree wasn't prepared for the arrival of new childnodes.. The nodes (branchNodes) where I wanted to add children later gave me the return valueof false on asking hasChildren() And there lies the problem: The tree doesn't expect new children and reacts a little bit weird (which maybe belongs to the uncorrect use of measure, as you said, Mike). Anyway, I solved my problem like this: When first generating my DataProvider I added on each empty branch node a single node with just the label loading..., what makes the datadescriptor return true on hasChildren. When the subenodes are loaded, I just delete the loading... node, as you can see on these screenshots: http://marcelfahle.com/labs/flex2/screens/cptreeproblem1.jpg http://marcelfahle.com/labs/flex2/screens/cptreeproblem2.jpg http://marcelfahle.com/labs/flex2/screens/cptreeproblem3.jpg Using this hack everything works good for me.. If anybody wants to see it in action, just drop me a line off-list.. Michael Schmalle wrote: Hi, There is some issues with the Tree and XML dtat provider collections. One thing I can suggest is; Add an event listener to the divider bar release, I can't remeber what it is, in that handler call myTree.invalidateList(); Give it a try and let me know. I have the same issues with using itemRenderers and changing some internal data specific things. After I am done with my process, I called invalidateList() and it did a nice redraw quickly. There probably is just an update isse and measure() is not being called correctly. Peace, Mike On 8/23/06, *e baggg* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I too have had problems with XML nodes in tree. One thing that eliminated a lot of the issues was reassigning the dataProvider of the tree explictly (right after you update the node. so... [Bindable] private var xmlN : XML private function updateTreeDataProvider : void { //code that updates xmlN treeNav.dataProvider= xmlN; } mx:Tree id=treeNav */Marcel Fahle [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]/* wrote: Hi Dave, did you found a solution on that? I've got a similar problem here. Marcel Dave Bobby wrote: This is flaky, might be a bug. root -a --aa --ab --ac -b -c --ca --cb --cc say the last server retrieval got ca, cb and cc. but the tree did not show a scrollbar. this tree is in a vDivided box, so when i move the divider upto b, i see a scrollbar, but when i move divider to cb or cc, ca-cb and cc disappear and no scrollbar. bug? or am i doing something wrong? i think that the tree should be refreshing when i do such operations. thanks. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Dave Bobby dvbob001@ wrote: I am trying to append data retrieved to selectedItems in the tree represented by an XMLListCollection. During the trace I see that the retrieived items have been added to the XMLListCollection correctly and this collection in Bindable. But the tree itself behaves wierd. Sometimes it shows the scrollbars, sometimes not. Sometimes, when I scroll up and down, it collates different nodes to different parents visually. Any ideas? Thanks. Dave. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com http://yahoo.com -- What goes up, does come down. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional *
[flexcoders] Re: Remote Object Destinations
This happens to me every time we edit our services-config.xml. For me, it means a reboot, but your problem might be caused by something different than what affects our projects. --- In flexcoders@yahoogroups.com, Jeremy Rottman [EMAIL PROTECTED] wrote: Nope even with cleaning the project, I still get this error. Does it matter that I am not using FDS? If I use the desination ColdFusion, everything works fine. But to better organize my project, I want to be able to have custom destinations setup. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: Remote Object Destinations
I think some folks are talking about the flex builder bug where it caches the services-config.xml file unless that file is explicitly added to the project (apparently FB only monitors files in the project for changes). It is also possible that you are not pointing your compiler environment to the services-config.xml file in the first place. The path to this is an option in the project configuration, or an option to the compiler settable on the command line or through the flex-config.xml. Finally, you can see which destinations your application was compiled with by dumping out the value of the String xml property on the class: mx.messaging.config.ServerConfig. This is the subset of the servers configuration which gets compiled into the client. Jeff From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of lyon.james Sent: Monday, September 11, 2006 2:22 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Remote Object Destinations This happens to me every time we edit our services-config.xml. For me, it means a reboot, but your problem might be caused by something different than what affects our projects. --- In [EMAIL PROTECTED]ups.com, Jeremy Rottman rottmanList@... wrote: Nope even with cleaning the project, I still get this error. Does it matter that I am not using FDS? If I use the desination ColdFusion, everything works fine. But to better organize my project, I want to be able to have custom destinations setup. __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Re: cairngorm: managing hundred of views
Hi Diego, I can't speak for Ralf, but the approach that I'm using is similar to the following example: http://www.cflex.net/showFileDetails.cfm?ObjectID=422Object=FileChannelID=1 I prefer to avoid ViewHelper/ViewLocator, but some here still like that method. For me, using bound view states and views as components works just fine. I do agree with Bjorn, that if extending a view for other purposes becomes a need (like a ShoppingCart being used as a WishList),the classshould beinstantiated in the ModelLocator. For larger applications this is common. But, not always necessary for medium and small applications. From previous threads on this subject, the concensus seems to be; use whatever method that works for you. Since most views reference the ModelLocator anyway, you have a lot of freedom in this area. -TH--- In flexcoders@yahoogroups.com, "Diego Guebel" [EMAIL PROTECTED] wrote: thank you all for the reply, Can someone point me to the Steve approach? I still wonder how do Tim and Ralf register the views, are you creating a viewstack with all the views? for example: how are you managing the visibility? Thanks, Diego. On Mon, 11 Sep 2006 17:51:34 +1200, Tim Hoff [EMAIL PROTECTED] wrote: With views, the main thing to keep in mind is directory organization. Respectfully, I have a few differing ideas, than Steven, when it comes to views. But at Cairngorm's current iteration, "all" state == model (local and common). Organize the actual view classes in functional directory groups; for easy identification. In the ModelLocator, bind the state of the views accordingly. With hundreds of views, you will probably want to subclass the ModelLocator, into functional groups, to aid in organization. Ultimately, it boils down to each application's requirements. For me, I just try to keep things as simple and maintainable as possible; even when endless local state variables tend to clutter and complicate the ModelLocator. I'm calling this model happy. :) -TH --- In flexcoders@yahoogroups.com, "Bjorn Schultheiss" bjorn.schultheiss@ wrote: Good Question and I hope this thread gets a lot of posts. Personally I don't think that the modelLocator is always upto the job. Don't get me wrong, in a data-driven application this methodology is beautiful, But my feeling is it will not satisfy all requirements. For example, say you have about 100 view states that are loaded in and disposed of, at runtime, as required. I don't think the ModelLocator is up to the task. I think possibly a "ViewManager" of sorts is required that acts as a middle tier between the Views and the ModelLocator. I don't have any concrete classes to show an example of what I mean as I haven't developed such a solution as yet. But I am at the beginning of a project that will require such consideration.Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Diego Guebel Sent: Monday, 11 September 2006 12:07 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] cairngorm: managing hundred of views Hi there, My questions is theoretical and best practice oriented, I just wonder what is the best approach to manage hundreds of views since viewhelper/viewlocator is out of fashion. I was reading previous post but didn't find a good example or tutorial. Can anyone put some light on this? Sorry if some of you receive this post twice, I think the first once was moderated. Thanks in advance. Diego.-- 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 -- 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 __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
RE: [flexcoders] Re: Passing Const to custom component error
I doubt it, try debug it in here mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" label="Name" xmlns:components="apps.common.components.*" mx:Script ![CDATA[ import apps.common.asFiles.ScreenLabelConstants; trace('test: '+ScreenLabelConstants.NAMEINFO_LABEL'); nameTextLabel.ls=ScreenLabelConstants.NAMEINFO_LABEL; ]] /mx:Script mx:Spacer height="30"/ components:FreedTextLabel id="nameTextLabel" ls="{ ScreenLabelConstants.NAMEINFO_LABEL}" / /mx:VBox I'll run another test when i get home and get it working. Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom OrtegaSent: Tuesday, 12 September 2006 12:09 AMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Re: Passing Const to custom component error I wish badly that you were correct, but alas, I fear not.I replaced components with freedCom for both the namespace and directory names. Compiled and passing a const into the FreedTextLabel still results in a null value, while passing in a plain string value of "Name" works. Even passing a binding to a variable such as ls="{someVar}" where someVar is set to the const will result in a null value being displayed. I did a bit of debugging though and discovered this. If I pass it a simple string value, the setter gets fired. If I pass it a reference to a var or const, the setter doesn't fire. Maybe the var reference doesn't register as a true value assignment and thus doesn't fire/trigger the setter? -Tom2 On 9/11/06, bjorn.schultheiss bjorn.schultheiss@qdc.net.au wrote: It's te components namespace you set in the component.The compiler doesn't like xmlns:components="apps.common.components.*"not sure why, perhaps components is a reserved word?!?Using getters and setters is good practice for use within components.Overall the code is fine. --- In [EMAIL PROTECTED]ups.com, "Tom Ortega" [EMAIL PROTECTED].. wrote: I have this class: package apps.common.asFiles { public class ScreenLabelConstants { public static const NAMEINFO_LABEL:String = "Name"; } } I have this code in my app: mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" label="Name" xmlns:components="apps.common.components.*" mx:Script ![CDATA[ import apps.common.asFiles.ScreenLabelConstants; ]] /mx:Script mx:Spacer height="30"/ components:FreedTextLabel id="nameTextLabel" ls="{ ScreenLabelConstants.NAMEINFO_LABEL}" / /mx:VBox The FreedTextLabel has this: ?xml version="1.0" encoding="utf-8"? mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="initFunc()" borderThickness="1" cornerRadius="0" shadowDistance="0" width="80%" mx:Script ![CDATA[ import apps.common.asFiles.ScreenLabelConstants; [Bindable] private var _ls:String; [Bindable] public var mainLabelText:String; public function get ls():String { return _ls; } public function set ls(newValue:String):void { _ls = newValue; mainLabelText = _ls + ":"; } public function initFunc():void { mainLabelText = ls + ":"; } ]] /mx:Script mx:Label id="mainLabel" text="{mainLabelText}"/ /mx:Panel The problem is that it won't work. No data gets passed to my custom component. Why is that? Is it because my app is binding the var to constant value? Or because I'm using a setter/getter on the varreceiving the reference? Thanks, Tom2 __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Re: issue with type=stacked for bar/column chart
Hi Ely, sorry for not being clear. below is the code that is supposed to display a stacked bar chart. instead it displays a single bar with no stacking. when i hange the type attribute of bar chart to clustered, it displays the clustered bar chart just fine. only thing i did different from normal stacked bar is removed values for Silver and Bronze for USA from medalsAC array collection and added mySilver a value 100. please let me know, if u need more info. thanks for you time. -Suri ?xml version=1.0? !-- Simple example to demonstrate the ColumnChart and BarChart controls. -- mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ import mx.collections.ArrayCollection; [Bindable] private var medalsAC:ArrayCollection = new ArrayCollection( [ { Country: USA, Gold: 35 }, { Country: China, Silver:17, mySilver:200 }, { Country: Russia, Bronze: 38 } ]); ]] /mx:Script mx:Panel title=ColumnChart and BarChart Controls Example height=100% width=100% layout=horizontal mx:BarChart id=column1 height=100% width=100% paddingLeft=5 paddingRight=5 showDataTips=true dataProvider={medalsAC} type=stacked mx:verticalAxis mx:CategoryAxis categoryField=Country/ /mx:verticalAxis mx:series mx:BarSeries xField=Silver displayName=Silver/ mx:BarSeries xField=mySilver displayName=mySilver/ mx:BarSeries xField=Gold displayName=Gold/ mx:BarSeries xField=Bronze displayName=Bronze/ /mx:series /mx:BarChart mx:Legend dataProvider={column1}/ /mx:Panel /mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Passing Const to custom component error
Thanks for your help on this. It's frustrating when good practices don't work so good. LOL -Tom2On 9/11/06, Bjorn Schultheiss [EMAIL PROTECTED] wrote: I doubt it, try debug it in here mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml width=100% height=100% label=Name xmlns:components=apps.common.components.* mx:Script ![CDATA[ import apps.common.asFiles.ScreenLabelConstants; trace('test: '+ScreenLabelConstants.NAMEINFO_LABEL'); nameTextLabel.ls=ScreenLabelConstants.NAMEINFO_LABEL; ]] /mx:Script mx:Spacer height=30/ components:FreedTextLabel id=nameTextLabel ls={ ScreenLabelConstants.NAMEINFO_LABEL} / /mx:VBox I'll run another test when i get home and get it working. Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies From: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tom OrtegaSent: Tuesday, 12 September 2006 12:09 AMTo: [EMAIL PROTECTED]ups.comSubject: Re: [flexcoders] Re: Passing Const to custom component error I wish badly that you were correct, but alas, I fear not.I replaced components with freedCom for both the namespace and directory names. Compiled and passing a const into the FreedTextLabel still results in a null value, while passing in a plain string value of Name works. Even passing a binding to a variable such as ls={someVar} where someVar is set to the const will result in a null value being displayed. I did a bit of debugging though and discovered this. If I pass it a simple string value, the setter gets fired. If I pass it a reference to a var or const, the setter doesn't fire. Maybe the var reference doesn't register as a true value assignment and thus doesn't fire/trigger the setter? -Tom2 On 9/11/06, bjorn.schultheiss [EMAIL PROTECTED] wrote: It's te components namespace you set in the component.The compiler doesn't like xmlns:components=apps.common.components.*not sure why, perhaps components is a reserved word?!?Using getters and setters is good practice for use within components.Overall the code is fine. --- In flexcoders@yahoogroups.com, Tom Ortega [EMAIL PROTECTED] wrote: I have this class: package apps.common.asFiles { public class ScreenLabelConstants { public static const NAMEINFO_LABEL:String = Name; } } I have this code in my app: mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml width=100% height=100% label=Name xmlns:components=apps.common.components.* mx:Script ![CDATA[ import apps.common.asFiles.ScreenLabelConstants; ]] /mx:Script mx:Spacer height=30/ components:FreedTextLabel id=nameTextLabel ls={ ScreenLabelConstants.NAMEINFO_LABEL} / /mx:VBox The FreedTextLabel has this: ?xml version=1.0 encoding=utf-8? mx:Panel xmlns:mx=http://www.adobe.com/2006/mxml creationComplete=initFunc() borderThickness=1 cornerRadius=0 shadowDistance=0 width=80% mx:Script ![CDATA[ import apps.common.asFiles.ScreenLabelConstants; [Bindable] private var _ls:String; [Bindable] public var mainLabelText:String; public function get ls():String { return _ls; } public function set ls(newValue:String):void { _ls = newValue; mainLabelText = _ls + :; } public function initFunc():void { mainLabelText = ls + :; } ]] /mx:Script mx:Label id=mainLabel text={mainLabelText}/ /mx:Panel The problem is that it won't work. No data gets passed to my custom component. Why is that? Is it because my app is binding the var to constant value? Or because I'm using a setter/getter on the varreceiving the reference? Thanks, Tom2 __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
RE: [flexcoders] Re: Passing Const to custom component error
I like the idea of using constants and i'm impressed the way adobe has used them in the mx framework. I would be suprised if you cannot use them in setting values in mxml. Try an even simpler test. I'd help more but i'm at work now. Will be another 10h hours until i get home and back into Flex :P Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom OrtegaSent: Tuesday, 12 September 2006 10:12 AMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Re: Passing Const to custom component error Thanks for your help on this. It's frustrating when "good practices" don't work so good. LOL -Tom2 On 9/11/06, Bjorn Schultheiss bjorn.schultheiss@qdc.net.au wrote: I doubt it, try debug it in here mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" label="Name" xmlns:components="apps.common.components.*" mx:Script ![CDATA[ import apps.common.asFiles.ScreenLabelConstants; trace('test: '+ScreenLabelConstants.NAMEINFO_LABEL'); nameTextLabel.ls=ScreenLabelConstants.NAMEINFO_LABEL; ]] /mx:Script mx:Spacer height="30"/ components:FreedTextLabel id="nameTextLabel" ls="{ ScreenLabelConstants.NAMEINFO_LABEL}" / /mx:VBox I'll run another test when i get home and get it working. Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies From: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tom OrtegaSent: Tuesday, 12 September 2006 12:09 AMTo: [EMAIL PROTECTED]ups.comSubject: Re: [flexcoders] Re: Passing Const to custom component error I wish badly that you were correct, but alas, I fear not.I replaced components with freedCom for both the namespace and directory names. Compiled and passing a const into the FreedTextLabel still results in a null value, while passing in a plain string value of "Name" works. Even passing a binding to a variable such as ls="{someVar}" where someVar is set to the const will result in a null value being displayed. I did a bit of debugging though and discovered this. If I pass it a simple string value, the setter gets fired. If I pass it a reference to a var or const, the setter doesn't fire. Maybe the var reference doesn't register as a true value assignment and thus doesn't fire/trigger the setter? -Tom2 On 9/11/06, bjorn.schultheiss bjorn.schultheiss@qdc.net.au wrote: It's te components namespace you set in the component.The compiler doesn't like xmlns:components="apps.common.components.*"not sure why, perhaps components is a reserved word?!?Using getters and setters is good practice for use within components.Overall the code is fine. --- In [EMAIL PROTECTED]ups.com, "Tom Ortega" [EMAIL PROTECTED].. wrote: I have this class: package apps.common.asFiles { public class ScreenLabelConstants { public static const NAMEINFO_LABEL:String = "Name"; } } I have this code in my app: mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" label="Name" xmlns:components="apps.common.components.*" mx:Script ![CDATA[ import apps.common.asFiles.ScreenLabelConstants; ]] /mx:Script mx:Spacer height="30"/ components:FreedTextLabel id="nameTextLabel" ls="{ ScreenLabelConstants.NAMEINFO_LABEL}" / /mx:VBox The FreedTextLabel has this: ?xml version="1.0" encoding="utf-8"? mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml " creationComplete="initFunc()" borderThickness="1" cornerRadius="0" shadowDistance="0" width="80%" mx:Script ![CDATA[ import apps.common.asFiles.ScreenLabelConstants; [Bindable] private var _ls:String; [Bindable] public var mainLabelText:String; public function get ls():String { return _ls; } public function set ls(newValue:String):void { _ls = newValue; mainLabelText = _ls + ":"; } public function initFunc():void { mainLabelText = ls + ":"; } ]] /mx:Script mx:Label id="mainLabel" text="{mainLabelText}"/ /mx:Panel The problem is that it won't work. No data gets passed to my custom component. Why is that? Is it because my app is binding the var to constant value? Or because I'm using a setter/getter on the varreceiving the reference? Thanks, Tom2 __._,_.___ -- 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 Software development tool Software development Software development services
RE: [flexcoders] Flex with FMS (something like Breeze...)
Hi David, I assume you already know, but just in case... FMS ships with a sample that does exactly that ( I can't think of the name of it off the top of my head - actually it might have been a FCS sample) but obviously done in Flash, not Flex. You could, however,use that as a starting point to build the Flex front end. You'd of course need to be aware of AS2/AS3 differences etc... Rick -Original Message-From: brownd_92 [mailto:[EMAIL PROTECTED]Sent: Monday, September 11, 2006 10:12 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Flex with FMS (something like Breeze...) Hi there,Does anyone know of an instance where flex is being used in conjunction with Media server?I am looking to do something that I can upload a .swf presentation then click through the presentation (like you would powerpoint) and everyone else see and hear what Im doingCheersDavid __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] properties file
I was googling for a while looking for a method to load and manage properties file in AS3. I think I saw that before but I dont remember the url. do you guys have any example? Thanks, diego -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Flex with FMS (something like Breeze...)
Following up Rick's excellent post ... As of FMS 2, I believe the sample apps need to be downloaded separately. You can find them here: www.adobe.com/devnet/flashmediaserver/sample_apps.html Rick, was the Broadcast Presentation the sample app you were thinking of? hth, g On 9/11/06, Rick Englert [EMAIL PROTECTED] wrote: Hi David, I assume you already know, but just in case... FMS ships with a sample that does exactly that ( I can't think of the name of it off the top of my head - actually it might have been a FCS sample) but obviously done in Flash, not Flex. You could, however,use that as a starting point to build the Flex front end. You'd of course need to be aware of AS2/AS3 differences etc... Rick -Original Message-From: brownd_92 [mailto:[EMAIL PROTECTED]]Sent: Monday, September 11, 2006 10:12 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Flex with FMS (something like Breeze...) Hi there,Does anyone know of an instance where flex is being used in conjunction with Media server?I am looking to do something that I can upload a .swf presentation then click through the presentation (like you would powerpoint) and everyone else see and hear what Im doingCheersDavid __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Binding the service result to HTTPservice
Dear all, I have some question about the data binding . I have write a custom component that get the user detail -- Login_detail Class. The Class if call some HTTPservice and then bind the result into a application HTTPservice . I have bind one custom component attribute to that service. But i find that the result is not what i have expected. Maybe it is because the custom object attribute have not set before the application httpservice is called. How i can solve this ? thx capho ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:shared=shared_comp.* creationComplete=init_form(); mx:Script ![CDATA[ private function init_form():void{ help_menu_show(); if (user_object.uinfo.userId) function_list_service.send(); else Alert.show(wait); } ]] /mx:Script shared:Login_detail id=user_object login_name=newuser1/ mx:HTTPService id=function_list_service url=http://xx; method=POST destination=DefaultHTTP mx:request cUserId{user_object.uinfo.userId}/cUserId /mx:request /mx:HTTPService /mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] WebORB for PHP with Flex
Hi there, I've just started using WebORB for PHP with Flex to enable Flash Remoting to PHP functions. So far I've found it's pretty neat. Has anyone else come across WebORB? I'd just like to know what people think about it.. Any comments or criticism? Thanks, Pete Pete CapraInformation Systems CoordinatorCapra Ryan Online Learningp. (617) 3208 9455m. 0411 043 305f. (617) 3208 9855a. PO Box 1744 Springwood Q 4127www.capraryan.com[EMAIL PROTECTED] __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] EDI Applications - with Flex as the Front-End
Hello All, We just finalized our relationship with Wal-Mart - and if anybody on this list knows, working with Wal-Mart as a Vendor is EDI or Bust. They are extremely strict regarding how they do business with their vendors, and getting an EDI Application running ASAP, can stress out even the most seasoned IT Professionals. I am vaguely familiar with the EDI Standard (and there are many flavors out there), and I do also understand that there is much homework to be done on my end, before I can forge ahead with this project. With that said, I would love to get a jumpstart on this - so if anybody could chime in on this thread, and offer any experiences or resources they have on this topic, I would be eternally grateful. Thanks in advance, for anything you can offer - Mike -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/