Re: [flexcoders] RadioButton as DataGrid item editor

2010-06-24 Thread Akshar Kaul
can you share the code.
Akshar Kaul


On Thu, Jun 24, 2010 at 01:26, Dave Glasser dglas...@pobox.com wrote:



 It seems like it should be simple, but it's a nightmare.

 I'm using Flex 3.3.

 The items in my dataProvider have a Boolean property. I want only 1 item to
 have this property set to true, and all others set to false. So I use a
 RadioButton as the renderer and editor. Although the items initially only
 have 1 with the property set to true, all of the radio buttons initially
 appear as false. When I select one, the currently selected one deselects, as
 you would expect, but the setter on my item is never called.

 When I use a CheckBox instead of a RadioButton, it works as expected,
 without the exclusivity. I would be happy if I could get the RadioButton to
 behave like a checkbox, and implement the exclusivity myself, but that's
 been an exercise in futility.

 Is what I'm trying to do possible? Am I missing something?
  



RE: [flexcoders] Copying complex objects in ActionScript

2010-06-24 Thread Gregor Kiddie
IIRC, all the objects in the graph that you are trying to clone need to
have remote aliases if you want them to be created properly...



Re: [flexcoders] error code 1120: Access of undefined property

2010-06-24 Thread Tom Chiverton
On Thursday 24 Jun 2010 04:26:00 you wrote:
 import myComponents.MyLoginForm;

Did you create this file too ?

-- 
Tom Chiverton
Helping to carefully fashion high-end real-time applications as part of the IT 
team of the year 2010, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

[flexcoders] Re: setting the border thickness on a Spark mx.controls.VBox ?

2010-06-24 Thread bhaq1972
Or you might want click the Use Flex 3 compatibility mode checkbox

under properties / compiler



