[flexcoders] Re: Why does applying Filter to container change anti-aliasing on inner text control
Bump anyone --- In flexcoders@yahoogroups.com, tntomek tnto...@... wrote: I have this simple piece of code. mx:DropShadowFilter id=contentDropShadow strength=1 distance=2 blurX=15 blurY=10 / mx:HBox filters={[contentDropShadow]} mx:Label text=Search / /mx:HBox Zooming in to see the anti aliasing on the word 'Search' I see hints of red and teal. Once I apply the filter on my HBox the Anti aliasing on the test is ONLY grey. While normally this doesn't matter I can tell that it looks slightly fuzzier. Is there some mysterious inheritance going on? Is there any way to override the inheritance on inner controls so my drop shadow doesn't ruin the inner controls? Here is an example: http://yfrog.com/11aliasingp
[flexcoders] Re: Smooth scrolling with variable row height in Spark List?
Could you post some code? --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: Try with really simple variableRowHeight renderers (colored rectangles of various sizes). Maybe the renderer you are using is could use some tuning. On 6/14/10 9:06 AM, vigilsolace sig...@... wrote: I can't seem to get smooth scrolling to work nicely when setting variableRowHeight = true on a spark list. I get rendering delays when dragging the scrollbar even with simple item renderers. My ideal would be something that performs just like this: http://www.tink.ws/examples/flex/SuperList/ (try adding a bunch of items and selecting the checkbox, then scrolling). Any help would be greatly appreciated. Thanks, -Orian -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] (unknown)
http://dopahiwi.tripod.com/
RE: [flexcoders] Re: Lcds Clustering problem with Flex session.
Right, your problem is... RTMP doesn't use HTTP... so there is no HTTP session to be found. That's a drastically more fundamental issue.
[flexcoders] Re: Why does applying Filter to container change anti-aliasing on inner text control
When a filter is applied, cacheAsBitmap is set to true which might be the reason. --- In flexcoders@yahoogroups.com, tntomek tnto...@... wrote: Bump anyone --- In flexcoders@yahoogroups.com, tntomek tntomek@ wrote: I have this simple piece of code. mx:DropShadowFilter id=contentDropShadow strength=1 distance=2 blurX=15 blurY=10 / mx:HBox filters={[contentDropShadow]} mx:Label text=Search / /mx:HBox Zooming in to see the anti aliasing on the word 'Search' I see hints of red and teal. Once I apply the filter on my HBox the Anti aliasing on the test is ONLY grey. While normally this doesn't matter I can tell that it looks slightly fuzzier. Is there some mysterious inheritance going on? Is there any way to override the inheritance on inner controls so my drop shadow doesn't ruin the inner controls? Here is an example: http://yfrog.com/11aliasingp
[flexcoders] Re: Strange and Frustrating amfPHP behaviour Unsupported Datatype: array
I return arrays of objects (Or just single objects) all the time although I use WebORB instead of PHP. What does Charles (http://www.charlesproxy.com) say? What does the PHP error log show? --- In flexcoders@yahoogroups.com, ouaqa abenef...@... wrote: Hello all, I've been stuck for a couple of days with a very weird error provoked by AMFPhp. My Flex client sends to the server a fairly complex value object. This object is composed of basic attributes (string , int , ...) , value object attributes and an array of value objects (also complex objects ). I can perform any treatment on this object on the php side. However, when I want to send the value object back, I get an Unsupported Datatype: array error. In order to simplify my explanations, let's say that this variable is called $array. I tested the following : - gettype($array) returns array. - I can return any properties of my array, either by $array[someIndex] (returning the value object held at someIndex) or by $array[someIndex][someValueObjectAttribute] - I can use print_r and see the content of $array. - I can create an array on the server side and return it (even if it contains value objects). I just tested to copy each value of $array in a temporary variable and return it to the server but nothing different happened. Any help would be appreciated, this is getting very very frustrating.
[flexcoders] problem to position cursor in itemeditor by mouse, in editable mode of Grid.
Hi, I have created a custom grid by extending ADG class. After adding many extra features on it, i am working on editable grid feature but in edit mode, i can not able to use mouse to position the cursor in the editor(UiTextField). All time whole text is selected and i have to use keyboard arrow key to navigate. I am not sure if it the problem of Focus. Could you plz suggest me what to review? -- View this message in context: http://old.nabble.com/problem-to-position-cursor-in-itemeditor-by-mouse%2C-in-editable-mode-of-Grid.-tp28892589p28892589.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Re: flex 4 - NavigatorContent question / element parent
nc = null; --- In flexcoders@yahoogroups.com, bhaq1972 mbha...@... wrote: myPanel.owner is the same as myPanel.parent so that won't work. Making it a property would work. What would the disadvantages be with using myPanel.parent.parent.parent (a trace shows this to be the navigatorcontent)? I wonder why there is no such property like 'elementParent' to go with addElement() analagous to 'parent' and addChild()? one follow up question - I'm now adding the NavigatorContent to a viewstack. When i do viewstack.removeChild(nc), how do i make sure nc (naviagtorcontent) is destroyed? thanks --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote: Or make nc a property of the class so you can use it in any method. --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: Try myPanel.owner On 6/9/10 8:23 AM, bhaq1972 mbhaque@ wrote: I added a Panel component into a NavigatorContent public function aMethod():void { var nc:NavigatorContent = new NavigatorContent(); nc.addElement(myPanel); } Now, in another method I want to access this NavigatorContent eg public function anotherMethod(myPanel:Panel):void { var nc:NavigatorContent = myPanel.parent as NavigatorContent; however nc is not myPanel.parent. doing a trace, the navigatorContent is actually the myPanel.parent.parent.parent Is there not a property/method which gets me a reference to the element Parent (a bit like addChild() / parent relationship) -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] Re: Combobox as itemEditor
Add a change event listener to the combo box and dispatch a custom event to the owner to update the data provider. --- In flexcoders@yahoogroups.com, jonbehr jonb...@... wrote: I have a combobox as an itemEditor in a datagrid. I have an event listener on the datagrid (DataGridEvent.ITEM_EDIT_END) that calculates the values in adjacent datagrid cells based on the value that has been selected in the combobox. This all works fine. The one area that I am struggling with however, is to force the combobox to immediately commit the selected value to the datagrid. At the moment, if a user selected a value from the combo, its necessary to lose focus (i.e. click into another cell on the datagrid, or elsewhere in the app) for the value to be committed (and its at this point that the ITEM_EDIT_END event is fired). Ideally, once the user has selected an item in the combo itemeditor, Iw would like that that the combo retains focus (i.e. remains slightly raised above the datagrid cell), but that the value is immediately committed and an event is fired off. Is this possible?
[flexcoders] Re: Lcds Clustering problem with Flex session.
One solution can i think of to using multiple channel one which provide httpSession and another which provide RTMPSession. So I can have data in both session and in case of server failure. I can copy it from HttpSession to newly created RTMP session. If I will be able to access FlexClient. which i am not sure I need to look into it. So if any body know whether I can get underline httpsession from FlexClient in this case. It would be helpful for me. --- In flexcoders@yahoogroups.com, Gregor Kiddie gregor.kid...@... wrote: Right, your problem is... RTMP doesn't use HTTP... so there is no HTTP session to be found. That's a drastically more fundamental issue.
[flexcoders] Jazzing Up Your Flex Applications
Hi Flexcoders, Am looking for some possible recommendations for ideas on how to jazz up an application. Jazz up means, placing effects, transitions, animations, etc. which would make the user be amazed and astounded on the visuals of the application. Although I am not a designer by nature, I know that through Flex, once could make the applications really look good and function awesome visually. Would anyone share how they make their applications visually stunning with effects, animations and transitions? I saw an application on Bill White's blog (http://www.billdwhite.com/wordpress/?p=98) where there's a good amount of effects in place to make the application stunning. Would you be able to share me as well some screenshots or samples of your application (business, data-aware) where I could reference as to make my applications behave and look visually good. Thanks. angelo
[flexcoders] Flex Breadcrumb and Lightbox components
Where can I find decent Flex breadcrumb and Lightbox components? Thanks, Philip
Re: [flexcoders] problem to position cursor in itemeditor by mouse, in editable mode of Grid.
On focusIn, use callLater to set the selectionBeginIndex and selectionEndIndex On 6/15/10 8:12 AM, DevSachin talktosachin2...@rediffmail.com wrote: Hi, I have created a custom grid by extending ADG class. After adding many extra features on it, i am working on editable grid feature but in edit mode, i can not able to use mouse to position the cursor in the editor(UiTextField). All time whole text is selected and i have to use keyboard arrow key to navigate. I am not sure if it the problem of Focus. Could you plz suggest me what to review? -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] Changing font size of button bar
Hello, I am currently using a button bar but I would like to change the font size of the buttons to the smallest font size used in the buttons. The idea is that the I determine the font size to make the label fit in the button (fixed button width) and then use the smallest font size for all the others too. What's the best approach? My current idea is the following: - Use an offscreen text field with the same text format to calculate the smallest font size (e.g. width max button width then fontSize--) - Determine the smallest font size of all the buttons via Math.min ( fontSize, ); - Change fontSize style property of the button bar/buttons Are there any better approaches in Flex to do the same? Thanks, Weyert de Boer
[flexcoders] Re: what's happen with my 'array' ?
You don't have an array - all you have is a string. You need to convert it to an array. Try this: ?xml version=1.0 encoding=utf-8? !-- Simple example to demonstrate the ComboBox control. -- mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete='test()' mx:Script ![CDATA[ import mx.collections.ArrayCollection; import mx.controls.Alert; import mx.utils.ArrayUtil; [Bindable] private var cards:ArrayCollection; private function test():void { cards = new ArrayCollection(green.text.split(,)); } ]] /mx:Script mx:Panel title='ComboBox Control Example' layout='horizontal' paddingTop='10' paddingBottom='10' paddingLeft='10' paddingRight='10' mx:ComboBox dataProvider='{cards}' / mx:VBox mx:Text id='green' color='green' text=M3-02-06-2010-10-05-04.flv,M3-02-06-2010-22-17-16.flv,M3-02-06-201\ 0-12-07-06.flv,M3-02-06-2010-08-03-02.flv/ /mx:VBox /mx:Panel /mx:Application --- In flexcoders@yahoogroups.com, cholid cholid cholid_rid...@... wrote: hi all i've new problem im make mx:ComboBox that the data is from array that's request from mx:Text i've two mx:Text that string source is 1.array string = ['M3-02-06-2010-10-05-04.flv', 'M3-02-06-2010-22-17-16.flv', 'M3-02-06-2010-12-07-06.flv', 'M3-02-06-2010-08-03-02.flv'] 2.array string that source is from external fungtion (call with https) THE PROBLEM IS: if i call array from second mx:Text, the mx:ComboBox is not show data but if i call array from first, the mx:ComboBox is not working the source code is here: ?xml version='1.0'? !-- Simple example to demonstrate the ComboBox control. -- http://www.adobe.com/2006/mxml' creationComplete='test()' mx:HTTPService id='combolist' url='combolist' / mx:Script ![CDATA[ import mx.collections.ArrayCollection; import mx.controls.Alert; import mx.utils.ArrayUtil; [Bindable] private var cards:ArrayCollection; private function test():void { combo = new ArrayCollection( ArrayUtil.toArray( String(green.text) ) ); } ]] /mx:Script mx:Panel title='ComboBox Control Example' layout='horizontal' paddingTop='10' paddingBottom='10' paddingLeft='10' paddingRight='10' mx:ComboBox dataProvider='{combo}' / mx:VBox mx:Text id='green' color='green' text=['M3-02-06-2010-10-05-04.flv', 'M3-02-06-2010-22-17-16.flv', 'M3-02-06-2010-12-07-06.flv', 'M3-02-06-2010-08-03-02.flv']/ mx:Text id='red' color='red' text={combolist}/ /mx:VBox /mx:Panel /mx:Application
[flexcoders] Re: Coloring a column
Try this... Application: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical mx:Script ![CDATA[ private var dp:Array = [ {project: 1 - A Project, status_type: Pending}, {project: 2 - Another Project, status_type: Active}, {project: 3 - Yet Another Project, status_type: In Progress}, {project: 4 - And Another Project, status_type: Inactive} ]; ]] /mx:Script mx:DataGrid id=dg initialize=dg.dataProvider = dp verticalAlign=middle editable=true mx:columns mx:DataGridColumn headerText=Project dataField=project/ mx:DataGridColumn headerText=Status dataField=status_type itemRenderer=ItemRenderers.ColorRenderer itemEditor=ItemRenderers.ComboBoxEditor/ /mx:columns /mx:DataGrid /mx:Application ItemRenderers.ColorRenderer.as: package ItemRenderers { import mx.controls.Text; import mx.controls.dataGridClasses.DataGridListData; public class ColorRenderer extends Text { public function ColorRenderer() { super(); } override public function set data(value:Object):void { super.data = value; if(value != null) { var colorToSet:String; text = value[DataGridListData(listData).dataField]; switch(text) { case Active: colorToSet = #00FF00; break; case Inactive: colorToSet = #FF; break; case In Progress: colorToSet = #FF; break; case Pending: colorToSet = #00; break; } setStyle(color, colorToSet); } } } } ItemRenderers.ComboBoxEditor.as: package ItemRenderers { import mx.controls.ComboBox; import mx.controls.dataGridClasses.DataGridListData; public class ComboBoxEditor extends ComboBox { private static var comboBoxItems:Array = [Active, Inactive, In Progress, Pending]; public function ComboBoxEditor() { super(); dataProvider = comboBoxItems; } override public function set data(value:Object):void { super.data = value; if(value != null) { selectedItem = value[DataGridListData(listData).dataField]; } } } } --- In flexcoders@yahoogroups.com, Goutham goldensu...@... wrote: Hi, I am trying to color the text of a column based on conditions. I have seen some examples, but they use the renderers. I have a datagrid with a column that has a combobox as a component itemeditor, I want that column text to be colored based on conditions datagrid id=myGrid columns datagridcolumn headerText=project dataField=project / datagridcolumn headerText=status dataField=status_type itemEditor=statuscombobox editorDataField=newValue / /columns /datagrid statuscombobox.mxml vbox script /script combobox id=cbStatus / /vbox I would like to have the text of column 'status' to be colored based on conditions and when clicked on the column, the combobox shows up (which need not be colored). Thank you, Goutham
[flexcoders] Re: Smooth scrolling with variable row height in Spark List?
Yeah, I've been experimenting and I guess I did need to tune my renderer a lot better. Still, no matter what I do there seems to be a slight jumpiness to how smooth scrolling works with variable row heights, like it jumps a pixel when renderers are added / removed. Hard to tell though. --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: Try with really simple variableRowHeight renderers (colored rectangles of various sizes). Maybe the renderer you are using is could use some tuning. On 6/14/10 9:06 AM, vigilsolace sig...@... wrote: I can't seem to get smooth scrolling to work nicely when setting variableRowHeight = true on a spark list. I get rendering delays when dragging the scrollbar even with simple item renderers. My ideal would be something that performs just like this: http://www.tink.ws/examples/flex/SuperList/ (try adding a bunch of items and selecting the checkbox, then scrolling). Any help would be greatly appreciated. Thanks, -Orian -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
Re: [flexcoders] Re: Smooth scrolling with variable row height in Spark List?
When you scroll fast, you have to create more renderers and that is more work and might not look as good. If you scroll slowly and see issues, it might be a problem with the renderer not measuring itself accurately. On 6/15/10 2:53 PM, vigilsolace sig...@orianmarx.com wrote: Yeah, I've been experimenting and I guess I did need to tune my renderer a lot better. Still, no matter what I do there seems to be a slight jumpiness to how smooth scrolling works with variable row heights, like it jumps a pixel when renderers are added / removed. Hard to tell though. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aha...@... wrote: Try with really simple variableRowHeight renderers (colored rectangles of various sizes). Maybe the renderer you are using is could use some tuning. On 6/14/10 9:06 AM, vigilsolace sig...@... wrote: I can't seem to get smooth scrolling to work nicely when setting variableRowHeight = true on a spark list. I get rendering delays when dragging the scrollbar even with simple item renderers. My ideal would be something that performs just like this: http://www.tink.ws/examples/flex/SuperList/ (try adding a bunch of items and selecting the checkbox, then scrolling). Any help would be greatly appreciated. Thanks, -Orian -- 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] flex3 upload function seems not calling the php script
Hi all, I have a website with an upload code that stopped to work...if ever did (thought this was tested). After checking for many hours i still can't find a reason why is not working, or stopped to. I checked with httpFox, and looks like the php file is never called...so i wonder if the upload(request) is not being called, and why...:( this is an extract of the upload function: public function subeArchivo(fm_id:Number, filename:String):void { var request:URLRequest=new URLRequest(HOST + /php/collection/collection_image_upload.php); var params:URLVariables= new URLVariables(); request.method = URLRequestMethod.POST; if (fm_id==1){ params.folderbase=album; } if (fm_id==2){ params.folderbase=product; } params.web=this.web; params.photo=filename; request.data = params; fm_saving_load(); //Alert.show(filename: +request.data); (this.getChildByName(fm_image_upload) as form_Image_Upload).uploadfile(request); } and this is the function called in the fm_image_upload form: [Bindable] public var thefile:FileReference = new FileReference(); public function uploadfile(request:URLRequest):void{ try { this.thefile.upload(request); } catch (error:Error) { trace(Unable to upload file.); Alert.show(Unable to upload file); } Alert.show(uploading: +request.data); Alert.show(url: +request); } This is all the code invloved. I can't manage the php to do anything i ask it to do, and then after using httpfox i noticed there is no call to the php file. The alerts show perfectly, so the uploadfile function is executing, and the request data seems correct. If someone could bring some light into this...i didn't worked in this code for a year, and can't find a hint of what's wrong about it :( Thank you very much!
[flexcoders] Re: Combobox as itemEditor
Thank, this worked perfectly! --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: Add a change event listener to the combo box and dispatch a custom event to the owner to update the data provider. --- In flexcoders@yahoogroups.com, jonbehr jonbehr@ wrote: I have a combobox as an itemEditor in a datagrid. I have an event listener on the datagrid (DataGridEvent.ITEM_EDIT_END) that calculates the values in adjacent datagrid cells based on the value that has been selected in the combobox. This all works fine. The one area that I am struggling with however, is to force the combobox to immediately commit the selected value to the datagrid. At the moment, if a user selected a value from the combo, its necessary to lose focus (i.e. click into another cell on the datagrid, or elsewhere in the app) for the value to be committed (and its at this point that the ITEM_EDIT_END event is fired). Ideally, once the user has selected an item in the combo itemeditor, Iw would like that that the combo retains focus (i.e. remains slightly raised above the datagrid cell), but that the value is immediately committed and an event is fired off. Is this possible?
[flexcoders] to place the cursor in textinput immediate loading application
i was setthe focus to the TextInput component, (this is component in login window). This highlights my TextInput component, but it is not place cursor in textinput
[flexcoders] Question: How to Catch/Handle of Exiting of AIR Application
Hi, i would like to ask how can i catch an ALT+F4 close on my application so i set some rules/methods before exiting. i have tried catching a keyboard.keydown event, it directly closes the application. Thanks in advance for the people who would reply to this post :)
[flexcoders] how to access action script variable data type in mxml
Dear friends, how to access action script variable data type in mxml. please send code Regard's VenkatReddy S
[flexcoders] Error while doing the Linked list demo using flex
Hello sir, i am getting the error when i am running the code stage.scaleMode = StageScaleMode.NO_SCALE; stage.align = StageAlign.TOP_LEFT; dll = new DLinkedList(); for (var i:int = 0; i START_NODES; i++) { Alert.show(i am in forloop); var node:Node = new Node(); //var node:UIComponent = new UIComponent(); trace(node); node.removeEventListener(MouseEvent.MOUSE_UP, node.mouseHandler); trace(node.removeEventListener(MouseEvent.MOUSE_UP, node.mouseHandler)); Alert.show(i am in outside loop); addChild(node); trace(addChild(node)); dll.append(node); } addChild(canvas = new Shape()); TypeError: Error #1009: Cannot access a property or method of a null object reference. at TestLinkedList/List()[C:\Users\raji\Documents\Flex Builder 3\DataStrucutres\src\TestLinkedList.mxml:58] at TestLinkedList/init()[C:\Users\raji\Documents\Flex Builder 3\DataStrucutres\src\TestLinkedList.mxml:34] at TestLinkedList/___TestLinkedList_Application1_creationComplete()[C:\Users\raji\Documents\Flex Builder 3\DataStrucutres\src\TestLinkedList.mxml:2] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9298] at mx.core::UIComponent/set initialized()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:1169] at mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:718] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8628] at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8568]
Re: [flexcoders] Re: what's happen with my 'array' ?
thanks valdhor, it awesome From: valdhor valdhorli...@embarqmail.com To: flexcoders@yahoogroups.com Sent: Wed, June 16, 2010 1:39:54 AM Subject: [flexcoders] Re: what's happen with my 'array' ? You don't have an array - all you have is a string. You need to convert it to an array. Try this: ?xml version=1.0 encoding=utf- 8? !-- Simple example to demonstrate the ComboBox control. -- mx:Application xmlns:mx=http: //www.adobe. com/2006/ mxml layout=absolute creationComplete= 'test()' mx:Script ![CDATA[ import mx.collections. ArrayCollection; import mx.controls. Alert; import mx.utils.ArrayUtil; [Bindable] private var cards:ArrayCollecti on; private function test():void { cards = new ArrayCollection( green.text. split(, )); } ]] /mx:Script mx:Panel title='ComboBox Control Example' layout='horizontal' paddingTop=' 10' paddingBottom= '10' paddingLeft= '10' paddingRight= '10' mx:ComboBox dataProvider= '{cards}' / mx:VBox mx:Text id='green' color='green' text=M3-02- 06-2010-10- 05-04.flv, M3-02-06- 2010-22-17- 16.flv,M3- 02-06-2010- 12-07-06. flv,M3-02- 06-2010-08- 03-02.flv / /mx:VBox /mx:Panel /mx:Application --- In flexcod...@yahoogro ups.com, cholid cholid cholid_ridwan@ ... wrote: hi all i've new problem im make mx:ComboBox that the data is from array that's request from mx:Text i've two mx:Text that string source is 1.array string = ['M3-02-06-2010- 10-05-04. flv', 'M3-02-06-2010- 22-17-16. flv', 'M3-02-06-2010- 12-07-06. flv', 'M3-02-06-2010- 08-03-02. flv'] 2.array string that source is from external fungtion (call with https) THE PROBLEM IS: if i call array from second mx:Text, the mx:ComboBox is not show data but if i call array from first, the mx:ComboBox is not working the source code is here: ?xml version='1.0' ? !-- Simple example to demonstrate the ComboBox control. -- http://www.adobe. com/2006/ mxml' creationComplete= 'test()' mx:HTTPService id='combolist' url='combolist' / mx:Script ![CDATA[ import mx.collections. ArrayCollection; import mx.controls. Alert; import mx.utils.ArrayUtil; [Bindable] private var cards:ArrayCollecti on; private function test():void { combo = new ArrayCollection( ArrayUtil.toArray( String(green. text) ) ); } ]] /mx:Script mx:Panel title='ComboBox Control Example' layout='horizontal' paddingTop=' 10' paddingBottom= '10' paddingLeft= '10' paddingRight= '10' mx:ComboBox dataProvider= '{combo}' / mx:VBox mx:Text id='green' color='green' text=['M3-02- 06-2010-10- 05-04.flv' , 'M3-02-06-2010- 22-17-16. flv', 'M3-02-06-2010- 12-07-06. flv', 'M3-02-06-2010- 08-03-02. flv']/ mx:Text id='red' color='red' text={combolist} / /mx:VBox /mx:Panel /mx:Application
Re: [flexcoders] Re: what's happen with my 'array' ?
but data i've is use '[]' when it split with ',' it doesn't work From: valdhor valdhorli...@embarqmail.com To: flexcoders@yahoogroups.com Sent: Wed, June 16, 2010 1:39:54 AM Subject: [flexcoders] Re: what's happen with my 'array' ? You don't have an array - all you have is a string. You need to convert it to an array. Try this: ?xml version=1.0 encoding=utf- 8? !-- Simple example to demonstrate the ComboBox control. -- mx:Application xmlns:mx=http: //www.adobe. com/2006/ mxml layout=absolute creationComplete= 'test()' mx:Script ![CDATA[ import mx.collections. ArrayCollection; import mx.controls. Alert; import mx.utils.ArrayUtil; [Bindable] private var cards:ArrayCollecti on; private function test():void { cards = new ArrayCollection( green.text. split(, )); } ]] /mx:Script mx:Panel title='ComboBox Control Example' layout='horizontal' paddingTop=' 10' paddingBottom= '10' paddingLeft= '10' paddingRight= '10' mx:ComboBox dataProvider= '{cards}' / mx:VBox mx:Text id='green' color='green' text=M3-02- 06-2010-10- 05-04.flv, M3-02-06- 2010-22-17- 16.flv,M3- 02-06-2010- 12-07-06. flv,M3-02- 06-2010-08- 03-02.flv / /mx:VBox /mx:Panel /mx:Application --- In flexcod...@yahoogro ups.com, cholid cholid cholid_ridwan@ ... wrote: hi all i've new problem im make mx:ComboBox that the data is from array that's request from mx:Text i've two mx:Text that string source is 1.array string = ['M3-02-06-2010- 10-05-04. flv', 'M3-02-06-2010- 22-17-16. flv', 'M3-02-06-2010- 12-07-06. flv', 'M3-02-06-2010- 08-03-02. flv'] 2.array string that source is from external fungtion (call with https) THE PROBLEM IS: if i call array from second mx:Text, the mx:ComboBox is not show data but if i call array from first, the mx:ComboBox is not working the source code is here: ?xml version='1.0' ? !-- Simple example to demonstrate the ComboBox control. -- http://www.adobe. com/2006/ mxml' creationComplete= 'test()' mx:HTTPService id='combolist' url='combolist' / mx:Script ![CDATA[ import mx.collections. ArrayCollection; import mx.controls. Alert; import mx.utils.ArrayUtil; [Bindable] private var cards:ArrayCollecti on; private function test():void { combo = new ArrayCollection( ArrayUtil.toArray( String(green. text) ) ); } ]] /mx:Script mx:Panel title='ComboBox Control Example' layout='horizontal' paddingTop=' 10' paddingBottom= '10' paddingLeft= '10' paddingRight= '10' mx:ComboBox dataProvider= '{combo}' / mx:VBox mx:Text id='green' color='green' text=['M3-02- 06-2010-10- 05-04.flv' , 'M3-02-06-2010- 22-17-16. flv', 'M3-02-06-2010- 12-07-06. flv', 'M3-02-06-2010- 08-03-02. flv']/ mx:Text id='red' color='red' text={combolist} / /mx:VBox /mx:Panel /mx:Application
Re: [flexcoders] problem to position cursor in itemeditor by mouse, in editable mode of Grid.
Hi, Alex. I want to apply default behaviour of Flex. As when we second time click inside the editor, cursor will be positioned at clicked position. Alex Harui wrote: On focusIn, use callLater to set the selectionBeginIndex and selectionEndIndex On 6/15/10 8:12 AM, DevSachin talktosachin2...@rediffmail.com wrote: Hi, I have created a custom grid by extending ADG class. After adding many extra features on it, i am working on editable grid feature but in edit mode, i can not able to use mouse to position the cursor in the editor(UiTextField). All time whole text is selected and i have to use keyboard arrow key to navigate. I am not sure if it the problem of Focus. Could you plz suggest me what to review? -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui -- View this message in context: http://old.nabble.com/problem-to-position-cursor-in-itemeditor-by-mouse%2C-in-editable-mode-of-Grid.-tp28892589p28898918.html Sent from the FlexCoders mailing list archive at Nabble.com.