Re: [flexcoders] Advantages and Disadvantages of skinning
In the march 2010 skinning concept was introduced in version Flex 4. Its been almost 2 years, it seems like many people don't have in depth knowledge of skinning. I am struggling a lot to understand skinning properly. I have started looking into it very recently and I think its not much useful until I should have thorough knowledge. Jerry, James Thanks for your input. I believe it is useful in some extent and no in some other, just could not realize what are they! It will be a good knowledge sharing if everyone who knows skinning better can input/share their point of view. Thanks to all, On Thu, Feb 9, 2012 at 10:37 PM, Davidson, Jerry < jerry.david...@illinois.gov> wrote: > ** > > > I think the skinning allows the components to be lighter. But it makes > everything a lot more complex. > > ** ** > > A month ago I started a thread on what the pieces in a skin mean and not > one person was able to respond so there seems to be a learning curve at > work. > > ** ** > > *From:* flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] *On > Behalf Of *Myadi H > *Sent:* Wednesday, February 08, 2012 10:33 PM > *To:* flexcoders@yahoogroups.com > *Subject:* [flexcoders] Advantages and Disadvantages of skinning > > ** ** > > > > Hello folks, > > Today I have been asked to explain advantages and disadvantages of > skinning in flex. I thought of asking this to all experienced flexers, and > here it is. > > I hope this discussion will help everybody in future. So please > input/share your knowledge. > > Thank you. > > > > >
Re: [flexcoders] Flex 3 -> 4 migration and s:States
In that example he has mentioned like bellow. WORKS *but not this one* mx inside s ok but s inside mx is not ok. Is it ok!! Thanks. And I don't know why are you so desperate to use spark inside mx, using spark is better that mx. What you say? ** On Tue, Feb 7, 2012 at 3:04 PM, Tandon, Rishi wrote: > ** > > > Well I tried your code in flex sdk 4.6 and could not include > as it is deprecated. > But replacing with works like a butter. > Please refer to the code below: > > > http://ns.adobe.com/mxml/2009"; >xmlns:s="library://ns.adobe.com/flex/spark" >xmlns:mx="library://ns.adobe.com/flex/mx"> > > > > > > > > > > > > Flex 3 states can be used with spark component > Please refer to the attach blog: http://blog.benstucki.net/?p=56 > > Regards, > Rishi Tandon > > > > -- > *From:* bu4fred > *To:* flexcoders@yahoogroups.com > *Sent:* Tuesday, February 7, 2012 12:39 AM > *Subject:* [flexcoders] Flex 3 -> 4 migration and s:States > > > I'm migrating a flex 3.0 application to 4.0 (or 4.5, doesn't matter much) > and I want to use the new state features of includeIn and excludeFrom. I > have a user defined base class in mxml and i inherit from that for my > 'working' classes. I have this code in my baseclass > > http://ns.adobe.com/mxml/2009"; > xmlns:s="library://ns.adobe.com/flex/spark" > xmlns:mx="library://ns.adobe.com/flex/mx" > xmlns:com="components.*" > currentState="Oct2010"> > > > > > > > . . . > > - working class contains - > > ... > > and the error is > > State 'Apr2012' was referenced without being declared. A.mxml line 66 > /MdsClientBeta1/src/sections Flex Problem > > --- comments > I tried s:states rather than mx:states but it could not resolve name > Must s:states be used only in s: components or can they be used in mx > components? > > > > >
Re: [flexcoders] Flex 3 -> 4 migration and s:States
Set/assign the state( currentState="Oct2010" ) inside creationComplete handling method. Ex. protected function application1_creationCompleteHandler(event:FlexEvent):void { // TODO Auto-generated method stub this.currentState = " Oct2010"; } May be all the states might have not laid-out while executing Its my guess. Do reply with your results. Thanks On Tue, Feb 7, 2012 at 12:39 AM, bu4fred wrote: > ** > > > I'm migrating a flex 3.0 application to 4.0 (or 4.5, doesn't matter much) > and I want to use the new state features of includeIn and excludeFrom. I > have a user defined base class in mxml and i inherit from that for my > 'working' classes. I have this code in my baseclass > > http://ns.adobe.com/mxml/2009"; > xmlns:s="library://ns.adobe.com/flex/spark" > xmlns:mx="library://ns.adobe.com/flex/mx" > xmlns:com="components.*" > currentState="Oct2010"> > > > > > > > . . . > > - working class contains - > > ... > > and the error is > > State 'Apr2012' was referenced without being declared. A.mxml line 66 > /MdsClientBeta1/src/sections Flex Problem > > --- comments > I tried s:states rather than mx:states but it could not resolve name > Must s:states be used only in s: components or can they be used in mx > components? > > >
Re: [flexcoders] Zombie in flex
Hello Michal, Thank you so much Michal. This will do for me. You saved my time. And I am curious to know are there any other ways to implement this? A Native NativeWindow... Best Regards, Mahesh On Thu, Dec 22, 2011 at 9:19 PM, Michal Szczepanski wrote: > ** > > > As far as I know, you can make native window with folowing parameters > Transparent true, > Type utility, > Systemchrome none > Restore it and close application window, on windows your process should > not be closed, didn't test on other platforms > > Look:http://pastebin.com/vDALBXhX > > Good luck > MSz > > -- > Michal Szczepanski > Flash Platform Developer > www: http://blog.vane.pl > > Send from mobile > > On 22 gru 2011, at 08:19, "Myadi H" wrote: > > > > I want to run one process(window, popup) even when the main application > closes. In other words if a child process is created, even after parent > process die the child process keeps on running(we have this in linux and > other OSs). > > Is it possible in flex? Any experts suggestion on how to implement/any > examples/documentation ? > > (Each reply is very important to me) > > Thanks > > >
Re: [flexcoders] Re: Binding behaviour
Ok. But Its Not compulsory that you have to write a clone method. Anyways other way you can try is public function cloneLeaf():CallMonitoringLeaf { var obj:CallMonitoringLeaf = new CallMonitoringLeaf(); obj.optionCallMonitoring = this.optionCallMonitoring; obj.nodesSelected =this.nodesSelected; obj.dataCallMonitoring = this.dataCallMonitoring; obj.nodeName = this.nodeName; return obj; } So now calling cloneLeaf() returns new duplicated object. Hope this works for you. I did't test it, however your reply will tell about that. :) Thanks On Thu, Nov 3, 2011 at 9:26 PM, turbo_vb wrote: > ** > > > If nodeName is a class, you'll need to create a clone method in that class > as well, and do this: > > obj.nodeName = nodeName.clone(); > > If it's just a string, you can try: > > obj.nodeName = nodeName.toString(); > > -TH > > > --- In flexcoders@yahoogroups.com, geckko wrote: > > > > Hi all, > > > > I'm trying to duplicate one object but when i modify the "master" object > > the child object is modified too. My code is something similar to this > > > > private function cloneLeaf():CallMonitoringLeaf{ > > var obj:CallMonitoringLeaf = new CallMonitoringLeaf(); > > obj.optionCallMonitoring = optionCallMonitoring; > > obj.nodesSelected = nodesSelected; > > obj.dataCallMonitoring = dataCallMonitoring; > > obj.nodeName = nodeName; > > return obj; > > } > > > > But when i modify nodeName (for example) in the object that i use to > > duplicate (master object), the child object modifies its name too. Is > > there any way to avoid this behaviour? > > > > Thanks in advance > > > > >
Re: [flexcoders] Binding behaviour
Use this. import mx.utils.ObjectUtil; ObjectUtil.copy(myObj); ObjectUtil.copy(arrColl) as ArrayCollection; On Tue, Oct 18, 2011 at 1:53 PM, geckko wrote: > ** > > > Hi all, > > I'm trying to duplicate one object but when i modify the "master" object > the child object is modified too. My code is something similar to this > > private function cloneLeaf():CallMonitoringLeaf{ > var obj:CallMonitoringLeaf = new CallMonitoringLeaf(); > obj.optionCallMonitoring = optionCallMonitoring; > obj.nodesSelected = nodesSelected; > obj.dataCallMonitoring = dataCallMonitoring; > obj.nodeName = nodeName; > return obj; > } > > But when i modify nodeName (for example) in the object that i use to > duplicate (master object), the child object modifies its name too. Is there > any way to avoid this behaviour? > > Thanks in advance > >
Re: [flexcoders] Re: Flex 4 & CSS
Hello Alex, Thanks for the note. I am wondering why new release build of flex/spark does't have this feature? Its up to user whether to use it or not. Background on components is the basic requirement of many clients now a days. Hope in future adobe will implement/add this feature. Thanks for the reply Alex. Regards, Myadi On Tue, Aug 23, 2011 at 10:05 AM, Alex Harui wrote: > ** > > > Jerry, the spark theme doesn’t support backgroundImage. Every capability > has a cost, and we chose not to make the container backgrounds as heavy as > the Halo theme. It doesn’t matter how many lines of code are in the skin if > it doesn’t include the logic to load and position images. > > > > On 8/22/11 7:27 AM, "Davidson, Jerry" wrote: > > > > > > > I tried both BorderContainer and Panel, but neither would display an image. > I can get the background color to change, but not add an image. > > Perhaps a skin will work, but I can’t get it to work so far. I’ve replaced > the two lines of CSS with the default class “panel skin” which is over 300 > lines long, includes three overrides and other methods and still doesn’t > seem to have an ability to add an image. > > Who would have guessed a simple image would bring Flex to its knees? > > > > > *From:* flexcoders@yahoogroups.com > [mailto:flexcoders@yahoogroups.com] > *On Behalf Of *valdhor > *Sent:* Friday, August 19, 2011 1:59 PM > *To:* flexcoders@yahoogroups.com > *Subject:* [flexcoders] Re: Flex 4 & CSS > > > > Instead of using mx:Canvas try using s:BorderContainer. > > > http://ns.adobe.com/mxml/2009"; > > xmlns:s="library://ns.adobe.com/flex/spark" > > xmlns:mx="library://ns.adobe.com/flex/mx"> > > > > > > .bgImage > > { > > color: #DEDACF; > > contentBackgroundColor: #DEDACF; > > backgroundImage: Embed(BannerBackground.jpg); > > backgroundImageFillMode: repeat; > > } > > > > > > > > > > > > > > > > > > > > -- > Alex Harui > Flex SDK Team > Adobe System, Inc. > http://blogs.adobe.com/aharui > > >
Re: [flexcoders] Re: Flex 4 & CSS
I too have tried in many ways, but could not resolve the problem. Doing few more tests. BTW one option is to use addChild(); Something like this. var image : Image = new Image(); image.source = "FSCalc/images/BannerBackground.jpg"; image.scaleContent = true; image.maintainAspectRatio =false; image.percentWidth = 100; image.percentHeight = 100; PictureBox.addChild(image); I am eyeing on this post. All the best guys On Mon, Aug 22, 2011 at 7:57 PM, Davidson, Jerry < jerry.david...@illinois.gov> wrote: > ** > > > I tried both BorderContainer and Panel, but neither would display an > image. I can get the background color to change, but not add an image.*** > * > > ** ** > > Perhaps a skin will work, but I can’t get it to work so far. I’ve replaced > the two lines of CSS with the default class “panel skin” which is over 300 > lines long, includes three overrides and other methods and still doesn’t > seem to have an ability to add an image. > > ** ** > > Who would have guessed a simple image would bring Flex to its knees? > > ** ** > > ** ** > > ** ** > > *From:* flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] *On > Behalf Of *valdhor > *Sent:* Friday, August 19, 2011 1:59 PM > *To:* flexcoders@yahoogroups.com > *Subject:* [flexcoders] Re: Flex 4 & CSS > > ** ** > > > > Instead of using mx:Canvas try using s:BorderContainer. > > > http://ns.adobe.com/mxml/2009"; > xmlns:s="library://ns.adobe.com/flex/spark" > xmlns:mx="library://ns.adobe.com/flex/mx"> > > > .bgImage > { > color: #DEDACF; > contentBackgroundColor: #DEDACF; > backgroundImage: Embed(BannerBackground.jpg); > backgroundImageFillMode: repeat; > } > > > > > > > > > >
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 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 > > > >