[flexcoders] Re: login form

2009-09-26 Thread varsha.nadig
--- In flexcoders@yahoogroups.com, "Gopi"  wrote:
>
> I can give you a solution, but i am not sure this is the beat one out.
> 
> 
> 
> 1. Create a instance of the MXML should be loaded like this in the checkuser()
> 
>  var userform:UserForm = new UserForm();
>var myCan:Canvas = new Canvas();   
>   parentApplication.removeAllChildren();
> myCan.addChild(userform);
> parentApplication.addChild(myCan); 
> 
> Here the UserForm is the MXML to be loaded after clicking the button 
> "Register".
> 
> Let me know the result after your try.
>
thanks Gopi..
i hav used ViewState to switch between flex components.
this works but am not sure if its the right way to do it.
m doing a project on Online Shopping using flex..
so thts why i wnt to ask this



RE: [flexcoders] Is the drop indicator for AdvancedDataGrid customizable?

2009-09-26 Thread Alex Harui
Sorry, looks like you already tried that.  Not sure why it didn't work.  It is 
accessible via an mx_internal variable and created in the showDropFeedback 
method.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Saturday, September 26, 2009 11:22 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Is the drop indicator for AdvancedDataGrid 
customizable?


Try dropIndicatorSkin

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of jeffreywhitsett
Sent: Friday, September 25, 2009 10:02 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Is the drop indicator for AdvancedDataGrid customizable?



Is there a way to access the AdvancedDataGrid drop indicator, or to create a 
custom dropIndicatorSkin and add it to the ADG? I know this can be done with a 
List control, but it doesn't seem to work with an ADG.



RE: [flexcoders] Is the drop indicator for AdvancedDataGrid customizable?

2009-09-26 Thread Alex Harui
Try dropIndicatorSkin

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of jeffreywhitsett
Sent: Friday, September 25, 2009 10:02 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Is the drop indicator for AdvancedDataGrid customizable?



Is there a way to access the AdvancedDataGrid drop indicator, or to create a 
custom dropIndicatorSkin and add it to the ADG? I know this can be done with a 
List control, but it doesn't seem to work with an ADG.



RE: [flexcoders] Sorting XML

2009-09-26 Thread Tracy Spratt
I just created a test app and the sort DOES work with tags.  I pasted the
sample app below:


http://www.adobe.com/2006/mxml"; 
layout="horizontal" horizontalAlign="left">
  

  
  

 


  

  
  

  

  hello


  world

  
  

  apple


  pear

  

  


Tracy Spratt,
Lariat Services, development services available

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tracy Spratt
Sent: Saturday, September 26, 2009 10:48 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Sorting XML 

  
And did you just try “a” as the sort field?  I would expect that to work. 
If you were sorting on an attribute named “a”, the sort field would be @a. 
I am pretty sure the sortField cannot handle expressions.  
 
Tracy Spratt,
Lariat Services, development services available

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tracy Spratt
Sent: Saturday, September 26, 2009 10:38 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Sorting XML 
 
  
Use a custom sortFunction.  In that you will have references to the xml
nodes and you can use normal e4x expressions to traverse the child nodes,
then perform the sort logic.
 
Tracy Spratt,
Lariat Services, development services available

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of laurabakerstanley
Sent: Saturday, September 26, 2009 3:19 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Sorting XML 
 
  
Hi - 

I have structure that looks like this:



hello


world




apple


pear




I want to sort the 'records' i.e. those with a root of 'y' by one of the
tags in the their children.

I want to be able to create a sort field of y.a, but I cannot.

