[flexcoders] Android/mobile question
If you build an application for the phone, do you have to use tables to position things or can you use CSS or is there a third method? I ask because I'm in a VB.Net class and the teacher said only tables will work and that doesn't sound right to me. TIA
Re: [flexcoders] Android/mobile question
Definitely not right. You just gotta keep in mind that that there are LOTS of sizes for android devices so your sizes should be percent based. CSS will work fine. I'm not sure what you're talking about with tables, assuming a flex grid or html table? With HTML, most everything uses CSS, with Flex, I use percentage based sizing for most items. -Jake On Thu, Nov 7, 2013 at 2:18 PM, Davidson, Jerry jerry.david...@illinois.gov wrote: If you build an application for the phone, do you have to use tables to position things or can you use CSS or is there a third method? I ask because I’m in a VB.Net class and the teacher said only tables will work and that doesn’t sound right to me. TIA
RE: [flexcoders] Android/mobile question
Thanks. It didn't sound right to me. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jake Churchill Sent: Thursday, November 07, 2013 2:24 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Android/mobile question Definitely not right. You just gotta keep in mind that that there are LOTS of sizes for android devices so your sizes should be percent based. CSS will work fine. I'm not sure what you're talking about with tables, assuming a flex grid or html table? With HTML, most everything uses CSS, with Flex, I use percentage based sizing for most items. -Jake On Thu, Nov 7, 2013 at 2:18 PM, Davidson, Jerry jerry.david...@illinois.govmailto:jerry.david...@illinois.gov wrote: If you build an application for the phone, do you have to use tables to position things or can you use CSS or is there a third method? I ask because I'm in a VB.Net class and the teacher said only tables will work and that doesn't sound right to me. TIA
Re: [flexcoders] Retrieve current item on a DataGroup
As a previous mail already said: Thanks Alex!. Em 07/11/2013 05:11, Alex Harui escreveu: If you need selection, why not use List? From: Jairo França ja...@tgi.inf.br mailto:ja...@tgi.inf.br Reply-To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Date: Tuesday, November 5, 2013 9:27 AM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: [flexcoders] Retrieve current item on a DataGroup I have a question that seems easy, but i can't solve. I have a DataGroup with a custom ItemRenderer. How can I retrieve the current item that was selected with a double click (something like a SelectedItem on a DataGrid)? Can I retrieve the itemRenderer instance of the element? Thansk My code is: s:Group height=100% width=100% s:Scroller height=100% width=100% id=scr s:DataGroup id=dg height=100% width=100% itemRenderer=myItemRenderer dataProvider={_data} doubleClickEnabled=true doubleClick=dg_doubleClickHandler(event) s:layout s:TileLayout/ /s:layout /s:DataGroup /s:Scroller /s:Group
RE: [flexcoders] Function from string?
I would like to be able to take a function name I've read from the script and call the corresponding function. Hi A. P. Damien, As I understand it, you have existing functions which you want to call by passing the name of a function as a string to a generic method. By 'script' I take you to mean an external text source. public function makeTheCall(s:String):void{ //use try/catch to handle errors try { this[s](); } catch(e:ReferenceError) { //trace(s,e); } } Do I have to declare the class 'dynamic' for this trick to work? I don't think so. Or is it always legal to do this from inside the class? 'Always' is a tricky word. The functions you want to call need to be in the same Class in order for the 'this' keyword to work. The function's name and the function name string must be an exact match for case and spelling. Regards, Keith Reinfeld