Flex memory issues.

2005-02-25 Thread Mercer, Dustin
Title: Flex memory issues.






I have avery large flex app I am running into some random crashes and heavy memory consumption. Memory consumption on Standard Flash Player (not Flash Debug Player) has been reaching 150 to 170 megs. I need to know what I can do to manage this. I have seen some methods available to the UIObject, mainly destroyObject, and I got this to remove objects that were no longer needed, but I cannot find a good way to re-instantiate them when they are needed again. This could be a really bad approach, but I am afraid I may be pushing some limits on Flex that is forcing me down this route. I am open to any suggestions. If any more information is needed, I would be happy to provide. Thanksin advance!

Dustin Mercer




Dynamic URL for HTTPService

2005-02-25 Thread digital_eyezed

I have a drop down, populated and want to use the change event to 
populate the httpservice url parameter which will also fire off 
another httpservice.

I have this:

mx:Script
![CDATA[
var nameOf = ;
function custChange(event)
{
nameOf = cusBox.data;
srv.send();
}
]]
/mx:Script
mx:HTTPService id=srv url=installation.jsp?id='{nameOf}'/
mx:HTTPService id=cust url=cus.jsp/
mx:HBox
mx:VBox
mx:ComboBox id=cusBox 
dataProvider={cust.result.list.customer} change=custChange
(event)/mx:ComboBox
/mx:VBox
mx:Panel title='{nameOf}' Installation List width=515 
height=350
mx:DataGrid id=dg dataProvider={srv.result.list.installation} 
width=500 height=255
mx:columns
mx:Array
mx:DataGridColumn columnName=postcode 
headerText=Post Code width=100/
mx:DataGridColumn columnName=manufacturer 
headerText=Manufacturer width=100/
mx:DataGridColumn columnName=model 
headerText=Model width=100/
mx:DataGridColumn columnName=location 
headerText=Location width=200/
/mx:Array
/mx:columns
/mx:DataGrid

How can I use the data element of the combobox to properly populate 
the httpservice parameter and fire off the request and also use it 
to populate the Title of the Panel??

Thanks in Advance.

PS: Stupid Question, but if my data returned in the httpService has 
some silly characters in the nodes such as '' it also fails. Why?







cursor priority problems

2005-02-25 Thread Andrew Spaulding

Hi all,

I have noticed that when I load a flex app into another using the
Loader control, when the cursor needs to be changed it appears blank,
almost as though it is appearing behind the loader and on the root
application.

For example the loaded app has a HDividedBox and when i place the
mouse over the resize bar it disappears! I also have this same
behaviour in my custom component, even when setting the cursor to the
highest priority.

Is there a workaround for this?

Andrew.







RE: [flexcoders] Populating a Combobox from an HTTPService

2005-02-25 Thread Tracy Spratt
You may not be at the right level of your result object.

To debug, create a handler function and call it from the result event of
the HTTPService:
mx:HTTPService result=onResult(event)

Private function onResult(oEvent:Object):Void{
trace(oEvent.result.list.customer.length) //or alert
}
You should see the number of items returned. If you do not, you don't
have the data structure you think. The datagrid needs an array, where
the elements are the rows, and contain an object with properties(in your
case) label and data.

Try: oEvent.result.list.length
Enable debuggin of the http service proxy in the flex-config file,
observe what is being returned.

Or use the netConnectionDebugger or FlexBuilder network monitor to see
what your data structure is.

Tracy