Does anybody know if I am banging my head against a brick wall here? Is
there away to seach against tage (I've seen lots of examples attributes) and
can I use 'complex field names' (with or without attributes)?

This stuff is all dynamic - I don't know what the structures might be, so
I'm really unkeen on using strong typing at all 

I am doing this first thing on a saturday, as my deadline was yesterday, but
I might just be able to save my bacon if I can deliver for monday!

Thanks you for takig the time to read.

Laura




RE: [flexcoders] Sorting XML

2009-09-26 Thread Tracy Spratt
Use a custom sortFunction.  In that you will have references to the xml
nodes and you can use normal e4x expressions to traverse the child nodes,
then perform the sort logic.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of laurabakerstanley
Sent: Saturday, September 26, 2009 3:19 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Sorting XML 

 

  

Hi - 

I have structure that looks like this:



hello


world




apple


pear




I want to sort the 'records' i.e. those with a root of 'y' by one of the
tags in the their children.

I want to be able to create a sort field of y.a, but I cannot.

Does anybody know if I am banging my head against a brick wall here? Is
there away to seach against tage (I've seen lots of examples attributes) and
can I use 'complex field names' (with or without attributes)?

This stuff is all dynamic - I don't know what the structures might be, so
I'm really unkeen on using strong typing at all 

I am doing this first thing on a saturday, as my deadline was yesterday, but
I might just be able to save my bacon if I can deliver for monday!

Thanks you for takig the time to read.

Laura





RE: [flexcoders] XMLLIst += operator problem

2009-09-26 Thread Tracy Spratt
Hmm, it is acting like the XMLList variable is being passed as a value and
not a reference. 

 

I can think of at least three other ways to do this. 

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Breizo
Sent: Friday, September 25, 2009 10:00 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] XMLLIst += operator problem

 

  


Hi,
Trying to do a simple element add to a XMLList but running into basic
problems.
Has anyone already fixed this?

When I run the example, I get:





when I would expect 






Any idea?

Thanks


http://www.adobe. 
com/2006/mxml" layout="absolute"
applicationComplete="init();">


-- 
View this message in context: http://www.nabble.
 com/XMLLIst-%2B%3D-operator-problem-tp25577790p25577790.html
Sent from the FlexCoders mailing list archive at Nabble.com.





[flexcoders] Re: DataGrid CheckBox itemRenderer/editor not updating dataProvider properly

2009-09-26 Thread Greg Lafrance
Its too early in the morning. I mean it has a CheckBox, not a ComboBox.

--- In flexcoders@yahoogroups.com, "Greg Lafrance"  wrote:
>
> Actually I mean listening on the ADG itemEditEnd event does not work.
> 
> --- In flexcoders@yahoogroups.com, "Greg Lafrance"  wrote:
> >
> > I have a DataGrid with one column using a ComboBox as the itemRenderer. The 
> > column is editable but if you trace the dataProvider, the changes lag 
> > behind by one. So uncheck two row's ComboBox and the dataProvider only 
> > shows one row's data updated.
> > 
> > Listening on the ADG editend or CheckBox change functions doesn't work as 
> > it seems the dataprovider gets updated too late.
> > 
> > Any ideas?
> >
>




[flexcoders] The processing instruction target matching "[xX][mM][lL]" is not allowed.

2009-09-26 Thread sanjaypmg
Hi All,

I am using Flex Builder 3.

When I create a new project using J2EE & LCDS and compile the code without 
doing anything in MXML file. 

It gives the following error in Problems panel:

The processing instruction target matching "[xX][mM][lL]" is not allowed.

Code is::


http://www.adobe.com/2006/mxml"; layout="absolute">



I am trying to use BLAZEDS.

Kindly suggest.

Thanks,
Sanjay Sharma



[flexcoders] ADDED: The processing instruction target matching "[xX][mM][lL]" is not allowed.

2009-09-26 Thread sanjaypmg
The exact error is:

Configuration error encountered on line 1, column 7: 'The processing 
instruction target matching "[xX][mM][lL]" is not allowed.'

--- In flexcoders@yahoogroups.com, "sanjaypmg"  wrote:
>
> Hi All,
> 
> I am using Flex Builder 3.
> 
> When I create a new project using J2EE & LCDS and compile the code without 
> doing anything in MXML file. 
> 
> It gives the following error in Problems panel:
> 
> The processing instruction target matching "[xX][mM][lL]" is not allowed.
> 
> Code is::
> 
> 
> http://www.adobe.com/2006/mxml"; layout="absolute">
>   
> 
> 
> I am trying to use BLAZEDS.
> 
> Kindly suggest.
> 
> Thanks,
> Sanjay Sharma
>




[flexcoders] DataGrid ComboBox itemRenderer/editor not updating dataProvider properly

2009-09-26 Thread Greg Lafrance
I have a DataGrid with one column using a ComboBox as the itemRenderer. The 
column is editable but if you trace the dataProvider, the changes lag behind by 
one. So uncheck two row's ComboBox and the dataProvider only shows one row's 
data updated.

Listening on the ADG editend or CheckBox change functions doesn't work as it 
seems the dataprovider gets updated too late.

Any ideas?




[flexcoders] Re: DataGrid ComboBox itemRenderer/editor not updating dataProvider properly

2009-09-26 Thread Greg Lafrance
Actually I mean listening on the ADG itemEditEnd event does not work.

--- In flexcoders@yahoogroups.com, "Greg Lafrance"  wrote:
>
> I have a DataGrid with one column using a ComboBox as the itemRenderer. The 
> column is editable but if you trace the dataProvider, the changes lag behind 
> by one. So uncheck two row's ComboBox and the dataProvider only shows one 
> row's data updated.
> 
> Listening on the ADG editend or CheckBox change functions doesn't work as it 
> seems the dataprovider gets updated too late.
> 
> Any ideas?
>




[flexcoders] Sorting XML

2009-09-26 Thread laurabakerstanley
Hi - 

I have  structure that looks like this:

  

 hello


 world

  
 

 apple


 pear

  


I want to sort the 'records' i.e. those with a root of 'y' by one of the tags 
in the their children.

I want to be able to create a sort field of y.a, but I cannot.

Does anybody know if I am banging my head against a brick wall here? Is there 
away to seach against tage (I've seen lots of examples attributes) and can I 
use 'complex field names' (with or without attributes)?

This stuff is all dynamic - I don't know what the structures might be, so I'm 
really unkeen on using strong typing at all 

I am doing this first thing on a saturday, as my deadline was yesterday, but I 
might just be able to save my bacon if I can deliver for monday!

Thanks you for takig the time to read.

Laura



Re: [flexcoders] openGL overlayed on Flash

2009-09-26 Thread Ian Thomas
Try calling the updateAfterEvent() method of the MouseEvent you're
using to track the mouse (probably in MOUSE_MOVE, I'm guessing).

e.g.

public function onMouseMove(ev:MouseEvent):void
{
  _myCursor.x = stage.mouseX;
  _myCursor.y = stage.mouseY;
  ev.updateAfterEvent();
}

HTH,
Ian

On Sat, Sep 26, 2009 at 12:02 AM, etaiweininger  wrote:
>
>
>
> Hello,
>
> Does anyone know how to overlay openGL on top of an Adobe AIR application? I 
> have an animated cursor and I need it to refresh much faster than the Flash 
> refresh rate. If I try to increase the global refresh rate, animation is way 
> too choppy to support my cursor. Any thoughts?
>
> Thanks,
> Etai
>
> 


Re: [flexcoders] invisible UIComponent

2009-09-26 Thread Paul Andrews
cholid cholid wrote:
>
>
> Hi all
> i've got new question
> any one know how to make UIComponent invisible?
> but it still can execute
> Thanks
> cholid.r
>
>
Check out the visible and alpha properties..


RE: [flexcoders] Sorting XML

2009-09-26 Thread Tracy Spratt
And did you just try "a" as the sort field?  I would expect that to work.
If you were sorting on an attribute named "a", the sort field would be @a.
I am pretty sure the sortField cannot handle expressions.  

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tracy Spratt
Sent: Saturday, September 26, 2009 10:38 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Sorting XML 

 

  

Use a custom sortFunction.  In that you will have references to the xml
nodes and you can use normal e4x expressions to traverse the child nodes,
then perform the sort logic.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of laurabakerstanley
Sent: Saturday, September 26, 2009 3:19 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Sorting XML 

 

  

Hi - 

I have structure that looks like this:



hello


world




apple


pear




I want to sort the 'records' i.e. those with a root of 'y' by one of the
tags in the their children.

I want to be able to create a sort field of y.a, but I cannot.

Does anybody know if I am banging my head against a brick wall here? Is
there away to seach against tage (I've seen lots of examples attributes) and
can I use 'complex field names' (with or without attributes)?

This stuff is all dynamic - I don't know what the structures might be, so
I'm really unkeen on using strong typing at all 

I am doing this first thing on a saturday, as my deadline was yesterday, but
I might just be able to save my bacon if I can deliver for monday!

Thanks you for takig the time to read.

Laura





RE: [flexcoders] Re: DataGrid CheckBox itemRenderer/editor not updating dataProvider properly

2009-09-26 Thread Tracy Spratt
I'd suggest not using the built-in editable functionality and do the
dataProvider update in the renderer itself.  If you use the collection API
or call itemUpdated(), the collection should dispatch all the necessary
events to sync up the UI.

 

Alex Harui has a checkbox renderer example on his blog, yo might look to see
haw he does it.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Greg Lafrance
Sent: Saturday, September 26, 2009 9:24 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: DataGrid CheckBox itemRenderer/editor not updating
dataProvider properly

 

  

Its too early in the morning. I mean it has a CheckBox, not a ComboBox.

--- In flexcod...@yahoogro  ups.com,
"Greg Lafrance"  wrote:
>
> Actually I mean listening on the ADG itemEditEnd event does not work.
> 
> --- In flexcod...@yahoogro  ups.com,
"Greg Lafrance"  wrote:
> >
> > I have a DataGrid with one column using a ComboBox as the itemRenderer.
The column is editable but if you trace the dataProvider, the changes lag
behind by one. So uncheck two row's ComboBox and the dataProvider only shows
one row's data updated.
> > 
> > Listening on the ADG editend or CheckBox change functions doesn't work
as it seems the dataprovider gets updated too late.
> > 
> > Any ideas?
> >
>