[flexcoders] Grouping and ItemRendering issue

2010-07-29 Thread RishiShahi

I've applied itemRenderer on advance datagrid column. Here is my code
snippet,

http://old.nabble.com/file/p29303190/3.png 

Now problem is that when my grid loads ( default it loads with group by on
'Category' ) , When grid loads only "Status" column is rendered not the
"Hazard" column . See below, 

http://old.nabble.com/file/p29303190/2.png 

However, When I uncheck the "Group By" checkbox which removes the grouping ,
Hazard column gets rendered . 

http://old.nabble.com/file/p29303190/4.png 

But funny thing is that it only renders one item , and once I use horizontal
scroll bar in data grid to scroll down , all hazard column gets rendered
automatically . Why is such effect ?

Here is my hazard rendering code ,

http://old.nabble.com/file/p29303190/5.png 

Rish
-- 
View this message in context: 
http://old.nabble.com/Grouping-and-ItemRendering-issue-tp29303190p29303190.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] Alex Hauri Sample | CheckBox DataGrid

2010-07-29 Thread Alex Harui
Did you add some sort of double-click logic to the DG?  The basic example only 
uses single click for selection.  The selectionIndices should change and then 
the checkbox renderer should call isItemSelected and check the box if needed.


On 7/29/10 9:08 AM, "Rajan"  wrote:






Hi

I am using Alex Sample in my piece of the code.

http://blogs.adobe.com/aharui/2008/02/checkbox_selection_in_datagrid.html

I have made grid editable and added the below columns couple of times.




When i double click on any row the checkbox is selected for that row.

But the checkbox is only selcted when the checkbox is view area of the grid.If 
you scroll through the last column and double click the last column while you 
are not able to see the checkbox, the checkbox does not becomes selected.

The challenge is how to make it selectable even if the checkbox is not visible.

Any pointers...

Thanks
ilikeflex






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] garbage collection question

2010-07-29 Thread Alex Harui
The profiler will show you who is still referencing the object.


On 7/29/10 1:01 PM, "djbrown_rotonews"  wrote:






I'm trying to track down a memory leak in one of my applications, having 
already employed the "use weak reference in dictionaries and eventListeners" 
guideline.

I have an wrapper object, that has (among other properties) a reference to 
another object, which contains an array of a third object.

Does simply nulling the parent effectively mark the embedded object(s) for GC, 
or do I need to iterate over the internal object array and null them out 
individually?






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] Re: flex debuging

2010-07-29 Thread cholid cholid


i mean debuging when flex running
like we debuging JS with firebug at firefox
i've try with add alert in actionscript tag to know the sequence of code
but i want more debuger (like firebug for JS at webbrowser)




From: valdhor 
To: flexcoders@yahoogroups.com
Sent: Thu, July 29, 2010 11:38:42 PM
Subject: [flexcoders] Re: flex debuging

  
Share what?

Set a breakpoint, run app, do something that will invoke the breakpoint, 
examine 
the variables to see if they contain what you expect. Simplicity itself.

http://learn.adobe.com/wiki/display/Flex/Debugging+tutorial

--- In flexcoders@yahoogroups.com, cholid cholid  wrote:
>
> hi all
> 
> anyone can share about debuging in flex?
> thanks
>


 


  

[flexcoders] Single Sign on with Flex/BlazeDS

2010-07-29 Thread Dharmendra
Hi All, 
Does blazeDS supports single sign on functionality ? As far as I know 
SSO has not much to do with BlazeDS rather it has more to do with the 
application server where the Application has been deployed and Browser who is 
accessing the application. I am using blazeDS 3.2 , websphere and  LDAP.
 
Please provide some pointers on this.

Thanks,
Dharmendra




RE: [flexcoders] Computation request

2010-07-29 Thread Bill Brutzman
I am a little surprised at how long my message took for a round trip.  I
posted it at 1:54 pm Eastern and I just got it back at 7:30 pm.  

 

Does the  FlexCoders group forward posts to Rockford, Matlock, Cannon, etc?

 

--B

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Bill Brutzman
Sent: Thursday, July 29, 2010 1:54 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Computation request

 

  

This is rather a large question.  I expect that the fastest way to arrive at
a meaningful answer would be to view the Adobe.TV videos.

 

There is a lot of new easy-to-use, wizard-like functionality in FB4 to
easily connect to middleware such as PHP.

 

--Bill

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Christophe
Sent: Thursday, July 29, 2010 10:37 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Computation request

 

  

