[flexcoders] Re: Is there a way to detect whether a TextLine is partially cut-off (vertically) in TLF?

2011-10-27 Thread Baz
I figured it out: var lastFullyVisibleLine:TextFlowLine; for (var i:int = textFlowComposer.numLines - 1; i = 0; i--) { lastFullyVisibleLine = textFlowComposer.lines[i] as TextFlowLine; if (lastFullyVisibleLine.textLineExists lastFullyVisibleLine.y + lastFullyVisibleLine.textHeight =

Re: [flexcoders] Re: Hit test fails when over Group

2011-10-27 Thread Alex Harui
Did you try the mouseEnabledWhereTransparent property? On 10/26/11 10:43 PM, dorkiedorkfromdorkt...@gmail.com dorkiedorkfromdorkt...@gmail.com wrote: This is the code I have in the test application. Maybe someone can spot something I am missing. I have a button that is the drag initiator

[flexcoders] Re: What version of Flash Builder do you have?

2011-10-27 Thread valdhor
Are you perhaps confusing the versions of Flash Buidler and Flex? The Flash Builder Application is at 4.5.0.x The Flex SDK is at 4.5.1 You can download Flex SDK builds at http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4.5 Adobe packages the two items above and calls it Flash

[flexcoders] Re: Datagrid's Itemrenderer - Access to Datagrid

2011-10-27 Thread valdhor
Even though it looks like you have an answer to your question I'd like to ask why you would want that? It is always a much better practice to inject what you want into the item renderer instead of trying to reach back out to the original owner to get it. As Item Renderers are recycled this

[flexcoders] Re: Custom Itemrenderer - maintaining changed value in dropdownlist

2011-10-27 Thread valdhor
You will need the item renderer to act as an item editor. Also, you will need to add an extra field to the data provider to hold this value. On itemEditEnd event, update the dataprovider to reflect the change. --- In flexcoders@yahoogroups.com, sdl1326 azsl1326-email@... wrote: I have a

[flexcoders] Re: Hello Friend...

2011-10-27 Thread valdhor
Is there any way wen can block this address until we are sure it will not spam the list? --- In flexcoders@yahoogroups.com, jitendra jain jitendra_jain_2007@... wrote: pHello Friend.breveryone was worried that I would amount to nothing this picked me up when I was down now im back in control

[flexcoders] Re: .as vs .mxml best practices

2011-10-27 Thread valdhor
It's as simple as mx:Script source=includes/Sample3Script.as/ All it does is include the AS file at that point. Everything inside the MXML file is available to the AS file - no custom events necessary. See http://livedocs.adobe.com/flex/3/html/help.html?content=usingas_6.html --- In

[flexcoders] Re: Custom Itemrenderer - maintaining changed value in dropdownlist

2011-10-27 Thread sdl1326
Thanks for the assistance. --- In flexcoders@yahoogroups.com, valdhor valdhorlists@... wrote: You will need the item renderer to act as an item editor. Also, you will need to add an extra field to the data provider to hold this value. On itemEditEnd event, update the dataprovider to reflect

[flexcoders] Re: Custom Component Height issue

2011-10-27 Thread flexlearner19
no replies :( --- In flexcoders@yahoogroups.com, flexlearner19 flexlearner19@... wrote: hi all i am using a custom component (extended spark panel ,added some buttons on the header)and that contains a datagrid.now my problem is whenver I add a row to the datagrid,the panel is not

[flexcoders] Formatting time

2011-10-27 Thread chinwesley
Hi everyone, I have a variable that stores a time from the database in seconds. eg. 333545 I want to format this time to be in this format: hours:minutes:seconds. How can I do that? Regards

RE: [flexcoders] Re: .as vs .mxml best practices

2011-10-27 Thread Sells, Fred
Well I don't know whether to be happy because it is so simple or embarrassed because I didn't know it L From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of valdhor Sent: Thursday, October 27, 2011 4:24 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re:

Re: [flexcoders] Formatting time

2011-10-27 Thread Brendan Meutzner
FROM: http://www.gotoandlearnforum.com/viewtopic.php?t=16114 function formatTime(s:Number):String { // Do some time calculations var hrs:Number = Math.floor(s/3600); var mins:Number = Math.floor((s%3600)/60); var secs:Number = Math.floor((s%3600)%60); // Define some vars var

Re: [flexcoders] Re: Hit test fails when over Group

2011-10-27 Thread dorkie dork from dorktown
It works :) ...sortof. I have to set the property to true and also add an event listener to each group. From the mouseEndabledWhereTransparent docs: *This property only goes in to effect if mouse, touch, or flash player gesture events are added to this instance. In addition, it assumes that the