-Original Message-
From: digital_eyezed [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 24, 2005 6:24 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Populating a Combobox from an HTTPService



Hi,

I have an HTTP service with a returned dataprovider. I want to 
populate a combobox with this dataprovider. The tags within the 
returned xml in the dataprovider are label and data.

I tried this:

mx:HTTPService id=cust url=cus.jsp/

mx:VBox
mx:ComboBox id=cusBox 
dataProvider={cust.result.list.customer}/mx:ComboBox
/mx:VBox

The box drops down, but it has no data!

Thanks in advance.

Iain





 
Yahoo! Groups Links



 









RE: [flexcoders] Dynamic URL for HTTPService

2005-02-25 Thread Tracy Spratt
I don't think you can bind in the query string like that. Instead you
will want to manipulate the request object:
var oRequest:Object = new Object({id:nameOf});
srv.send(oRequest);

There is a full example on www.cflex.net at the end of the beginner tips
section.
Tracy

-Original Message-
From: digital_eyezed [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 24, 2005 7:07 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Dynamic URL for HTTPService



I have a drop down, populated and want to use the change event to 
populate the httpservice url parameter which will also fire off 
another httpservice.

I have this:

mx:Script
![CDATA[
var nameOf = ;
function custChange(event)
{
nameOf = cusBox.data;
srv.send();
}
]]
/mx:Script
mx:HTTPService id=srv url=installation.jsp?id='{nameOf}'/
mx:HTTPService id=cust url=cus.jsp/
mx:HBox
mx:VBox
mx:ComboBox id=cusBox 
dataProvider={cust.result.list.customer} change=custChange
(event)/mx:ComboBox
/mx:VBox
mx:Panel title='{nameOf}' Installation List width=515 
height=350
mx:DataGrid id=dg dataProvider={srv.result.list.installation} 
width=500 height=255
mx:columns
mx:Array
mx:DataGridColumn columnName=postcode 
headerText=Post Code width=100/
mx:DataGridColumn columnName=manufacturer 
headerText=Manufacturer width=100/
mx:DataGridColumn columnName=model 
headerText=Model width=100/
mx:DataGridColumn columnName=location 
headerText=Location width=200/
/mx:Array
/mx:columns
/mx:DataGrid

How can I use the data element of the combobox to properly populate 
the httpservice parameter and fire off the request and also use it 
to populate the Title of the Panel??

Thanks in Advance.

PS: Stupid Question, but if my data returned in the httpService has 
some silly characters in the nodes such as '' it also fails. Why?





 
Yahoo! Groups Links



 









amfgateway

2005-02-25 Thread Wilfred LEUNG
Hi

I am tuning my applications at this moment.
When I check the temp files directory of the internet explorer, I found a file 
named amfgateway of size 300K. The amount appears to download eveytime the 
IE access the site.

I am trying to understand what this file is for and best if possible, trim this 
file in size.

See if anyone of you can help. Thanks

Wilfred





Binding attributes in Flex

2005-02-25 Thread deptquote

Is there a way to bind a value of the attributes

Those one are not working:
mx:NumberValidator field=valeur.nombre 
listener=chiffre maxValue={allo.enveloppe.valeur}/

mx:Label text=First Name color={envelope.text}/

This one is working:
mx:Label text=Maximum: {envelope.value}/

Our idea is to bind all data (labels,TextInputs, etc) to a XML file 
containing all the information (validation, style, etc) about those 
data.

or would it preferable to use ColdFusion to generate MXML files on 
the fly for such task?

Thanks







RE: [flexcoders] Flex memory issues.

2005-02-25 Thread Mercer, Dustin
Title: Flex memory issues.








Upon more investigation, my memory usage
seems to be stemming from my higher resolution. When I run the app in
1024*768 the memory consumption does not seem to exceed 110mb (high, but manageable
for the size of this app). When run in 1280*1024, them memory usage is increased
by 50mb or so. It looks like this is an issue with the graphics the
controls are rendering. Makes sense. Maybe I can get some help with
some good ideas on how to better manage this. Does anyone know how to
enable the Flash quality setting in Flex. I want to try to turn the quality
down to see what kind of memory results I get with that. I remember
seeing an article like this, just cant seem to find it. Thanks!



Dustin Mercer 











From: Mercer, Dustin 
Sent: Thursday, February 24,2005
4:11 PM
To: [EMAIL PROTECTED]
Subject: [flexcoders] Flex memory
issues.





I
have a very large flex app I am running into some random crashes and
heavy memory consumption. Memory consumption on Standard Flash Player
(not Flash Debug Player) has been reaching 150 to 170 megs. I need to
know what I can do to manage this. I have seen some methods
available to the UIObject, mainly destroyObject, and I got this to
remove
objects that were no longer needed, but I cannot find a good way to
re-instantiate them when they are needed again. This could be a really
bad approach, but I am afraid I may be pushing some limits on
Flex that is forcing me down this route. I am open to any
suggestions. If any more information is needed, I would be happy to
provide. Thanks in advance!

Dustin
Mercer











Small arrow on DividedBoxes for hidding container

2005-02-25 Thread deptquote

Is there any way we can add a small arrow icon over the scrolling 
icon given by the DividedBoxes? Similar to the ones we have on 
Dreamweaver to hide a window.

That would be great if that function could be added to Flex out of 
the box!

Thanks









RE: [flexcoders] Re: ComboBox color ?

2005-02-25 Thread Tracy Spratt
Well I used this and it works fine, but the color is purple, I want red,
and I am clueless how to set all those properties, even after I looked
in the docs.

Red offset?? What the heck is that?

I tried changing things at random and managed to blow away the down
arrow completely.

Will someone tell me what I need to do to get a red background? Right
now I'd take any shade!

Tracy

-Original Message-
From: r0main [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 18, 2005 8:59 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: ComboBox color ?



Yope, here it is, looks like:

class com.r0main.EnhancedComboBox extends mx.controls.ComboBox {
...
private function changeState() {
var colorTransform:Object = { ra: 70, rb: 0, ga: 70, gb: 0, ba:
100,
bb: 0, aa: 70, ab: 0};
var bg_color:Color = new Color(downArrow_mc);
bg_color.setTransform(colorTransform);
}

private function restoreState() {
var colorTransform:Object = { ra: 100, rb: 0, ga: 100, gb: 0,
ba:
100, bb: 0, aa: 100, ab: 0};
var bg_color:Color = new Color(downArrow_mc);
bg_color.setTransform(colorTransform);
}
...
}


r0main

--- In flexcoders@yahoogroups.com, Alistair McLeod [EMAIL PROTECTED]
wrote:
 Ah, I did see that movieclip but assumed that it was the down arrow
only, so
 didn't even bother checking it.
 
 If possible, it might be an idea if you could post your solution for
future
 reference for others.
 
 Cheers,
 
 Ali
 
 
 --
 Alistair McLeod
 Development Director
 iteration::two
 [EMAIL PROTECTED]
  
 Office: +44 (0)131 338 6108
 Mobile: +44 (0)7976 987252
  
 This e-mail and any associated attachments transmitted with it may
contain
 confidential information and must not be copied, or disclosed, or
used by
 anyone other than the intended recipient(s). If you are not the
intended
 recipient(s) please destroy this e-mail, and any copies of it,
immediately.
  
 Please also note that while software systems have been used to try
to ensure
 that this e-mail has been swept for viruses, iteration::two do not
accept
 responsibility for any damage or loss caused in respect of any viruses
 transmitted by the e-mail. Please ensure your own checks are carried
out
 before any attachments are opened.
  
 
 -Original Message-
 From: r0main [mailto:[EMAIL PROTECTED] 
 Sent: 18 January 2005 12:49
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: ComboBox color ?
 
 
 
 Thanks Alistair,
 using your idea I started to look at movieClips used by the ComboBox
 component, and found that downArrow_mc represents the whole closed
 uneditable box, ie using setTransform I can change the box color !
 
 Thanks a lot, r0main
 
 --- In flexcoders@yahoogroups.com, Alistair McLeod [EMAIL PROTECTED]
wrote:
  Hi r0main,
  
  Not really an answer, but perhaps a pointer for you (or MM) to
 investigate).
  If the combo box is editable, then backgroundColor can be set; as
 soon as
  editable is false, changing the style seems to have no effect. Eg,
try:
  
  ?xml version=1.0 encoding=utf-8? mx:Application 
  xmlns:mx=http://www.macromedia.com/2003/mxml;
  
  mx:ComboBox id=combo editable=true
backgroundColor=#ff
  dataProvider={ [ 'a', 'b' ] } /
  
  /mx:Application
  
  When I looked into this a bit last year, I played about with setting
 color
  styles on the combo box's textField property (the display part of
 the combo)
  and even text_mc (the physical TextInput exposed as textField), and
 although
  it works slightly differently, still doesn't do anything when the
 combo is
  not editable:
  
  ?xml version=1.0 encoding=utf-8? mx:Application 
  xmlns:mx=http://www.macromedia.com/2003/mxml;
  
  mx:ComboBox id=combo editable=true
  creationComplete=combo.textField.setStyle( 'backgroundColor',
 '#ff' );
  dataProvider={ [ 'a', 'b' ] } /
  
  /mx:Application
  
  The ability to set the background color wasn't really needed by
us, so 
  I didn't investigate long.
  
  Let us know if you get any further :)
  
  Ali
  
  
  --
  Alistair McLeod
  Development Director
  iteration::two
  [EMAIL PROTECTED]
   
  Office: +44 (0)131 338 6108
  Mobile: +44 (0)7976 987252
   
  This e-mail and any associated attachments transmitted with it may
 contain
  confidential information and must not be copied, or disclosed, or
 used by
  anyone other than the intended recipient(s). If you are not the 
  intended
  recipient(s) please destroy this e-mail, and any copies of it,
 immediately.
   
  Please also note that while software systems have been used to try
 to ensure
  that this e-mail has been swept for viruses, iteration::two do not
 accept
  responsibility for any damage or loss caused in respect of any
viruses 
  transmitted by the e-mail. Please ensure your own checks are carried

  out before any attachments are opened.
   
  
  -Original Message-
  From: r0main [mailto:[EMAIL PROTECTED]
  Sent: 18 January 2005 10:57
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] ComboBox color ?
  
  
  
  Hi,
  I'd like to change the main 

RE: [flexcoders] Re: ComboBox color ?

2005-02-25 Thread Tracy Spratt
Never mind, I made my changes a little more slowly and found my red!

-Original Message-
From: Tracy Spratt [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 24, 2005 11:06 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: ComboBox color ?


Well I used this and it works fine, but the color is purple, I want red,
and I am clueless how to set all those properties, even after I looked
in the docs.

Red offset?? What the heck is that?

I tried changing things at random and managed to blow away the down
arrow completely.

Will someone tell me what I need to do to get a red background? Right
now I'd take any shade!

Tracy

-Original Message-
From: r0main [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 18, 2005 8:59 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: ComboBox color ?



Yope, here it is, looks like:

class com.r0main.EnhancedComboBox extends mx.controls.ComboBox {
...
private function changeState() {
var colorTransform:Object = { ra: 70, rb: 0, ga: 70, gb: 0, ba:
100,
bb: 0, aa: 70, ab: 0};
var bg_color:Color = new Color(downArrow_mc);
bg_color.setTransform(colorTransform);
}

private function restoreState() {
var colorTransform:Object = { ra: 100, rb: 0, ga: 100, gb: 0,
ba:
100, bb: 0, aa: 100, ab: 0};
var bg_color:Color = new Color(downArrow_mc);
bg_color.setTransform(colorTransform);
}
...
}


r0main

--- In flexcoders@yahoogroups.com, Alistair McLeod [EMAIL PROTECTED]
wrote:
 Ah, I did see that movieclip but assumed that it was the down arrow
only, so
 didn't even bother checking it.
 
 If possible, it might be an idea if you could post your solution for
future
 reference for others.
 
 Cheers,
 
 Ali
 
 
 --
 Alistair McLeod
 Development Director
 iteration::two
 [EMAIL PROTECTED]
  
 Office: +44 (0)131 338 6108
 Mobile: +44 (0)7976 987252
  
 This e-mail and any associated attachments transmitted with it may
contain
 confidential information and must not be copied, or disclosed, or
used by
 anyone other than the intended recipient(s). If you are not the
intended
 recipient(s) please destroy this e-mail, and any copies of it,
immediately.
  
 Please also note that while software systems have been used to try
to ensure
 that this e-mail has been swept for viruses, iteration::two do not
accept
 responsibility for any damage or loss caused in respect of any viruses
 transmitted by the e-mail. Please ensure your own checks are carried
out
 before any attachments are opened.
  
 
 -Original Message-
 From: r0main [mailto:[EMAIL PROTECTED] 
 Sent: 18 January 2005 12:49
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: ComboBox color ?
 
 
 
 Thanks Alistair,
 using your idea I started to look at movieClips used by the ComboBox
 component, and found that downArrow_mc represents the whole closed
 uneditable box, ie using setTransform I can change the box color !
 
 Thanks a lot, r0main
 
 --- In flexcoders@yahoogroups.com, Alistair McLeod [EMAIL PROTECTED]
wrote:
  Hi r0main,
  
  Not really an answer, but perhaps a pointer for you (or MM) to
 investigate).
  If the combo box is editable, then backgroundColor can be set; as
 soon as
  editable is false, changing the style seems to have no effect. Eg,
try:
  
  ?xml version=1.0 encoding=utf-8? mx:Application 
  xmlns:mx=http://www.macromedia.com/2003/mxml;
  
  mx:ComboBox id=combo editable=true
backgroundColor=#ff
  dataProvider={ [ 'a', 'b' ] } /
  
  /mx:Application
  
  When I looked into this a bit last year, I played about with setting
 color
  styles on the combo box's textField property (the display part of
 the combo)
  and even text_mc (the physical TextInput exposed as textField), and
 although
  it works slightly differently, still doesn't do anything when the
 combo is
  not editable:
  
  ?xml version=1.0 encoding=utf-8? mx:Application 
  xmlns:mx=http://www.macromedia.com/2003/mxml;
  
  mx:ComboBox id=combo editable=true
  creationComplete=combo.textField.setStyle( 'backgroundColor',
 '#ff' );
  dataProvider={ [ 'a', 'b' ] } /
  
  /mx:Application
  
  The ability to set the background color wasn't really needed by
us, so 
  I didn't investigate long.
  
  Let us know if you get any further :)
  
  Ali
  
  
  --
  Alistair McLeod
  Development Director
  iteration::two
  [EMAIL PROTECTED]
   
  Office: +44 (0)131 338 6108
  Mobile: +44 (0)7976 987252
   
  This e-mail and any associated attachments transmitted with it may
 contain
  confidential information and must not be copied, or disclosed, or
 used by
  anyone other than the intended recipient(s). If you are not the 
  intended
  recipient(s) please destroy this e-mail, and any copies of it,
 immediately.
   
  Please also note that while software systems have been used to try
 to ensure
  that this e-mail has been swept for viruses, iteration::two do not
 accept
  responsibility for any damage or loss caused in respect of any
viruses 
  transmitted by the e-mail. Please ensure your own checks are carried

  

Re: [flexcoders] Dynamic URL for HTTPService

2005-02-25 Thread Jeff Steiner
Tracy is right, but there is an easier way.

Change your HTTPService tag to look like this:

mx:HTTPService id=srv url=installation.jsp
mx:request
ID{nameOf}/ID
/mx:request
/mx:HTTPService

You can still reference the srv ID from AS and call it elsewhere in your
app. But now - when you call srv it will append ID to the querystring and
add nameOf as the value to that variable.

Give that a go.

Jeff
http://www.flexauthority.com

- Original Message - 
From: Tracy Spratt [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, February 24, 2005 5:50 PM
Subject: RE: [flexcoders] Dynamic URL for HTTPService



 I don't think you can bind in the query string like that. Instead you
 will want to manipulate the request object:
 var oRequest:Object = new Object({id:nameOf});
 srv.send(oRequest);

 There is a full example on www.cflex.net at the end of the beginner tips
 section.
 Tracy

 -Original Message-
 From: digital_eyezed [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 24, 2005 7:07 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Dynamic URL for HTTPService



 I have a drop down, populated and want to use the change event to
 populate the httpservice url parameter which will also fire off
 another httpservice.

 I have this:

 mx:Script
 ![CDATA[
 var nameOf = ;
 function custChange(event)
 {
 nameOf = cusBox.data;
 srv.send();
 }
 ]]
 /mx:Script
 mx:HTTPService id=srv url=installation.jsp?id='{nameOf}'/
 mx:HTTPService id=cust url=cus.jsp/
 mx:HBox
 mx:VBox
 mx:ComboBox id=cusBox
 dataProvider={cust.result.list.customer} change=custChange
 (event)/mx:ComboBox
 /mx:VBox
 mx:Panel title='{nameOf}' Installation List width=515
 height=350
 mx:DataGrid id=dg dataProvider={srv.result.list.installation}
 width=500 height=255
 mx:columns
 mx:Array
 mx:DataGridColumn columnName=postcode
 headerText=Post Code width=100/
 mx:DataGridColumn columnName=manufacturer
 headerText=Manufacturer width=100/
 mx:DataGridColumn columnName=model
 headerText=Model width=100/
 mx:DataGridColumn columnName=location
 headerText=Location width=200/
 /mx:Array
 /mx:columns
 /mx:DataGrid

 How can I use the data element of the combobox to properly populate
 the httpservice parameter and fire off the request and also use it
 to populate the Title of the Panel??

 Thanks in Advance.

 PS: Stupid Question, but if my data returned in the httpService has
 some silly characters in the nodes such as '' it also fails. Why?






 Yahoo! Groups Links












 Yahoo! Groups Links












Re: [flexcoders] Re: ComboBox color ?

2005-02-25 Thread Jeff Steiner
What was the magical attribute?

Jeff
http://www.flexauthority.com

- Original Message - 
From: Tracy Spratt [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, February 24, 2005 8:09 PM
Subject: RE: [flexcoders] Re: ComboBox color ?


 
 Never mind, I made my changes a little more slowly and found my red!
 
 -Original Message-
 From: Tracy Spratt [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, February 24, 2005 11:06 PM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Re: ComboBox color ?
 
 
 Well I used this and it works fine, but the color is purple, I want red,
 and I am clueless how to set all those properties, even after I looked
 in the docs.
 
 Red offset?? What the heck is that?
 
 I tried changing things at random and managed to blow away the down
 arrow completely.
 
 Will someone tell me what I need to do to get a red background? Right
 now I'd take any shade!
 
 Tracy
 
 -Original Message-
 From: r0main [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, January 18, 2005 8:59 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: ComboBox color ?
 
 
 
 Yope, here it is, looks like:
 
 class com.r0main.EnhancedComboBox extends mx.controls.ComboBox {
 ...
 private function changeState() {
 var colorTransform:Object = { ra: 70, rb: 0, ga: 70, gb: 0, ba:
 100,
 bb: 0, aa: 70, ab: 0};
 var bg_color:Color = new Color(downArrow_mc);
 bg_color.setTransform(colorTransform);
 }
 
 private function restoreState() {
 var colorTransform:Object = { ra: 100, rb: 0, ga: 100, gb: 0,
 ba:
 100, bb: 0, aa: 100, ab: 0};
 var bg_color:Color = new Color(downArrow_mc);
 bg_color.setTransform(colorTransform);
 }
 ...
 }
 
 
 r0main
 
 --- In flexcoders@yahoogroups.com, Alistair McLeod [EMAIL PROTECTED]
 wrote:
  Ah, I did see that movieclip but assumed that it was the down arrow
 only, so
  didn't even bother checking it.
  
  If possible, it might be an idea if you could post your solution for
 future
  reference for others.
  
  Cheers,
  
  Ali
  
  
  --
  Alistair McLeod
  Development Director
  iteration::two
  [EMAIL PROTECTED]
  
  Office: +44 (0)131 338 6108
  Mobile: +44 (0)7976 987252
  
  This e-mail and any associated attachments transmitted with it may
 contain
  confidential information and must not be copied, or disclosed, or
 used by
  anyone other than the intended recipient(s). If you are not the
 intended
  recipient(s) please destroy this e-mail, and any copies of it,
 immediately.
  
  Please also note that while software systems have been used to try
 to ensure
  that this e-mail has been swept for viruses, iteration::two do not
 accept
  responsibility for any damage or loss caused in respect of any viruses
  transmitted by the e-mail. Please ensure your own checks are carried
 out
  before any attachments are opened.
  
  
  -Original Message-
  From: r0main [mailto:[EMAIL PROTECTED] 
  Sent: 18 January 2005 12:49
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: ComboBox color ?
  
  
  
  Thanks Alistair,
  using your idea I started to look at movieClips used by the ComboBox
  component, and found that downArrow_mc represents the whole closed
  uneditable box, ie using setTransform I can change the box color !
  
  Thanks a lot, r0main
  
  --- In flexcoders@yahoogroups.com, Alistair McLeod [EMAIL PROTECTED]
 wrote:
   Hi r0main,
   
   Not really an answer, but perhaps a pointer for you (or MM) to
  investigate).
   If the combo box is editable, then backgroundColor can be set; as
  soon as
   editable is false, changing the style seems to have no effect. Eg,
 try:
   
   ?xml version=1.0 encoding=utf-8? mx:Application 
   xmlns:mx=http://www.macromedia.com/2003/mxml;
   
   mx:ComboBox id=combo editable=true
 backgroundColor=#ff
   dataProvider={ [ 'a', 'b' ] } /
   
   /mx:Application
   
   When I looked into this a bit last year, I played about with setting
  color
   styles on the combo box's textField property (the display part of
  the combo)
   and even text_mc (the physical TextInput exposed as textField), and
  although
   it works slightly differently, still doesn't do anything when the
  combo is
   not editable:
   
   ?xml version=1.0 encoding=utf-8? mx:Application 
   xmlns:mx=http://www.macromedia.com/2003/mxml;
   
   mx:ComboBox id=combo editable=true
   creationComplete=combo.textField.setStyle( 'backgroundColor',
  '#ff' );
   dataProvider={ [ 'a', 'b' ] } /
   
   /mx:Application
   
   The ability to set the background color wasn't really needed by
 us, so 
   I didn't investigate long.
   
   Let us know if you get any further :)
   
   Ali
   
   
   --
   Alistair McLeod
   Development Director
   iteration::two
   [EMAIL PROTECTED]
   
   Office: +44 (0)131 338 6108
   Mobile: +44 (0)7976 987252
   
   This e-mail and any associated attachments transmitted with it may
  contain
   confidential information and must not be copied, or disclosed, or
  used by
   anyone other than the intended 

Re: [flexcoders] Webservice array question

2005-02-25 Thread Jeff Steiner
Tracy,

Thanks. For some reason I was referencing the index after the column name.

Got it up and running.

Jeff
http://www.flexauthority.com

- Original Message - 
From: Tracy Spratt [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, February 24, 2005 2:05 PM
Subject: RE: [flexcoders] Webservice array question



 What exactly is the format of the data in result? If result works with a
 datagrid then you must have an array of three elements each containing
 an Item.

 So you should be able to do:
 ...result[0].myColumnName //item.property
 ...result[1].myColumnName
 ...result[2].myColumnName

 If you have to navigate through the result to make the dtagrid work,
 then that should be the start of the array:
 ..result.DATA[0].myColumnName

 Tracy

 -Original Message-
 From: Jeff Steiner [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 24, 2005 4:14 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Webservice array question


 I have a problem that I am sure just about everyone on this list could
 answer - but for the life of me I cannot figure it out.

 I have a webservice that is returning a Query object from a CFC. I can
 reference the result in a datagrid but I want to have a bit more control
 over it. I would like to create 3 seperate Labels and force the output
 on
 those Labels to the individual rows (and the data) from the result.

 Here is what I have so far:
 mx:WebService id=samples wsdl=http://localhost/samples.cfc?WSDL;
 showBusyCursor=true

 mx:operation name=getTop3Samples /

 /mx:WebService

 mx:Button click=samples.getTop3Samples.send(); label=go  /

 mx:TextInput text={samples.getTop3Samples.result.ID[0]} /

 mx:TextInput text={samples.getTop3Samples.result.ID[1]} /


 From CFC:
 cffunction name=getTop3Samples access=remote returntype=query

 cfquery name=leftNavSamples datasource=dsn maxRows=3

 SELECT ID

 FROM TABLE

 /cfquery

 cfreturn leftNavSamples

 /cffunction




 Thanks in advance,
 Jeff
 http://www.flexauthority.com




 Yahoo! Groups Links












 Yahoo! Groups Links












Re: [flexcoders] Populating a Combobox from an HTTPService

2005-02-25 Thread Jeff Steiner
If you are seeing the combobox look like it contains the data (meaning that
you have a solid drop down) but there is nothing there, you probably
overlooked labelField=. Add that as a property and put the name of the
element that you want to see there.

Jeff
http://www.flexauthority.com

- Original Message - 
From: digital_eyezed [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, February 24, 2005 3:23 PM
Subject: [flexcoders] Populating a Combobox from an HTTPService




 Hi,

 I have an HTTP service with a returned dataprovider. I want to
 populate a combobox with this dataprovider. The tags within the
 returned xml in the dataprovider are label and data.

 I tried this:

 mx:HTTPService id=cust url=cus.jsp/

 mx:VBox
 mx:ComboBox id=cusBox
 dataProvider={cust.result.list.customer}/mx:ComboBox
 /mx:VBox

 The box drops down, but it has no data!

 Thanks in advance.

 Iain






 Yahoo! Groups Links












attributes of getURL

2005-02-25 Thread Jeff Steiner
I am looking to control the size of windows that are opened using the getURL
command from an mx:Link tag.

Can someone point me in the right direction here?

Thanks,
Jeff
http://www.flexauthority.com





RE: [flexcoders] Layer Positioning

2005-02-25 Thread Matt Chotin








UIObject has setDepthAbove and
setDepthBelow methods which you can use. So you can grab the depth ofboth
windows, then based on whatever conditions you can call one of those methods.



Matt











From: goran187
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 24,2005
11:04 AM
To: [EMAIL PROTECTED]
Subject: [flexcoders] Layer
Positioning






I have two panels that overlap each other. 

Does anybody know how to programmatically decide
which panel will be 
on top (or behind) based on conditions?

Thanks,
Goran













RE: [flexcoders] Flex memory issues.

2005-02-25 Thread Matt Chotin
Title: Flex memory issues.








Can you break the large app into smaller
apps that are loaded with Loader?



Have you used the profiler to see if theres
a method thats being called maybe too often and creating objects that
are never let go? The profiler wont give you memory information, but
you could see if something is happening more than expected at least.



Matt











From: Mercer, Dustin
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 24,2005
4:11 PM
To: [EMAIL PROTECTED]
Subject: [flexcoders] Flex memory
issues.





I
have a very large flex app I am running into some random crashes and
heavy memory consumption. Memory consumption on Standard Flash Player
(not Flash Debug Player) has been reaching 150 to 170 megs. I need to
know what I can do to manage this. I have seen some methods
available to the UIObject, mainly destroyObject, and I got this to
remove
objects that were no longer needed, but I cannot find a good way to
re-instantiate them when they are needed again. This could be a really
bad approach, but I am afraid I may be pushing some limits on
Flex that is forcing me down this route. I am open to any
suggestions. If any more information is needed, I would be happy to
provide. Thanks in advance!

Dustin
Mercer











Removing the Event listener...

2005-02-25 Thread anumathew76

Hi,
I want to remove an event associated to a component. I have a button

mx:Button id=btn label=RemEvent click=remEvent() / I want to 
remove the click event handler for the button
I tried btn.removeEventListener(click,remEvent). It doesn't seem 
to be working.Please advise me.
Thanks,
Anu







RE: [flexcoders] MODEL BINDING / DATAGRID

2005-02-25 Thread Matt Chotin








The binding is done but youre
changing an element within the DataProvider without notifying the DataGrid that
anything changed. You can call invalidate() on the DG in the result handler of
webservice.MethodName and see if everything draws immediately. Otherwise you
could re-assign the whole dataProvider which also triggers this sort of thing.



Matt











From: goran187
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 24,2005
4:01 PM
To: [EMAIL PROTECTED]
Subject: [flexcoders] MODEL
BINDING / DATAGRID






I have a web service returning a value to a node
in a model

 mx:Model id=OneModel

 entity
 
namemyName/name

res{webservice.MethodName.result[0].res}/res
 /entity
 /mx:Model


I also have a button control that sends a request
to the service and 
the result should be returned under the res node
in OneModel.

The model is used as the dataProvider for a
datagrid.

Nothing happens until I rollover the particular
item in the grid. 
When I mouse over, the result from the web service
appears. 
Apparently, the binding is not done automatically.
How can I force 
this?

Thanks,
Goran
















RE: [flexcoders] attributes of getURL

2005-02-25 Thread Matt Chotin








I think youll probably need to call
out to _javascript_ and use window.open which can take the options for size, etc.



Matt











From: Jeff Steiner
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 24,2005
9:17 PM
To: [EMAIL PROTECTED]
Subject: [flexcoders] attributes
of getURL





I am looking to control the size of windows that are opened using the
getURL
command from an mx:Link tag.

Can someone point me in the right direction here?

Thanks,
Jeff
http://www.flexauthority.com











RE: [flexcoders] Removing the Event listener...

2005-02-25 Thread Matt Chotin








Hmm, I think its probably harder to
do this straight from the tag. You may need to set this up differently.



mx:Script

 var funcToRemove : Function;



 function addListener()

 {

 funcToRemove = mx.utils.Delegate(this,
remEvent);

 btn.addEventListener(click,
funcToRemove);

 }



 Function remEvent()

 {

 Btn.removeEventListener(click,
funcToRemove);

 }

/mx:Script



mx:Button id=btn
initialize=addListener() /



No idea if this works, but should giveyou
the idea. If the Delegates dont work you may need to use a listener
object instead of passing in a straight function. I think we discuss listener
objects in the docs.



Matt











From: anumathew76
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 24,2005
10:21 PM
To: [EMAIL PROTECTED]
Subject: [flexcoders] Removing the
Event listener...






Hi,
I want to remove an event associated to a
component. I have a button

mx:Button id=btn
label=RemEvent click=remEvent() / I want to
remove the click event handler for the button
I tried
btn.removeEventListener(click,remEvent). It doesn't seem 
to be working.Please advise me.
Thanks,
Anu













RE: [flexcoders] Flex memory issues.

2005-02-25 Thread Mercer, Dustin
Title: Flex memory issues.








Unfortunately I havent had the
opportunity to do any profiling yet. I tried it a couple of weeks ago,
couldnt get it to work and I had to get back to developing the
application. I will set aside some time to do this though. To the
other suggestion, I havent experimented with the loader component to
break up the app. Good Idea and I will explore this option though.
One concern I have about this is: If I break these components down, can I still
communicate easily between them and can I stop people from accessing those new
apps directly? I have some needs to do this. Plus, I would like
some of them to keep state. My first option seems to be some profiling
though. I will try to get this working as soon as possible. Thanks
for the response!











From: Matt Chotin
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 24,2005
10:18 PM
To: [EMAIL PROTECTED]
Subject: RE: [flexcoders] Flex
memory issues.





Can you break the large app into smaller
apps that are loaded with Loader?



Have you used the profiler to see if
theres a method thats being called maybe too often and creating
objects that are never let go? The profiler wont give you memory
information, but you could see if something is happening more than expectedat
least.



Matt











From: Mercer, Dustin [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 24,2005
4:11 PM
To: [EMAIL PROTECTED]
Subject: [flexcoders] Flex memory
issues.





I
have a very large flex app I am running into some random crashes and
heavy memory consumption. Memory consumption on Standard Flash Player
(not Flash Debug Player) has been reaching 150 to 170 megs. I need to
know what I can do to manage this. I have seen some methods
available to the UIObject, mainly destroyObject, and I got this to
remove
objects that were no longer needed, but I cannot find a good way to
re-instantiate them when they are needed again. This could be a really
bad approach, but I am afraid I may be pushing some limits on
Flex that is forcing me down this route. I am open to any
suggestions. If any more information is needed, I would be happy to
provide. Thanks in advance!

Dustin
Mercer














RE: [flexcoders] Flex memory issues.

2005-02-25 Thread Matt Chotin
Title: Flex memory issues.








Not sure if MovieClip._quality makes a
difference in Flex: http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004file=1548.html



My guess is that youll need the
default (HIGH) since your app probably has text in it and the docs say text
depreciates in MEDIUM.



Matt











From: Mercer, Dustin
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 24,2005
6:02 PM
To: [EMAIL PROTECTED]
Subject: RE: [flexcoders] Flex
memory issues.





Upon more investigation, my memory usage
seems to be stemming from my higher resolution. When I run the app in
1024*768 the memory consumption does not seem to exceed 110mb (high, but
manageable for the size of this app). When run in 1280*1024, them memory
usage is increased by 50mb or so. It looks like this is an issue withthe
graphics the controls are rendering. Makes sense. Maybe I can get
some help with some good ideas on how to better manage this. Does anyone
know how to enable the Flash quality setting in Flex. I want to try to
turn the quality down to see what kind of memory results I get with that.
I remember seeing an article like this, just cant seem to find it.
Thanks!



Dustin Mercer 











From: Mercer, Dustin 
Sent: Thursday, February 24,2005
4:11 PM
To: [EMAIL PROTECTED]
Subject: [flexcoders] Flex memory
issues.





I
have a very large flex app I am running into some random crashes and
heavy memory consumption. Memory consumption on Standard Flash Player(not
Flash Debug Player) has been reaching 150 to 170 megs. I need to know
what I
can do to manage this. I have seen some methods available to the
UIObject, mainly destroyObject, and I got this to remove objects that
were no longer needed, but I cannot find a good way to re-instantiate them when
they are needed again. This could be a really bad approach,
but I am afraid I may be pushing some limits on Flex that is forcing me down
this route. I am open to any suggestions. If any more information
is needed, I would be happy to provide. Thanks in advance!

Dustin
Mercer














editable rows datagrid

2005-02-25 Thread ibibas

Hi pals,

I have a little big problem(hope I can clear it). From a database I
retrieve records I display in a datagrid. I have a column in a datagrid
set to editable=false. When I add new item, this column sholud be
editable in order to fill new data. . Once saved(button pressed) I refresh
the view(datagrid) retrieving the information from the database again.
Obviously in the already saved row my column field must be non-editable.
Can I do this not using cell renderers?

Isaac Bibás






RE: [flexcoders] editable rows datagrid

2005-02-25 Thread Abdul Qabiz
Yeah, you should be able to do this without a need of Custom CellRenderer.
You should be able turn on/off editable property of DataGridColumn. 

- Make the column editable when record is going to be added
- Make the column non-editable when save button is pressed


Does it help?

-abdul

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 25, 2005 2:44 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] editable rows datagrid



Hi pals,

I have a little big problem(hope I can clear it). From a database I retrieve
records I display in a datagrid. I have a column in a datagrid set to
editable=false. When I add new item, this column sholud be editable in
order to fill new data. . Once saved(button pressed) I refresh the
view(datagrid) retrieving the information from the database again.
Obviously in the already saved row my column field must be non-editable.
Can I do this not using cell renderers?

Isaac Bibás




 
Yahoo! Groups Links



 






FlashPaper for developers?

2005-02-25 Thread Simon Fifield



Does anyone know if 
it's possible to get a developer (i.e. no cost) version of 
FlashPaper?


Kind Regards,

Simon Fifield



RE: [flexcoders] Removing the Event listener...

2005-02-25 Thread Matt Chotin








Yes, the cell renderers will be zombied,
sort of. Its not actually truly zombied because we recycle thecell
renderers. When a row isnt needed due to resizing or whatever it goes
on a free list, when its needed well bring it back. What I dont
remember off-hand is if we do decide to clear the free list if we go through
and actually remove the MovieClip. I think it becomes moot if we do that since
the Player will destroy the object. Though there will be dangling references
to undefined I think, but at least you wont have lots of code executing
that you dont want.



Matt











From: Dirk Eismann
[mailto:[EMAIL PROTECTED] 
Sent: Friday, February 25, 2005
12:37 AM
To: [EMAIL PROTECTED]
Subject: RE: [flexcoders] Removing
the Event listener...







Btw, I always wondered if references to listeners will get
removed automatically. 











For example, a List control myListis using a custom
cellrenderer. The cellrendererinstanceregisters itself with another
componentby doing











 listOwner.addEventlistener(change, this)











now if there were 10 visible rows in the List then there
would be 10 listeners (references) added to myList. What happens if I do
myList.removeAll()? Will there be zombie references to the cell
renderer instances because they are still stored inside the array of listeners
for the List control?











Thanks,





Dirk.

















-Original
Message-
From: Matt Chotin [mailto:[EMAIL PROTECTED]
Sent: Friday, February 25, 2005
7:39 AM
To: [EMAIL PROTECTED]
Subject: RE: [flexcoders] Removing
the Event listener...





Hmm, I think its probably harder to
do this straight from the tag. You may need to set this up differently.



mx:Script

 var funcToRemove : Function;



 function addListener()

 {

 funcToRemove =
mx.utils.Delegate(this, remEvent);


btn.addEventListener(click, funcToRemove);

 }



 Function remEvent()

 {


Btn.removeEventListener(click, funcToRemove);

 }

/mx:Script



mx:Button id=btn
initialize=addListener() /



No idea if this works, but should giveyou
the idea. If the Delegates dont work you may need to use a
listener object instead of passing in a straight function. I think we
discuss listener objects in the docs.



Matt











From: anumathew76
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 24,2005
10:21 PM
To: [EMAIL PROTECTED]
Subject: [flexcoders] Removing the
Event listener...






Hi,
I want to remove an event associated to a
component. I have a button

mx:Button id=btn
label=RemEvent click=remEvent() / I want to
remove the click event handler for the button
I tried
btn.removeEventListener(click,remEvent). It doesn't seem 
to be working.Please advise me.
Thanks,
Anu




















RE: [flexcoders] editable rows datagrid

2005-02-25 Thread ibibas

Thanks Abdul,

Can I specify the unique editable record row is the new row?

Isaac Bibás



 
Abdul Qabiz  
[EMAIL PROTECTED] Para: flexcoders@yahoogroups.com  
a.com cc:  
Asunto: RE: [flexcoders] editable rows datagrid  
25/02/2005 10:23  
Por favor,  
responda a  
flexcoders  
 
 




Yeah, you should be able to do this without a need of Custom CellRenderer.
You should be able turn on/off editable property of DataGridColumn.

- Make the column editable when record is going to be added
- Make the column non-editable when save button is pressed


Does it help?

-abdul

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, February 25, 2005 2:44 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] editable rows datagrid



Hi pals,

I have a little big problem(hope I can clear it). From a database I
retrieve
records I display in a datagrid. I have a column in a datagrid set to
editable=false. When I add new item, this column sholud be editable in
order to fill new data. . Once saved(button pressed) I refresh the
view(datagrid) retrieving the information from the database again.
Obviously in the already saved row my column field must be non-editable.
Can I do this not using cell renderers?

Isaac Bibás





Yahoo! Groups Links






 
Yahoo! Groups Sponsor  
 
 
 
ADVERTISEMENT  
 
 
 
 
 



Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.








RE: [flexcoders] Removing the Event listener...

2005-02-25 Thread Dirk Eismann



Wouldn't itbe a good enhancement to the EventDispatcher mix-in then 
to wipe references to undefined automatically when the removeEventListener() 
method is invoked?

Dirk.

-Original Message-From: Matt Chotin 
[mailto:[EMAIL PROTECTED]Sent: Friday, February 25, 2005 
10:34 AMTo: flexcoders@yahoogroups.comSubject: RE: 
[flexcoders] Removing the Event listener...

Yes, the cell 
renderers will be zombied, sort of. Its not actually truly zombied 
because we recycle the cell renderers. When a row isnt needed due to 
resizing or whatever it goes on a free list, when its needed well bring it 
back. What I dont remember off-hand is if we do decide to clear the 
free list if we go through and actually remove the MovieClip. I think it 
becomes moot if we do that since the Player will destroy the object. 
Though there will be dangling references to undefined I think, but at least 
you wont have lots of code executing that you dont 
want.

Matt





From: Dirk 
Eismann [mailto:[EMAIL PROTECTED] Sent: Friday, February 25, 2005 12:37 
AMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Removingthe 
Event listener...


Btw, I always wondered if 
references to listeners will get removed automatically. 




For example, a List control 
myListis using a custom cellrenderer. The 
cellrendererinstanceregisters itself with another componentby 
doing



 
listOwner.addEventlistener("change", this)



now if there were 10 visible rows 
in the List then there would be 10 listeners (references) added to myList. 
What happens if I do myList.removeAll()? Will there be "zombie" references to 
the cell renderer instances because they are still stored inside the array of 
listeners for the List control?



Thanks,

Dirk.





-Original 
Message-From: Matt 
Chotin [mailto:[EMAIL PROTECTED]Sent: Friday, February 25, 2005 7:39 
AMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Removingthe 
Event listener...

Hmm, I thinkits 
probably harder to do this straight from the tag. You may need toset 
this up differently.

mx:Script
 var 
funcToRemove : Function;

 function 
addListener()
 
{
 
funcToRemove = mx.utils.Delegate(this, 
remEvent);
 
btn.addEventListener(click, funcToRemove);
 
}

 Function 
remEvent()
 
{
 
Btn.removeEventListener(click, funcToRemove);
 
}
/mx:Script

mx:Button 
id=btn initialize=addListener() /

No idea if this 
works, but should give you the idea. If the Delegates dontwork you 
may need to use a listener object instead of passing in a straight 
function. I think we discuss listener objects in the 
docs.

Matt





From: 
anumathew76 [mailto:[EMAIL PROTECTED] Sent: Thursday, February 24, 2005 10:21 
PMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Removing the 
Event listener...

Hi,I want to 
remove an event associated to a component. I have a 
buttonmx:Button 
id="btn" label="RemEvent" click="remEvent()" / I want to 
remove the click event handler 
for the buttonI tried 
btn.removeEventListener("click",remEvent). It doesn't seem 
to be working.Please advise 
me.Thanks,Anu




AMFPHP and Flex

2005-02-25 Thread daniele_galiffa

Hello everybody!
I just started with Flex.

I would like to know if there is some support for AMFPHP.

Thanks







MVC Framework for flex

2005-02-25 Thread Arjun

Hello

Does anybody know of MVC framework available for flex and have you 
used any in your project?

Thansk
Arjun








RE: [flexcoders] MVC Framework for flex

2005-02-25 Thread Abdul Qabiz
Here you go:

http://www.richinternetapps.com/archives/94.html

A framework based on modern version of MVC framework suited for Flex RIA
development..It is called Cairngorm framework...

Look in flexcoders archives for any queries on the same...

There is another RIA framework called Ariaware made by Aral. Not sure, if
it works with Flex, but it's good for Flash no doubt..



-abdul 

-Original Message-
From: Arjun [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 25, 2005 8:00 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] MVC Framework for flex



Hello

Does anybody know of MVC framework available for flex and have you used any
in your project?

Thansk
Arjun







Yahoo! Groups Links










What are the advantages to connecting an mxml page to an as page

2005-02-25 Thread nostra72

I am curious because I am still trying to figure out how to connect an mxml page to an as page and I was wondering what is the advantage to doing that as opposed to simply putting all the script on the mxml page itself?


RE: [flexcoders] MVC Framework for flex

2005-02-25 Thread Steven Webster
Hi Arjun,

 Does anybody know of MVC framework available for flex and 
 have you used any in your project?

Have you tried the Cairngorm framework, which a large number of
the folks building big RIAs with Flex on this list are using
currently...

Download here:

http://www.richinternetapps.com/archives/94.html

Presentation here:

http://www.richinternetapps.com/archives/99.html

More information here:

http://www.iterationtwo.com/cgi-bin/mt-search.cgi?IncludeBlogs=1search=cair
ngorm

Best,

Steven

--
Steven Webster
Technical Director
iteration::two

This e-mail and any associated attachments transmitted with it may contain
confidential information and must not be copied, or disclosed, or used by
anyone other than the intended recipient(s). If you are not the intended
recipient(s) please destroy this e-mail, and any copies of it, immediately.

Please also note that while software systems have been used to try to ensure
that this e-mail has been swept for viruses, iteration::two do not accept
responsibility for any damage or loss caused in respect of any viruses
transmitted by the e-mail. Please ensure your own checks are carried out
before any attachments are opened.






Editable Tree Nodes

2005-02-25 Thread Speer, Dustin








Here is my Tree code:

mx:Tree id=groups height=100%
load=ws.PopulateTreeView.send() 

borderColor=#FF
width=100% x=0 y=0 

change=changeNode(event)
editable=true cellEdit=editNode(event) /



The Tree displays properly (takes the string XML result from
the web service and converts it to XML and renders it). However, the
documentation says that a tree should be editable by hitting the Enter key when
the node is selected. However, this doesnt work for me. Is it because I
am populating from a web service?





Dustin Speer

Special Projects Analyst

Vestcom 










Re: [flexcoders] What are the advantages to connecting an mxml page to an as page

2005-02-25 Thread Jeff Tapper
Remember, each MXML file is effectively a class. Following OO best 
practices, each class should do 1 thing, and do it well.

There are effectively 3 ways to add ActionScript to a flex app.
1) mx:Script block inline of mxml page.
2) mx:Script source= pointing to .as file,
3) AS Class instantiated in mxml
Both one and two compile the script as part of the class created by the 
mxml file. This is the proper approach for code which belongs as part of 
the same class as the MXML for that page.

Their are times when a separate class is called for. Among the many 
reasons for this: Encapsulation, Reusabilty, etc. AS classes and MXML 
files are two approaches for creating custom components. The end result 
from either is a compiled class. An experience AS2 developer will probably 
find they have a lot more control over an AS2 class vs. the same class 
created with MXML.


At 09:44 AM 2/25/2005, you wrote:
I am curious because I am still trying to figure out how to connect an 
mxml page to an as page and I was wondering what is the advantage to 
doing that as opposed to simply putting all the script on the mxml page 
itself?
Yahoo! Groups Sponsor
ADVERTISEMENT
http://us.ard.yahoo.com/SIG=1295cf54k/M=298184.6018725.7038619.3001176/D=groups/S=1705007207:HM/EXP=1109429114/A=2593423/R=0/SIG=11el9gslf/*http://www.netflix.com/Default?mqso=60190075
click here


--
Yahoo! Groups Links
* To visit your group on the web, go to:
* 
http://groups.yahoo.com/group/flexcoders/http://groups.yahoo.com/group/flexcoders/ 

*
* To unsubscribe from this group, send an email to:
* 
mailto:[EMAIL PROTECTED][EMAIL PROTECTED] 

*
* Your use of Yahoo! Groups is subject to the 
http://docs.yahoo.com/info/terms/Yahoo! Terms of Service.
inline: 140734d4.jpg

Re: [flexcoders] attributes of getURL

2005-02-25 Thread Jeff Steiner
Matt,

I am not sure how I go about this. I have the javascript in a web page that
I am using now to open the window and make it appropriate to the size
required. Should I open a window and pass it the height width attributes
and resize from there?

I appreciate the help

Jeff
http://www.flexauthority.com

- Original Message - 
From: Matt Chotin [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, February 24, 2005 10:34 PM
Subject: RE: [flexcoders] attributes of getURL


 I think you'll probably need to call out to JavaScript and use window.open
 which can take the options for size, etc.



 Matt



 _

 From: Jeff Steiner [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 24, 2005 9:17 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] attributes of getURL



 I am looking to control the size of windows that are opened using the
getURL
 command from an mx:Link tag.

 Can someone point me in the right direction here?

 Thanks,
 Jeff
 http://www.flexauthority.com http://www.flexauthority.com






 Yahoo! Groups Sponsor



 ADVERTISEMENT


http://us.ard.yahoo.com/SIG=129h7nmh6/M=298184.6018725.7038619.3001176/D=gr

oups/S=1705007207:HM/EXP=1109395038/A=2593423/R=0/SIG=11el9gslf/*http:/www.n
 etflix.com/Default?mqso=60190075 click here




http://us.adserver.yahoo.com/l?M=298184.6018725.7038619.3001176/D=groups/S=
 :HM/A=2593423/rand=456069606



 _

 Yahoo! Groups Links

 * To visit your group on the web, go to:
 http://groups.yahoo.com/group/flexcoders/
 http://groups.yahoo.com/group/flexcoders/

 * To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]

 * Your use of Yahoo! Groups is subject to the Yahoo!
 http://docs.yahoo.com/info/terms/ Terms of Service.







Re: [flexcoders] Firefox problem

2005-02-25 Thread Jeff Steiner
Are you sitting behind a proxy? One potential could be that IE is
configured to go through the proxy and Firefox is not.

Just a thought based upon the error message.

Jeff
http://www.flexauthority.com

- Original Message - 
From: Andrew Kasian [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, February 25, 2005 8:05 AM
Subject: [flexcoders] Firefox problem



 Hello all,

 We have Flex app that runs just fine under Internet Explorer but when we
 try to launch the app in Firefox, we get the following error:

 'The connection to servername.blah.blah has terminated unexpectedly.
 Some data may have been transferred.'

 Any ideas??



 Thanks,

 Andrew Kasian
 Mesa Community College
 Mesa, AZ



 Yahoo! Groups Links












RE: [flexcoders] Re: ComboBox color ?

2005-02-25 Thread Tracy Spratt
Title: RE: [flexcoders] Re: ComboBox color ?






This one is Purple:

var colorTransform:Object = { ra: 70, rb: 0, ga: 70, gb: 0, ba: 100, bb: 0, aa: 70, ab: 0};

This one is Red:

var colorTransform:Object = { ra: 100, rb: 0, ga: 0, gb: 0, ba: 0, bb: 0, aa: 70, ab: 0};


Basically I set the green and blue percents to 0 and the red percent to 100. Actually makes sense.

Still don't know what the offsets do.

Tracy

-Original Message-
From: Jeff Steiner [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 24, 2005 11:25 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: ComboBox color ?


What was the magical attribute?

Jeff


RE: [flexcoders] What are the advantages to connecting an mxml page to an as page

2005-02-25 Thread Tracy Spratt
Additionally, the first two can quickly get you up to the 32k limit,
where the class approach will not.

Tracy

-Original Message-
From: Jeff Tapper [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 25, 2005 10:03 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] What are the advantages to connecting an mxml
page to an as page

Remember, each MXML file is effectively a class. Following OO best 
practices, each class should do 1 thing, and do it well.

There are effectively 3 ways to add ActionScript to a flex app.
1) mx:Script block inline of mxml page.
2) mx:Script source= pointing to .as file,
3) AS Class instantiated in mxml

Both one and two compile the script as part of the class created by the 
mxml file. This is the proper approach for code which belongs as part
of 
the same class as the MXML for that page.

Their are times when a separate class is called for. Among the many 
reasons for this: Encapsulation, Reusabilty, etc. AS classes and MXML 
files are two approaches for creating custom components. The end result

from either is a compiled class. An experience AS2 developer will
probably 
find they have a lot more control over an AS2 class vs. the same class 
created with MXML.



At 09:44 AM 2/25/2005, you wrote:
I am curious because I am still trying to figure out how to connect an 
mxml page to an as page and I was wondering what is the advantage to 
doing that as opposed to simply putting all the script on the mxml page

itself?
Yahoo! Groups Sponsor
ADVERTISEMENT
http://us.ard.yahoo.com/SIG=1295cf54k/M=298184.6018725.7038619.3001176
/D=groups/S=1705007207:HM/EXP=1109429114/A=2593423/R=0/SIG=11el9gslf/*ht
tp://www.netflix.com/Default?mqso=60190075
click here



--
Yahoo! Groups Links
 * To visit your group on the web, go to:
 * 

http://groups.yahoo.com/group/flexcoders/http://groups.yahoo.com/group
/flexcoders/ 

 *
 * To unsubscribe from this group, send an email to:
 * 

mailto:[EMAIL PROTECTED]flexc
[EMAIL PROTECTED] 

 *
 * Your use of Yahoo! Groups is subject to the 
 http://docs.yahoo.com/info/terms/Yahoo! Terms of Service.


 
Yahoo! Groups Links



 






RE: [flexcoders] attributes of getURL

2005-02-25 Thread Tracy Spratt
Anybody know how to get a reference to the window created this way?

I want to open a window once, then use the same window again with a new
url.

The docs discuss the window parameter to getURL:
window: An optional parameter specifying the window or HTML frame into
which the document should load. You can enter the name of a specific
window or select from the following reserved target names:

Exactly what is meant by the name of a specific window? And how do I
name a window opened by getURL, so I can specify the name in
subsequent getURL calls?

Tracy


-Original Message-
From: Dirk Eismann [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 25, 2005 11:20 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] attributes of getURL


Either use 

mx:Link 
label=Foo Bar
click=getURL('javascript:window.open(...)');
/

or to invoke the js function in the page the mxml sits in

mx:Link 
label=Foo Bar
click=getURL('javascript:yourJsFunction(...)');
/

Dirk.

 -Original Message-
 From: Jeff Steiner [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 25, 2005 5:12 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] attributes of getURL
 
 
 
 Matt,
 
 I am not sure how I go about this. I have the javascript in 
 a web page that
 I am using now to open the window and make it appropriate to the size
 required. Should I open a window and pass it the height 
 width attributes
 and resize from there?
 
 I appreciate the help
 
 Jeff
 http://www.flexauthority.com
 
 - Original Message - 
 From: Matt Chotin [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Thursday, February 24, 2005 10:34 PM
 Subject: RE: [flexcoders] attributes of getURL
 
 
  I think you'll probably need to call out to JavaScript and 
 use window.open
  which can take the options for size, etc.
 
 
 
  Matt
 
 
 
  _
 
  From: Jeff Steiner [mailto:[EMAIL PROTECTED]
  Sent: Thursday, February 24, 2005 9:17 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] attributes of getURL
 
 
 
  I am looking to control the size of windows that are opened 
 using the
 getURL
  command from an mx:Link tag.
 
  Can someone point me in the right direction here?
 
  Thanks,
  Jeff
  http://www.flexauthority.com http://www.flexauthority.com
 
 
 
 
 
 
  Yahoo! Groups Sponsor
 
 
 
  ADVERTISEMENT
 
 
 http://us.ard.yahoo.com/SIG=129h7nmh6/M=298184.6018725.703861
9.3001176/D=gr

oups/S=1705007207:HM/EXP=1109395038/A=2593423/R=0/SIG=11el9gslf/*http:/w
ww.n
 etflix.com/Default?mqso=60190075 click here




http://us.adserver.yahoo.com/l?M=298184.6018725.7038619.3001176/D=group
s/S=
 :HM/A=2593423/rand=456069606



 _

 Yahoo! Groups Links

 * To visit your group on the web, go to:
 http://groups.yahoo.com/group/flexcoders/
 http://groups.yahoo.com/group/flexcoders/

 * To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]

 * Your use of Yahoo! Groups is subject to the Yahoo!
 http://docs.yahoo.com/info/terms/ Terms of Service.





 
Yahoo! Groups Links



 





 
Yahoo! Groups Links



 









TabNavigator tab color styles?

2005-02-25 Thread Robert Brueckmann







Just was working on applying a stylesheet
throughout my application and Ive successfully changed the header colors
of my datagrids and panels but I cant seem to figure out how to change
the gradient fill color of my tabs in my tab navigator



I have a stylesheet with the following:



TabNavigator {

 fillColors: #D8E6EF, #FF;

}



Is that not the right syntax to apply a
gradient of a light blue to white for each tab? I dont see a similar
headerColors style attribute like I do for Panel and DataGrid componentsIm
also adding these tabs on the fly based on a users grant access when
they log instyles are still applied to components added on the fly,
right?



Rob 








This message contains information fromMerlin Securities, LLC, or from one of its affiliates, that may be confidential and privileged. If you are not an intended recipient, pleaserefrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify the sender immediately by telephone or by replying to this transmission.


Merlin Securities, LLC is a registered broker-dealer. Services offered throughMerlin Securities, LLC are not insured by the FDIC or any other Federal Government Agency, are not deposits of or guaranteed byMerlin Securities, LLCand may lose value. Nothing in this communication shall constitute a solicitation or recommendation to buy or sell a particular security.


Re: Pre-selecting a Combo Box from Bound Data

2005-02-25 Thread stealthbaz

Thanks.. I was afraid you'd say that. Ah well. I did submit a
feature request :)





--- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote:
 I know it seems strange, but you will really have to iterate through the
 items, compare the values, and set the selected index on the matching
 item.
 
 Maybe the next version of ComboBox will do this for us.
 
 Tracy
 
 -Original Message-
 From: stealthbaz [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, February 24, 2005 4:28 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Pre-selecting a Combo Box from Bound Data
 
 
 
 
 Situation:
 
 I have a component, and that component has an Actionscript object in
 it that will hold the data passed into it.
 
 I also have a form. I want to populate the form with information that
 has come in on that object. Tutorials abount on how to do this, but
 one thing I can't seem to get to work is selecting the correct item in
 a combo box based on the object passed in.
 
 Now, I know i could write action script to determine which index
 should be selected, but it doesnt seem to come as cheaply as a simple
 data binding on a form element in other cases.
 
 e.g.: 
 ---
 
 var slot:Object;
 
 
 mx:TextInput text={slot.name} id=name/ 
 
 ---
 Will pre-populate the form element with the value of the name
 property on the slot Object.
 
 
 So how does this work as simply for a combo box?
 
 e.g.:
 
 ---
 
 var slot:Object;
 
 var statusTypes = [{label:Unknown, data:Unknown}, {label:Live,
 data:Live}, {label:Shutdown, data:Shutdown}];
 
 .
 
 mx:ComboBox id=slotStatus dataProvider={statusTypes}/mx:ComboBox
 
 ---
 
 
 THe above snippit will show the list of options, but I dont see how to
 get the list to be selected to the correct item, based on the
 slotStatus value of my object slot
 
 Thoughts?
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 Yahoo! Groups Links







Flex Builder?

2005-02-25 Thread Cushing, Matthew



Greetings,

I'm a 
mac user and I wondered if anyone knew if they were going to port Builder to OSX 
or to Linux? I use it at work and really like it (although my license has 
run out which sucks), but I wondered if there was a way to accomplish the same 
thing on OSX.

I had 
run across a website that talked about MyEclipse and mapping to a mxml.xsd, but 
I was unsure.

Any 
ideas? I've been programming in my spare time and I would like to 
really do soemthing with Flex.
M@




** 

This e-mail and any files transmitted with it may contain privileged or 

confidential information. It is solely for use by the individual for whom 

it is intended, even if addressed incorrectly. If you received this e-mail 

in error, please notify the sender; do not disclose, copy, distribute, or 

take any action in reliance on the contents of this information; and delete 

it from your system. Any other use of this e-mail is prohibited. Thank you 

for your compliance.





Component scripting syntax

2005-02-25 Thread Tom Fitzpatrick
I'm having some trouble with syntax while running a script in a component. 
I hope I can explain the problem clearly.

I've created an mxml component to which I'm passing a dataObject. In the 
component, I want to use a script to do some manipulation of the dataObject.

To test the script, I created a stand-alone app that ran the script and 
populated a list using the following syntax:

mx:Model id=dp1 source=assets/sales.xml /
mx:List initialize=newProvider(dp1.measures.measure.element) id=myList/
In the test script, the newProvider function is looks like this:
function newProvider(source)
{
[some actions here to create new Array based on source]
myList.dataProvider = newArray;
}
This works just fine.
Now, I want to do the same thing, but in a component called MeasureList 
that is being passed the dataObject. In my main app, I use the same model 
and invoke (if that's the right word) the MeasureLIst component instance as 
follows:

mx:Model id=dp1 source=assets/sales.xml /
MeasureList id=sMeasureList1 dataObject={dp1.measures.measure.element}/
In the MeasureList component, I have a script where I try to use the passed 
dataObject in the script. Here, the list is initialized as follows:

mx:List id=listDisplay rowHeight=16 styleName=dgTextStyle 
initialize=newProvider(dataObject) width=100%/

and the script looks like this:
mx:Script
![CDATA[
var dataObject;
function newProvider(source)
{
[some actions here to create new Array based on source]
myList.dataProvider = newArray;
}
]]
/mx:Script
In this case, the list doesn't get populated, but no errors are thrown. I'm 
figuring I must just have the data-passing syntax wrong, since nothing else 
about the script has changed from the test version. Any insights?

- Tom





RE: [flexcoders] Re: UI Style Guide

2005-02-25 Thread Stephen Gilson
Hi David,

Do you mean a style guide for how we implemented our existing components,
or a style guide for building them. 

Stephen 
Flex Doc


-Original Message-
From: David Solis [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 23, 2005 2:20 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: UI Style Guide



Maybe it is an internal document at Macomedia.

Almost every GUI enviroment has one.

--- In flexcoders@yahoogroups.com, David Solis [EMAIL PROTECTED] wrote:
 
 Is there an UI style guide for flex applications?
 
 Regards
 
 D.






Yahoo! Groups Links










RE: [flexcoders] attributes of getURL

2005-02-25 Thread Matt Horn
You can get at the name of the window in the page's JavaScript but not in
Flex AFAIK. When you use getURL() to call a function that creates a new
browser window, that new window not a known object in the Flex environment.
However, you can use getURL to call other functions that can access that
window object by its name. 

I've attached three files that show this.

WindowOpenTest.mxml - this contains the triggers for calling the JavaScript
functions openWindow, closeWindow, muckWindow, and updateWindow on the new
window object.

WindowOpenTest.html - this contains the HTML wrapper for the flex app and
the JavaScript functions that are called by the Flex app. (You will have to
explicitly request the MXML file first so it is compiled into a SWF; then
request the HTML file to try it out.)

window.html - this file defines the created window

HTH,

matt horn


_ 

From: Tracy Spratt [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 25, 2005 12:42 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] attributes of getURL


Anybody know how to get a reference to the window created this way?

I want to open a window once, then use the same window again with a new
url.

The docs discuss the window parameter to getURL:
window: An optional parameter specifying the window or HTML frame into
which the document should load. You can enter the name of a specific
window or select from the following reserved target names:

Exactly what is meant by the name of a specific window? And how do I
name a window opened by getURL, so I can specify the name in
subsequent getURL calls?

Tracy


-Original Message-
From: Dirk Eismann [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 25, 2005 11:20 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] attributes of getURL


Either use 

mx:Link 
label=Foo Bar
click=getURL('javascript:window.open(...)');
/

or to invoke the js function in the page the mxml sits in

mx:Link 
label=Foo Bar
click=getURL('javascript:yourJsFunction(...)');
/

Dirk.

 -Original Message-
 From: Jeff Steiner [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 25, 2005 5:12 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] attributes of getURL
 
 
 
 Matt,
 
 I am not sure how I go about this. I have the javascript in 
 a web page that
 I am using now to open the window and make it appropriate to the size
 required. Should I open a window and pass it the height 
 width attributes
 and resize from there?
 
 I appreciate the help
 
 Jeff
 http://www.flexauthority.com http://www.flexauthority.com 
 
 - Original Message - 
 From: Matt Chotin [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Thursday, February 24, 2005 10:34 PM
 Subject: RE: [flexcoders] attributes of getURL
 
 
  I think you'll probably need to call out to JavaScript and 
 use window.open
  which can take the options for size, etc.
 
 
 
  Matt
 
 
 
  _
 
  From: Jeff Steiner [mailto:[EMAIL PROTECTED]
  Sent: Thursday, February 24, 2005 9:17 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] attributes of getURL
 
 
 
  I am looking to control the size of windows that are opened 
 using the
 getURL
  command from an mx:Link tag.
 
  Can someone point me in the right direction here?
 
  Thanks,
  Jeff
  http://www.flexauthority.com http://www.flexauthority.com
http://www.flexauthority.com http://www.flexauthority.com 
 
 
 
 
 
 
  Yahoo! Groups Sponsor
 
 
 
  ADVERTISEMENT
 
 
 http://us.ard.yahoo.com/SIG=129h7nmh6/M=298184.6018725.703861
http://us.ard.yahoo.com/SIG=129h7nmh6/M=298184.6018725.703861 
9.3001176/D=gr

oups/S=1705007207:HM/EXP=1109395038/A=2593423/R=0/SIG=11el9gslf/*http:/w
ww.n
 etflix.com/Default?mqso=60190075 click here




http://us.adserver.yahoo.com/l?M=298184.6018725.7038619.3001176/D=group
http://us.adserver.yahoo.com/l?M=298184.6018725.7038619.3001176/D=group 
s/S=
 :HM/A=2593423/rand=456069606



 _

 Yahoo! Groups Links

 * To visit your group on the web, go to:
 http://groups.yahoo.com/group/flexcoders/
http://groups.yahoo.com/group/flexcoders/ 
 http://groups.yahoo.com/group/flexcoders/
http://groups.yahoo.com/group/flexcoders/ 

 * To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]

 * Your use of Yahoo! Groups is subject to the Yahoo!
 http://docs.yahoo.com/info/terms/ http://docs.yahoo.com/info/terms/ 
Terms of Service.






Yahoo! Groups Links










Yahoo! Groups Links











Yahoo! Groups Sponsor   

ADVERTISEMENT

http://us.ard.yahoo.com/SIG=129lave3f/M=298184.6018725.7038619.3001176/D=gr
oups/S=1705007207:HM/EXP=1109438698/A=2593423/R=0/SIG=11el9gslf/*http://www.
netflix.com/Default?mqso=60190075 click here   

http://us.adserver.yahoo.com/l?M=298184.6018725.7038619.3001176/D=groups/S=
:HM/A=2593423/rand=197426921 


_ 

Yahoo! Groups Links


*   To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
http://groups.yahoo.com/group/flexcoders/ 


*   To 

Re: [flexcoders] Component scripting syntax

2005-02-25 Thread Tom Fitzpatrick
At 01:13 PM 2/25/2005, you wrote:
I'm having some trouble with syntax while running a script in a component.
I hope I can explain the problem clearly.
Never mind - labelFunction did the job. So easy when you know how. 






RE: [flexcoders] attributes of getURL

2005-02-25 Thread Steiner, Jeff
Great idea.

Thanks,
Jeff 

-Original Message-
From: Dirk Eismann [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 25, 2005 8:20 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] attributes of getURL


Either use 

mx:Link 
label=Foo Bar
click=getURL('javascript:window.open(...)');
/

or to invoke the js function in the page the mxml sits in

mx:Link 
label=Foo Bar
click=getURL('javascript:yourJsFunction(...)');
/

Dirk.

 -Original Message-
 From: Jeff Steiner [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 25, 2005 5:12 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] attributes of getURL
 
 
 
 Matt,
 
 I am not sure how I go about this. I have the javascript in a web 
 page that I am using now to open the window and make it appropriate to

 the size required. Should I open a window and pass it the height 
 width attributes and resize from there?
 
 I appreciate the help
 
 Jeff
 http://www.flexauthority.com
 
 - Original Message -
 From: Matt Chotin [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Thursday, February 24, 2005 10:34 PM
 Subject: RE: [flexcoders] attributes of getURL
 
 
  I think you'll probably need to call out to JavaScript and
 use window.open
  which can take the options for size, etc.
 
 
 
  Matt
 
 
 
  _
 
  From: Jeff Steiner [mailto:[EMAIL PROTECTED]
  Sent: Thursday, February 24, 2005 9:17 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] attributes of getURL
 
 
 
  I am looking to control the size of windows that are opened
 using the
 getURL
  command from an mx:Link tag.
 
  Can someone point me in the right direction here?
 
  Thanks,
  Jeff
  http://www.flexauthority.com http://www.flexauthority.com
 
 
 
 
 
 
  Yahoo! Groups Sponsor
 
 
 
  ADVERTISEMENT
 
 
 http://us.ard.yahoo.com/SIG=129h7nmh6/M=298184.6018725.703861
9.3001176/D=gr

oups/S=1705007207:HM/EXP=1109395038/A=2593423/R=0/SIG=11el9gslf/*http:/w
ww.n
 etflix.com/Default?mqso=60190075 click here




http://us.adserver.yahoo.com/l?M=298184.6018725.7038619.3001176/D=group
s/S=
 :HM/A=2593423/rand=456069606



 _

 Yahoo! Groups Links

 * To visit your group on the web, go to:
 http://groups.yahoo.com/group/flexcoders/
 http://groups.yahoo.com/group/flexcoders/

 * To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]

 * Your use of Yahoo! Groups is subject to the Yahoo!
 http://docs.yahoo.com/info/terms/ Terms of Service.





 
Yahoo! Groups Links



 





 
Yahoo! Groups Links



 







refresh datagrid

2005-02-25 Thread Miguel Diaz Valenzuela

hi coders

now i need to refresh a datagrid after click on it. how can I do this?

at the moment I have tried with following:

function valida_datos_2(){ - this function is executed in
cellPress event on datagrid
dg.removeAllColumns();--- dg = datagrid`s name
llena_datagrid.send();  this is a webservice that send  
   
rows to flex. result event is  
the following function
}

function devuelve_datos_dg(event){
var arreglo2:Array

arreglo2 = mx.utils.ArrayUtil.toArray(event.result.fucs.fuc);
dg.dataProvider = mx.utils.ArrayUtil.toArray(event.result.fucs.fuc)
}

but this not works fine.

i´m waiting for your help, thanks in advance









RE: [flexcoders] Looping through content of a DG

2005-02-25 Thread Tarik Ahmed
Omg... I'm such loser, that was too easy. Thanks Art.  From:[EMAIL PROTECTED]Sent: Thursday, February 24, 2005 4:30 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Looping through content of a DGHi Tarik,Try: myDg.dataProvider.length-ArtQuoting Tarik Ahmed <[EMAIL PROTECTED]>: Hey Matt, thanks. I went with the cell renderer route for now. :) So once that's all done, now I need to loop through the datagrid and  see how things are positioned. I've done a good job of locking up IE  trying to XMLObject to inspect what I could possibly use. And spent a  bunch of time on the API Ref, but can't figure it out.  Howcan I find out how many items are in myDG (I tried myDG.length, myDG.items.length, etc...)? On the API ref it doesn't list any method  or property that would tell me that as far as I can tell. And having that, how would I loop over the content -mostly need the  name of the property (the array?). myDG.items, mgDG._items, etc.. ? Thx!  From: Matt Chotin <[EMAIL PROTECTED]> Sent: Wednesday, February 23, 2005 8:49 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] advice on drag n drop Maybe you could use the cellPress event on DataGridas some form of  click indicator and then add double-click support. If you get the  double cellPress in your time period that'd be the indicator to pop  your editor.  We have double-click on a button described in a  technote:  http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_19242.   Matt   From: Tarik Ahmed [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 23, 2005 6:36 PM To: flexcoders@yahoogroups.comSubject: [flexcoders] advice on drag n drop  Heyguys. So I got a data grid that I enabled drag and drop to easily  allow users to position the items. And that works. However the  previous functionality I had was that when you click on a row a  pop-up happens that let's you edit the details. The problem now is  that when you drag a row, the pop-up happens and it also does the  dragging and dropping. The first thing that comes to mind is to make a cell renderer that  acts like an edit button, so you have to click on a specific column  which has a buttonin itto edit an item. But... what I'm wondering is if it's possible to only do the popup (  as a result of this:  change="editQuestion(event.target.selectedItem)"), if no drag  occured. Like a dragIncomplete=... kinda thing. I dunno. :) Thx! Yahoo! Groups Sponsor ADVERTISEMENT  Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED]  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.Yahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to:[EMAIL PROTECTED]* Your use of Yahoo! Groups issubject to:http://docs.yahoo.com/info/terms/


disclosure icon in a custom datagrid cellrenderer?

2005-02-25 Thread James Ward
Hi all.
I would like to display the disclosure icon used by the TreeRow in a
custom datagrid cellrenderer. I have tried a number of things, but
can't seem to make it work. Any ideas?

Thanks.

-James






scroll Tip Function

2005-02-25 Thread Clint Tredway
Ok, I have searched and searched how do I reference a datagrid column for 
the scroll tip function?




Class to Integrate Central with Flex

2005-02-25 Thread dave buhler
Hello FlexCoders,

Does anyone have the class needed to integrate Flex with Central?

Dave




RE: [flexcoders] Class to Integrate Central with Flex

2005-02-25 Thread Sasha Magee
You need to go through the Central SDK download link. Once you agree to the
license and login to the macromedia site, you can download the Flex SDK for
Central.

-Original Message-
From: dave buhler [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 25, 2005 1:26 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Class to Integrate Central with Flex


Hello FlexCoders,

Does anyone have the class needed to integrate Flex with Central?

Dave



Yahoo! Groups Links










RE: [flexcoders] scroll Tip Function

2005-02-25 Thread Robert Brueckmann







Clint,



I see that the scrollTipFunction that you
create accepts a position parameter to the functioncant you just
refer to a column by making a call like this using the example from the API:



function
scrollTipFunction(direction:String, position:Number) : String
{
if (direction ==
vertical) {

 //
returns the name of the column youre scrolling past?

 return
myDataGrid.columns[position].columnName;

} else return ;
}



I dont know if
that works but columns is a valid attribute of the datagrid component so it
makes sense youd be able to index it, because I know Im doing
this for something else Im doinglet me know if that works













From: Clint Tredway
[mailto:[EMAIL PROTECTED] 
Sent: Friday, February 25, 2005
3:48 PM
To: [EMAIL PROTECTED]
Subject: [flexcoders] scrollTip
Function





Ok, I have searched and searched how do I reference a datagrid
column for the scroll tip function?










This message contains information fromMerlin Securities, LLC, or from one of its affiliates, that may be confidential and privileged. If you are not an intended recipient, pleaserefrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify the sender immediately by telephone or by replying to this transmission.


Merlin Securities, LLC is a registered broker-dealer. Services offered throughMerlin Securities, LLC are not insured by the FDIC or any other Federal Government Agency, are not deposits of or guaranteed byMerlin Securities, LLCand may lose value. Nothing in this communication shall constitute a solicitation or recommendation to buy or sell a particular security.


RE: [flexcoders] scroll Tip Function

2005-02-25 Thread Clint Tredway



actually this is what I did to get it to work...

function scrollTipFunc(dir:String,pos:Number){
 mygrid.selectedIndex = pos;
 return mygrid.selectedItem.column;
}

just 
took awhile to find

-Original Message-From: Robert Brueckmann 
[mailto:[EMAIL PROTECTED]Sent: Friday, February 25, 
2005 3:43 PMTo: flexcoders@yahoogroups.comSubject: RE: 
[flexcoders] scroll Tip Function


Clint,

I see that the 
scrollTipFunction that you create accepts a position parameter to the 
functioncant you just refer to a column by making a call like this using the 
example from the API:

function 
scrollTipFunction(direction:String, position:Number) : 
String{if (direction == "vertical") 
{
 // 
returns the name of the column youre scrolling past?
 
return myDataGrid.columns[position].columnName;
} else return 
"";}

I dont know if 
that works but columns is a valid attribute of the datagrid component so it 
makes sense youd be able to index it, because I know Im doing this for 
something else Im doinglet me know if that works






From: Clint 
Tredway [mailto:[EMAIL PROTECTED] Sent: Friday, February 25, 2005 3:48 
PMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] scroll Tip 
Function

Ok, I have searched and searched how do I 
reference a datagrid column for the scroll tip 
function?




This message contains information fromMerlin Securities, LLC, 
or from one of its affiliates, that may be confidential and privileged. If you 
are not an intended recipient, please refrain from any disclosure, copying, 
distribution or use of this information and note that such actions are 
prohibited. If you have received this transmission in error, please notify the 
sender immediately by telephone or by replying to this 
transmission.
 
Merlin Securities, LLC is a registered broker-dealer. Services 
offered throughMerlin Securities, LLC are not insured by the FDIC or any 
other Federal Government Agency, are not deposits of or guaranteed 
byMerlin Securities, LLCand may lose value. Nothing in this 
communication shall constitute a solicitation or recommendation to buy orsell 
a particular security.


Populating DataGrid using Remote Object with arguments

2005-02-25 Thread dhiren9

Hi,

I've gone through examples where I can call a remote object by 
clicking on a button and populating a datagrid. The function call on 
the button click accepts arguments processed by the remote object 
(POJO).

How do i populate the datagrid on page launch, without having to 
click a 'Get Data' button AND pass arguments to the Java object? In 
other words, I dont want to click a button to pass an argument and 
populate the grid.

Doing it like this does not work:
mx:DataGrid id=dg3 dataProvider=remoteTagInfo.getList
('ENG').result width=100%
/mx:DataGrid

Code below...

Thx.

mx:Script
var my_list;
/mx:Script

mx:RemoteObject id=remoteTagInfo 
source=samples.explorer.EmployeeManager 
result=my_list=event.result
fault=alert(event.fault.faultstring, 'Error')
mx:method name=getList/
/mx:RemoteObject

mx:Model id=dp source=catalog.xml /

mx:Panel id=menuBarPanel title=test width=100% height=100%


mx:Button label=Get Data click=remoteTagInfo.getList('ENG')/
mx:DataGrid id=dg3 dataProvider={my_list} width=100%
/mx:DataGrid

/mx:Panel








Re: [flexcoders] Class to Integrate Central with Flex

2005-02-25 Thread dave buhler
Thanks!




RE: [flexcoders] Populating DataGrid using Remote Object with arguments

2005-02-25 Thread Clint Tredway
look at using the initialize attribute of the Application tag. You set thisto a 
function and when the app loads, this function is fired. 

BUT - in this case I would set the function on the grids creationComplete so 
that when the grid is created the function will fire and your data will load.

-Original Message-
From: dhiren9 [mailto:[EMAIL PROTECTED]
Sent: Friday, February 25, 2005 3:52 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Populating DataGrid using Remote Object with
arguments




Hi,

I've gone through examples where I can call a remote object by 
clicking on a button and populating a datagrid. The function call on 
the button click accepts arguments processed by the remote object 
(POJO).

How do i populate the datagrid on page launch, without having to 
click a 'Get Data' button AND pass arguments to the Java object? In 
other words, I dont want to click a button to pass an argument and 
populate the grid.

Doing it like this does not work:
mx:DataGrid id=dg3 dataProvider=remoteTagInfo.getList
('ENG').result width=100%
/mx:DataGrid

Code below...

Thx.

mx:Script
var my_list;
/mx:Script

mx:RemoteObject id=remoteTagInfo 
source=samples.explorer.EmployeeManager 
result=my_list=event.result
fault=alert(event.fault.faultstring, 'Error')
mx:method name=getList/
/mx:RemoteObject

mx:Model id=dp source=catalog.xml /

mx:Panel id=menuBarPanel title=test width=100% height=100%


mx:Button label=Get Data click=remoteTagInfo.getList('ENG')/
mx:DataGrid id=dg3 dataProvider={my_list} width=100%
/mx:DataGrid

/mx:Panel






 
Yahoo! Groups Links



 







Re: [flexcoders] Populating DataGrid using Remote Object with arguments

2005-02-25 Thread Manish Jethani
dhiren9 wrote:
Doing it like this does not work:
mx:DataGrid id=dg3 dataProvider=remoteTagInfo.getList
('ENG').result width=100%
/mx:DataGrid
You could do this:
mx:DataGrid id=dg3 dataProvider=remoteTagInfo.getList.result
width=100% creationComplete=remoteTagInfo.getList('ENG')
/mx:DataGrid
Manish



How do I create a listener WITH parameters for a button dynamically?

2005-02-25 Thread Pilby



Here is an example 
where I am creating a button using mxml:

mx:Button 
id="btnOK" label="OK" click="btnOKClicked(event, 'hello', 'blue', 'bird');" 
/

Notice mythat the 
click event refers to a function, btnOKClicked, passing 4 parameters to 
it.


Here is an example 
of me creating the same button, BUT dynamically:

var temp = 
this.createChild(mx.controls.Button, null, { id:"btnOK" label:"OK" 
});

Now here is my 
question. How do I dynamically define a listener for this that allows passing 
multiple parameters?

I would normally do 
this:

temp.addEventListener("click", mx.utils.Delegate.create(this, 
btnOKClicked));

But this includes 
onlythe function name (btnOKClicked), but I want the click event handler 
of this dynamically-created button to pass the strings, "hello", "blue", and 
"bird" as well. How can I do this?



Re: Populating DataGrid using Remote Object with arguments

2005-02-25 Thread dhiren9

thanks guys!!

--- In flexcoders@yahoogroups.com, Manish Jethani 
[EMAIL PROTECTED] wrote:
 dhiren9 wrote:
 
  Doing it like this does not work:
  mx:DataGrid id=dg3 dataProvider=remoteTagInfo.getList
  ('ENG').result width=100%
  /mx:DataGrid
 
 You could do this:
 
 mx:DataGrid id=dg3 dataProvider=remoteTagInfo.getList.result
 width=100% creationComplete=remoteTagInfo.getList('ENG')
 /mx:DataGrid
 
 Manish







Re: [flexcoders] Re: UI Style Guide

2005-02-25 Thread David Solis
Hi Stephen,

I'm thinking about something like this:

http://developer.apple.com/documentation/UserExperience/Conceptual/OSXHIGuidelines/index.html

BTW, it'd be a good idea to have a style guide for building new
components, for instance vertical accordions, docks like InfoNode's
(http://infonode.net/index.html?idw), etc.

Regards

D


On Fri, 25 Feb 2005 13:30:36 -0500, Stephen Gilson
[EMAIL PROTECTED] wrote:
 
 Hi David,
 
 Do you mean a style guide for how we implemented our existing components,
 or a style guide for building them.
 
 Stephen
 Flex Doc
 
 
 -Original Message-
 From: David Solis [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, February 23, 2005 2:20 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: UI Style Guide
 
 Maybe it is an internal document at Macomedia.
 
 Almost every GUI enviroment has one.
 
 --- In flexcoders@yahoogroups.com, David Solis [EMAIL PROTECTED] wrote:
 
  Is there an UI style guide for flex applications?
 
  Regards
 
  D.





Asfunction not working inside htmlText

2005-02-25 Thread Greg Fuller
Hi everyone,

I'm having trouble getting asfunction to work inside htmlText.

This post in the MM flex newgroup suggests that asfunction may have
been broken with the release of 1.5:
http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=346threadid=929079highlight_key=ykeyword1=asfunction


Here's a super simplified version of what I'm trying to do:
---
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=*

mx:Script
function hello_you(you:String) {
alert(hello  + you);
}
/mx:Script

mx:Text
mx:htmlText![CDATA[ 
Click a href=asfunction:hello_you,'Dolly'here/a to say hello.
]]/mx:htmlText
/mx:Text

mx:Spacer height=20/

!-- this works, but asfunction above does not --
mx:Button label=Click to say hello click=hello_you('Polly');/

/mx:Application
-

Does anyone know if I'm doing something wrong, or if asfunction really
is broken?

Thanks - Greg




Re: [flexcoders] How do I create a listener WITH parameters for a button dynamically?

2005-02-25 Thread Manish Jethani
Pilby wrote:
mx:Button id=btnOK label=OK click=btnOKClicked(event, 'hello', 
'blue', 'bird'); /
[snip]
Here is an example of me creating the same button, BUT dynamically:
var temp = this.createChild(mx.controls.Button, null, { id:btnOK 
label:OK });

Now here is my question. How do I dynamically define a listener for this 
that allows passing multiple parameters?
Like this:
var temp = this.createChild(mx.controls.Button, null, { id:btnOK, 
label:OK });
temp.addEventListener(click, mx.utils.Delegate.create(this, 
clickHandler));

...
function clickHandler(event):Void
{
btnOKClicked(event, 'hello', 'blue', 'bird');
}
So clickHandler is what the MXML compiler automatically generates for you.
Manish



RE: [flexcoders] form validation

2005-02-25 Thread Dimitrios Gianninas



Hi Robert,

For part 1, you willhave to 
create your own PhoneNumberValidator class that only validates the value if 
there is one. I had to do the same thing for some other 
validator.

For part 2, I use the 
StringValidator for validating ComboBoxes, it should be enough,never done 
it with radio buttons however.

Jimmy 
Gianninas
Software Developer - 
Optimal Payments 
Inc.



From: Robert Brueckmann 
[mailto:[EMAIL PROTECTED] Sent: Thursday, February 
24, 2005 11:10 AMTo: flexcoders@yahoogroups.comSubject: 
[flexcoders] form validation



Im havinga heck of a 
time understanding how form validation works. I have a formit contains 
text fields, drop down lists, and radio buttons. Its a basic user 
information formfirst name, last name, address 1, address 2, etc. I also 
have 3 fields: phone, fax, and mobile, but I only have the phone field as being 
required (visually, anyways, utilizing the required attribute set to true of the 
mx:FormItem component, but set to false for fax and mobile). I also have 
phone, fax and mobile being monitored by the mx:PhoneNumberValidator components. 
But the problem is the form wont submit if the user hasnt entered a fax 
or mobile, even though theyre not required but because I have validators on 
them. Is there any way to ONLY validate them if the user has entered a 
value in their fields and not enforce them as being required even though I dont 
have them flagged as being required?

Also, how do I validate 
whether a user has selected an option from a drop-down or a radio button 
group? I am successfully setting their values to the data model I have set 
up but do I use a StringValidator on those values to ensure something has been 
checked or is there a better way to do that? I looked at the examplesin 
Stephen and Alistairs book but some things arent valid in Flex 1.5 anymore and 
other things just confuse the heck out of me or dont apply to the type of form 
Im trying to build and validate.

Any help on any of 
these things would be most amazingly appreciated.

Thanks!

Rob




This message contains information fromMerlin Securities,LLC, 
or from one of its affiliates, that may be confidential and privileged. If you 
are not an intended recipient, please refrain from any disclosure, copying, 
distribution or use of this information and note that such actions are 
prohibited. If you have received this transmission in error, please notify the 
sender immediately by telephone or by replying to this 
transmission.
 
Merlin Securities, LLC is a registered broker-dealer. Services 
offered throughMerlin Securities, LLC are not insured by the FDIC or any 
other Federal Government Agency, are not deposits of or guaranteed 
byMerlin Securities, LLCand may lose value. Nothing in this 
communication shall constitute a solicitation or recommendation to buy or sell a 
particular security.


RE: [flexcoders] Log-on Driven Application

2005-02-25 Thread Dimitrios Gianninas



Hi Dustin,

Are you talking about single 
sign-on? Meaning, having multiple Flex UIs and only having to login 
once?

I need to do this inthe next 
month or so, and I plan to have a main Flex UI which provides the login form, 
once login is successful, it will load the appropriate secondary UI using the 
Loader component.

Does that answer your 
question?

Jimmy 
Gianninas
Software Developer - 
Optimal Payments 
Inc.



From: Speer, Dustin [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 24, 2005 11:05 AMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Log-on Driven 
Application


Does anyone have a sample of how 
they are implementing a login based application? 
Thanks,
DS 

Dustin 
Speer
Special Projects 
Analyst
Vestcom 




AVIS IMPORTANTWARNING Les informations contenues dans le present document etses pieces jointes sont strictement confidentielles et reservees a l'usagede la (des) personne(s) a qui il est adresse. Si vous n'etes pas le destinataire, soyez avise que toute divulgation, distribution, copie, ou autre utilisation de ces informations est strictement prohibee. Si vous avez recu ce document par erreur, veuillez s'il vous plait communiquer immediatement avec l'expediteur et detruire ce document sans en faire de copie sous quelque forme. The information contained in this document and attachments is confidential and intended only for the person(s) named above. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution, or any other use of the information isstrictly prohibited. If you have received this document by mistake, pleasenotify the sender immediately and destroy this document and attachments without making any copy of any kind.




DataGrid / dataProvider question

2005-02-25 Thread viraf_bankwalla

Hi,

I have an xml document that has the following form

categories
category id=123 name=abc
products
product id=123 name=def
price12.54/price 
/product
product id=345 name=ghi
price12.54/price 
descdescription/desc
/product
/products
/category
category id=123 name=abc
products
product id=123 name=def
price12.54/price 
/product
product id=345 name=ghi
price12.54/price 
descdescription/desc
/product
/products
/category
/categories

I am trying to bind this to a data grid, in which the columns are 
the categoy name and price 
of each product in the category. My question is how do I specify 
the reference to a specific 
product in DataGridColumn? If someone has an example, I would love 
to see it.

the following is the basic grid that I have

mx:DataGrid id=display width=100% height=30% 
dataProvider={category.items} rowCount=10
mx:columns
mx:Array
mx:DataGridColumn columnName=name 
headerText=Category/
/mx:Array
/mx:columns
/mx:DataGrid

Thanks.

- viraf







RE: [flexcoders] Re: change row´s text

2005-02-25 Thread Dimitrios Gianninas



For the "other problem", you 
could either:

A) modify the data on the 
server before it reaches the UI

B) use AS2 to loop thru the 
dataProvider and modify the appropriate rows.

Jimmy 
Gianninas
Software Developer - 
Optimal Payments 
Inc.



From: Miguel Diaz Valenzuela 
[mailto:[EMAIL PROTECTED] Sent: Thursday, February 24, 2005 3:20 
PMTo: flexcoders@yahoogroups.comSubject: [flexcoders]Re: 
change row´s text
problem fixed, thanks man. Now i´m wating for some response 
for theother problem--- In flexcoders@yahoogroups.com, Deepa 
Subramaniam [EMAIL PROTECTED]wrote: Other thing that I 
don´t know how do, is to prohibit to users to be  able tochange 
the columns width.If you set 
resizableColumns=false on the DataGrid, the user will notbe able to 
stretch the columns by dragging on the grid lines between theheaders. -Original Message- 
From: Miguel Diaz Valenzuela [mailto:[EMAIL PROTECTED]  Sent: Thursday, 
February 24, 2005 12:03 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] change row´s textHi codersI have this problem now. I need to change text 
displayed in a row of  datagrid depending specified row value. 
  Other thing that I don´t know how do, is to prohibit tousers 
to be  able to change the columns width.   
   
 Yahoo! Groups 
Linkshttp://groups.yahoo.com/group/flexcoders/ 
   
[EMAIL PROTECTED]   
 http://docs.yahoo.com/info/terms/

AVIS IMPORTANTWARNING Les informations contenues dans le present document etses pieces jointes sont strictement confidentielles et reservees a l'usagede la (des) personne(s) a qui il est adresse. Si vous n'etes pas le destinataire, soyez avise que toute divulgation, distribution, copie, ou autre utilisation de ces informations est strictement prohibee. Si vous avez recu ce document par erreur, veuillez s'il vous plait communiquer immediatement avec l'expediteur et detruire ce document sans en faire de copie sous quelque forme. The information contained in this document and attachments is confidential and intended only for the person(s) named above. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution, or any other use of the information isstrictly prohibited. If you have received this document by mistake, pleasenotify the sender immediately and destroy this document and attachments without making any copy of any kind.




Re: [flexcoders] disclosure icon in a custom datagrid cellrenderer?

2005-02-25 Thread James Ward
Thanks Manish. What's the equivalent actionscript so that I can do this
in my CustomDataGridCellRenderer.as ?

-James


On Sat, 2005-02-26 at 04:13 +0530, Manish Jethani wrote:
 James Ward wrote:
 
  I would like to display the disclosure icon used by the TreeRow in a
  custom datagrid cellrenderer.
 
 mx:Image source=@Embed(symbol='TreeDisclosureOpen') /
 mx:Image source=@Embed(symbol='TreeDisclosureClosed') /
 
 Manish
 
 
 
 Yahoo! Groups Links
 
 
 
 
 
 
 
 






Re: MVC Framework for flex

2005-02-25 Thread dduuggllaa

Steven,
I just installed Tomcat and and trying to insert Cairngorm into it's
directory tree. I'm am pulling my hair out trying to compile the two
Java source files that come with Cairngorm. I am tripping over the
classpath hell of javac. Can you please provide us with the correct
classpath syntax to satisfy javac? Thanks.

-Douglass Turner
email: dturner_at_visual-io_dot_com


 
 Have you tried the Cairngorm framework, which a large number of
 the folks building big RIAs with Flex on this list are using
 currently...
 
 Download here:
 
 http://www.richinternetapps.com/archives/94.html
 
 Presentation here:
 
 http://www.richinternetapps.com/archives/99.html
 
 More information here:
 

http://www.iterationtwo.com/cgi-bin/mt-search.cgi?
IncludeBlogs=1search=cair
 ngorm
 
 Best,
 
 Steven