Hello, 

When there are too much computation in a Flex application, and the customer
is waiting (and can go away), is it a solution to make some computations in
Php ? and which instructions to use to launch the php function in parallel
from the flex application ?

Thank you,
Christophe, 





Re: [flexcoders] Re: Refresh list with itemRenderer/ComboBox

2010-07-29 Thread Richard Rodseth
Yes, that was my plan, but I've since discovered that I misspoke and my item
renderer has a PopUpButton rather than a ComboBox (sorry!)

Looking into other possible mistakes in my binding.

On Thu, Jul 29, 2010 at 3:31 PM, Amy  wrote:

>
>
>
>
> --- In flexcoders@yahoogroups.com , Richard
> Rodseth  wrote:
> >
> > Hmm. I did a diff on the 3.x and 3.5 versions of ComboBase and ComboBox,
> and
> > didn't see anything that seemed relevant - just some stuff about
> tweening.
>
> Richard, have you considered subclassing and just fixing it yourself
> (assuming the part you need to fix isn't private, of course).
>
> -Amy
>
>  
>


RE: [flexcoders] Computation request

2010-07-29 Thread Bill Brutzman
This is rather a large question.  I expect that the fastest way to arrive at
a meaningful answer would be to view the Adobe.TV videos.

 

There is a lot of new easy-to-use, wizard-like functionality in FB4 to
easily connect to middleware such as PHP.

 

--Bill

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Christophe
Sent: Thursday, July 29, 2010 10:37 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Computation request

 

  

Hello, 

When there are too much computation in a Flex application, and the customer
is waiting (and can go away), is it a solution to make some computations in
Php ? and which instructions to use to launch the php function in parallel
from the flex application ?

Thank you,
Christophe, 



<><>

[flexcoders] Re: Refresh list with itemRenderer/ComboBox

2010-07-29 Thread Amy


--- In flexcoders@yahoogroups.com, Richard Rodseth  wrote:
>
> Hmm. I did a diff on the 3.x and 3.5 versions of ComboBase and ComboBox, and
> didn't see anything that seemed relevant - just some stuff about tweening.

Richard, have you considered subclassing and just fixing it yourself (assuming 
the part you need to fix isn't private, of course).

-Amy



Re: [flexcoders] How to split a String on spaces but including Quoted Phrases?

2010-07-29 Thread Oleg Sivokon
Ouch, actually, it has a flaw, but I'm not sure you need a fix for that, but
it's possible to fix it, if you want. It only checks for the double quotes,
when it checks for the non-quoted words, but it checks for both single and
double quoted groups of words. If you need both single and double quotes
however, the expression is going to be a tid bit longer... but if you don't
need, then it'd be shorter in fact:

/(".*[^"]")|(\s[^\s"]+(?!\s"))/g


[flexcoders] Re: Strange problem with Item Renderer in Flash Play 10

2010-07-29 Thread Amy


--- In flexcoders@yahoogroups.com, "Paul"  wrote:
>
> I am using Flex 3.5. I have custom item renderers in AdvancedDataGrids based 
> on the Flex Text component which takes the data value which has multiple 
> values delimited with "|" characters and writes out the values on multiple 
> lines in the Text component.
> 
> For example:
> value "supervisor1|supervisor2|supervisor3|supervisor4" is converted to:
> Supervisor1
> Supervisor2
> Supervisor3
> Supervisor4
> 
> It works fine when I am compiling for Flash version 9.0.24. I changed the 
> compiler option to Flash version 10.0.45 so that I can use the 
> FileReference.save method. 
> 
> The save method works, but in regression testing, I found that my item 
> renderers are no longer working. I put in traces and see that it is still 
> processing the values correctly, but the value does not display. However, the 
> grid row does expand for the height of the value that would be displayed. I 
> have switched the compiler setting several times, and it always works in 9.x 
> and never works in 10.x.

Try doing something like this in your itemRenderer, and see if it works:

private var _widthChanged:Boolean;
private var _newWidth:int;

override public function set explicitWidth(value:int):void {
super.explicitWidth = value;
_widthChanged = true;
_newWidth = value;
invalidateProperties();
}

override protected function commitProperties():void {
if (_widthChanged) {
width = _newWidth;
_widthChanged= false;
//if the itemRender is not actually a Text control,
//but instead the text control is a child
theTextControl.validateNow();
}
super.commitProperties();
}

If that doesn't work, try checking the text of the control and look at its 
internal text field and how big it thinks it is.  You should be able to see 
these values in the debugger if you set a break point, even if the variables 
are not exposed (I think you may need to turn something on from the menu of the 
variables window to enable this).

HTH;

Amy



Re: [flexcoders] How to split a String on spaces but including Quoted Phrases?

2010-07-29 Thread Oleg Sivokon
Sorry to chum in :)

var re:RegExp = /(("|').*(?=\2)\2)|(\s[^\s"]+(?!\s"))/g;
var text:String = .toString();
var result:Object;
while (result = re.exec(text))
{
trace(result[0]);
}


Re: [flexcoders] garbage collection question

2010-07-29 Thread Oleg Sivokon
1. Using weak references is the last thing you should do, whenever possible
you should avoid it. By doing so you leave all means of control of the
object, and if the object has some kind of behavior that will keep it
"alive", you won't be able to delete it ever (example, the *deleted* object
did not close LocalConnection).
It is not possible to conclude from what you describe whether objects will
be removed or not. The objects will be removed when there will be no
reference to the "roots". "Roots" are local variables, or field
initializers. These are either persistent or temporary, local variables
would be an example of temporary "roots".
Imagine this life span of an object:

public var persistent:Object;
public var anotherProperty:Object;
public var revealPresense:Dictionary = new Dictionary(true);

public function DocumentClass()
{
super();
var temporary:Object = new Object(); // the object created, put into the
heap, bound to the temporary toot
persistent = temporary; // the object is in heap, now referenced by two
variables.
} // temporary variable is destroyed, now the object is only referenced by
persistent root.

public function anotherMethod():void
{
anotherProperty = persistent; // the object is still in heap, but now
has two persistent roots.
persistent = null; // the object is still not eligible for GC, it is
referenced by persistent root.
revealPresense[anotherProperty] = true; // let's store a weak reference
and observe the object deletion.
anotherProperty = null; // the object is no longer referenced, but may
exist for some time.
for (var obj:Object in revealPresense) trace( obj ); // it may be still
here...
setInterval(checkPresense, 1);
}

public function checkPresense():void
{
for (var obj:Object in revealPresense) trace( obj ); // it may be still
here...
}


RE: [flexcoders] How to split a String on spaces but including Quoted Phrases?

2010-07-29 Thread Keith Reinfeld
Nick, 

 

I think this satisfies your conditions. There is a for-loop but it's not
iterating over the entire string, which, I'm certain, is what you wanted to
avoid. 

 

var myString:String = 'flex "action script" parse string function'; 

var resultArr:Array = regExpDQ(myString, false); 

trace("resultArr = ",resultArr); 

 

function regExpDQ(s:String, includeQuotes:Boolean):Array { 

var re:RegExp = /".*?"/g; 

// get string segments contained in double-quotes  

var matchArr:Array = s.match(re); 

// strip out string segments contained in double-quotes 

s = s.split(re).join(''); 

// put the remaining string segments into an array  

var arr:Array = s.split(' '); 

// merge the two arrays  

var len:uint = arr.length; 

var a:Array = []; 

var j:uint = 0; 

for(var i:uint = 0; i < len; i++) { 

if(arr[i] != ""){ 

a[i] = arr[i]; 

}else{ 

if(includeQuotes){ 

a[i] =
matchArr[j++]; 

}else{ 

a[i] =
matchArr[j++].split('"').join(""); 

} 

} 

} 

return a; 

} 

 

Regards,

 

Keith Reinfeld
Home Page:  
http://keithreinfeld.home.comcast.net

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Nick Middleweek
Sent: Wednesday, July 28, 2010 12:20 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to split a String on spaces but including Quoted
Phrases?

 

  

Hi,

I haven't been able to work out regex yet so apart from looping and parsing
a string manually, is there anyway of parsing the following string...

flex "action script" parse string function

into the following Array...

[0] = flex
[1] = action script
[2] = parse
[3] = string
[4] = function


Thanks,
Nick



<><>

[flexcoders] ActionScript dispatchEvent silently fails with ‘Asynchronous viewer update’ mess

2010-07-29 Thread tntomek
I'm manually dispatching a propertyChanged event from my model only to never 
have it be caught. When I try to debug and step into (F5) the dispatchEvent 
call I get FlashBuilder error "Asynchronous viewer update" displayed twice.

Does anyone have an idea why this might be failing? Possibly cyclical 
references? I have tried using weakReferences and same result.

Note that this dispatchEvent works perfectly when dispatching some other 'Row' 
in my model by only fails in this odd scenario where my Row is nested in 
another object.




[flexcoders] garbage collection question

2010-07-29 Thread djbrown_rotonews
I'm trying to track down a memory leak in one of my applications, having 
already employed the "use weak reference in dictionaries and eventListeners" 
guideline.

I have an wrapper object, that has (among other properties) a reference to 
another object, which contains an array of a third object.

Does simply nulling the parent effectively mark the embedded object(s) for GC, 
or do I need to iterate over the internal object array and null them out 
individually?



[flexcoders] Re: flex debuging

2010-07-29 Thread valdhor
Share what?

Set a breakpoint, run app, do something that will invoke the breakpoint, 
examine the variables to see if they contain what you expect. Simplicity itself.

http://learn.adobe.com/wiki/display/Flex/Debugging+tutorial

--- In flexcoders@yahoogroups.com, cholid cholid  wrote:
>
> hi all
> 
> anyone can share about debuging in flex?
> thanks
>




[flexcoders] Alex Hauri Sample | CheckBox DataGrid

2010-07-29 Thread Rajan
Hi 

I am using Alex Sample in my piece of the code.

http://blogs.adobe.com/aharui/2008/02/checkbox_selection_in_datagrid.html

I have made grid editable and added the below columns couple of times.




When i double click on any row the checkbox is selected for that row.

But the checkbox is only selcted when the checkbox is view area of the grid.If 
you scroll through the last column and double click the last column while you 
are not able to see the checkbox, the checkbox does not becomes selected.

The challenge is how to make it selectable even if the checkbox is not visible.

Any pointers...

Thanks
ilikeflex





Re: [flexcoders] Re: Refresh list with itemRenderer/ComboBox

2010-07-29 Thread Alex Harui
I would recommend getting tons of votes for the bugs you want fixed and adding 
comments to those bugs as to why a 4.x fix is not going to work for you.


On 7/29/10 6:03 AM, "valdhor"  wrote:






That's fine - I don't need any new features but bug fixes are definitely worth 
it.

Add me as someone wanting at least a 3.7 ;-}

--- In flexcoders@yahoogroups.com  , Alex 
Harui  wrote:
>
> Maintenance continues enough to produce a 3.6.  No new features, just bug 
> fixes.  I don't know of any plans for 3.7 at this time.  Customer feedback 
> will influence.
>
>
> On 7/28/10 12:06 PM, "valdhor"  wrote:
>
>
>
>
>
>
> Hopefully for quite a while.
>
> Converting all my code to Flex 4 would be a major undertaking and something I 
> don't have time to do and won't have for some time.
>
> --- In flexcoders@yahoogroups.com   
>  , Brendan Meutzner  wrote:
> >
> > Woah, development is continuing on the 3.x versions?  How long will this
> > continue?
> >
> > On Jul 28, 2010 11:58 AM, "Alex Harui"  wrote:
> >
> >
> >
> > 3.6 is due out soon.  It is fixed in that code base.  I think there may be
> > nightly build on the 3.x branch.
> >
> >
> >
> >
> > On 7/28/10 9:23 AM, "Richard Rodseth"  wrote:
> >
> > >
> > >
> > >
> > >
> > >
> > > True - it's given me many headaches.
> > >
> > > Any ideas for a workaround? A judicious...
> >
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >> Flex 3.5 has some issues with ComboBox updating.
> > >>
> > >>
> > >>
> >
> > >> On 7/27/10 4:22 PM, "Richard Rodseth"  > http://rrodseth@> > wrote:
> > >>...
> >
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>> I have two scenarios where I have to refresh rows of a list or
> > >>> d...
> >
> >
> > --
> > 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


[flexcoders] Computation request

2010-07-29 Thread Christophe
Hello, 

When there are too much computation in a Flex application, and the customer is 
waiting (and can go away), is it a solution to make some computations in Php ? 
and which instructions to use to launch the php function in parallel from the 
flex application ?

Thank you,
Christophe, 




[flexcoders] Re: How to write curved text in flex?

2010-07-29 Thread valdhor
A quick Google search reveals...

http://blog.shortfusion.com/index.cfm/2009/1/25/Circular-Text-In-Flex-Explained

http://blog.shortfusion.com/index.cfm/2008/12/15/Flex-Curved-Text-DisplacementMapFilter-Why-I-Dont-Swing-That-Way

http://blog.shortfusion.com/index.cfm/2008/12/20/Curved-Text-In-Flex--Holy-Crap-It-Works

http://blog.tsclausing.com/post/49

http://www.riaxe.com/blog/flex/rotating-text-along-a-circular-arc-in-as3/


--- In flexcoders@yahoogroups.com, "kheta ram"  wrote:
>
> Please can anyone help me to out from following problem  as I am new in Flex.
> 
> I would like to add dynamically text on an image which is a circle type image 
> and text should be appear on curved(circumstance) side with proper rotation.
> 
> Thanks,
> Kheta Ram Sansi
>




[flexcoders] Re: Air Sub Application installing.

2010-07-29 Thread valdhor
I don't know about the install and upgrade but you could use merapi to execute 
other applications. Hmmm...If you can execute other applications you would be 
able to launch an installer/updater.

--- In flexcoders@yahoogroups.com, Wesley Acheson  wrote:
>
> Hi,
> I've asked this question here but no joy. Anyone here know?
> 
> http://stackoverflow.com/questions/3275746/air-sub-applications
> 
> --
> 
> Hi Is it possible for an Adobe Air application to install, upgrade and
> execute other Adobe-Air files.
> 
> The basic use case is for a launcher application. It launches and manages
> other applications at user request, however doesn't need to install the
> runtimes until such a point as the user intends to execute it.
> 
> *EDIT:* A good starting point may be in this question
> http://stackoverflow.com/questions/2294091/air-app-that-loads-and-runs-existing-air-swf
> 
> *EDIT* I'm going to cross post this to flexcoders though I'm not really
> happy with doing it.
>




[flexcoders] Re: Refresh list with itemRenderer/ComboBox

2010-07-29 Thread valdhor
That's fine - I don't need any new features but bug fixes are definitely worth 
it.

Add me as someone wanting at least a 3.7 ;-}

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> Maintenance continues enough to produce a 3.6.  No new features, just bug 
> fixes.  I don't know of any plans for 3.7 at this time.  Customer feedback 
> will influence.
> 
> 
> On 7/28/10 12:06 PM, "valdhor"  wrote:
> 
> 
> 
> 
> 
> 
> Hopefully for quite a while.
> 
> Converting all my code to Flex 4 would be a major undertaking and something I 
> don't have time to do and won't have for some time.
> 
> --- In flexcoders@yahoogroups.com  , 
> Brendan Meutzner  wrote:
> >
> > Woah, development is continuing on the 3.x versions?  How long will this
> > continue?
> >
> > On Jul 28, 2010 11:58 AM, "Alex Harui"  wrote:
> >
> >
> >
> > 3.6 is due out soon.  It is fixed in that code base.  I think there may be
> > nightly build on the 3.x branch.
> >
> >
> >
> >
> > On 7/28/10 9:23 AM, "Richard Rodseth"  wrote:
> >
> > >
> > >
> > >
> > >
> > >
> > > True - it's given me many headaches.
> > >
> > > Any ideas for a workaround? A judicious...
> >
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >> Flex 3.5 has some issues with ComboBox updating.
> > >>
> > >>
> > >>
> >
> > >> On 7/27/10 4:22 PM, "Richard Rodseth"  > http://rrodseth@> > wrote:
> > >>...
> >
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>> I have two scenarios where I have to refresh rows of a list or
> > >>> d...
> >
> >
> > --
> > 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] How to write curved text in flex?

2010-07-29 Thread kheta ram
Please can anyone help me to out from following problem  as I am new in Flex.

I would like to add dynamically text on an image which is a circle type image 
and text should be appear on curved(circumstance) side with proper rotation.

Thanks,
Kheta Ram Sansi





[flexcoders] Air Sub Application installing.

2010-07-29 Thread Wesley Acheson
Hi,
I've asked this question here but no joy. Anyone here know?

http://stackoverflow.com/questions/3275746/air-sub-applications

--

Hi Is it possible for an Adobe Air application to install, upgrade and
execute other Adobe-Air files.

The basic use case is for a launcher application. It launches and manages
other applications at user request, however doesn't need to install the
runtimes until such a point as the user intends to execute it.

*EDIT:* A good starting point may be in this question
http://stackoverflow.com/questions/2294091/air-app-that-loads-and-runs-existing-air-swf

*EDIT* I'm going to cross post this to flexcoders though I'm not really
happy with doing it.