--- In flexcoders@yahoogroups.com, Peter DeHaan pdeh...@... wrote:

 If you're using Flex 4, I'd probably use the s:BorderContainer instead. It 
 gives you a lot better control over the border settings.
 
 Peter
 
 
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of Nick Middleweek
 Sent: Wednesday, June 23, 2010 12:15 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] setting the border thickness on a Spark 
 mx.controls.VBox ?
 
 
 
 Hey Alex,
 
 I had my Flex 4 project set to use both Halo and Spark. I was using 
 mx.controls.VBox but couldn't set the borderThickness.
 
 I ended up switching project to Flex 3.5 SDK and just sticking with 
 mx.controls... so I've got round it but it'd be handy to know how to set a 
 borderThickness on a VBox when using Spark + Halo under SDK v4...
 
 
 Is it possible?
 
 
 Cheers,
 Nick
 
 
 On 23 June 2010 17:07, Alex Harui aha...@...mailto:aha...@... wrote:
 
 
 Which theme?
 
 
 
 On 6/22/10 3:24 PM, Nick Middleweek n...@...http://n...@... wrote:
 
 
 
 
 
 Hi,
 
 Sounds a bit contradictory - Spark and mx.controls but I'm using Flex 4 but 
 working on some Flex 3 code and can't update to Spark at the moment. I'm 
 struggling to find out how to set the border thickness of my VBox to 10.
 
 Has anyone acheived this ?
 
 
 Thanks,
 Nick
 
 
 
 
 
 --
 Alex Harui
 Flex SDK Team
 Adobe System, Inc.
 http://blogs.adobe.com/aharui
 
 
 
 --
 Sent by Nick Middleweek ( { email: n...@...mailto:n...@..., mobile: 
 +44(0)774 035 5424, blog: http://blog.middleweek.co.uk } );





Re: [flexcoders] Copying complex objects in ActionScript

2010-06-24 Thread Oleg Sivokon
I would rather implement a clone() function in the objects I want to clone
(just like Event.clone() or XML.copy() or BitmapData.clone()). This gives
you most control of what / how they are cloned with less side effects.


[flexcoders] Re: Text Effect in Flex+Moving from Bottom to Top

2010-06-24 Thread valdhor
You could use an auto scrolling Text Area. Something like...

http://blog.flexexamples.com/2008/11/27/auto-scrolling-a-textarea-control-in-flex/
http://blog.flexexamples.com/2008/08/26/programmatically-scrolling-a-textarea-control-in-flex/

You may need to modify those examples to get the animation you want and to move 
back to the top etc. I leave that as an exercise for the reader.

--- In flexcoders@yahoogroups.com, Ganesh Suyampirakasam 
ganesh.suyampiraka...@... wrote:

 Hi all
 Please go through this site http://www.annauniv.edu/
 In Results and Schedules How the text is going from bottom to top inside a 
 list or canvas.
 I need similar thing hapened in flex.
 Please let me know what i have to do in flex.Any samples?Please help me out.
 Ganesh





[flexcoders] Re: Is possible to display any Collection within another Collection using anyone fle

2010-06-24 Thread valdhor
This looks like the perfect use case for an Advanced Datagrid with a Grouping 
Collection.

--- In flexcoders@yahoogroups.com, Jesus Saad jesus.s...@... wrote:

 
 Is possible to display any Collection within another Collection using
 anyone flex component?
 
 Ex.: I have a ArrayCollection’PersonsWO and my class PersonsWO
 has the following property: private var _usersWO:ArrayCollection;
 And I want to display these data in Datagrid like that:
 
 Person
 
 User
 
 
 
 Jesus
 
 Jesus.saad
 
 Jesus
 
 Jesus.adm
 
 Jesuzz
 
 John
 
 John
 
 Example
 
 example
 
 
 Following part of my PersonsWO class:
 
 
 
 package br.com.arquimagem.AccessFlex.WO{
 
 import mx.collections.ArrayCollection;
 
 
 
 public class PersonsWO
 
 {
 
 private var _id:int;
 
 private var _type:String;
 
 private var _name:String;
 
 private var _legalName:String;
 
 private var _stateRegistration:String;
 
 private var _doc:String;
 
 private var _cpfOuCnpj:String;
 
 private var _remark:String;
 
 private var _clazz:String;
 
 private var _status:String;
 
 private var _usersWO:ArrayCollection;
 
 ...
 
 
 
 Does anyone know how to do that?





[flexcoders] Re: Is possible to display any Collection within another Collection using anyone fle

2010-06-24 Thread Jesus Saad
Hummm, but how can I iterate my usersWO subcollection in Datagrid to put these 
items in multiline label? Do you have an idea?

--- In flexcoders@yahoogroups.com, tntomek tnto...@... wrote:

 You can use a multiline label Function to display your text.
 
 In your label function simply append \n as you loop through your sub 
 collection
 
 http://tomek.me
 
 --- In flexcoders@yahoogroups.com, Jesus Saad jesus.saad@ wrote:
 
  
  Is possible to display any Collection within another Collection using
  anyone flex component?
  
  Ex.: I have a ArrayCollection’PersonsWO and my class PersonsWO
  has the following property: private var _usersWO:ArrayCollection;
  And I want to display these data in Datagrid like that:
  
  Person
  
  User
  
  
  
  Jesus
  
  Jesus.saad
  
  Jesus
  
  Jesus.adm
  
  Jesuzz
  
  John
  
  John
  
  Example
  
  example
  
  
  Following part of my PersonsWO class:
  
  
  
  package br.com.arquimagem.AccessFlex.WO{
  
  import mx.collections.ArrayCollection;
  
  
  
  public class PersonsWO
  
  {
  
  private var _id:int;
  
  private var _type:String;
  
  private var _name:String;
  
  private var _legalName:String;
  
  private var _stateRegistration:String;
  
  private var _doc:String;
  
  private var _cpfOuCnpj:String;
  
  private var _remark:String;
  
  private var _clazz:String;
  
  private var _status:String;
  
  private var _usersWO:ArrayCollection;
  
  ...
  
  
  
  Does anyone know how to do that?
 





[flexcoders] Re: Is possible to display any Collection within another Collection using anyone fle

2010-06-24 Thread Jesus Saad
Hi, i'm sorry, but I can`t understand this solution for my case... Can you 
explain better how can I display the items in subcollection?

--- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote:

 This looks like the perfect use case for an Advanced Datagrid with a Grouping 
 Collection.
 
 --- In flexcoders@yahoogroups.com, Jesus Saad jesus.saad@ wrote:
 
  
  Is possible to display any Collection within another Collection using
  anyone flex component?
  
  Ex.: I have a ArrayCollection’PersonsWO and my class PersonsWO
  has the following property: private var _usersWO:ArrayCollection;
  And I want to display these data in Datagrid like that:
  
  Person
  
  User
  
  
  
  Jesus
  
  Jesus.saad
  
  Jesus
  
  Jesus.adm
  
  Jesuzz
  
  John
  
  John
  
  Example
  
  example
  
  
  Following part of my PersonsWO class:
  
  
  
  package br.com.arquimagem.AccessFlex.WO{
  
  import mx.collections.ArrayCollection;
  
  
  
  public class PersonsWO
  
  {
  
  private var _id:int;
  
  private var _type:String;
  
  private var _name:String;
  
  private var _legalName:String;
  
  private var _stateRegistration:String;
  
  private var _doc:String;
  
  private var _cpfOuCnpj:String;
  
  private var _remark:String;
  
  private var _clazz:String;
  
  private var _status:String;
  
  private var _usersWO:ArrayCollection;
  
  ...
  
  
  
  Does anyone know how to do that?
 





[flexcoders] unloadable Springactionscript Modules

2010-06-24 Thread Christoph Guse

Hi List,

I have a big problem in my current application development. I want to 
create a modular app which is able to load modules. As a special feature 
the app shall have a SpringActionscript application context, each module 
has an own SpringActionscript application context and the parent context 
is the app's context.


I managed to load modules with it's contexts but if I profile my 
application I can see the modules that my modules with a 
SpringActionscript application context are never unloaded. If I load the 
module again the old instance is never thrown away and after n loads I 
have n instances of the module in the memory.


What I need is:

   * unloadable modules
   * SpringActionscript in loader application and modules (with parent
 context)
   * resource bundles in the modules

I searched the web and found that is not trivial to create modules which 
are unloadable (seems to be the same with subapplications). In the book 
Enterprise Development with Flex there is an approach how to create 
unloadable modules but in the example SpringActionscript is not 
mentioned. My adoption to a SpringActionscript was not successfull.


Is it possible to implement an application in Flex 4 which fits my needs?

Any help is appreciated,
Christoph


[flexcoders] Re: Yahoo TimeInput component as Item Editor

2010-06-24 Thread Amy


--- In flexcoders@yahoogroups.com, Matthew fume...@... wrote:

 After more testing, I have an update:
 
 I have fixed it and created a new problem. I removed a keyUp event handler, 
 which formats the text value of the TimeInput and sets my editorDataField 
 correctly. Now I only listen for change and updateComplete events. Now, when 
 I delete hours, minutes, or seconds and then move outside the itemEditor, it 
 reverts to zero: Perfect.
 
 However, I now find that if I make a change in the TimeInput and click 
 outside (or tab or press enter), the value doesn't stick. It goes back to the 
 old value. However, if I click within the TimeInput after making a change, it 
 does. 
 
 So, how does removing focus after making a change make me lose my value? 

Does TimeInput have a valueCommit event?



[flexcoders] Re: RadioButton as DataGrid item editor

2010-06-24 Thread Amy


--- In flexcoders@yahoogroups.com, Dave Glasser dglas...@... wrote:

 It seems like it should be simple, but it's a nightmare.
 
 I'm using Flex 3.3.
 
 The items in my dataProvider have a Boolean property. I want only 1 item to 
 have this property set to true, and all others set to false. So I use a 
 RadioButton as the renderer and editor. Although the items initially only 
 have 1 with the property set to true, all of the radio buttons initially 
 appear as false. When I select one, the currently selected one deselects, as 
 you would expect, but the setter on my item is never called.
 
 When I use a CheckBox instead of a RadioButton, it works as expected, without 
 the exclusivity. I would be happy if I could get the RadioButton to behave 
 like a checkbox, and implement the exclusivity myself, but that's been an 
 exercise in futility.
 
 Is what I'm trying to do possible? Am I missing something?


What logic are you using to transfer the value of the RadioButtonGroup to the 
appropriate properties?

Amy



[flexcoders] Re: Is possible to display any Collection within another Collection using anyone fle

2010-06-24 Thread valdhor
Do a google search for flex advanceddatagrid example and you will find a lot 
of examples.

--- In flexcoders@yahoogroups.com, Jesus Saad jesus.s...@... wrote:

 Hi, i'm sorry, but I can`t understand this solution for my case... Can you 
 explain better how can I display the items in subcollection?
 
 --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote:
 
  This looks like the perfect use case for an Advanced Datagrid with a 
  Grouping Collection.
  
  --- In flexcoders@yahoogroups.com, Jesus Saad jesus.saad@ wrote:
  
   
   Is possible to display any Collection within another Collection using
   anyone flex component?
   
   Ex.: I have a ArrayCollection’PersonsWO and my class PersonsWO
   has the following property: private var _usersWO:ArrayCollection;
   And I want to display these data in Datagrid like that:
   
   Person
   
   User
   
   
   
   Jesus
   
   Jesus.saad
   
   Jesus
   
   Jesus.adm
   
   Jesuzz
   
   John
   
   John
   
   Example
   
   example
   
   
   Following part of my PersonsWO class:
   
   
   
   package br.com.arquimagem.AccessFlex.WO{
   
   import mx.collections.ArrayCollection;
   
   
   
   public class PersonsWO
   
   {
   
   private var _id:int;
   
   private var _type:String;
   
   private var _name:String;
   
   private var _legalName:String;
   
   private var _stateRegistration:String;
   
   private var _doc:String;
   
   private var _cpfOuCnpj:String;
   
   private var _remark:String;
   
   private var _clazz:String;
   
   private var _status:String;
   
   private var _usersWO:ArrayCollection;
   
   ...
   
   
   
   Does anyone know how to do that?
  
 





[flexcoders] Scrolling a Popup in IE leads to UI distortion

2010-06-24 Thread Latha
Hi Flex Experts,

I am Latha, I am relatively new to the group.
I need your help in fixing a problem in the application I am working on.

We have a pop-up and it may or may not have vertical scroll bars.
When there is a vertical scroll and we scroll fast, the UI gets distorted.
Some parts of it becomes invisible; some control merges with the next control 
and so on..

Basically the Pop-up contains a form and I have not used any ItemRenderer in it.
This problem is seen only in IE, not in Firefox

Any help/suggestion in this matter would be greatly appreciated.

Thanks
Latha



  

Re: [flexcoders] Re: RadioButton as DataGrid item editor

2010-06-24 Thread Dave Glasser
--- On Thu, 6/24/10, Amy amyblankens...@bellsouth.net wrote:

 
 What logic are you using to transfer the value of the
 RadioButtonGroup to the appropriate properties?

None, actually. I would expect the DataGrid to handle that, since it is 
creating the RadioButtonGroup and my code would not have easy access to it. 
Plus, I would expect that behavior to be part of the IListItemRenderer 
contract, which RadioButton implements.

If you know a way to make it work, I would be very grateful if would share it.


[flexcoders] Flex 4 Loading Run time CSS

2010-06-24 Thread method_air
Is it possible to load run time CSS with Flex 4/Spark. Loading Flex 3 style 
modules with the StyleManager is throwing an error, is there a Flex 4 way to do 
it?

Thanks,

Philip



[flexcoders] ItemEditor | maxCharacters

2010-06-24 Thread ilikeflex
Hi

I have datagrid and i am using the default itemeditor. I want to limit the 
charatcres the user can enter.

I have implemented itemEditBegin method on datagrid.

private function onitemEditBegin(event:DataGridEvent):void
{
var datGrid:CheckBoxDataGrid=(event.currentTarget as CheckBoxDataGrid);
var customDataGridColumn:CustomDataGridColumn = 
datGrid.columns[event.columnIndex] as CustomDataGridColumn;
var field:String=datGrid.columns[event.columnIndex].dataField;
if(field == prlName)
{
var editor:TextInput = datGrid.itemEditorInstance as TextInput;
editor.maxChars = 5;
}

}

I always get editor as null... so i am not able to set maxChars on TextInput. 
How to do this..

Any pointers.

Thanks
ilikeflex



[flexcoders] Steps to get Flex 3.5 application to run in Android emulator?

2010-06-24 Thread Greg Hess
Hi All,

I have a non-Air Flex 3.5 application that I would like to test on the
Android emulator. I have joined the prerelease program however the
instructions tell me to install AIR extension into CS5 or Flex 4 and I have
neither.

Do I need to upgrade to Flex 4 or can I do this with Flex 3?

Is it true that only ActionSript applications can be run on the device and
any application that use components from the Flex SDK will not?

I have much to learn, hope this gets me started :-).

Any help much appreciated,

Greg


[flexcoders] Re: Is possible to display any Collection within another Collection using anyone fle

2010-06-24 Thread tntomek
Just to implement the column labelFunction and check out the SDK documentation. 
When you debug it will become apparent


--- In flexcoders@yahoogroups.com, Jesus Saad jesus.s...@... wrote:

 Hummm, but how can I iterate my usersWO subcollection in Datagrid to put 
 these items in multiline label? Do you have an idea?
 
 --- In flexcoders@yahoogroups.com, tntomek tntomek@ wrote:
 
  You can use a multiline label Function to display your text.
  
  In your label function simply append \n as you loop through your sub 
  collection
  
  http://tomek.me
  
  --- In flexcoders@yahoogroups.com, Jesus Saad jesus.saad@ wrote:
  
   
   Is possible to display any Collection within another Collection using
   anyone flex component?
   
   Ex.: I have a ArrayCollection’PersonsWO and my class PersonsWO
   has the following property: private var _usersWO:ArrayCollection;
   And I want to display these data in Datagrid like that:
   
   Person
   
   User
   
   
   
   Jesus
   
   Jesus.saad
   
   Jesus
   
   Jesus.adm
   
   Jesuzz
   
   John
   
   John
   
   Example
   
   example
   
   
   Following part of my PersonsWO class:
   
   
   
   package br.com.arquimagem.AccessFlex.WO{
   
   import mx.collections.ArrayCollection;
   
   
   
   public class PersonsWO
   
   {
   
   private var _id:int;
   
   private var _type:String;
   
   private var _name:String;
   
   private var _legalName:String;
   
   private var _stateRegistration:String;
   
   private var _doc:String;
   
   private var _cpfOuCnpj:String;
   
   private var _remark:String;
   
   private var _clazz:String;
   
   private var _status:String;
   
   private var _usersWO:ArrayCollection;
   
   ...
   
   
   
   Does anyone know how to do that?
  
 





Re: [flexcoders] Flex 4 Loading Run time CSS

2010-06-24 Thread Alex Harui
All modules must be on the same version.  Flex 4 cannot load CSS style modules 
compiled with Flex 3.  Recompile the modules in Flex 4.


On 6/24/10 12:00 PM, method_air loudj...@hotmail.com wrote:






Is it possible to load run time CSS with Flex 4/Spark. Loading Flex 3 style 
modules with the StyleManager is throwing an error, is there a Flex 4 way to do 
it?

Thanks,

Philip






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


Re: [flexcoders] ItemEditor | maxCharacters

2010-06-24 Thread Alex Harui
Editor is created after itemEditBegin.  The recommended practice is to subclass 
the itemEditor.

Maybe cheat by using focusIn event.


On 6/24/10 12:36 PM, ilikeflex ilikef...@yahoo.com wrote:






Hi

I have datagrid and i am using the default itemeditor. I want to limit the 
charatcres the user can enter.

I have implemented itemEditBegin method on datagrid.

private function onitemEditBegin(event:DataGridEvent):void
{
var datGrid:CheckBoxDataGrid=(event.currentTarget as CheckBoxDataGrid);
var customDataGridColumn:CustomDataGridColumn = 
datGrid.columns[event.columnIndex] as CustomDataGridColumn;
var field:String=datGrid.columns[event.columnIndex].dataField;
if(field == prlName)
{
var editor:TextInput = datGrid.itemEditorInstance as TextInput;
editor.maxChars = 5;
}

}

I always get editor as null... so i am not able to set maxChars on TextInput. 
How to do this..

Any pointers.

Thanks
ilikeflex






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