[flexcoders] How can get the datagridItemRenderer default color
I want to change the color when user click the itemrenderer to a custom color and then change it back but I can't get the default color using this.getStyle(backgroundColor) in the addedToStage callback function. the halo skin defaults.css -- DataGrid { alternatingItemColors: #F7F7F7, #FF; // odd-rows-color, even-rows-color columnDropIndicatorSkin: ClassReference(mx.skins.halo.DataGridColumnDropIndicator); columnResizeSkin: ClassReference(mx.skins.halo.DataGridColumnResizeSkin); headerColors: #FF, #E6E6E6; headerDragProxyStyleName: headerDragProxyStyle; headerBackgroundSkin: ClassReference(mx.skins.halo.DataGridHeaderBackgroundSkin); headerSeparatorSkin: ClassReference(mx.skins.halo.DataGridHeaderSeparator); headerStyleName: dataGridStyles; sortArrowSkin: ClassReference(mx.skins.halo.DataGridSortArrow); stretchCursor: Embed(source=Assets.swf,symbol=cursorStretch); verticalGridLineColor: #CC; } How can get the DataGridItemRenderer default backgroundColor without judging the row is odd or even to evaluate the color with hardcode?
Re: [flexcoders] How can get the datagridItemRenderer default color
Normally the renderer is transparent. The background color is drawn onto the DataGrid’s content holder, not the renderer. On 7/19/10 11:02 PM, j2me_soul j2me_s...@163.com wrote: I want to change the color when user click the itemrenderer to a custom color and then change it back but I can't get the default color using this.getStyle(backgroundColor) in the addedToStage callback function. the halo skin defaults.css -- DataGrid { alternatingItemColors: #F7F7F7, #FF; // odd-rows-color, even-rows-color columnDropIndicatorSkin: ClassReference(mx.skins.halo.DataGridColumnDropIndicator); columnResizeSkin: ClassReference(mx.skins.halo.DataGridColumnResizeSkin); headerColors: #FF, #E6E6E6; headerDragProxyStyleName: headerDragProxyStyle; headerBackgroundSkin: ClassReference(mx.skins.halo.DataGridHeaderBackgroundSkin); headerSeparatorSkin: ClassReference(mx.skins.halo.DataGridHeaderSeparator); headerStyleName: dataGridStyles; sortArrowSkin: ClassReference(mx.skins.halo.DataGridSortArrow); stretchCursor: Embed(source=Assets.swf,symbol=cursorStretch); verticalGridLineColor: #CC; } How can get the DataGridItemRenderer default backgroundColor without judging the row is odd or even to evaluate the color with hardcode? 网易邮箱,没有垃圾邮件的邮箱。 http://mail.163.com/?from=fe1 -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
Re:Re: [flexcoders] How can get the datagridItemRenderer default color
Oh. I want to represent one itemrenderer is clicked by changed the backgroundColor and then changed back. So which function in datagrid I should overrided to achieve this functionality? Or is there a better way to do this ? Thanks Alex. At 2010-07-20 14:17:57,Alex Harui aha...@adobe.com wrote: Normally the renderer is transparent. The background color is drawn onto the DataGrid’s content holder, not the renderer. On 7/19/10 11:02 PM, j2me_soul j2me_s...@163.com wrote: I want to change the color when user click the itemrenderer to a custom color and then change it back but I can't get the default color using this.getStyle(backgroundColor) in the addedToStage callback function. the halo skin defaults.css -- DataGrid { alternatingItemColors: #F7F7F7, #FF; // odd-rows-color, even-rows-color columnDropIndicatorSkin: ClassReference(mx.skins.halo.DataGridColumnDropIndicator); columnResizeSkin: ClassReference(mx.skins.halo.DataGridColumnResizeSkin); headerColors: #FF, #E6E6E6; headerDragProxyStyleName: headerDragProxyStyle; headerBackgroundSkin: ClassReference(mx.skins.halo.DataGridHeaderBackgroundSkin); headerSeparatorSkin: ClassReference(mx.skins.halo.DataGridHeaderSeparator); headerStyleName: dataGridStyles; sortArrowSkin: ClassReference(mx.skins.halo.DataGridSortArrow); stretchCursor: Embed(source=Assets.swf,symbol=cursorStretch); verticalGridLineColor: #CC; } How can get the DataGridItemRenderer default backgroundColor without judging the row is odd or even to evaluate the color with hardcode? 网易邮箱,没有垃圾邮件的邮箱。 http://mail.163.com/?from=fe1 -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] Apple Mac detection
Hello, How to know if the client computer is a Mac or a PC ? To add specific instructions for the Mac version. Thank you, Christophe,
Re: [flexcoders] Apple Mac detection
Here you go: /** Determines if the current system is a mac */ public static function isMac() : Boolean { return ( Capabilities.os.indexOf( Mac ) != -1 ) } On 20 Jul 2010, at 09:59, Christophe wrote: Hello, How to know if the client computer is a Mac or a PC ? To add specific instructions for the Mac version. Thank you, Christophe,
[flexcoders] 2 PopUpButton questions: force opening upwards + red and black item colors
Hello, I'm trying to port a bigger project from Flash CS4 to Flex 3 and have a problem that the PopUpButton, that is located at the right bottom of my app, opens downwards when I click it and thus is being cut off. Only if I resize the browser, it will open upwards as actually wanted by me. I've tried to prepare a simpler test case (s. the code below) to demonstrate my problem, but can't reproduce it :-/ Also I would appreciate if someone could reproduce me a simple trick to render some of the items (card suits) in red foreground color instead of the default black? Do I have to create a separate file as an item renderer (still reading up there... and don't understand yet, how to specify that file in my menu which I create in AS) or is there maybe a simpler trick? Thank you for any hints and below is my test code Alex ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; creationPolicy=all mx:Style @font-face { src:url(C:\\WINDOWS\\Fonts\\times.ttf); fontFamily: myFont; /* card suits */ unicodeRange: U+2660-U+266B; } Menu { fontFamily: myFont; fontSize: 24; } /mx:Style mx:Script ![CDATA[ import mx.controls.*; private function createMenu():void { var bids:Array = [{label: Pass}]; for (var i:uint = 7; i = 10; i++) for (var j:uint = 0; j 4; j++) bids.unshift({label: i+â â£â¦â¥.charAt(j%4)}); var menu:Menu = new Menu(); menu.dataProvider = bids; menu.selectedIndex = 0; pub.popUp = menu; } ]] /mx:Script mx:Canvas width=100% height=100% /mx:Canvas mx:ApplicationControlBar width=100% mx:Spacer width=100%/ mx:PopUpButton id=pub creationComplete=createMenu();/ /mx:ApplicationControlBar /mx:Application
[flexcoders] Re: 2 PopUpButton questions: force opening upwards + red and black item colors
Sorry for the double post. Also the mangled Unicode string below is the 4 card suit characters. --- In flexcoders@yahoogroups.com, Alexander alexander.far...@... wrote: bids.unshift({label: i+â â£â¦â¥.charAt(j%4)});
[flexcoders] ItemEditor | Multiple Components | Focus Issue
Hi http://blogs.adobe.com/aharui/category/item-renderers http://blogs.adobe.com/aharui/DataGridMultiFieldEditor/DataGridMultiFieldEditorTest.swf I looked to this example and i am using the custom item editor. My itemeditor has two components( text input + image ). Everything works fine and i am able to navigate through the componnets in the item editor using key board also. I have exactly same piece of the code as in url. The problem i am facing is that i have to press Tab Key multiple times to move form one datagrid column to another if both the column has same custom itemeditor. Any pointers???
[flexcoders] smartfox gaming server info required
Hi, we are trying to outsource the server side of our game applicaton to someone. They recommend using http://www.smartfoxserver.com/ instead of our traditional php/mysql combination. Our game is in actionscript and will be using social aspects of facebook later on. Smartfoxserver is supposed to reduce the time of development. The thing I'm having a hard time getting right now is how? How does it reduce the time. We will still be making a RDMS writing stored procedures and game logic based server scripts. Where does smartfox come into play? Thanks, Fahim.
[flexcoders] error checking FileStream. readObject?
Is there a way to handle a FileStream. readObject error that results when the target file does not contain valid object data? This isn't an IOErrorEvent - but rather an error converting the read data. The use case is that the user can pick a file to open. While I can filter the allowable files I wanted to also handle errors on the read end. Is this possible? Ex: the code below works fine when the file contains valid ArrayCollection data but I can break it if I try to open any other sort of file. fs.open(newFile, FileMode.READ); var temp:ArrayCollection= fs.readObject(); fs.close(); -- - http://www.roypardi.com/
Re: [flexcoders] error checking FileStream. readObject?
On Jul 20, 2010, at 7:38 AM, Roy Pardi wrote: Is there a way to handle a FileStream. readObject error that results when the target file does not contain valid object data? This isn't an IOErrorEvent - but rather an error converting the read data. The use case is that the user can pick a file to open. While I can filter the allowable files I wanted to also handle errors on the read end. Is this possible? Ex: the code below works fine when the file contains valid ArrayCollection data but I can break it if I try to open any other sort of file. fs.open(newFile, FileMode.READ); var temp:ArrayCollection= fs.readObject(); fs.close(); try/catch? -- Rick Genter rick.gen...@gmail.com
[flexcoders] Determining the Web Service Name on the ResultEvent
Hi FlexCoders, What property of the currentTarget does it specify the name of the method of the web service which triggered it? Thanks. Angelo
Re: [flexcoders] error checking FileStream. readObject?
Just use try-catch, I don't think there's anything special for this case.
Re: [flexcoders] e4x and XML in Web Service Calls
I think that E4X is the default for the WebService. E4X isn't exactly a format... it's a language extension added to ECMAScript, just like regular expressions language in many other languages, or LinQ in .NET. Essentially, when you did this: myDataXML = XML(evt.result); You have already converted it to E4X, (the alternative handling of XMLs is the XMLDocument class). XML and XMLList classes allow using E4X expressions on them, XMLDocument doesn't. If you have any specific problem compiling an expression, please post it, so far all that you have posted looks OK.
[flexcoders] Re: 2 PopUpButton questions: force opening upwards + red and black item colors
Take a look at http://shemesh.wordpress.com/category/flex/popupbutton/ to see if it may help. --- In flexcoders@yahoogroups.com, Alexander alexander.far...@... wrote: Hello, I'm trying to port a bigger project from Flash CS4 to Flex 3 and have a problem that the PopUpButton, that is located at the right bottom of my app, opens downwards when I click it and thus is being cut off. Only if I resize the browser, it will open upwards as actually wanted by me. I've tried to prepare a simpler test case (s. the code below) to demonstrate my problem, but can't reproduce it :-/ Also I would appreciate if someone could reproduce me a simple trick to render some of the items (card suits) in red foreground color instead of the default black? Do I have to create a separate file as an item renderer (still reading up there... and don't understand yet, how to specify that file in my menu which I create in AS) or is there maybe a simpler trick? Thank you for any hints and below is my test code Alex ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; creationPolicy=all mx:Style @font-face { src:url(C:\\WINDOWS\\Fonts\\times.ttf); fontFamily: myFont; /* card suits */ unicodeRange: U+2660-U+266B; } Menu { fontFamily: myFont; fontSize: 24; } /mx:Style mx:Script ![CDATA[ import mx.controls.*; private function createMenu():void { var bids:Array = [{label: Pass}]; for (var i:uint = 7; i = 10; i++) for (var j:uint = 0; j 4; j++) bids.unshift({label: i+â â£â¦â¥.charAt(j%4)}); var menu:Menu = new Menu(); menu.dataProvider = bids; menu.selectedIndex = 0; pub.popUp = menu; } ]] /mx:Script mx:Canvas width=100% height=100% /mx:Canvas mx:ApplicationControlBar width=100% mx:Spacer width=100%/ mx:PopUpButton id=pub creationComplete=createMenu();/ /mx:ApplicationControlBar /mx:Application
Re: [flexcoders] How can get the datagridItemRenderer default color
There is a blinkItemRenderer example on my blog in the older item renderer posts On 7/19/10 11:45 PM, j2me_soul j2me_s...@163.com wrote: Oh. I want to represent one itemrenderer is clicked by changed the backgroundColor and then changed back. So which function in datagrid I should overrided to achieve this functionality? Or is there a better way to do this ? Thanks Alex. At 2010-07-20 14:17:57,Alex Harui aha...@adobe.com wrote: Normally the renderer is transparent. The background color is drawn onto the DataGrid’s content holder, not the renderer. On 7/19/10 11:02 PM, j2me_soul j2me_s...@163.com http://tg1a132.mail.163.com/js3/j2me_s...@163.com wrote: I want to change the color when user click the itemrenderer to a custom color and then change it back but I can't get the default color using this.getStyle(backgroundColor) in the addedToStage callback function. the halo skin defaults.css -- DataGrid { alternatingItemColors: #F7F7F7, #FF; // odd-rows-color, even-rows-color columnDropIndicatorSkin: ClassReference(mx.skins.halo.DataGridColumnDropIndicator); columnResizeSkin: ClassReference(mx.skins.halo.DataGridColumnResizeSkin); headerColors: #FF, #E6E6E6; headerDragProxyStyleName: headerDragProxyStyle; headerBackgroundSkin: ClassReference(mx.skins.halo.DataGridHeaderBackgroundSkin); headerSeparatorSkin: ClassReference(mx.skins.halo.DataGridHeaderSeparator); headerStyleName: dataGridStyles; sortArrowSkin: ClassReference(mx.skins.halo.DataGridSortArrow); stretchCursor: Embed(source=Assets.swf,symbol=cursorStretch); verticalGridLineColor: #CC; } How can get the DataGridItemRenderer default backgroundColor without judging the row is odd or even to evaluate the color with hardcode? 网易邮箱,没有垃圾邮件的邮箱。 http://mail.163.com/?from=fe1 -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
Re: [flexcoders] ItemEditor | Multiple Components | Focus Issue
Your item editor has two focusable components? Then you should have to tab twice in each column. Are you having to tab more than that? On 7/20/10 7:03 AM, Rajan ilikef...@yahoo.com wrote: Hi http://blogs.adobe.com/aharui/category/item-renderers http://blogs.adobe.com/aharui/DataGridMultiFieldEditor/DataGridMultiFieldEditorTest.swf I looked to this example and i am using the custom item editor. My itemeditor has two components( text input + image ). Everything works fine and i am able to navigate through the componnets in the item editor using key board also. I have exactly same piece of the code as in url. The problem i am facing is that i have to press Tab Key multiple times to move form one datagrid column to another if both the column has same custom itemeditor. Any pointers??? -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] Re: Determining the Web Service Name on the ResultEvent
AFAIK it doesn't. If I need to remember which call is coming in I use an mx.rpc.AsyncToken. How it works is that you set an AsyncToken instance to your remoteObject (Or Web Service call) then add a property to the data object of the AsyncToken instance. When the call comes back you can get the data object back in event.token.data property. pseudo code follows... import mx.rpc.AsyncToken; import mx.rpc.remoting.RemoteObject; private var myService:RemoteObject; myService.getSomeData.addEventListener(ResultEvent.RESULT, dataHandler); var theMethodObject:Object = new Object(); theMethodObject.theMethodOnTheWebService = getSomeData; var methodToken:AsyncToken = myService.getSomeData(myParameters); methodToken.data = theMethodObject; private function dataHandler(event:ResultEvent):void { var methodUsed:String = (event.token.data as Object).theMethodOnTheWebService; // Returns getSomeData } --- In flexcoders@yahoogroups.com, Angelo Anolin angelo_ano...@... wrote: Hi FlexCoders, What property of the currentTarget does it specify the name of the method of the web service which triggered it? Thanks. Angelo
[flexcoders] Re: e4x and XML in Web Service Calls
I think Tracey said at one stage that the default format was Object and not E4X but I could be wrong ;-} --- In flexcoders@yahoogroups.com, Oleg Sivokon olegsivo...@... wrote: I think that E4X is the default for the WebService. E4X isn't exactly a format... it's a language extension added to ECMAScript, just like regular expressions language in many other languages, or LinQ in .NET. Essentially, when you did this: myDataXML = XML(evt.result); You have already converted it to E4X, (the alternative handling of XMLs is the XMLDocument class). XML and XMLList classes allow using E4X expressions on them, XMLDocument doesn't. If you have any specific problem compiling an expression, please post it, so far all that you have posted looks OK.
[flexcoders] Re: ItemEditor | Multiple Components | Focus Issue
Actually, i have same itemeditor in different columns. Column1 1.One Tab - focus on textinput 2.Second Tab - focus on image. 3.Third Tab - Don't know where does the focus goes. Column2 4.Fourth Tab - focus on textinput 5.Fifth Tab - focus on image. I want to fix that on third tab it show go to textinput of another column. As it works for you on your sample So how to fix this. Thanks ilikeflex --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: Your item editor has two focusable components? Then you should have to tab twice in each column. Are you having to tab more than that? On 7/20/10 7:03 AM, Rajan ilikef...@... wrote: Hi http://blogs.adobe.com/aharui/category/item-renderers http://blogs.adobe.com/aharui/DataGridMultiFieldEditor/DataGridMultiFieldEditorTest.swf I looked to this example and i am using the custom item editor. My itemeditor has two components( text input + image ). Everything works fine and i am able to navigate through the componnets in the item editor using key board also. I have exactly same piece of the code as in url. The problem i am facing is that i have to press Tab Key multiple times to move form one datagrid column to another if both the column has same custom itemeditor. Any pointers??? -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
Re: [flexcoders] e4x and XML in Web Service Calls
Actually, when I added resultFormat=e4x in the operation declaration inside my webservice tags, the returning XML has some lg values. If for example I set the resultFormat=e4X, then in the resultHandler, it should be that: myXMLData = (event.result) but it seems the XML data is not constructed properly. The method which I last posted actually works fine for me, except that I am thinking that maybe using e4x format would provide me more flexibility and speed in my web service method calls parsing. Thanks. From: Oleg Sivokon olegsivo...@gmail.com To: flexcoders@yahoogroups.com Sent: Tue, 20 July, 2010 9:22:36 Subject: Re: [flexcoders] e4x and XML in Web Service Calls I think that E4X is the default for the WebService. E4X isn't exactly a format... it's a language extension added to ECMAScript, just like regular expressions language in many other languages, or LinQ in .NET. Essentially, when you did this: myDataXML = XML(evt.result) ; You have already converted it to E4X, (the alternative handling of XMLs is the XMLDocument class). XML and XMLList classes allow using E4X expressions on them, XMLDocument doesn't. If you have any specific problem compiling an expression, please post it, so far all that you have posted looks OK.
Re: [flexcoders] error checking FileStream. readObject?
At 7:53 AM -0700 7/20/10, Rick Genter wrote: On Jul 20, 2010, at 7:38 AM, Roy Pardi wrote: Is there a way to handle a FileStream. readObject error that results when the target file does not contain valid object data? This isn't an IOErrorEvent - but rather an error converting the read data. try/catch? doh! Yes, thanks. -- - http://www.roypardi.com/
Re: [flexcoders] Re: ItemEditor | Multiple Components | Focus Issue
Add a focusIn handler on the app that displays the event.target and event.relatedObject. Maybe that will generate some clues. On 7/20/10 10:25 AM, Rajan ilikef...@yahoo.com wrote: Actually, i have same itemeditor in different columns. Column1 1.One Tab - focus on textinput 2.Second Tab - focus on image. 3.Third Tab - Don't know where does the focus goes. Column2 4.Fourth Tab - focus on textinput 5.Fifth Tab - focus on image. I want to fix that on third tab it show go to textinput of another column. As it works for you on your sample So how to fix this. Thanks ilikeflex --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aha...@... wrote: Your item editor has two focusable components? Then you should have to tab twice in each column. Are you having to tab more than that? On 7/20/10 7:03 AM, Rajan ilikef...@... wrote: Hi http://blogs.adobe.com/aharui/category/item-renderers http://blogs.adobe.com/aharui/DataGridMultiFieldEditor/DataGridMultiFieldEditorTest.swf I looked to this example and i am using the custom item editor. My itemeditor has two components( text input + image ). Everything works fine and i am able to navigate through the componnets in the item editor using key board also. I have exactly same piece of the code as in url. The problem i am facing is that i have to press Tab Key multiple times to move form one datagrid column to another if both the column has same custom itemeditor. Any pointers??? -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] Multiple Select DropDownList Custom Component Help
I have a start of a custom component, that should based on the List component, allow for multiple selections. Any help would be greatly appreciated, thanks Randy package com.somecompany.pm.Components { import flash.events.Event; import flash.events.KeyboardEvent; import spark.components.DropDownList; public class MultiDropDownList extends DropDownList { private var _ctrlKey:Boolean = false; private var _selectedIndices:Vector.int; private var _selectedItems:Vector.Object public function MultiDropDownList() { allowMultipleSelection = true; super(); } override public function closeDropDown(commit:Boolean):void{ if (!ctrlKey) super.closeDropDown(true); } override protected function keyDownHandler(event:KeyboardEvent):void { super.keyDownHandler(event); ctrlKey = event.ctrlKey; if (ctrlKey) allowMultipleSelection = true; } override protected function keyUpHandler(event:KeyboardEvent):void { super.keyUpHandler(event); ctrlKey = event.ctrlKey; if (!ctrlKey) { closeDropDown(false); dispatchEvent(new Event(change,true)); } } override public function set selectedItems( value:Vector.Object):void { _selectedItems = value; } [Bindable(event=change)] override public function get selectedItems():Vector.Object { return _selectedItems; } override public function set selectedIndices(value:Vector.int):void { _selectedIndices = value; } [Bindable(event=change)] override public function get selectedIndices():Vector.int { return _selectedIndices; } public function get ctrlKey():Boolean { return _ctrlKey; } public function set ctrlKey(value:Boolean):void { _ctrlKey = value; } } }
[flexcoders] PROGRESS:: Re: Two-way binding via ActionScript
Ok, some progress. If I define the binding in ActionScript before adding it to its parent container, it works halfway; meaning the second binding works, but not the first one. It's not 2-way. Here's the updated AS code: var innerHBox:HBox = new HBox(); var dtc_acm:AutoCompleteModified = new AutoCompleteModified(); dtc_acm.dataProvider = data2; dtc_acm.labelField = 'id'; BindingUtils.bindProperty( dtc_acm,'selectedIndex',cp_acm,'selectedIndex' ); var cp_acm:AutoCompleteModified = new AutoCompleteModified(); cp_acm.dataProvider = data2; cp_acm.labelField = 'name';cp_acm.width = this.CP1.width; BindingUtils.bindProperty( cp_acm,'selectedItem',dtc_acm,'selectedItem' ); innerHBox.addChild( dtc_acm ); innerHBox.addChild( cp_acm ); Why did the position of the code matter? Why is it only 1-way binding? Still a little confused as to these things. Thanks for listening, Matt --- In flexcoders@yahoogroups.com, Matthew fume...@... wrote: Hi - I'm binding two AutoCompleteModified objects to one another; meaning you type in one and it selects the correct object in the other. It works fine when I define it in MXML: comp:AutoCompleteModified id=DTC1 dataProvider={data1} labelField=id selectedIndex={CP1.selectedIndex} comp:AutoCompleteModified id=CP1 dataProvider={data1} labelField=name selectedItem={DTC1.selectedItem} / However, a user can add a new row to a Grid and then I set up the binding and objects via actionscript and it errors out: var dtc_acm:AutoCompleteModified = new AutoCompleteModified(); dtc_acm.dataProvider = data2; dtc_acm.labelField = 'id'; myGridItem.addChild( dtc_acm ); var cp_acm:AutoCompleteModified = new AutoCompleteModified(); cp_acm.dataProvider = data2; cp_acm.labelField = 'name'; myGridItem.addChild( cp_acm ); BindingUtils.bindProperty( dtc_acm,'selectedItem',cp_acm,'selectedItem' ); BindingUtils.bindProperty( cp_acm,'selectedIndex',dtc_acm,'selectedIndex' ); The error I get is thrown by the ChangeWatcher.as class and it says the exceptions are being thrown by the getter in the host object. However, if I only set 1 binding (instead of 2), it works. I don't understand what may be happening here. Can anyone see any potential problems in my code? Thank you kindly for any helpful tips, Matt
[flexcoders] Flex/Flash/AIR Screen Record
Hello I'm planning to create an Flex application with a feature that allows the users to record the screen, save and publish the file. This application can be in AIR or in Flex (if possible). For example, imagine a tool where a user can make an analysis of something, record what he is doing in the application (the screen and his voice), and publish that into a website. The record/play feature would be embedded in my application. I would like to know if it's possible to make this happen, and what tool/component/framework my team need to have. Thanks in advance for all the replies, and my apologies for not being technical - I just have a business need and I'm not a coder. Rodrigo
[flexcoders] Behaviors with DateFields/DateChoosers (Flex 4)
Hi folks, I've recently bumped into a small problem with the DateField/DateChooser interaction in Flex 4. With the selectedDate at null, I'd like to have the dropped down DateChooser display the current date, not the Epoch. Is there any easy way to do this without completely reimplementing the DateField class? In addition, is there any easy way to control the DateChooser pop up with regards to clicking into the textInput and typing in a date? I've gotten access to the textInput via mx_internal and have set it to editable, but it seems fairly inflexible.. Am I correct in thinking that I'll need to set up a valueCommit handler and then adjust the selected date to mirror the textInput, or something along those lines? My tinkering has met with little success, so I'm sort of lost at this point. I'm thinking the best option may just be to re-implement the DateField class in a way that meets my standards (editable textinput, chooser pop up only when clicked, that kind of thing) rather than trying to jury-rig a solution with the Adobe provided class. What solutions have you folks found to these sorts of problems? -- Blaine von Roeder Data Based LLC
[flexcoders] Re: How to retrieve name property of file object in ArrayCollection
That's why God invented ObjectProxy. Google it... --- In flexcoders@yahoogroups.com, mark.embrey mark.c.emb...@... wrote: I'm wanting to retrieve the name property of a file object that is in an ArrayCollection that is acting as my data provider . I'm trying to write a function to do this, as well as cast the name to a string for further manipulation. The function does not throw any errors, but the Flash Builder console displays the following output: warning: unable to bind to property 'name' on class 'flash.filesystem::File' Any ideas of how I can create a bindable variable from the name from this object? ...especially since I can't make a variable in a function [Bindable] ? many thanks, MCE
[flexcoders] Re: How to retrieve name property of file object in ArrayCollection
Amy, thanks for the suggestion, I'll look it up right now. I'm learning all of this from scratch... how does an ObjectProxy compare to a Value Object? thanks, Mark --- In flexcoders@yahoogroups.com, Amy amyblankens...@... wrote: That's why God invented ObjectProxy. Google it...