Re: [flexcoders] Flex 4.5 - Custom NativeWindow and problems
[flexcoders] how to make a class can be iterated by for each/in
How to custom a class can by iterate all children by for each for each( var item:* in myCustomeClass ){ }
Re: [flexcoders] how to make a class can be iterated by for each/in
for each works for collection. If you have an instance of the collections consist of your class object then u can retrieve each item as class object using for each iterator. Sent from my iPhone On Aug 11, 2011, at 2:25 PM, j2me_soul j2me_s...@163.com wrote: How to custom a class can by iterate all children by for each for each( var item:* in myCustomeClass ){ }
RE: [flexcoders] How to communicate 2 computers using Air Application
Sockets
Re:Re: [flexcoders] how to make a class can be iterated by for each/in
Sorry I think I express not very clear. I want to iterate all the properies in a class using for each/in. How can achieve that ? At 2011-08-11 17:52:34,Rishi Tandon rishitandon...@yahoo.com wrote: for each works for collection. If you have an instance of the collections consist of your class object then u can retrieve each item as class object using for each iterator. Sent from my iPhone On Aug 11, 2011, at 2:25 PM, j2me_soul j2me_s...@163.com wrote: How to custom a class can by iterate all children by for each for each( var item:* in myCustomeClass ){ }
Re: [flexcoders] Filtering multilingual text within a datagrid filter column
Solution: Use bellow function to convert Japanese text(Double byte text) to English text (Single byte text) and pass returned text to filterfunction. Its so simple :) 1. public static function changeToBj(s:String):String 2. { 3. if (s == null) 4. return null; 5. var temps:String=; 6. for(var i:Number=0; i s.length; i++) 7. { 8. if (escape(s.substring(i, i + 1)).length 3) 9. { 10. var temp:String=s.substring(i, i + 1); 11. if (temp.charCodeAt(0) 6) 12. { 13. var code:Number=temp.charCodeAt(0) - 65248; 14. var newt:String=String.fromCharCode(code); 15. temps+=newt; 16. } 17. else 18. { 19. if (temp.charCodeAt(0) == 12288) 20. temps+= ; 21. else 22. temps+=s.substring(i, i + 1); 23. } 24. } 25. else 26. { 27. temps+=s.substring(i, i + 1); 28. } 29. } 30. return temps; 31. } 32. 1. On Tue, Aug 9, 2011 at 12:27 PM, Myadi H myad...@gmail.com wrote: ** Hello guys, I need your quick and very important suggestion. How to filter multilingual text? For example- In japanese, hiragana and katagana fonts will take 2 bytes to specify each charecter. when you type text in japanese language say 'A' it writes as 'A ' i.e., a space after text. What if i type 'A' In japanese and grid contains ENGLISH text. How to filter? Please help me out ASAP Thank you
[flexcoders] Get stream from server and make a playlist on server side
I just made a connection with Flash media server(FMS) ans attach a webcam with it.I recorded the video from cam and stored it on my FMS. Now the question is I want to play this video from FMS as HD and also want to create a playlist of all the recoded videos on my FMS. Anyone please help me Thanks in advance...!!
[flexcoders] Single HTTPService vs Multiple HTTPService
Hi Guys, Asked this question before, did not get the answer. My environment Flash Builder 4.1 with AIR 2.6. I have a HTTPService call which will last 2 minutes. In my AIR application, when I run one HTTPService, no matter how I set requestTimeout, it will only run up to 30 seconds. When I use the same code in Web application, it worked. I think there is some problems in AIR runtime caused the issue. When I kick out 100 HTTPService using a loop, all these HTTPService will run up to 60 seconds: the last result or fault event handler will come back in 60 seconds. If single HTTPService has 30 seconds limit, why multiple HTTPService calls have 60 seconds? Thanks, George
Re: [flexcoders] Flex 4.5 - Custom NativeWindow and problems
And we don’t currently support transparent? I would copy the Window.as file, rename it, and add transparent support. Then it should work. On 8/11/11 12:54 AM, Isabelle Loyer Perso isa_lo...@yahoo.fr wrote: Because I'm on AIR app and I use NativeWindow and options: transparent, ... Thanks Le 11/08/11 01:02, Alex Harui a écrit : Why can’t you use Window? On 8/10/11 3:59 PM, Isabelle Loyer Perso isa_lo...@yahoo.fr wrote: someone suggest to implement IFocusManagerContainer in FlexNativeWindow to fix the focus issues. i try to do that but no success! Le 10/08/11 22:08, Alex Harui a écrit : Re: [flexcoders] Flex 4.5 - Custom NativeWindow and problems I would use our Window classes. Otherwise you will have to replicate much of that is in them. On 8/10/11 8:22 AM, Isabelle Loyer Perso isa_lo...@yahoo.fr wrote: With spark Window all work well Thanks Le 10/08/11 17:13, Alex Harui a écrit : If you use our Window classes does it work better? On 8/10/11 6:25 AM, isa_loyer isa_lo...@yahoo.fr wrote: I have a class FlexNativeWindow who extends to NativeWindow. I use this method to create new window on my AIR app. All works well but some keyboard interraction is not availaible. For exemple focus arround textinput is not visible. Key down and up don't work on DropDownList. TabOrder doesn't work well! Can you explain Why? Because I'm very desapointed! Code to create the new window var wdetcorr:wDetailCorrespondant = new wDetailCorrespondant(); wdetcorr.monIdCorresp = correspDG.selectedItem.crIndex; var wOptions:NativeWindowInitOptions = new NativeWindowInitOptions(); wOptions.systemChrome = NativeWindowSystemChrome.NONE; wOptions.transparent = false; var fnwDetailPatient:FlexNativeWindow = new FlexNativeWindow(wdetcorr, wOptions); fnwDetailPatient.active(); Code about my custom NativeWindow package fr.int.ui.windowSkin { import flash.display.NativeWindow; import flash.display.NativeWindowInitOptions; import flash.events.Event; import flash.events.KeyboardEvent; import flash.ui.Keyboard; import mx.core.IUIComponent; import mx.core.IVisualElement; import mx.core.IVisualElementContainer; import mx.core.UIComponent; import mx.events.*; import mx.managers.WindowedSystemManager; [Event(name=creationComplete, type=mx.events.FlexEvent)] public class FlexNativeWindow extends NativeWindow implements IFlexNativeWindow { private var _systemManager:WindowedSystemManager; private var _content:UIComponent; private var _window:IVisualElementContainer; public function FlexNativeWindow(window:IVisualElementContainer, initOptions:NativeWindowInitOptions = null) { super(initOptions); _window = window; addEventListener(Event.ACTIVATE, windowActivateHandler); } public function addElement(control:IVisualElement):void { _window.addElement(control); } public function removeElement(control:IVisualElement):void { _window.removeElement(control); } private function windowActivateHandler(event:Event):void { event.preventDefault(); event.stopImmediatePropagation(); removeEventListener(Event.ACTIVATE, windowActivateHandler); if (stage) { if (!_systemManager) _systemManager = new WindowedSystemManager(IUIComponent(_window)); stage.addChild(_systemManager); dispatchEvent(new FlexEvent(FlexEvent.CREATION_COMPLETE)); stage.addEventListener(Event.RESIZE, windowResizeHandler); stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownListener); } } private function keyDownListener (e:KeyboardEvent):void { if (e.keyCode == Keyboard.ESCAPE) { stage.nativeWindow.dispatchEvent(new Event(myEventClose, true)); stage.nativeWindow.close(); } } private function windowResizeHandler(event:Event):void { // prise en compte de la valeur mini UIComponent(_window).height = stage.stageHeight; UIComponent(_window).width = stage.stageWidth; } } } -- 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 -- 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
Re: [flexcoders] how to make a class can be iterated by for each/in
You can’t directly loop over a class like you could in AS2. That’s what describeType and ObjectUtil are for. You can probably loop over the properties returned from ObjectUtil.getClassInfo. On 8/11/11 3:23 AM, j2me_soul j2me_s...@163.com wrote: Sorry I think I express not very clear. I want to iterate all the properies in a class using for each/in. How can achieve that ? At 2011-08-11 17:52:34,Rishi Tandon rishitandon...@yahoo.com wrote: for each works for collection. If you have an instance of the collections consist of your class object then u can retrieve each item as class object using for each iterator. Sent from my iPhone On Aug 11, 2011, at 2:25 PM, j2me_soul j2me_s...@163.com wrote: How to custom a class can by iterate all children by for each for each( var item:* in myCustomeClass ){ } -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] Re: how to make a class can be iterated by for each/in
If you're using Flex 4.5, something like this works: var myClassObject:Object = new MyClass(); var classInfo:XML = describeType( myClassObject ); var propertyType:String; var propertyName:String; for each ( var property:XML in classInfo..accessor ) { propertyName = property.@name; propertyType = property.@type; } -TH --- In flexcoders@yahoogroups.com, Alex Harui aharui@... wrote: You can't directly loop over a class like you could in AS2. That's what describeType and ObjectUtil are for. You can probably loop over the properties returned from ObjectUtil.getClassInfo. On 8/11/11 3:23 AM, j2me_soul j2me_soul@... wrote: Sorry I think I express not very clear. I want to iterate all the properies in a class using for each/in. How can achieve that ? At 2011-08-11 17:52:34,Rishi Tandon rishitandon123@... wrote: for each works for collection. If you have an instance of the collections consist of your class object then u can retrieve each item as class object using for each iterator. Sent from my iPhone On Aug 11, 2011, at 2:25 PM, j2me_soul j2me_soul@... wrote: How to custom a class can by iterate all children by for each for each( var item:* in myCustomeClass ){ } -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] Issues using Compc in automated deployment process
Hey all, I am trying to use the compc compiler to compile a library project on a build server we have. When I run the compc from the command line on my local machine, using a config file produced from flashbuilder, it runs fine. However, On the build server Using the same version of flash builder, same config file, and same command line parameters through Ant the resulting swc is different in file size. No error or warnings are generated. In the end I have an application that references this swc at compile time and the application wont do anything , at all. I cant even attach to it in debug. It just show a blank background. Any ideas. Very Odd.. Has anyone experienced anything like this? I'm clueless in florida Thanks, Greg
Re: [flexcoders] Flex 4.5 - Custom NativeWindow and problems
[flexcoders] html form issue in adobe air?
I embed a html page in air mx:HTML location=http://192.168.100.2/upload1/test.php; width=100% height=100% / I use the html page to upload file. form name=newad method=post enctype=multipart/form-data action= table trtdinput type=file name=image Size=30/td/tr trtdinput name=Submit type=submit value=Upload image/td/tr /table but I can not see the file input box(just a button) in the air application. it seems the html page looks different when it embed in adobe air. how to keep it looks same with browser. Thanks for help Mark
[flexcoders] Re: html form issue in adobe air?
this is same question like this. no answer now. http://stackoverflow.com/questions/886380/html-input-type-file-in-adobe-air-does-not-present-file-browser Mark --- In flexcoders@yahoogroups.com, markflex2007 markflex2007@... wrote: I embed a html page in air mx:HTML location=http://192.168.100.2/upload1/test.php; width=100% height=100% / I use the html page to upload file. form name=newad method=post enctype=multipart/form-data action= table trtdinput type=file name=image Size=30/td/tr trtdinput name=Submit type=submit value=Upload image/td/tr /table but I can not see the file input box(just a button) in the air application. it seems the html page looks different when it embed in adobe air. how to keep it looks same with browser. Thanks for help Mark
[flexcoders] Flex job @ Dell, Inc.
Dell is looking for an experienced Flex developer for the Austin, TX area. Please email me your questions and/or resume privately if you are interested or know someone. Serious emails only. 8+ years software development experience or MSCS Experience with developing Rich Internet Applications (RIA) Strong knowledge of Adobe Flex and ActionScript (Flex 4 preferred) Experience with the Cairngorm framework Experience with developing custom Spark components preferred Experience with skinning Flex components preferred Experience with web services / WSDL a plus Michael J. Regert Software Development Sr. Engineer Flex UI Development Team Lead Dell | Enterprise Systems Management Dell Inc. One Dell Way, MS RR5-32, Round Rock, TX 78682 Please consider the environment before printing this email. Confidentiality Notice | This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential or proprietary information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, immediately contact the sender by reply e-mail and destroy all copies of the original message.
[flexcoders] scale9grid question
I am working with Flex 3, and import a movieclip symbol from a SWF. The symbol is rectangular and has scale9 grid enabled because it has rounded corners. Inside the area of the grid where objects resize both horizontally and vertically, I placed another symbol. But I do not want this 2nd symbol to resize. I tried enabling scale9 on the 2nd symbol, and just reduce its grid to a zero area (in the center) with the hope that the 2nd symbol does not resize. But the 2nd symbol still resizes when inside the first one. Any ideas how this can be done?
Re: [flexcoders] Flex 4.5 - Custom NativeWindow and problems
I’m pretty sure we set the init options structure in those classes, so adding properties so you can set the transparency and chrome options should be pretty straightforward. On 8/11/11 2:08 PM, Isabelle Loyer Perso isa_lo...@yahoo.fr wrote: Can you explain more. How to add transparent and chrome option? Thanks for helping Le 11/08/11 17:39, Alex Harui a écrit : And we don’t currently support transparent? I would copy the Window.as file, rename it, and add transparent support. Then it should work. On 8/11/11 12:54 AM, Isabelle Loyer Perso isa_lo...@yahoo.fr wrote: Because I'm on AIR app and I use NativeWindow and options: transparent, ... Thanks Le 11/08/11 01:02, Alex Harui a écrit : Why can’t you use Window? On 8/10/11 3:59 PM, Isabelle Loyer Perso isa_lo...@yahoo.fr wrote: someone suggest to implement IFocusManagerContainer in FlexNativeWindow to fix the focus issues. i try to do that but no success! Le 10/08/11 22:08, Alex Harui a écrit : Re: [flexcoders] Flex 4.5 - Custom NativeWindow and problems I would use our Window classes. Otherwise you will have to replicate much of that is in them. On 8/10/11 8:22 AM, Isabelle Loyer Perso isa_lo...@yahoo.fr wrote: With spark Window all work well Thanks Le 10/08/11 17:13, Alex Harui a écrit : If you use our Window classes does it work better? On 8/10/11 6:25 AM, isa_loyer isa_lo...@yahoo.fr wrote: I have a class FlexNativeWindow who extends to NativeWindow. I use this method to create new window on my AIR app. All works well but some keyboard interraction is not availaible. For exemple focus arround textinput is not visible. Key down and up don't work on DropDownList. TabOrder doesn't work well! Can you explain Why? Because I'm very desapointed! Code to create the new window var wdetcorr:wDetailCorrespondant = new wDetailCorrespondant(); wdetcorr.monIdCorresp = correspDG.selectedItem.crIndex; var wOptions:NativeWindowInitOptions = new NativeWindowInitOptions(); wOptions.systemChrome = NativeWindowSystemChrome.NONE; wOptions.transparent = false; var fnwDetailPatient:FlexNativeWindow = new FlexNativeWindow(wdetcorr, wOptions); fnwDetailPatient.active(); Code about my custom NativeWindow package fr.int.ui.windowSkin { import flash.display.NativeWindow; import flash.display.NativeWindowInitOptions; import flash.events.Event; import flash.events.KeyboardEvent; import flash.ui.Keyboard; import mx.core.IUIComponent; import mx.core.IVisualElement; import mx.core.IVisualElementContainer; import mx.core.UIComponent; import mx.events.*; import mx.managers.WindowedSystemManager; [Event(name=creationComplete, type=mx.events.FlexEvent)] public class FlexNativeWindow extends NativeWindow implements IFlexNativeWindow { private var _systemManager:WindowedSystemManager; private var _content:UIComponent; private var _window:IVisualElementContainer; public function FlexNativeWindow(window:IVisualElementContainer, initOptions:NativeWindowInitOptions = null) { super(initOptions); _window = window; addEventListener(Event.ACTIVATE, windowActivateHandler); } public function addElement(control:IVisualElement):void { _window.addElement(control); } public function removeElement(control:IVisualElement):void { _window.removeElement(control); } private function windowActivateHandler(event:Event):void { event.preventDefault(); event.stopImmediatePropagation(); removeEventListener(Event.ACTIVATE, windowActivateHandler); if (stage) { if (!_systemManager) _systemManager = new WindowedSystemManager(IUIComponent(_window)); stage.addChild(_systemManager); dispatchEvent(new FlexEvent(FlexEvent.CREATION_COMPLETE)); stage.addEventListener(Event.RESIZE, windowResizeHandler); stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownListener); } } private function keyDownListener (e:KeyboardEvent):void { if (e.keyCode == Keyboard.ESCAPE) { stage.nativeWindow.dispatchEvent(new Event(myEventClose, true)); stage.nativeWindow.close(); } } private function windowResizeHandler(event:Event):void { // prise en compte de la valeur mini UIComponent(_window).height = stage.stageHeight; UIComponent(_window).width = stage.stageWidth; } } } -- 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 -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui -- Alex Harui Flex SDK Team Adobe