RE: [flexcoders] Flex Builder

2005-02-03 Thread David Mendels



Hi,

It is not sold standalone. Basic premise being that 
it really doesn't do much of value in the absence of the Flex server. What 
is your situation? If you are developing against the Flex server, you 
should have a copy/copies already?

Lets see if we can help,
David
Macromedia



From: Howard, Dave 
[mailto:[EMAIL PROTECTED] Sent: Wednesday, February 02, 2005 
9:02 PMTo: flexcoders@yahoogroups.comSubject: RE: 
[flexcoders] Flex Builder

Funny..try and purchase Flex Builder at Macromedia. 
$5.00 to anyone that can show me how...without full purchase of Flex 
Server


From: Mika Kiljunen 
[mailto:[EMAIL PROTECTED] Sent: Wednesday, February 02, 
2005 11:41 AMTo: flexcoders@yahoogroups.comSubject: RE: 
[flexcoders] Flex Builder


Try Macromedia 
J

-Mika





From: 
Robertson-Ravo, Neil (RX) [mailto:[EMAIL PROTECTED] 
Sent: 1. helmikuuta 2005 
7:41To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Flex 
Builder

I believe it ships 
only with purchases of Flex Server.







From: Howard, 
Dave [mailto:[EMAIL PROTECTED] Sent: 01 February 2005 15:26To: flexcoders@yahoogroups.comSubject: [flexcoders] Flex 
Builder


Does anyone know how 
to purchase Flex Builder?

This e-mail is from Reed Exhibitions (Oriel House, 
26 The Quadrant, Richmond, Surrey, TW9 1DL, United Kingdom), a division of 
Reed Business, Registered in England, Number 678540. It contains information 
which is confidential and may also be privileged. It is for the exclusive use 
of the intended recipient(s). If you are not the intended recipient(s) please 
note that any form of distribution, copying or use of this communication or 
the information in it is strictly prohibited and may be unlawful. If you have 
received this communication in error please return it to the sender or call 
our switchboard on +44 (0) 20 89107910. The opinions expressed within this 
communication are not necessarily those expressed by Reed Exhibitions. Visit 
our website at http://www.reedexpo.com


RE: [flexcoders] simple datagrid cell colour renderer

2005-02-03 Thread Matt Chotin








You could just use a VBox with a label
inside of it. In the setValue method youd simply set the
backgroundColor style on the VBox (in addition to the text of the label).



Matt











From: Andrew Spaulding
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 02, 2005
4:58 PM
To: [EMAIL PROTECTED]
Subject: [flexcoders] simple
datagrid cell colour renderer






Hi all,

Im trying to write a cell renderer that changes
the background colour
of a cell depending on the number that is
displayed in it. 

Is this a simple task? I'm really struggling...
Should I make the
cell renderer a text box and just set the
background colour on that?

Best,

Andrew.












RE: [flexcoders] Re: Subclass method signatures *must* match supe rcla ss methods?

2005-02-03 Thread Matt Chotin








I guess my point is if youre
referring to everything by its subtype anyway (in your example as Compositeand
not MovieClip) then it doesnt matter if your method is attachMovie or
lb_attachMovie, its still going to be specific to the subclass and your
code can call it just as easily with the new name. The superclass version
of the method isnt involved at all unless you specifically call up to it.
If any code refers to the object as a MovieClip only the superclass method is
going to be called, even if you overload it in the subclass. So whileit
would be nice if it used the same name as the superclass for readability, youre
not gaining anything technically.



If you have an example where the inability
to name the method the same truly breaks polymorphism thatd be
helpful. Otherwise we can certainly acknowledge that this can be
inconvenient (though it does prevent you from mistakenly thinking your subclass
method will be called when it wont) but Im not sure I see it as a
real bug.



Matt











From: foreeldo2001
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 02, 2005
12:52 PM
To: [EMAIL PROTECTED]
Subject: [flexcoders] Re: Subclass
method signatures *must* match supercla ss methods?






Hey Matt,

That's a great answer and you're absolutely
correct. In most cases,
our client classes would refer to the Dog class as
a mammal and simply
expect a reference to the super class in anytyped
arguments. But
obviously, there are places where we want todeal
with a dog as a Dog
(otherwise there would be only Mammals and Dogs
wouldn't exist...) and
you would have classes that need to have the
greater specificity. This
is the crux of OOP, is it not?

For a more specific example, I would like to
extend MovieClip, with
some other, more specific Composite object.
Everything in my
application will reference the more detailed
composite object. In
order to work for everyone, I would like to
override all of the
MovieClip's methods with one change - the datatype
that they expect
and return. (Let's say Composable for example)

This cannot be done in flex unless we use
Composition. Composition
would be completely unacceptable because it would
double both - Object
instantiation (System initialization CPU
requirements) and Object
Count. (memory footprint). The only other hack
would be to rename all
of the methods with some other, less meaningful
and certainly less
well-known name. Probably with some horrible
prefix, like
lukes_attachMovie or
lb_attachMovie... 

Java handles this problem by allowing method
overloading. This is (I
think) a completely acceptable and dare I say,
great way to handle the
problem. It allows us to be both general *and*
specific. Overloading
does have some drawbacks in that it leads to
pretty verbose classes
and can at least occasionally lead to quite a bit
of duplicate code.

Ultimately, there is no way we're going to get
method overloading
because we don't have runtime type-checking.I'm
actually not even
asking for method overloading becuase (I think) it
would have a
dramatic (negative) effect on both performance and
the player download
size.

What I'm really expecting is for the FLEX compiler
to ignore this
situation since it is an extremely important(I
would argue -
critical) part of Object-Oriented development.

Would you agree with the following:

a) It's an issue that prospective and current
users should be acutely
aware of.
b) Macromedia should be notified so that
subsequent releases can
contain some form of fix - or change.
















Re: simple datagrid cell colour renderer

2005-02-03 Thread Andrew Spaulding

Thanks Matt,

I had already taken that option, now I have to get the VBox to resize
to the available space in the cell. I would assume this would mean
overwriting the getPrefferedHeight and getPreferredWidth methods.

Thanks,

Andrew.





--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:
 You could just use a VBox with a label inside of it. In the
setValue method
 you'd simply set the backgroundColor style on the VBox (in addition
to the
 text of the label).
 
 
 
 Matt
 
 
 
 _ 
 
 From: Andrew Spaulding [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, February 02, 2005 4:58 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] simple datagrid cell colour renderer
 
 
 
 
 Hi all,
 
 Im trying to write a cell renderer that changes the background colour
 of a cell depending on the number that is displayed in it. 
 
 Is this a simple task? I'm really struggling ... Should I make the
 cell renderer a text box and just set the background colour on that?
 
 Best,
 
 Andrew.
 
 
 
 
 
 
 _ 
 
 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: simple datagrid cell colour renderer

2005-02-03 Thread Andrew Spaulding

yeh that didnt work.

what ive done is :

function getPreferredWidth() : Number
{
return parent.layoutWidth;
}

function getPreferredHeight() : Number
{
return parent.layoutHeight;
}


Andrew


--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:
 Did you try setting width/height to 100%?
 
 
 
 _ 
 
 From: Andrew Spaulding [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, February 02, 2005 8:01 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: simple datagrid cell colour renderer
 
 
 
 
 Thanks Matt,
 
 I had already taken that option, now I have to get the VBox to resize
 to the available space in the cell. I would assume this would mean
 overwriting the getPrefferedHeight and getPreferredWidth methods.
 
 Thanks,
 
 Andrew.
 
 
 
 
 
 --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:
  You could just use a VBox with a label inside of it. In the
 setValue method
  you'd simply set the backgroundColor style on the VBox (in addition
 to the
  text of the label).
  
  
  
  Matt
  
  
  
  _ 
  
  From: Andrew Spaulding [mailto:[EMAIL PROTECTED] 
  Sent: Wednesday, February 02, 2005 4:58 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] simple datagrid cell colour renderer
  
  
  
  
  Hi all,
  
  Im trying to write a cell renderer that changes the background colour
  of a cell depending on the number that is displayed in it. 
  
  Is this a simple task? I'm really struggling ... Should I make the
  cell renderer a text box and just set the background colour on that?
  
  Best,
  
  Andrew.
  
  
  
  
  
  
  _ 
  
  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
 
 * 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: simple datagrid cell colour renderer

2005-02-03 Thread Andrew Spaulding

Also, now that I overwrite these methods when i scroll up and down the
grid the rows gradually increase in height ... there must be a better
way to size the VBox?



--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:


 Did you try setting width/height to 100%?
 
 
 
 _ 
 
 From: Andrew Spaulding [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, February 02, 2005 8:01 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: simple datagrid cell colour renderer
 
 
 
 
 Thanks Matt,
 
 I had already taken that option, now I have to get the VBox to resize
 to the available space in the cell. I would assume this would mean
 overwriting the getPrefferedHeight and getPreferredWidth methods.
 
 Thanks,
 
 Andrew.
 
 
 
 
 
 --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:
  You could just use a VBox with a label inside of it. In the
 setValue method
  you'd simply set the backgroundColor style on the VBox (in addition
 to the
  text of the label).
  
  
  
  Matt
  
  
  
  _ 
  
  From: Andrew Spaulding [mailto:[EMAIL PROTECTED] 
  Sent: Wednesday, February 02, 2005 4:58 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] simple datagrid cell colour renderer
  
  
  
  
  Hi all,
  
  Im trying to write a cell renderer that changes the background colour
  of a cell depending on the number that is displayed in it. 
  
  Is this a simple task? I'm really struggling ... Should I make the
  cell renderer a text box and just set the background colour on that?
  
  Best,
  
  Andrew.
  
  
  
  
  
  
  _ 
  
  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
 
 * 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: simple datagrid cell colour renderer

2005-02-03 Thread Andrew Spaulding

Yeh thats basically what I have but I also have variableRowHeight on
my datagrid, with 2 or 3 of the cells in a row with wrapped text.

maybe its the variable row height that is causing the problem?



--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:
 Hmm, you must have something going on that interferes. This little
example
 works for me:
 
 
 
 App.mxml
 
 ?xml version=1.0 encoding=utf-8?
 
 mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
xmlns=*
 
 
 
 mx:DataGrid dataProvider={[{foo: 'bar'}, {foo: 'bar'}, {foo:
 'baz'}]}
 
 mx:columns
 
 mx:Array
 
 mx:DataGridColumn columnName=foo
cellRenderer=bgCell/
 
 /mx:Array
 
 /mx:columns
 
 /mx:DataGrid
 
 /mx:Application
 
 
 
 bgCell.mxml
 
 mx:VBox xmlns:mx=http://www.macromedia.com/2003/mxml;
 
 
 
 mx:Script
 
 ![CDATA[
 
 var value : String;
 
 
 
 function setValue(v) : Void
 
 {
 
 value = v;
 
 setStyle(backgroundColor, v == 'baz' ? 0xff :
undefined);
 
 }
 
 
 
 ]]
 
 /mx:Script
 
 
 
 mx:Label text={value} /
 
 
 
 /mx:VBox
 
 
 
 Matt
 
 _ 
 
 From: Andrew Spaulding [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, February 02, 2005 8:11 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: simple datagrid cell colour renderer
 
 
 
 
 Also, now that I overwrite these methods when i scroll up and down the
 grid the rows gradually increase in height ... there must be a better
 way to size the VBox?
 
 
 
 --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:
 
 
  Did you try setting width/height to 100%?
  
  
  
  _ 
  
  From: Andrew Spaulding [mailto:[EMAIL PROTECTED] 
  Sent: Wednesday, February 02, 2005 8:01 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: simple datagrid cell colour renderer
  
  
  
  
  Thanks Matt,
  
  I had already taken that option, now I have to get the VBox to resize
  to the available space in the cell. I would assume this would mean
  overwriting the getPrefferedHeight and getPreferredWidth methods.
  
  Thanks,
  
  Andrew.
  
  
  
  
  
  --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:
   You could just use a VBox with a label inside of it. In the
  setValue method
   you'd simply set the backgroundColor style on the VBox (in addition
  to the
   text of the label).
   
   
   
   Matt
   
   
   
   _ 
   
   From: Andrew Spaulding [mailto:[EMAIL PROTECTED] 
   Sent: Wednesday, February 02, 2005 4:58 PM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] simple datagrid cell colour renderer
   
   
   
   
   Hi all,
   
   Im trying to write a cell renderer that changes the background
colour
   of a cell depending on the number that is displayed in it. 
   
   Is this a simple task? I'm really struggling ... Should I make the
   cell renderer a text box and just set the background colour on that?
   
   Best,
   
   Andrew.
   
   
   
   
   
   
   _ 
   
   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/  
   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/ 
 http://docs.yahoo.com/info/terms/
http://docs.yahoo.com/info/terms/  
  Terms of Service.
  
  
  
  
  
  
  _ 
  
  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
 
 * 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: simple datagrid cell colour renderer

2005-02-03 Thread Andrew Spaulding

Here's some sample code to demonstrate what I'm talking about. You can
see that the problem in the last row of the grid.


App.mxml
?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
xmlns=*

mx:DataGrid variableRowHeight=true
dataProvider={[{foo: 'bar', doo: 'This is some sample text'},
{foo: 'bar'}, {foo: 'baz', doo: 'This is some sample text, this is
some sample text'}]}

mx:columns

mx:Array

mx:DataGridColumn columnName=foo
cellRenderer=bgCell /
mx:DataGridColumn columnName=doo wordWrap=true /

/mx:Array

/mx:columns

/mx:DataGrid

/mx:Application


bgCell.mxml
?xml version=1.0 encoding=utf-8?

mx:VBox xmlns:mx=http://www.macromedia.com/2003/mxml;

mx:Script
![CDATA[

var value : String;

function setValue(v) : Void

{
value = v;

setStyle(backgroundColor, v == 'baz' ? 0xff :
undefined);
}

]]
/mx:Script

mx:Label text={value} /

/mx:VBox


Andrew.





--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:
 Well I put in variableRowHeight and added more text (changed my
Label to a
 Text) and it still seems to work. So maybe we'll need some code
that shows
 it not working?
 
 
 
 _ 
 
 From: Andrew Spaulding [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, February 02, 2005 8:30 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: simple datagrid cell colour renderer
 
 
 
 
 Yeh thats basically what I have but I also have variableRowHeight on
 my datagrid, with 2 or 3 of the cells in a row with wrapped text.
 
 maybe its the variable row height that is causing the problem?
 
 
 
 --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:
  Hmm, you must have something going on that interferes. This
little
 example
  works for me:
  
  
  
  App.mxml
  
  ?xml version=1.0 encoding=utf-8?
  
  mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml
 http://www.macromedia.com/2003/mxml 
 xmlns=*
  
  
  
  mx:DataGrid dataProvider={[{foo: 'bar'}, {foo: 'bar'}, {foo:
  'baz'}]}
  
  mx:columns
  
  mx:Array
  
  mx:DataGridColumn columnName=foo
 cellRenderer=bgCell/
  
  /mx:Array
  
  /mx:columns
  
  /mx:DataGrid
  
  /mx:Application
  
  
  
  bgCell.mxml
  
  mx:VBox xmlns:mx=http://www.macromedia.com/2003/mxml
 http://www.macromedia.com/2003/mxml 
  
  
  
  mx:Script
  
  ![CDATA[
  
  var value : String;
  
  
  
  function setValue(v) : Void
  
  {
  
  value = v;
  
  setStyle(backgroundColor, v == 'baz' ? 0xff :
 undefined);
  
  }
  
  
  
  ]]
  
  /mx:Script
  
  
  
  mx:Label text={value} /
  
  
  
  /mx:VBox
  
  
  
  Matt
  
  _ 
  
  From: Andrew Spaulding [mailto:[EMAIL PROTECTED] 
  Sent: Wednesday, February 02, 2005 8:11 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: simple datagrid cell colour renderer
  
  
  
  
  Also, now that I overwrite these methods when i scroll up and
down the
  grid the rows gradually increase in height ... there must be a
better
  way to size the VBox?
  
  
  
  --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED]
wrote:
  
  
   Did you try setting width/height to 100%?
   
   
   
   _ 
   
   From: Andrew Spaulding [mailto:[EMAIL PROTECTED] 
   Sent: Wednesday, February 02, 2005 8:01 PM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Re: simple datagrid cell colour renderer
   
   
   
   
   Thanks Matt,
   
   I had already taken that option, now I have to get the VBox to
resize
   to the available space in the cell. I would assume this would
mean
   overwriting the getPrefferedHeight and getPreferredWidth
methods.
   
   Thanks,
   
   Andrew.
   
   
   
   
   
   --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED]
wrote:
You could just use a VBox with a label inside of it. In the
   setValue method
you'd simply set the backgroundColor style on the VBox (in
addition
   to the
text of the label).



Matt



_ 

From: Andrew Spaulding [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 02, 2005 4:58 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] simple datagrid cell colour renderer




Hi all,

Im trying to write a cell renderer that changes the background
 colour
of a cell depending on the number that is displayed in it. 

Is this a simple task? I'm really struggling ... Should I
make the
cell renderer a text box and just set the background colour on
that?

Best,

Andrew.






_ 

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/  
   http://groups.yahoo.com/group/flexcoders/
 http://groups.yahoo.com/group/flexcoders/ 
  http://groups.yahoo.com/group/flexcoders/
 http://groups.yahoo.com/group/flexcoders/   

Re: [flexcoders] Flex Builder

2005-02-03 Thread Jeff Anderson
From pages I have read on the MM site, Flex Builder 1.5 is bundled
with Flex 1.5.
They mention no other method of acquiring it. Sorry.


-Jeff


On Wed, 2 Feb 2005 08:41:29 -0800, Mika Kiljunen
[EMAIL PROTECTED] wrote:
 
 
 Try Macromedia J
 
 
 
 -Mika
 
 
 
 
 
 From: Robertson-Ravo, Neil (RX)
 [mailto:[EMAIL PROTECTED] 
 Sent: 1. helmikuuta 2005 7:41
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Flex Builder
 
 
 
 
 I believe it ships only with purchases of Flex Server.
 
 
 
 
 
 
 
 
 
 From: Howard, Dave [mailto:[EMAIL PROTECTED] 
 Sent: 01 February 2005 15:26
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Flex Builder
 
 
 
 
 Does anyone know how to purchase Flex Builder?
 
 
 
 
 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. 
 
 This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant,
 Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business,
 Registered in England, Number 678540. It contains information which is
 confidential and may also be privileged. It is for the exclusive use of the
 intended recipient(s). If you are not the intended recipient(s) please note
 that any form of distribution, copying or use of this communication or the
 information in it is strictly prohibited and may be unlawful. If you have
 received this communication in error please return it to the sender or call
 our switchboard on +44 (0) 20 89107910. The opinions expressed within this
 communication are not necessarily those expressed by Reed Exhibitions. Visit
 our website at http://www.reedexpo.com




Change DataGridColumn header height

2005-02-03 Thread matthewtsmith

Does anyone know how to change the height of a DataGrid header? I
would like to display an icon and two lines of text in each header.
I've done the work of making a new headerRenderer so that I can do
this, but I can't seem to change the height of the header row. Any ideas?

Thanks,
-Matt







Re: Change DataGridColumn header height

2005-02-03 Thread matthewtsmith

Never mind, I got it, it's on the DataGrid instead of the DataGridColumn.

--- In flexcoders@yahoogroups.com, matthewtsmith [EMAIL PROTECTED]
wrote:
 
 Does anyone know how to change the height of a DataGrid header? I
 would like to display an icon and two lines of text in each header.
 I've done the work of making a new headerRenderer so that I can do
 this, but I can't seem to change the height of the header row. Any
ideas?
 
 Thanks,
 -Matt







RE: [flexcoders] Re: simple datagrid cell colour renderer

2005-02-03 Thread Matt Chotin








OK, try adding this to the cell renderer:



 var owner;

 function getPreferredHeight() :
Number

 {

 return owner.layoutHeight;

 }



Matt











From: Andrew Spaulding
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 02, 2005
9:06 PM
To: [EMAIL PROTECTED]
Subject: [flexcoders] Re: simple
datagrid cell colour renderer






Here's
some sample code to demonstrate what I'm talking about. You can
see that the
problem in the last row of the grid.


App.mxml
?xml
version=1.0 encoding=utf-8?

mx:Application
xmlns:mx=http://www.macromedia.com/2003/mxml
xmlns=*


mx:DataGrid variableRowHeight=true

 dataProvider={[{foo: 'bar', doo: 'This is
some sample text'},
{foo: 'bar'},
{foo: 'baz', doo: 'This is some sample text, this is
some sample
text'}]}


mx:columns


mx:Array


mx:DataGridColumn columnName=foo
cellRenderer=bgCell
/

mx:DataGridColumn columnName=doo wordWrap=true
/


/mx:Array


/mx:columns


/mx:DataGrid

/mx:Application


bgCell.mxml
?xml
version=1.0 encoding=utf-8?

mx:VBox
xmlns:mx=http://www.macromedia.com/2003/mxml


mx:Script

![CDATA[


var value : String;


function setValue(v) : Void


{

value = v;


setStyle(backgroundColor, v == 'baz' ? 0xff :
undefined);

}



]]

/mx:Script


mx:Label text={value} /

/mx:VBox


Andrew.











Re: [flexcoders] htmlText and styles

2005-02-03 Thread Jim Miao
yes, It seems can not use css, and also can't use image either.


- Original Message - 
From: James Ward [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, February 03, 2005 4:11 AM
Subject: [flexcoders] htmlText and styles


 
 Has anyone successfully applied a style to a Label or Text with
 htmlText?  I tried span class='mystyle'  But that doesn't seem to
 work.  Thanks.
 
 -James
 
 
 
 
 
 Yahoo! Groups Links
 
 
 
 
 


RE: [flexcoders] Flex Builder

2005-02-03 Thread Dane, Sid



Hi,

It does only ship with Flex server: "Flex Builder is only available with
the Flex presentation server. You can receive Flex Builder in the following
ways."

But if you are
developing for a client, he should have some licences you can use: "Flex Builder 1.5 comes bundled with
Flex 1.5. When you purchase Flex, you receive five full licenses for Flex Builder. If you need additional
Flex Builder licenses, your salesperson can arrange for additional
licenses."

So it should be
even possible do get an additional
licence.

S!dHoward,
Dave wrote:




Funny..try and purchase Flex Builder at Macromedia.
$5.00 to anyone that can show me how...without full purchase of Flex
Server


From: Mika Kiljunen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 02, 2005 11:41 AMTo: flexcoders@yahoogroups.comSubject:
RE: [flexcoders] Flex Builder

Try Macromedia
J

-Mika





From:
Robertson-Ravo, Neil (RX) [mailto:[EMAIL PROTECTED]]
Sent: 1. helmikuuta 2005
7:41To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Flex
Builder

I believe it ships
only with purchases of Flex Server.







From: Howard,
Dave [mailto:[EMAIL PROTECTED]]
Sent: 01 February 2005
15:26To: flexcoders@yahoogroups.comSubject: [flexcoders] Flex
Builder


Does anyone know how
to purchase Flex Builder?

This e-mail is from Reed Exhibitions (Oriel House,
26 The Quadrant, Richmond, Surrey, TW9 1DL, United Kingdom), a division of
Reed Business, Registered in England, Number 678540. It contains information
which is confidential and may also be privileged. It is for the exclusiveuse
of the intended recipient(s). If you are not the intended recipient(s) please
note that any form of distribution, copying or use of this communication or
the information in it is strictly prohibited and may be unlawful. If you have
received this communication in error please return it to the sender or call
our switchboard on +44 (0) 20 89107910. The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions. Visit
our website at http://www.reedexpo.com

This message contains information that may be privileged or confidential and is the property ofthe Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.



Working with special dataProviders

2005-02-03 Thread mwelie

Hi,

I am new to Flex and I am trying to work with my extended dataProvider
class and dataGrids. The following does not work but illustrates what
I intend to do:

mx:Model id=recordsXmlData source=records.xml /
FilteredDataProvider id=fProvider source={recordsXmlData.record} /
mx:DataGrid id=dataGrid dataProvider=fProvider /

So I want to declare an instance of my own dataProvider class
(FilteredDataProvider) and connect it with the model. Then I want to
tell the DataGrid component to use my FilteredDataProvider instance.

The reason I want to do this is that I want to use the same
FilteredDataProvider for other components that need to work together
with the DataGrid.

So I guess I am not understanding how the data binding stuff
works.but I'd appreaciate any hints on how to do this properly!!

Best regards,

Martijn van Welie







Re: [flexcoders] dataProvider row filtering / suppressing

2005-02-03 Thread Manish Jethani
goran187 wrote:
I am trying to go through the rows of a dataProvider and make sure 
there are no duplicate records. Do you know of an easy way to do this 
(maybe a built in function?)
Use a hash table. AS2 objects are like hash tables.
var uniqueItems = {};
for (var i:Number = 0; i  myDataProvider.length; i++)
{
var item = myDataProvider.getItemAt(i);
uniqueItems[String(item)] = item;
}
Now you can iterate through the values to get the unique items. The code 
assumes that identical items have identical string representations.

Manish



Cairngorm info

2005-02-03 Thread [EMAIL PROTECTED]
Hi,
we are learning the Cairngorm code.
We don't succeed in understanding, from the point of view of the code, 
the class ServiceLocator.as. 
If you look at the file Services.mxml I don't understand as 
ServiceLocator.as the class you/he/she able does to memorize all the 
RemoteObjects, don't I see containers? Can someone explain me this file 
mxml??? 

cairngorm:ServiceLocator xmlns:mx = 
http://www.macromedia.com/2003/mxml; xmlns:cairngorm = 
com.iterationtwo.cairngorm.business. *  

mx:RemoteObject id = customerDelegate source = 
com.iterationtwo.demo.business.CustomerDelegate 
protocol = http showBusyCursor = true 
result = event.call.resultHandler (event)  
fault = event.call.faultHandler (event)  
/ mx:RemoteObject 

/ cairngorm:ServiceLocator 

I thank you 
Devis




RE: [flexcoders] Cairngorm info

2005-02-03 Thread Steven Webster
Hi Devis,

 If you look at the file Services.mxml I don't understand as 
 ServiceLocator.as the class you/he/she able does to memorize 
 all the RemoteObjects, don't I see containers? Can someone 
 explain me this file mxml??? 
 
 cairngorm:ServiceLocator xmlns:mx =
 http://www.macromedia.com/2003/mxml; xmlns:cairngorm = 
 com.iterationtwo.cairngorm.business. *  
 
 mx:RemoteObject id = customerDelegate source = 
 com.iterationtwo.demo.business.CustomerDelegate 
 protocol = http showBusyCursor = true 
 result = event.call.resultHandler (event)  
 fault = event.call.faultHandler (event)  
 / mx:RemoteObject 
 
 / cairngorm:ServiceLocator 

So the idea of the ServiceLocator (as you'll know from j2ee) is to
present an encapsulation of all service lookup; in RIAs we're talking
about RemoteObject (tight java-coupling), WebService and HTTPService
services.

We used to advocate ServiceLocator as an ActionScript 2.0 class -
it was a singleton class, with getInstance(), that encapsulated all
the Flash Remoting integration that it was necessary to perform.

However, Flex does *so* much more for us than plain-old Flash
Remoting, so we made a decision for Cairngorm 0.9 to simplify
the ServiceLocator down to an MXML file that is instantiated from
your top-level Application, as a registry of services.

By declaring all of your application services here, your business
delegate can easily locate services, invoke them, and pass responses
from the services back to the command classes that call them.

In fact, by adding a ServiceLocator.as class with Flash Remoting
logic in it (look at the ActionScript 2.0 dictionary for an example),
you can use Cairngorm with Flash RIA as well -- we have done in the
past (most recently for a project running in the National Space
Museum in the UK !) and there are flexcoders on this list doing so
as we speak.

So - quite simply, declare all your services in the Services.mxml
file, and then look at the business delegate class to see how the
Service Locator is used to handle all the underlying invocation
of services, and handling of asynchronous results.

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.





in which platform i will get the best prformens on Flex Server

2005-02-03 Thread shvilamit

i wont to buy a server and i wont to know if the flex will have a 
better preformens on linux server or dose it will be faster on 
windows server 







Re: [flexcoders] Cairngorm info

2005-02-03 Thread [EMAIL PROTECTED]
Thank's Steven,
good work,
but according to you, considering that you know an architecture J2EE and 
his complexity, i don't know the sense to remap buisiness delgate in 
Flex,
rather i have just build my business delegate in j2ee and i don't know 
if exist a logical/technical justify can you light me!!! please.
For pojo it's ok i understand that it's necessary for amf/flex to swap 
java/flex flex/java viceversa.

/* 
in the case that this function returns me an array of customer, 
it is possible to hook it to a dataProvider using the your 
approach, for example in my Customer.mxml
as I can exploit here the under code?
for example
mx: DataGrid dataProvider=??

/*/
public function login( loginVO : LoginVO ): Void
{
var call = service.login( loginVO );
call.resultHandler = Delegate.create( Object( responder ), 
responder.onResult ); 
call.faultHandler = Delegate.create( Object( responder ), 
responder.onFault ); 
}

thanks a lot of and excuse me if I make you lose the time
Best
Devis
Steven Webster ha scritto:
Hi Devis,

If you look at the file Services.mxml I don't understand as 
ServiceLocator.as the class you/he/she able does to memorize 
all the RemoteObjects, don't I see containers? Can someone 
explain me this file mxml??? 

cairngorm:ServiceLocator xmlns:mx =
http://www.macromedia.com/2003/mxml; xmlns:cairngorm = 
com.iterationtwo.cairngorm.business. *  

mx:RemoteObject id = customerDelegate source = 
com.iterationtwo.demo.business.CustomerDelegate 
protocol = http showBusyCursor = true 
result = event.call.resultHandler (event)  
fault = event.call.faultHandler (event)  
/ mx:RemoteObject 

/ cairngorm:ServiceLocator 


So the idea of the ServiceLocator (as you'll know from j2ee) is to
present an encapsulation of all service lookup; in RIAs we're talking
about RemoteObject (tight java-coupling), WebService and HTTPService
services.
We used to advocate ServiceLocator as an ActionScript 2.0 class -
it was a singleton class, with getInstance(), that encapsulated all
the Flash Remoting integration that it was necessary to perform.
However, Flex does *so* much more for us than plain-old Flash
Remoting, so we made a decision for Cairngorm 0.9 to simplify
the ServiceLocator down to an MXML file that is instantiated from
your top-level Application, as a registry of services.
By declaring all of your application services here, your business
delegate can easily locate services, invoke them, and pass responses
from the services back to the command classes that call them.
In fact, by adding a ServiceLocator.as class with Flash Remoting
logic in it (look at the ActionScript 2.0 dictionary for an example),
you can use Cairngorm with Flash RIA as well -- we have done in the
past (most recently for a project running in the National Space
Museum in the UK !) and there are flexcoders on this list doing so
as we speak.
So - quite simply, declare all your services in the Services.mxml
file, and then look at the business delegate class to see how the
Service Locator is used to handle all the underlying invocation
of services, and handling of asynchronous results.
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.

Yahoo! Groups Links








Attempting to add a button to Panel titlebar

2005-02-03 Thread Seth Voltz
Fellow Flexcoders,

So I have been trying to place a button in the titlebar of one of my panels and started digging around. I remembered Jesse had put up an example of a mix-in class ( http://www.jessewarden.com/archives/2005/01/collapseable_pa.html ) for doing just that. I dug through the code and have had no luck. I have included the actionscript from my test file at the end of this message.

so my questions are:

1) Jesse, what voodoo do you do to get that to work? ;)
2) Everyone, is there a different way I can do this? Is Jesse's way the most efficient / elegant?

Thanks,
Seth

Code:

myPanel.mxml (root element is mx:Panel /> with the following in a script tag, not including includes)

import mx.utils.*;
import de.richinternet.utils.Dumper;

private var menu_pb : Button;


public function initFunk ( ) {
Dumper.dump ( Init... );
_initMenuButton ( this ); // Not sure why I have to do this, but I don't got compile errors on menu_pb with this.
}

static private function _initMenuButton ( obj ) {
Dumper.dump ( Init 2... );

obj.onMenuButton = obj.onMenuButton;

obj.createClassObject ( Button, menu_pb, obj.getNextHighestDepth ( ));
obj.menu_pb.label = >;
obj.menu_pb.setSize ( 22, 22 );
obj.menu_pb.addEventListener ( click, Delegate.create ( obj, obj.onMenuButton ));
}

private function onMenuButton ( ) {
Dumper.dump ( Trace: fileShare.onMenuButton() );
}

static private function _sizeOverload ( obj ) {
Dumper.dump ( Size 2... );
obj.super.size ( );
obj.menu_pb.move ( obj.width - obj.menu_pb.width - 8, 4 );
}

function size ( ) : Void {
Dumper.dump ( Size... );
super.size ( );
_sizeOverload ( this );
}

/* All dumps to the tracer are accounted for and in the expected order... */

PGP.sig
Description: This is a digitally signed message part


unable to get value from popup to parent window

2005-02-03 Thread Srikanth Duvvuri
Hi

 

We have a basic JSP app_jsp.jsp which includes a mxml app.mxml. this
mxml has got a textinput and button. Clicking the button invokes a
javascript function. The javascript function opens a window to enable
the user to select (mouse down event) one of the two labels. This window
is a mxml window. The selected label needs to be displayed in the
textinput. 

 

Unfortunately we need to follow the architecture specified above. Please
do not suggest a different architecture. We have a limitation in our
current application (that we are trying to port to Flex). The problem
that we are facing is that the value does not get assigned to the
textinput. We are using window.open function to open the popup window.

 

This is a stubbed version of the huge code that we have. We are facing a
similar problem in our main application also

 

Would be nice if we can get few suggestions on how to solve this problem

 

Thanks

 

Srikanth

 

 

Note: app_js.js file included here, as unable to attach

function getRateCodeList() {

var frm=document.forms[0];

var oldCode = frm.rateCode.value;

showRefCode(frm.rateCode,'67','N','B');  

//if (oldCode != frm.rateCode.value) {

// getDetails('R');

//}

}

 

function showRefCode(obj1,refType,delFlgInd,inPreceedence,obj2)

{

var url=app1_jsp.jsp;

 

window.open(url,RefCodeList,'height=500, width=500');

//var retVal = window.showModalDialog(url, '',height=550,
width=1000);

}

 

function showMain(d)

{

alert(d);

window.close();

}


--_=_NextPart_003_01C509EF.A4F16E36
Content-Type: text/html;
charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

html

head
meta http-equiv=Content-Type content=text/html; charset=us-ascii
meta name=Generator content=Microsoft Word 10 (filtered)

style
!--
/* Font Definitions */
@font-face
{font-family:Comic Sans MS;
panose-1:3 15 7 2 3 3 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:Times New Roman;}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{font-family:Arial;
color:windowtext;}
span.EmailStyle19
{font-family:Comic Sans MS;
color:blue;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
--
/style

/head

body lang=EN-US link=blue vlink=purple

div class=Section1

p class=MsoNormalfont size=2 face=Comic Sans MSspan style='font-size:
10.0pt;font-family:Comic Sans MS'Hi/span/font/p

p class=MsoNormalfont size=2 face=Comic Sans MSspan style='font-size:
10.0pt;font-family:Comic Sans MS'nbsp;/span/font/p

p class=MsoNormalfont size=2 face=Comic Sans MSspan style='font-size:
10.0pt;font-family:Comic Sans MS'We have a basic JSP app_jsp.jsp which 
includes
a mxml app.mxml. this mxml has got a textinput and button. Clicking the button 
invokes
a javascript function. The javascript function opens a window to enable the
user to select (mouse down event) one of the two labels. This window is a mxml
window. The selected label needs to be displayed in the textinput. 
/span/font/p

p class=MsoNormalfont size=2 face=Comic Sans MSspan style='font-size:
10.0pt;font-family:Comic Sans MS'nbsp;/span/font/p

p class=MsoNormalfont size=2 face=Comic Sans MSspan style='font-size:
10.0pt;font-family:Comic Sans MS'Unfortunately we need to follow the
architecture specified above. Please do not suggest a different architecture. We
have a limitation in our current application (that we are trying to port 
toFlex).
The problem that we are facing is that the value does not get assigned to the 
textinput.
We are using window.open function to open the popup window./span/font/p

p class=MsoNormalfont size=2 face=Comic Sans MSspan style='font-size:
10.0pt;font-family:Comic Sans MS'nbsp;/span/font/p

p class=MsoNormalfont size=2 face=Comic Sans MSspan style='font-size:
10.0pt;font-family:Comic Sans MS'This is a stubbed version of the huge code
that we have. We are facing a similar problem in our main application 
also/span/font/p

p class=MsoNormalfont size=2 face=Comic Sans MSspan style='font-size:
10.0pt;font-family:Comic Sans MS'nbsp;/span/font/p

p class=MsoNormalfont size=2 face=Comic Sans MSspan style='font-size:
10.0pt;font-family:Comic Sans MS'Would be nice if we can get few suggestions
on how to solve this problem/span/font/p

p class=MsoNormalfont size=2 face=Comic Sans MSspan style='font-size:
10.0pt;font-family:Comic Sans MS'nbsp;/span/font/p

p class=MsoNormalfont size=2 face=Comic Sans MSspan style='font-size:
10.0pt;font-family:Comic Sans MS'Thanks/span/font/p

p class=MsoNormalfont size=2 face=Comic Sans MSspan style='font-size:
10.0pt;font-family:Comic Sans MS'nbsp;/span/font/p

p class=MsoNormalfont size=2 face=Comic Sans MSspan style='font-size:
10.0pt;font-family:Comic Sans MS'Srikanth/span/font/p

p 

Re: [flexcoders] Re: dynamic xml in flex

2005-02-03 Thread Manish Jethani
pioplacz wrote:
would be nice is something like webservice used in the flex store.. 
cuase my application works the same way.. but how can i make it 
happen i have mysql database and i run iis so i have both php and 
asp... 
Write some PHP to output your data in XML format, and then Flex can 
access it from the URL using HTTPService. See the blog reader example.

Manish



Re: [flexcoders] Cairngorm info

2005-02-03 Thread Robin Hilliard
Hi Devis,

Here's an example of why delegates are useful on the client. Our current Flex project is based on an existing XML backend. We have one service with a single send() method to send XML strings up to the server and get XML string responses. Because this will probably change in the medium term we don't want to expose our client code to the XML, so we modified the delegate by adding an onResult handler which parses the XML string into value objects before forwarding them to the original responder. Later on if the server changes only our delegates will be affected (and greatly simplified). Using delegates gave us the elbow room to make these modifications without impacting the rest of our client application.

In another Flash project we're working on the client development is ahead of the server development, so our delegates return dummy test data to the responder so that client development can continue.

You don't want to roll the delegate code into commands or elsewhere because multiple commands may reuse the same delegate.

In Cairngorm you would pass the array of customer vos back to the command that invoked the delegate. The command would then populate the view via a view helper (to keep the UI at arms length from the commands) - the view helper would either set the dataProvider directly or perhaps a public property of a view that was then bound to the dataGrid's dataProvider property.

Did you see the sample Cairngorm application I posted earlier this week?

Cheers,
Robin
http://www.rocketboots.com.au

On 03/02/2005, at 9:19 PM, [EMAIL PROTECTED] wrote:

Thank's Steven,
 good work,
 but according to you, considering that you know an architecture J2EE and 
 his complexity, i don't know the sense to remap buisiness delgate in 
 Flex,
 rather i have just build my business delegate in j2ee and i don't know 
 if exist a logical/technical  justify can you light me!!! please.
 For pojo it's ok i understand that it's necessary for amf/flex to swap 
 java/flex  flex/java viceversa.


 /* 
   in the case that this function returns me an array of customer, 
  it is possible to hook it to a dataProvider using the your 
 approach, for example in my Customer.mxml
  as I can exploit here the  under code?
     for example
   mx: DataGrid dataProvider=??

 /*/
     public function login( loginVO : LoginVO ): Void
     {
     var call = service.login( loginVO );

     call.resultHandler = Delegate.create( Object( responder ), 
 responder.onResult );    
     call.faultHandler = Delegate.create( Object( responder ), 
 responder.onFault ); 
     }


 thanks a lot of and excuse me if I make you lose the time
 Best
 Devis

 Steven Webster ha scritto:

 >Hi Devis,
 >
 >  
 >
 >>If you look at the file Services.mxml I don't understand as 
 >>ServiceLocator.as the class you/he/she able does to memorize
 >>all the RemoteObjects, don't I see containers? Can someone
 >>explain me this file mxml??? 
 >> 
 >>cairngorm:ServiceLocator xmlns:mx =
 >>http://www.macromedia.com/2003/mxml xmlns:cairngorm = 
 >>com.iterationtwo.cairngorm.business. * > 
 >> 
 >>   mx:RemoteObject id = customerDelegate source = 
 >>com.iterationtwo.demo.business.CustomerDelegate
 >>    protocol = http showBusyCursor = true 
 >>    result = event.call.resultHandler (event)  
 >>    fault = event.call.faultHandler (event) > 
 >>   / mx:RemoteObject>
 >> 
 >>/ cairngorm:ServiceLocator>
 >>    
 >>
 >
 >So the idea of the ServiceLocator (as you'll know from j2ee) is to
 >present an encapsulation of all service lookup; in RIAs we're talking
 >about RemoteObject (tight java-coupling), WebService and HTTPService
 >services.
 >
 >We used to advocate ServiceLocator as an ActionScript 2.0 class -
 >it was a singleton class, with getInstance(), that encapsulated all
 >the Flash Remoting integration that it was necessary to perform.
 >
 >However, Flex does *so* much more for us than plain-old Flash
 >Remoting, so we made a decision for Cairngorm 0.9 to simplify
 >the ServiceLocator down to an MXML file that is instantiated from
 >your top-level Application, as a registry of services.
 >
 >By declaring all of your application services here, your business
 >delegate can easily locate services, invoke them, and pass responses
 >from the services back to the command classes that call them.
 >
 >In fact, by adding a ServiceLocator.as class with Flash Remoting
 >logic in it (look at the ActionScript 2.0 dictionary for an example),
 >you can use Cairngorm with Flash RIA as well -- we have done in the
 >past (most recently for a project running in the National Space
 >Museum in the UK !) and there are flexcoders on this list doing so
 >as we speak.
 >
 >So - quite simply, declare all your services in the Services.mxml
 >file, and then look at the business delegate class to see how the
 >Service Locator is used to handle all the underlying invocation
 >of 

RE: [flexcoders] Working with special dataProviders

2005-02-03 Thread Dimitrios Gianninas



Just of the top of my head 
here, you need to change:

mx:DataGrid id="dataGrid" 
dataProvider="{fProvider}" /

your curly braces are missing 
for binding

Jimmy 
Gianninas - Developer
Optimal 
Payments Inc.



From: mwelie 
[mailto:[EMAIL PROTECTED] Sent: Thursday, February 03, 
2005 3:53 AMTo: flexcoders@yahoogroups.comSubject: 
[flexcoders] Working with special dataProviders
Hi,I am new to Flex and I am trying to work withmy 
extended dataProviderclass and dataGrids. The following does not work but 
illustrates whatI intend to do: 
mx:Model id="recordsXmlData" source="records.xml" 
/ FilteredDataProvider id="fProvider" 
source="{recordsXmlData.record}" / 
mx:DataGrid id="dataGrid" dataProvider="fProvider" /So I want to 
declare an instance of my own dataProvider class(FilteredDataProvider) and 
connect it with the model. Then I want totell the DataGrid component touse 
my FilteredDataProvider instance.The reason I want to do this is that I 
want to use the sameFilteredDataProvider for other components that needto 
work togetherwith the DataGrid.So I guess I am not understanding how 
the data binding stuffworks.but I'd appreaciate any hints on how todo 
this properly!!Best regards,Martijn van 
Welie


Re: [flexcoders] Cairngorm info

2005-02-03 Thread [EMAIL PROTECTED]
Sorry Robin i have found your link.
cheers
Devis
Robin Hilliard ha scritto:
Hi Devis,
Here's an example of why delegates are useful on the client. Our 
current Flex project is based on an existing XML backend. We have one 
service with a single send() method to send XML strings up to the 
server and get XML string responses. Because this will probably change 
in the medium term we don't want to expose our client code to the XML, 
so we modified the delegate by adding an onResult handler which parses 
the XML string into value objects before forwarding them to the 
original responder. Later on if the server changes only our delegates 
will be affected (and greatly simplified). Using delegates gave us the 
elbow room to make these modifications without impacting the rest of 
our client application.

In another Flash project we're working on the client development is 
ahead of the server development, so our delegates return dummy test 
data to the responder so that client development can continue.

You don't want to roll the delegate code into commands or elsewhere 
because multiple commands may reuse the same delegate.

In Cairngorm you would pass the array of customer vos back to the 
command that invoked the delegate. The command would then populate the 
view via a view helper (to keep the UI at arms length from the 
commands) - the view helper would either set the dataProvider directly 
or perhaps a public property of a view that was then bound to the 
dataGrid's dataProvider property.

Did you see the sample Cairngorm application I posted earlier this week?
Cheers,
Robin
http://www.rocketboots.com.au
On 03/02/2005, at 9:19 PM, [EMAIL PROTECTED] wrote:
Thank's Steven,
good work,
but according to you, considering that you know an architecture
J2EE and
his complexity, i don't know the sense to remap buisiness
delgate in
Flex,
rather i have just build my business delegate in j2ee and i don't
know 
if exist a logical/technical justify can you light me!!! please.
For pojo it's ok i understand that it's necessary for amf/flex to
swap
java/flex flex/java viceversa.

/*
in the case that this function returns me an array of customer,
it is possible to hook it to a dataProvider using the your
approach, for example in my Customer.mxml
as I can exploit here the under code?
for example
mx: DataGrid dataProvider=??
/*/
public function login( loginVO : LoginVO ): Void
{
var call = service.login( loginVO );
call.resultHandler = Delegate.create( Object( responder ),
responder.onResult ); 
call.faultHandler = Delegate.create( Object( responder ),
responder.onFault ); 
}

thanks a lot of and excuse me if I make you lose the time
Best
Devis
Steven Webster ha scritto:
Hi Devis,

 

If you look at the file Services.mxml I don't understand as
ServiceLocator.as the class you/he/she able does to memorize
all the RemoteObjects, don't I see containers? Can someone
explain me this file mxml???

cairngorm:ServiceLocator xmlns:mx =
http://www.macromedia.com/2003/mxml; xmlns:cairngorm =
com.iterationtwo.cairngorm.business. * 

 mx:RemoteObject id = customerDelegate source =
com.iterationtwo.demo.business.CustomerDelegate
 protocol = http showBusyCursor = true
 result = event.call.resultHandler (event) 
 fault = event.call.faultHandler (event) 
 / mx:RemoteObject

/ cairngorm:ServiceLocator
 


So the idea of the ServiceLocator (as you'll know from j2ee) is to
present an encapsulation of all service lookup; in RIAs we're
talking
about RemoteObject (tight java-coupling), WebService and HTTPService
services.

We used to advocate ServiceLocator as an ActionScript 2.0 class -
it was a singleton class, with getInstance(), that encapsulated all
the Flash Remoting integration that it was necessary to perform.

However, Flex does *so* much more for us than plain-old Flash
Remoting, so we made a decision for Cairngorm 0.9 to simplify
the ServiceLocator down to an MXML file that is instantiated from
your top-level Application, as a registry of services.

By declaring all of your application services here, your business
delegate can easily locate services, invoke them, and pass responses
from the services back to the command classes that call them.

In fact, by adding a ServiceLocator.as class with Flash Remoting
logic in it (look at the ActionScript 2.0 dictionary for an
example),
you can use Cairngorm with Flash RIA as well -- we have done in the
past (most recently for a project running in the National Space
Museum in the UK !) and there are flexcoders on this list doing so
as we speak.

So - quite simply, declare all your services in the Services.mxml
file, and then look at the business delegate class to see how the
Service Locator is used to handle all the underlying invocation
of services, and handling of asynchronous results.

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

Re: [flexcoders] Cairngorm info

2005-02-03 Thread [EMAIL PROTECTED]
Hi,
thank's for you help
for your question
Did you see the sample Cairngorm application I posted earlier this 
week? No can you give me the post please?
Devis

Robin Hilliard ha scritto:
Hi Devis,
Here's an example of why delegates are useful on the client. Our 
current Flex project is based on an existing XML backend. We have one 
service with a single send() method to send XML strings up to the 
server and get XML string responses. Because this will probably change 
in the medium term we don't want to expose our client code to the XML, 
so we modified the delegate by adding an onResult handler which parses 
the XML string into value objects before forwarding them to the 
original responder. Later on if the server changes only our delegates 
will be affected (and greatly simplified). Using delegates gave us the 
elbow room to make these modifications without impacting the rest of 
our client application.

In another Flash project we're working on the client development is 
ahead of the server development, so our delegates return dummy test 
data to the responder so that client development can continue.

You don't want to roll the delegate code into commands or elsewhere 
because multiple commands may reuse the same delegate.

In Cairngorm you would pass the array of customer vos back to the 
command that invoked the delegate. The command would then populate the 
view via a view helper (to keep the UI at arms length from the 
commands) - the view helper would either set the dataProvider directly 
or perhaps a public property of a view that was then bound to the 
dataGrid's dataProvider property.

Did you see the sample Cairngorm application I posted earlier this week?
Cheers,
Robin
http://www.rocketboots.com.au
On 03/02/2005, at 9:19 PM, [EMAIL PROTECTED] wrote:
Thank's Steven,
good work,
but according to you, considering that you know an architecture
J2EE and
his complexity, i don't know the sense to remap buisiness
delgate in
Flex,
rather i have just build my business delegate in j2ee and i don't
know 
if exist a logical/technical justify can you light me!!! please.
For pojo it's ok i understand that it's necessary for amf/flex to
swap
java/flex flex/java viceversa.

/*
in the case that this function returns me an array of customer,
it is possible to hook it to a dataProvider using the your
approach, for example in my Customer.mxml
as I can exploit here the under code?
for example
mx: DataGrid dataProvider=??
/*/
public function login( loginVO : LoginVO ): Void
{
var call = service.login( loginVO );
call.resultHandler = Delegate.create( Object( responder ),
responder.onResult ); 
call.faultHandler = Delegate.create( Object( responder ),
responder.onFault ); 
}

thanks a lot of and excuse me if I make you lose the time
Best
Devis
Steven Webster ha scritto:
Hi Devis,

 

If you look at the file Services.mxml I don't understand as
ServiceLocator.as the class you/he/she able does to memorize
all the RemoteObjects, don't I see containers? Can someone
explain me this file mxml???

cairngorm:ServiceLocator xmlns:mx =
http://www.macromedia.com/2003/mxml; xmlns:cairngorm =
com.iterationtwo.cairngorm.business. * 

 mx:RemoteObject id = customerDelegate source =
com.iterationtwo.demo.business.CustomerDelegate
 protocol = http showBusyCursor = true
 result = event.call.resultHandler (event) 
 fault = event.call.faultHandler (event) 
 / mx:RemoteObject

/ cairngorm:ServiceLocator
 


So the idea of the ServiceLocator (as you'll know from j2ee) is to
present an encapsulation of all service lookup; in RIAs we're
talking
about RemoteObject (tight java-coupling), WebService and HTTPService
services.

We used to advocate ServiceLocator as an ActionScript 2.0 class -
it was a singleton class, with getInstance(), that encapsulated all
the Flash Remoting integration that it was necessary to perform.

However, Flex does *so* much more for us than plain-old Flash
Remoting, so we made a decision for Cairngorm 0.9 to simplify
the ServiceLocator down to an MXML file that is instantiated from
your top-level Application, as a registry of services.

By declaring all of your application services here, your business
delegate can easily locate services, invoke them, and pass responses
from the services back to the command classes that call them.

In fact, by adding a ServiceLocator.as class with Flash Remoting
logic in it (look at the ActionScript 2.0 dictionary for an
example),
you can use Cairngorm with Flash RIA as well -- we have done in the
past (most recently for a project running in the National Space
Museum in the UK !) and there are flexcoders on this list doing so
as we speak.

So - quite simply, declare all your services in the Services.mxml
file, and then look at the business delegate class to see how the
Service Locator is used to handle all the underlying invocation
of services, and handling of asynchronous results.

Best,

Steven

--
Steven Webster
Technical Director
iteration::two

This e-mail and any associated 

RE: [flexcoders] unable to get value from popup to parent window

2005-02-03 Thread Dirk Eismann



Hi 
Srikanth,

just 
to make sure I understand you correctly: 

1) 
your app.mxml opens a new browser window by calling a js function 

2) 
inside this newly created browser window, another mxml file is 
loaded
3) clicking on a Label inside the newly created 
window should update a TextInput inside the app.mxml

if 
that's correct, I suggest you take a look at the LocalConnection class. By using 
the LocalConnection class, you can exchange data directly between two mxml 
apps.

Dirk.

-Original Message-From: Srikanth Duvvuri 
[mailto:[EMAIL PROTECTED]Sent: Thursday, February 03, 
2005 1:56 PMTo: flexcoders@yahoogroups.comSubject: 
[flexcoders] unable to get value from popup to parent 
window

Hi

We have a basic JSP 
app_jsp.jsp which includes a mxml app.mxml. this mxml has got a textinputand 
button. Clicking the button invokes a _javascript_ function. The _javascript_ 
function opens a window to enable the user to select (mouse down event) one of 
the two labels. This window is a mxml window. The selected label needs tobe 
displayed in the textinput. 

Unfortunately we need to 
follow the architecture specified above. Please do not suggest a different 
architecture. We have a limitation in our current application (that we are 
trying to port to Flex). The problem that we are facing is that the valuedoes 
not get assigned to the textinput. We are using window.open function to open 
the popup window.

This is a stubbed 
version of the huge code that we have. We are facing a similar problem inour 
main application also

Would be nice if we can 
get few suggestions on how to solve this problem

Thanks

Srikanth


Note: 
app_js.js file included here, as unable to attach
function 
getRateCodeList() {
 
var frm=document.forms[0];
 
var oldCode = frm.rateCode.value;
 
showRefCode(frm.rateCode,'67','N','B'); 

 
//if (oldCode != frm.rateCode.value) {
 
// 
getDetails('R');
 
//}
}

function 
showRefCode(obj1,refType,delFlgInd,inPreceedence,obj2)
{
 
var url="";

 
window.open(url,"RefCodeList",'height=500, width=500');
 
//var retVal = window.showModalDialog(url, '',"height=550, 
width=1000");
}

function 
showMain(d)
{
 
alert(d);
 
window.close();
}


RE: [flexcoders] unable to get value from popup to parent window

2005-02-03 Thread Abdul Qabiz



 
if that's 
correct, I suggest you take a look at the LocalConnection class. By using the 
LocalConnection class, you can exchange data directly between two mxml 
apps.

Right! I was also going to suggest the same. You can 
use LocalConnection object to communicate between two flex/flash apps in the 
same domain.



-abdul


From: Dirk Eismann 
[mailto:[EMAIL PROTECTED] Sent: Thursday, February 03, 
2005 7:17 PMTo: flexcoders@yahoogroups.comSubject: RE: 
[flexcoders] unable to get value from popup to parent 
window

Hi 
Srikanth,

just 
to make sure I understand you correctly: 

1) 
your app.mxml opens a new browser window by calling a js function 

2) 
inside this newly created browser window, another mxml file is 
loaded
3) clicking on a Label inside the newly created 
window should update a TextInput inside the app.mxml

if 
that's correct, I suggest you take a look at the LocalConnection class. By using 
the LocalConnection class, you can exchange data directly between two mxml 
apps.

Dirk.

-Original Message-From: Srikanth Duvvuri 
[mailto:[EMAIL PROTECTED]Sent: Thursday, February 03, 
2005 1:56 PMTo: flexcoders@yahoogroups.comSubject: 
[flexcoders] unable to get value from popup to parent 
window

Hi

We have a basic JSP 
app_jsp.jsp which includes a mxml app.mxml. this mxml has got a textinput and 
button. Clicking the button invokes a _javascript_ function. The _javascript_ 
function opens a window to enable the user to select (mouse down event) one of 
the two labels. This window is a mxml window. The selected label needs to be 
displayed in the textinput. 

Unfortunately we need to 
follow the architecture specified above. Please do not suggest a different 
architecture. We have a limitation in our current application (that we are 
trying to port to Flex). The problem that we are facing is that the value does 
not get assigned to the textinput. We are using window.open function to open 
the popup window.

This is a stubbed 
version of the huge code that we have. We are facing a similar problem in our 
main application also

Would be nice if we can 
get few suggestions on how to solve this problem

Thanks

Srikanth


Note: 
app_js.js file included here, as unable to attach
function 
getRateCodeList() {
 
var frm=document.forms[0];
 
var oldCode = frm.rateCode.value;
 
showRefCode(frm.rateCode,'67','N','B'); 

 
//if (oldCode != frm.rateCode.value) {
 
// 
getDetails('R');
 
//}
}

function 
showRefCode(obj1,refType,delFlgInd,inPreceedence,obj2)
{
 
var url="";

 
window.open(url,"RefCodeList",'height=500, width=500');
 
//var retVal = window.showModalDialog(url, '',"height=550, 
width=1000");
}

function 
showMain(d)
{
 
alert(d);
 
window.close();
}


RE: [flexcoders] unable to get value from popup to parent window

2005-02-03 Thread Abdul Qabiz
Hey Srikanth,

Here you go, I have modified your files for the same. 

Find the attached files. Look into mxml files, those are modified only.

Hope that helps

-abdul

_ 

From: Abdul Qabiz [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 03, 2005 7:30 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] unable to get value from popup to parent window


 if that's correct, I suggest you take a look at the LocalConnection class.
By using the LocalConnection class, you can exchange data directly between
two mxml apps.

Right! I was also going to suggest the same. You can use LocalConnection
object to communicate between two flex/flash apps in the same domain.



-abdul

_ 

From: Dirk Eismann [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 03, 2005 7:17 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] unable to get value from popup to parent window


Hi Srikanth,

just to make sure I understand you correctly: 

1) your app.mxml opens a new browser window by calling a js function 
2) inside this newly created browser window, another mxml file is loaded
3) clicking on a Label inside the newly created window should update a
TextInput inside the app.mxml

if that's correct, I suggest you take a look at the LocalConnection class.
By using the LocalConnection class, you can exchange data directly between
two mxml apps.

Dirk.

-Original Message-
From: Srikanth Duvvuri [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 03, 2005 1:56 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] unable to get value from popup to parent window



Hi



We have a basic JSP app_jsp.jsp which includes a mxml app.mxml. this mxml
has got a textinput and button. Clicking the button invokes a javascript
function. The javascript function opens a window to enable the user to
select (mouse down event) one of the two labels. This window is a mxml
window. The selected label needs to be displayed in the textinput. 



Unfortunately we need to follow the architecture specified above. Please do
not suggest a different architecture. We have a limitation in our current
application (that we are trying to port to Flex). The problem that we are
facing is that the value does not get assigned to the textinput. We are
using window.open function to open the popup window.



This is a stubbed version of the huge code that we have. We are facing a
similar problem in our main application also



Would be nice if we can get few suggestions on how to solve this problem



Thanks



Srikanth





Note: app_js.js file included here, as unable to attach

function getRateCodeList() {

var frm=document.forms[0];

var oldCode = frm.rateCode.value;

showRefCode(frm.rateCode,'67','N','B'); 

//if (oldCode != frm.rateCode.value) {

// getDetails('R');

//}

}



function showRefCode(obj1,refType,delFlgInd,inPreceedence,obj2)

{

var url=app1_jsp.jsp;



window.open(url,RefCodeList,'height=500, width=500');

//var retVal = window.showModalDialog(url, '',height=550,
width=1000);

}



function showMain(d)

{

alert(d);

window.close();

}


_ 

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! Terms of Service
http://docs.yahoo.com/info/terms/ . 



--_=_NextPart_001_01C509FC.79A9ACD4
Content-Type: text/html

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
HTMLHEAD
META HTTP-EQUIV=Content-Type CONTENT=text/html; charset=us-ascii


META content=MSHTML 6.00.2900.2523 name=GENERATOR
STYLE@font-face {
font-family: Comic Sans MS;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: Times New Roman
}
LI.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: Times New Roman
}
DIV.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: Times New Roman
}
A:link {
COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
COLOR: windowtext; FONT-FAMILY: Arial
}
SPAN.EmailStyle19 {
FONT-WEIGHT: normal; COLOR: blue; FONT-STYLE: normal; FONT-FAMILY: Comic Sans 
MS; TEXT-DECORATION: none
}
DIV.Section1 {
page: Section1
}
/STYLE
/HEAD
BODY lang=EN-US vLink=purple link=blue
DIV dir=ltr align=leftSPAN class=747582214-03022005FONT face=Arial 
color=#ff size=2Hey Srikanth,/FONT/SPAN/DIV
DIV dir=ltr align=leftSPAN class=747582214-03022005FONT face=Arial 
color=#ff size=2/FONT/SPANnbsp;/DIV
DIV dir=ltr align=leftSPAN class=747582214-03022005FONT face=Arial 
color=#ff size=2Here you go, I have modified your files for the 
same.nbsp;/FONT/SPAN/DIV
DIV 

RE: [flexcoders] Image and Label in Custom Cellrenderer

2005-02-03 Thread Abdul Qabiz



yeah, you can have multiple components in a CellRenderer. 
You will have to take care of layouting etc.

Look into Flex CellRenderer documentation for examples or 
look at http://www.richinternetapps.com

-Abdul


From: Sjors Pals [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 03, 2005 6:47 PMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Image and Label in 
Custom Cellrenderer


Hello, i want to know or its 
possible to combine a image and a label in a cellrenderer.
This is the code I have now, this is 
working and it shows a bar (which represents a value between 0 and 
100)


mx:VBox 
xmlns:mx="http://www.macromedia.com/2003/mxml"
 
mx:Script
 
function setValue(str:String, item:Object, sel:Boolean) : Void 
{
 
image.source="assets/bar.jpg"
 
image.maintainAspectRatio = false;
 
image.width = item["CB_INDEX"];
 
image.height = 5;
 
}
 
/mx:Script
 mx:Image 
id="image" height="5"/
/mx:VBox

Greets,

Sjors Pals


DateChooser : How to highlight multiple days

2005-02-03 Thread Willem Engelbrecht
Hi 

I would like to know how i can use the datechooser to
highlight multiple days to show that there is an entry on
that day like people use in blogs.


Thanks 
__
http://www.webmail.co.za the South African FREE email service




RE: [flexcoders] DateChooser : How to highlight multiple days

2005-02-03 Thread Jos vd Laar
http://www.rich-internet.de/blog/index.cfm?mode=dayday=2month=6year=2004

is a custom component that does something like that



-Original Message-
From: Willem Engelbrecht [mailto:[EMAIL PROTECTED]
Sent: woensdag 2 februari 2005 11:34
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DateChooser : How to highlight multiple days



Hi 

I would like to know how i can use the datechooser to
highlight multiple days to show that there is an entry on
that day like people use in blogs.


Thanks 
__
http://www.webmail.co.za the South African FREE email service



Yahoo! Groups Links











RE: [flexcoders] Flex Uploading to server?

2005-02-03 Thread Tolulope Olonade [ MTN -YelloDrome ]



Ok,
I'll keep an eye out for it.
Dimitri never seems to amaze me.
I 
think you should be an RD Engr for Microsoft :)
But 
you are a Java guy...
Thanks 
a lot.
Enjoy

Tolulope W. 
OlonadeSys Dev-TSS EngineerMTN YelloDrome, VI Lagos, Nigeria "Its practically impossible to teach good programming to students that 
have had a prior exposure to BASIC: as potential programmers they are mentally 
mutilated beyond hope of regenration."
Prof. Edsger W. Dijkstra 
(1930-2002) 



-Original Message-From: Dimitrios Gianninas 
[mailto:[EMAIL PROTECTED]Sent: Thursday, 
February 03, 2005 2:31 PMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Flex Uploading 
to server?
Of course, there is a 
document I wrote with an example... however the web site seems down at the 
current moment.

The link is: 
www.markme.com/mchotin

Look under the month of 
November once it is back up.

Jimmy 
Gianninas - Developer
Optimal Payments Inc.



From: Tolulope Olonade [ MTN -YelloDrome ] 
[mailto:[EMAIL PROTECTED] Sent: Thursday, February 03, 2005 
7:09 AMTo: 'flexcoders@yahoogroups.com'Subject: 
[flexcoders] Flex Uploading to server?

Anybody know how I can do uploading in 
flex?
just 
like we do in isapi, asp.net and aspetc???

Thanks..
NOTE: This e-mail message is subject to the MTN 
Nigeria disclaimer see 
http://www.mtnonline.com/contact/disclaimer.asp



AVIS 
IMPORTANT
WARNING


Les 
informations contenues dans le present document et ses pieces jointes 
sont strictement confidentielles et reservees a l'usage de 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 is strictly 
prohibited. If you have received this document by mistake, please notify 
the sender immediately and destroy this document and attachments without 
making any copy of any kind.

NOTE: This e-mail message is subject to the MTN Nigeria disclaimer see http://www.mtnonline.com/contact/disclaimer.asp


RE: [flexcoders] Samples Error: FormatSourceService

2005-02-03 Thread Peter Farland
This means Flex's proxy couldn't find a service called FormatSourceService
in the flex-config.xml configuration.

Can you check:

a) that the /WEB-INF/flex/flex-config.xml file exists
b) that this file contains the necessary sample configurations (i.e.
includes an entry for FormatSourceService) - if not, perhaps you've mixed up
the samples flex configuration file and a bare bones flex configuration
file. 
c) that there weren't any configuration errors in the web application
startup logs when trying to deploy the flex/cf applications



-Original Message-
From: chrs_hearn [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 02, 2005 2:22 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Samples Error: FormatSourceService




I get the dreaded error on the samples installation and cant for the 
life of me fix it, please help somebody...its a win32 coldfusion 
installation...C:\CFusionMX\wwwroot\WEB-INF

Any ideas where to look for problems...is it path related?

This was in the log file:

02/01 23:24:19 DEBUG Mxml Base Servlet: keep generated SWFs = false 02/02
14:15:25 DEBUG Mxml Base Servlet: keep generated SWFs = false 02/02 14:15:26
WARNING PROXY SECURITY : Bad service name : 
FormatSourceService
02/02 14:15:26 ERROR %%Server%%java.lang.RuntimeException: Bad 
service name : FormatSourceService
java.lang.RuntimeException: Bad service name : FormatSourceService
at flex.server.j2ee.proxy.ProxyServlet.service
(ProxyServlet.java:396)
at javax.servlet.http.HttpServlet.service
(HttpServlet.java:853)
at flex.bootstrap.BootstrapServlet.service
(BootstrapServlet.java:69)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at jrun.servlet.JRunInvokerChain.invokeNext
(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke
(JRunRequestDispatcher.java:249)
at jrun.servlet.ServletEngineService.dispatch
(ServletEngineService.java:527)
at jrun.servlet.jrpp.JRunProxyService.invokeRunnable
(JRunProxyService.java:192)
at 
jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable
(ThreadPool.java:348)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable
(ThreadPool.java:451)
at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable
(ThreadPool.java:294)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)






Yahoo! Groups Links










RE: [flexcoders] Flex Uploading to server?

2005-02-03 Thread Dimitrios Gianninas



LOL!

Java is just fine much more 
fun and much more technologies to play with... its like being a kid 
:)

And if I wasn't a Java guy 
right now, I would be painfully waiting to use Flex. 

Jimmy 
Gianninas - Developer
Optimal 
Payments Inc.



From: Tolulope Olonade [ MTN -YelloDrome ] 
[mailto:[EMAIL PROTECTED] Sent: Thursday, February 03, 2005 
10:11 AMTo: 'flexcoders@yahoogroups.com'Subject: RE: 
[flexcoders] Flex Uploading to server?

Ok,
I'll keep an eye out for it.
Dimitri never seems to amaze me.
I 
think you should be an RD Engr for Microsoft :)
But 
you are a Java guy...
Thanks 
a lot.
Enjoy

Tolulope W. 
OlonadeSys Dev-TSS EngineerMTN YelloDrome, VI Lagos, Nigeria "Its practically impossible to teach good programming to students that 
have had a prior exposure to BASIC: as potential programmers they are mentally 
mutilated beyond hope of regenration."
Prof. Edsger W. Dijkstra 
(1930-2002) 



-Original Message-From: Dimitrios Gianninas 
[mailto:[EMAIL PROTECTED]Sent: Thursday, 
February 03, 2005 2:31 PMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Flex Uploading 
to server?
Of course, there is a 
document I wrote with an example... however the web site seems down at the 
current moment.

The link is: 
www.markme.com/mchotin

Look under the month of 
November once it is back up.

Jimmy 
Gianninas - Developer
Optimal Payments Inc.



From: Tolulope Olonade [ MTN -YelloDrome ] 
[mailto:[EMAIL PROTECTED] Sent: Thursday, February 03,2005 
7:09 AMTo: 'flexcoders@yahoogroups.com'Subject: 
[flexcoders] Flex Uploading to server?

Anybody know how I can do uploading in 
flex?
just 
like we do in isapi, asp.net and aspetc???

Thanks..
NOTE: This e-mail message is subject to the MTN 
Nigeria disclaimer see 
http://www.mtnonline.com/contact/disclaimer.asp



AVIS 
IMPORTANT
WARNING


Les 
informations contenues dans le present document et ses pieces jointes 
sont strictement confidentielles et reservees a l'usage de 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 is strictly 
prohibited. If you have received this document by mistake, please notify 
the sender immediately and destroy this document and attachments without 
making any copy of any kind.
NOTE: This e-mail message is subject to the MTN 
Nigeria disclaimer see 
http://www.mtnonline.com/contact/disclaimer.asp


Re: [flexcoders] Attempting to add a button to Panel titlebar

2005-02-03 Thread JesterXL



If you don't want to use a mix-in, a classthat 
basically adds stuff at runtime to an existing class (which from an OOP 
standpoint  Flex' future career, you shouldn't do, but from a Functional 
standpoint + Decorator is perfectly legal), then use Manish's example; he uses 
inheritance, much like the TitleWindow extends Panel and has a close 
button;

http://manish.revise.org/archives/2005/01/09/resizable-titlewindow-in-flex/

Also, Christophe Coenraets also has a great example 
of extending Panel:

http://coenraets.com/viewarticle.jsp?articleId=89

(if his site fails, hit refresh)


- Original Message - 
From: 
Seth 
Voltz 
To: Flex Coders 
Sent: Thursday, February 03, 2005 5:46 
AM
Subject: [flexcoders] Attempting to add a 
button to Panel titlebar
Fellow Flexcoders,So I have been trying to place a 
button in the titlebar of one of my panels and started digging around. I 
remembered Jesse had put up an example of a mix-in class ( http://www.jessewarden.com/archives/2005/01/collapseable_pa.html 
) for doing just that. I dug through the code and have had no luck. I have 
included the actionscript from my test file at the end of this 
message.so my questions are:1) Jesse, what voodoo do you do to 
get that to work? ;)2) Everyone, is there a different way I can do this? 
Is Jesse's way the most efficient / 
elegant?Thanks,SethCode:myPanel.mxml (root element 
is mx:Panel / with the following in a script tag, not including 
includes)import 
mx.utils.*;import de.richinternet.utils.Dumper;private var menu_pb 
: Button;public function initFunk ( ) {Dumper.dump ( "Init..." 
);_initMenuButton ( this ); // Not sure why I have to do this, but I don't 
got compile errors on menu_pb with this.}static private function 
_initMenuButton ( obj ) {Dumper.dump ( "Init 2..." 
);obj.>obj.createClassObject ( 
Button, "menu_pb", obj.getNextHighestDepth ( ));obj.menu_pb.label = 
"";obj.menu_pb.setSize ( 22, 22 );obj.menu_pb.addEventListener ( 
"click", Delegate.create ( obj, obj.onMenuButton ));}private 
function onMenuButton ( ) {Dumper.dump ( "Trace: fileShare.onMenuButton()" 
);}static private function _sizeOverload ( obj ) {Dumper.dump 
( "Size 2..." );obj.super.size ( );obj.menu_pb.move ( obj.width - 
obj.menu_pb.width - 8, 4 );}function size ( ) : Void 
{Dumper.dump ( "Size..." );super.size ( );_sizeOverload ( this 
);}/* All dumps to the tracer are accounted for and in the 
expected order... */


Re: Samples Error: FormatSourceService

2005-02-03 Thread chrs_hearn

hey thanks, seems to be it, the samples config file was in the 
samples install dir...

saying that...(my samples are on an e:\sites\ drive where all my 
website folders are while the cf/flex files are in the 
c:\cfusionmx\wwwroot\web-inf\flex dir)...when i deploy flex apps is 
the main config file always added to or can you contain flex apps in 
their own sub dirs with their own config files, etc. (which is how i 
have it now).

also, i see the {context.root} all over the config file...am i 
supposed to edit this to a mention a path?




--- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] 
wrote:
 This means Flex's proxy couldn't find a service 
called FormatSourceService
 in the flex-config.xml configuration.
 
 Can you check:
 
 a) that the /WEB-INF/flex/flex-config.xml file exists
 b) that this file contains the necessary sample configurations 
(i.e.
 includes an entry for FormatSourceService) - if not, perhaps 
you've mixed up
 the samples flex configuration file and a bare bones flex 
configuration
 file. 
 c) that there weren't any configuration errors in the web 
application
 startup logs when trying to deploy the flex/cf applications
 
 
 
 -Original Message-
 From: chrs_hearn [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, February 02, 2005 2:22 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Samples Error: FormatSourceService
 
 
 
 
 I get the dreaded error on the samples installation and cant for 
the 
 life of me fix it, please help somebody...its a win32 coldfusion 
 installation...C:\CFusionMX\wwwroot\WEB-INF
 
 Any ideas where to look for problems...is it path related?
 
 This was in the log file:
 
 02/01 23:24:19 DEBUG Mxml Base Servlet: keep generated SWFs = 
false 02/02
 14:15:25 DEBUG Mxml Base Servlet: keep generated SWFs = false 
02/02 14:15:26
 WARNING PROXY SECURITY : Bad service name : 
 FormatSourceService
 02/02 14:15:26 ERROR %%Server%%java.lang.RuntimeException: Bad 
 service name : FormatSourceService
 java.lang.RuntimeException: Bad service name : FormatSourceService
 at flex.server.j2ee.proxy.ProxyServlet.service
 (ProxyServlet.java:396)
 at javax.servlet.http.HttpServlet.service
 (HttpServlet.java:853)
 at flex.bootstrap.BootstrapServlet.service
 (BootstrapServlet.java:69)
 at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
 at jrun.servlet.JRunInvokerChain.invokeNext
 (JRunInvokerChain.java:42)
 at jrun.servlet.JRunRequestDispatcher.invoke
 (JRunRequestDispatcher.java:249)
 at jrun.servlet.ServletEngineService.dispatch
 (ServletEngineService.java:527)
 at jrun.servlet.jrpp.JRunProxyService.invokeRunnable
 (JRunProxyService.java:192)
 at 
 jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable
 (ThreadPool.java:348)
 at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable
 (ThreadPool.java:451)
 at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable
 (ThreadPool.java:294)
 at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
 
 
 
 
 
 
 Yahoo! Groups Links







RE: [flexcoders] Flex Uploading to server?

2005-02-03 Thread Tolulope Olonade [ MTN -YelloDrome ]



Dont 
mess with C# though.
According to opinions all over the globe its widely accepted as the most 
elegant language. Developed by Anders Hejlsberg 
Author 
Turbo Pascal, Chief Architect Delphi and Lead Designer/Distinguished Engr 
Microsoft Corporation.
Bruce 
Eckel and Larry O'Brien also concurred.
Only 
not as cross platform as Java but read some things about the mono 
project.

The 
only problem is MS is too fast a moving target. B4 coming to grasp with C# , 
they started developing Cw pronounced C Omega otherwise called polyphonic 
C#
WIth 
support for assyncronous methods. see http://research.microsoft.com/Comega/

Well 
all of em are good. But I intend to do C#, Java and Flex for web apps from now 
on..
What 
do you think?

Tolulope W. 
OlonadeSys Dev-TSS EngineerMTN YelloDrome, VI Lagos, Nigeria "Its practically impossible to teach good programming to students that 
have had a prior exposure to BASIC: as potential programmers they are mentally 
mutilated beyond hope of regenration."
Prof. Edsger W. Dijkstra 
(1930-2002) 



-Original Message-From: Dimitrios Gianninas 
[mailto:[EMAIL PROTECTED]Sent: Thursday, 
February 03, 2005 4:24 PMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Flex Uploading 
to server?
LOL!

Java is just fine much 
more fun and much more technologies to play with... its like being a kid 
:)

And if I wasn't a Java guy 
right now, I would be painfully waiting to use Flex. 

Jimmy 
Gianninas - Developer
Optimal Payments Inc.



From: Tolulope Olonade [ MTN -YelloDrome ] 
[mailto:[EMAIL PROTECTED] Sent: Thursday, February 03, 2005 
10:11 AMTo: 'flexcoders@yahoogroups.com'Subject: RE: 
[flexcoders] Flex Uploading to server?

Ok,
I'll keep an eye out for 
it.
Dimitri never seems to amaze me.
I 
think you should be an RD Engr for Microsoft :)
But 
you are a Java guy...
Thanks a lot.
Enjoy

Tolulope W. 
OlonadeSys Dev-TSS EngineerMTN YelloDrome, VI Lagos, Nigeria "Its practically impossible to teach good programming to students that 
have had a prior exposure to BASIC: as potential programmers they are mentally 
mutilated beyond hope of regenration."
Prof. Edsger W. Dijkstra 
(1930-2002) 



-Original Message-From: Dimitrios Gianninas 
[mailto:[EMAIL PROTECTED]Sent: Thursday, 
February 03, 2005 2:31 PMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Flex 
Uploading to server?
Of course, there is a 
document I wrote with an example... however the web site seems down at the 
current moment.

The link is: 
www.markme.com/mchotin

Look under the month of 
November once it is back up.

Jimmy Gianninas - Developer
Optimal Payments Inc.



From: Tolulope Olonade [ MTN -YelloDrome ] 
[mailto:[EMAIL PROTECTED] Sent: Thursday, February 03, 
2005 7:09 AMTo: 'flexcoders@yahoogroups.com'Subject: 
[flexcoders] Flex Uploading to server?

Anybody know how I can do uploading in 
flex?
just like we do in isapi, asp.net and 
aspetc???

Thanks..
NOTE: This e-mail message is subject to the MTN 
Nigeria disclaimer see 
http://www.mtnonline.com/contact/disclaimer.asp



AVIS IMPORTANT
WARNING


Les 
informations contenues dans le present document et ses pieces jointes 
sont strictement confidentielles et reservees a l'usage de 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 is strictly 
prohibited. If you have received this document by mistake, please 
notify the sender immediately and destroy this document and 
attachments without making any copy of any 
kind.
NOTE: This e-mail message is subject to the MTN 
Nigeria disclaimer see 
http://www.mtnonline.com/contact/disclaimer.asp

NOTE: This e-mail message is subject to the MTN Nigeria disclaimer see http://www.mtnonline.com/contact/disclaimer.asp


RE: [flexcoders] Re: Samples Error: FormatSourceService

2005-02-03 Thread Peter Farland
Typically each Flex web application has its own configuration file... though
I do see a case where many mirrored web applications could have the same
configuration.

For some reason I thought there was a context param to specify the location
of the Flex configuration file (which would make it possible to point all
apps at one xml document) but turns out that it is fixed at
/WEB-INF/flex/flex-config.xml for J2EE Flex applications. If you think
making this configurable is desirable, please log an enhancement request,
but for now it appears that you'll have to duplicate the configuration file
in each web app.

The {context.root} is a special token that is translated to the web
application's context root by the configuration parser. It's probably best
to leave it there to improve portability.



-Original Message-
From: chrs_hearn [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 03, 2005 10:58 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Samples Error: FormatSourceService




hey thanks, seems to be it, the samples config file was in the 
samples install dir...

saying that...(my samples are on an e:\sites\ drive where all my 
website folders are while the cf/flex files are in the 
c:\cfusionmx\wwwroot\web-inf\flex dir)...when i deploy flex apps is 
the main config file always added to or can you contain flex apps in 
their own sub dirs with their own config files, etc. (which is how i 
have it now).

also, i see the {context.root} all over the config file...am i 
supposed to edit this to a mention a path?





RE: [flexcoders] Flex Uploading to server?

2005-02-03 Thread Dimitrios Gianninas



Not really the placethe 
discuss such things... I really have no opinion on the C#, Cw stuff, I don't 
know enough about them.

You Java and Flex will do fine 
however.

Jimmy 
Gianninas - Developer
Optimal 
Payments Inc.



From: Tolulope Olonade [ MTN -YelloDrome ] 
[mailto:[EMAIL PROTECTED] Sent: Thursday, February 03, 2005 
11:20 AMTo: 'flexcoders@yahoogroups.com'Subject: RE: 
[flexcoders] Flex Uploading to server?

Dont 
mess with C# though.
According to opinions all over the globe its widely accepted as the most 
elegant language. Developed by Anders Hejlsberg 
Author 
Turbo Pascal, Chief Architect Delphi and Lead Designer/Distinguished Engr 
Microsoft Corporation.
Bruce 
Eckel and Larry O'Brien also concurred.
Only 
not as cross platform as Java but read some things about the mono 
project.

The 
only problem is MS is too fast a moving target. B4 coming to grasp with C# , 
they started developing Cw pronounced C Omega otherwise called polyphonic 
C#
WIth 
support for assyncronous methods. see http://research.microsoft.com/Comega/

Well 
all of em are good. But I intend to do C#, Java and Flex for web apps from now 
on..
What 
do you think?

Tolulope W. 
OlonadeSys Dev-TSS EngineerMTN YelloDrome, VI Lagos, Nigeria "Its practically impossible to teach good programming to students that 
have had a prior exposure to BASIC: as potential programmers they are mentally 
mutilated beyond hope of regenration."
Prof. Edsger W. Dijkstra 
(1930-2002) 



-Original Message-From: Dimitrios Gianninas 
[mailto:[EMAIL PROTECTED]Sent: Thursday, 
February 03, 2005 4:24 PMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Flex Uploading 
to server?
LOL!

Java is just fine much 
more fun and much more technologies to play with... its like being a kid 
:)

And if I wasn't a Java guy 
right now, I would be painfully waiting to use Flex. 

Jimmy 
Gianninas - Developer
Optimal Payments Inc.



From: Tolulope Olonade [ MTN -YelloDrome ] 
[mailto:[EMAIL PROTECTED] Sent: Thursday, February 03,2005 
10:11 AMTo: 'flexcoders@yahoogroups.com'Subject: RE: 
[flexcoders] Flex Uploading to server?

Ok,
I'll keep an eye out for 
it.
Dimitri never seems to amaze me.
I 
think you should be an RD Engr for Microsoft :)
But 
you are a Java guy...
Thanks a lot.
Enjoy

Tolulope W. 
OlonadeSys Dev-TSS EngineerMTN YelloDrome, VI Lagos, Nigeria "Its practically impossible to teach good programming to students that 
have had a prior exposure to BASIC: as potential programmers they are mentally 
mutilated beyond hope of regenration."
Prof. Edsger W. Dijkstra 
(1930-2002) 



-Original Message-From: Dimitrios Gianninas 
[mailto:[EMAIL PROTECTED]Sent: Thursday, 
February 03, 2005 2:31 PMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Flex 
Uploading to server?
Of course, thereis a 
document I wrote with an example... however the web site seems down at the 
current moment.

The link is: 
www.markme.com/mchotin

Look under the month of 
November once it is back up.

Jimmy Gianninas - Developer
Optimal Payments Inc.



From: Tolulope Olonade [ MTN -YelloDrome ] 
[mailto:[EMAIL PROTECTED] Sent: Thursday, February 03, 
2005 7:09 AMTo: 'flexcoders@yahoogroups.com'Subject: 
[flexcoders] Flex Uploading to server?

Anybody know how I can do uploading in 
flex?
just like we do in isapi, asp.net and 
aspetc???

Thanks..
NOTE: This e-mail message is subject to the MTN 
Nigeria disclaimer see 
http://www.mtnonline.com/contact/disclaimer.asp



AVIS IMPORTANT
WARNING


Les 
informations contenues dans le present document et ses pieces jointes 
sont strictement confidentielles et reservees a l'usage de 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 vousavez 
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 is strictly 
prohibited. If you have received this document by mistake, please 
notify the sender immediately and destroy this document and 
attachments without making any copy of any 
kind.
NOTE: This e-mail message is subject to the MTN 
Nigeria disclaimer see 
http://www.mtnonline.com/contact/disclaimer.asp
NOTE: This e-mail message is subject to the MTN 
Nigeria disclaimer see 
http://www.mtnonline.com/contact/disclaimer.asp


RE: [flexcoders] Re: Samples Error: FormatSourceService

2005-02-03 Thread Peter Farland
A colleague of mine just pointed out that you may be confusing a J2EE web
application with the concept of a coldfusion application.

If you only have one ColdFusion standalone installation, then you only have
one J2EE web application. This means you only have one place to specify a
Flex configuration.

Flex runs as a J2EE web application, it doesn't have a configuration file on
a directory by directory basis.




-Original Message-
From: chrs_hearn [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 03, 2005 11:54 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Samples Error: FormatSourceService




Just to clarify...does flex or the 'web application' run from 
the /web-inf/flex/flex-config.xml in the directory where my app is 
(in my case the e: drive) or the c: drive /web-inf/ under my 
coldfusion installation?

My sample files including where the formatsource.jsp file is under 
my samples dir on the e: drive where i keep all my sites. Flex seems 
to be running from the c:\cfusionmx\wwwroot\web-inf dirs.





Re: Samples Error: FormatSourceService

2005-02-03 Thread chrs_hearn

ah...this is were i get confused since i'm coming from the CF side 
of things. I have a standard CFMX installation...what must i do or 
where do I install flex apps? I saw the wwwroot/web-inf dir and 
thought this is where I must put the files. Am i wrong for 
installing it this way or is there a different approach I should 
follow? I assume now everything must go under my current CF 
installation wwwroot/web-inf dir and I do not have the ability to 
place them anywhere on my server.

Is there an easy way to install seperate J2EE server instances now 
that I have already done it the standard way or am I hosed?



--- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] 
wrote:
 A colleague of mine just pointed out that you may be confusing a 
J2EE web
 application with the concept of a coldfusion application.
 
 If you only have one ColdFusion standalone installation, then you 
only have
 one J2EE web application. This means you only have one place to 
specify a
 Flex configuration.
 
 Flex runs as a J2EE web application, it doesn't have a 
configuration file on
 a directory by directory basis.
 
 
 
 
 -Original Message-
 From: chrs_hearn [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, February 03, 2005 11:54 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Samples Error: FormatSourceService
 
 
 
 
 Just to clarify...does flex or the 'web application' run from 
 the /web-inf/flex/flex-config.xml in the directory where my app is 
 (in my case the e: drive) or the c: drive /web-inf/ under my 
 coldfusion installation?
 
 My sample files including where the formatsource.jsp file is under 
 my samples dir on the e: drive where i keep all my sites. Flex 
seems 
 to be running from the c:\cfusionmx\wwwroot\web-inf dirs.







Re: dynamic xml in flex

2005-02-03 Thread pioplacz

I've tryed to this is my php... 
http://serenadserver.mine.nu:8080/katalog.php it won't work... don't 
know really why... my app works the same way like the flex store... 

--- In flexcoders@yahoogroups.com, Manish Jethani 
[EMAIL PROTECTED] wrote:
 pioplacz wrote:
 
  would be nice is something like webservice used in the flex 
store.. 
  cuase my application works the same way.. but how can i make it 
  happen i have mysql database and i run iis so i have both php 
and 
  asp... 
 
 Write some PHP to output your data in XML format, and then Flex 
can 
 access it from the URL using HTTPService. See the blog reader 
example.
 
 Manish







RE: [flexcoders] Re: dynamic xml in flex

2005-02-03 Thread Matt Chotin








You might need to use
mx.utils.ArrayUtil.toArray() depending on which part of the data youre
looking for. Search for that in the docs to see if it makes sense foryou.



Matt











From: pioplacz
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 03,2005
9:45 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: dynamic
xml in flex






I've tryed to this is my php... 
http://serenadserver.mine.nu:8080/katalog.php
it won't work... don't 
know really why... my app works the same waylike
the flex store... 

--- In flexcoders@yahoogroups.com,
Manish Jethani 
[EMAIL PROTECTED] wrote:
 pioplacz wrote:
 
  would be nice is something like
webservice used in the flex 
store.. 
  cuase my application works the same
way.. but how can i make it 
  happen i have mysql database and irun
iis so i have both php 
and 
  asp... 
 
 Write some PHP to output your data in XML
format, and then Flex 
can 
 access it from the URL using HTTPService. See
the blog reader 
example.
 
 Manish












Out Of Memory: Message

2005-02-03 Thread goran187

I am running Flex 1.5 on Apache Tomcat/5.0.28.

Occasionally, I get the following error message:


'Requested page cannot be displayed 

An unexpected error occurred that prevented /AdTags/Adt.mxml from 
being displayed. 

--
--

Servlet execution threw an exception

Technical Information:

HTTP Status Code: 500
Exception Type: class java.lang.OutOfMemoryError
Servlet Name: FlexMxmlServlet



Exception java.lang.OutOfMemoryError'




===

After I restart Tomcat service, the message is gone. Anyone aware of 
the cause and fixes?

Thanks,
Goran







Re: Samples Error: FormatSourceService

2005-02-03 Thread chrs_hearn

Thanks for the help, I have concluded it was a whitelist issue...i 
needed to add the domain i am using to the white list...and the 
config must reside with the cf server folder, not the app folder 
like you said...works now, hope this helps another using coldfusion.

BTW, any good flex 1.5 books out yet or on the way?







RE: [flexcoders] Out Of Memory: Message

2005-02-03 Thread Steiner, Jeff
Goran

What does your Tomcat memory usage look like? Also, what OS are you
running this on? How much addressable memory do you have available to
your Tomcat service?

Jeff

-Original Message-
From: goran187 [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 03, 2005 10:32 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Out Of Memory: Message



I am running Flex 1.5 on Apache Tomcat/5.0.28.

Occasionally, I get the following error message:


'Requested page cannot be displayed 
  
An unexpected error occurred that prevented /AdTags/Adt.mxml from being
displayed. 
 
--
--

Servlet execution threw an exception
 
Technical Information:

HTTP Status Code: 500
Exception Type: class java.lang.OutOfMemoryError Servlet Name:
FlexMxmlServlet


 
Exception java.lang.OutOfMemoryError'




===

After I restart Tomcat service, the message is gone. Anyone aware of the
cause and fixes?

Thanks,
Goran





 
Yahoo! Groups Links



 







Re: how can I do this in Flex? -- (warning, best -practice police are in the hou

2005-02-03 Thread Miguel D�az Valenzuela

my friend, i have this problem now

if I do if(dg.getItemAt(i).select) never can enter to do:
Request.para = dg.getItemAt(i).code
servicio_datos_motivos.send(Request);
i don´t know which option or function can I use ...

thanks a lot anyway for all your help
if you can help me now, i will be very grateful to you

--- In flexcoders@yahoogroups.com, Mehdi, Agha [EMAIL PROTECTED] wrote:
 Miguel,
 
 Compare function1 with the one you sent. Notice, that I have
 dg.getItemAt(i) instead of dg.getItemAt(i+1) and you can get
specific
 value from the column by giving the column Name like
dg.getItemAt(i).code
 
 When you do dg.getItemAt(i), it returns you the entire row row for that
 index. The row is an object containing all the columns you have in the
 dataprovider of the datagrid.
 
 ===Function 1==
 function envia_motivos_fuc(){
 var Request:Object = new Object();
 var selectedData:Array = new Array();
 for(var i=0;idg.length;i++)  dg is datagrid´s name
 {
 if(dg.getItemAt(i).select)
 {
 Request.para = dg.getItemAt(i).code  here i´m specified a
 parameter
 servicio_datos_motivos.send(Request);  that´s webservice
 }
 }
 }
 =
 
 One more thing that it'll work if you select only one checkbox in
the grid
 but if you're doing multiple selections from the checkbox then it'll
create
 problems since for every single selected checkbox, you're sending single
 value to the webservice. It'll make a lot more sense if you populate an
 array with all the selected items and send that array to the server.
 
 function envia_motivos_fuc()
 {
 var Request:Object = new Object();
 var selectedData:Array = new Array();
 for(var i=0;idg.length;i++)  dg is datagrid´s name
 {
 if(dg.getItemAt(i).select)
 {
 selectedData.push( dg.getItemAt(i).code );
 }
 }
 Request.para = selectedData  here i´m specified a parameter
 servicio_datos_motivos.send(Request);  that´s webservice
 }
 
 This way you send any array with all the selected codes at once,
which makes
 it easier to manage. Let me know if you have any question.
 
 -- Agha
 
 -Original Message-
 From: Miguel D�az Valenzuela [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, February 02, 2005 7:28 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: how can I do this in Flex? -- (warning, best
 -practice police are in the hou
 
 
 
 mmm, i have a question now, how can i get only one column of a row i
need to
 send it how a parameter, but no all row, only a column
 
 for example
 
 |___select one___|___code___|___name___|
 #9632; 101 name 1
 #9632; 102 name 2
 #9632; 103 name 3
 
 supposing that I select the second row, I want to take code only,
that is to
 say,  102, and this value I want to send it as parameter through
an aspx
 file across a webservice (which is already done)
 
 my another problem is I do not know if the function to extract the
value is
 realized well
 
 that´s code:
 
 function envia_motivos_fuc(){
 var Request:Object = new Object();
 var selectedData:Array = new Array();
 for(var i=0;idg.length;i++)  dg is datagrid´s name
 {
 if(dg.getItemAt(i+1).select)
 {
 Request.para = dg.getItemAt(i).rowIndex(i+1)  here i´m
 specified a parameter
 servicio_datos_motivos.send(Request);  that´s webservice
 }
 }
 }
 
 thanks in advance for all help
 
 --- In flexcoders@yahoogroups.com, Miguel D�az Valenzuela
 [EMAIL PROTECTED] wrote:
  
  don´t worry, thanks for help me :)
  will check it out tomorrow, now i´m going to house :P
  
  --- In flexcoders@yahoogroups.com, Mehdi, Agha [EMAIL PROTECTED] wrote:
   I'm sorry. I should've been more clear. myData is the name of your
  datagrid.
   
   
   -Original Message-
   From: Miguel D�az Valenzuela [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, February 01, 2005 1:40 PM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Re: how can I do this in Flex? -- (warning, 
   best -practice police are in the hou
   
   
   
   I have a problem, what kind of variable is myData?
   
   sorry for my ignorance
   
   --- In flexcoders@yahoogroups.com, Miguel D�az Valenzuela 
   [EMAIL PROTECTED] wrote:

yeah man, i think that is for me, i will check you suggestion

many thanks to you Agha

--- In flexcoders@yahoogroups.com, Mehdi, Agha [EMAIL PROTECTED]
 wrote:
 Miguel,
 
 If I'm right about your question then here's the solution.
 
 The datagrid has 4 columns. One of them has checkboxes in it.
 
 Datagrid = myData
 
 Column1 = select (with checkboxes)
 Column2 = name
 Column3 = age
 Column4 = city
 
 Var selectedData = new Array();
 
 For ( var i = 0; i  myData.length; i++ ) {
 if ( myData.getItemAt(i).select )
 {
 selectedData.push( myData.getItemAt(i) );
 }
 }
 
 selectedData array will now hold all the items from the datagrid
where the
 checkbox is 

Re: simple datagrid cell colour renderer

2005-02-03 Thread Andrew Spaulding

Hi Matt,

I have tried using a getPreferredHeight method that returns the owners
layoutHeight and this works fine, the colour fills the entire cell
now. But I still have some weird behaviour when there is a scoll bar
on my datagrid. If click and drag on the scroll bar and move it up and
down the list the rows in the datagrid gradually increase in height.

Do you have any idea what may be causing this?

Andrew.

---

Use the following as a demo for this behaviour:

App.mxml
?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=*

mx:DataGrid variableRowHeight=true
dataProvider={[{foo: 'bar', doo: 'This is some sample text'},
{foo: 'bar'}, {foo: 'baz', doo: 'This is some sample text, this is
some sample text'}, {foo: 'bar', doo: 'This is some sample text'},
{foo: 'bar'}, {foo: 'baz', doo: 'This is some sample text, this is
some sample text'},{foo: 'bar', doo: 'This is some sample text'},
{foo: 'bar'}, {foo: 'baz', doo: 'This is some sample text, this is
some sample text'},{foo: 'bar', doo: 'This is some sample text'},
{foo: 'bar'}, {foo: 'baz', doo: 'This is some sample text, this is
some sample text'},{foo: 'bar', doo: 'This is some sample text'},
{foo: 'bar'}, {foo: 'baz', doo: 'This is some sample text, this is
some sample text'},{foo: 'bar', doo: 'This is some sample text'},
{foo: 'bar'}, {foo: 'baz', doo: 'This is some sample text, this is
some sample text'},{foo: 'bar', doo: 'This is some sample text'},
{foo: 'bar'}, {foo: 'baz', doo: 'This is some sample text, this is
some sample text'},{foo: 'bar', doo: 'This is some sample text'},
{foo: 'bar'}, {foo: 'baz', doo: 'This is some sample text, this is
some sample text'}]}

mx:columns

mx:Array

mx:DataGridColumn columnName=foo
cellRenderer=bgCell /
mx:DataGridColumn columnName=doo wordWrap=true /

/mx:Array

/mx:columns

/mx:DataGrid

/mx:Application


bgCell.mxml
?xml version=1.0 encoding=utf-8?

mx:VBox xmlns:mx=http://www.macromedia.com/2003/mxml;

mx:Script
![CDATA[

var value : String;
var owner;

function setValue(v) : Void
{
value = v;

setStyle(backgroundColor, v == 'baz' ? 0xff :
undefined);
}


function getPreferredHeight() : Number
{
return owner.layoutHeight;
}

]]
/mx:Script

mx:Label text={value} /

/mx:VBox

--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:
 OK, try adding this to the cell renderer:
 
 
 
 var owner;
 
 function getPreferredHeight() : Number
 
 {
 
 return owner.layoutHeight;
 
 }
 
 
 
 Matt
 
 
 
 _ 
 
 From: Andrew Spaulding [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, February 02, 2005 9:06 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: simple datagrid cell colour renderer
 
 
 
 
 Here's some sample code to demonstrate what I'm talking about. You can
 see that the problem in the last row of the grid.
 
 
 App.mxml
 ?xml version=1.0 encoding=utf-8?
 
 mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml
 http://www.macromedia.com/2003/mxml 
 xmlns=*
 
 mx:DataGrid variableRowHeight=true
 dataProvider={[{foo: 'bar', doo: 'This is some sample text'},
 {foo: 'bar'}, {foo: 'baz', doo: 'This is some sample text, this is
 some sample text'}]}
 
 mx:columns
 
 mx:Array
 
 mx:DataGridColumn columnName=foo
 cellRenderer=bgCell /
 mx:DataGridColumn columnName=doo wordWrap=true /
 
 /mx:Array
 
 /mx:columns
 
 /mx:DataGrid
 
 /mx:Application
 
 
 bgCell.mxml
 ?xml version=1.0 encoding=utf-8?
 
 mx:VBox xmlns:mx=http://www.macromedia.com/2003/mxml
 http://www.macromedia.com/2003/mxml 
 
 mx:Script
 ![CDATA[
 
 var value : String;
 
 function setValue(v) : Void
 
 {
 value = v;
 
 setStyle(backgroundColor, v == 'baz' ? 0xff :
 undefined);
 }
 
 ]]
 /mx:Script
 
 mx:Label text={value} /
 
 /mx:VBox
 
 
 Andrew.







Re: dynamic xml in flex

2005-02-03 Thread pioplacz

Maybe it sounds king of noobish but i'm a noob... but cannot get it 
to work... i tryed just passing the data from httpservice to 
datagrid but the right data won't show... I'm getting all 
confused maybe is something wrong with my php xml output... :S 


--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:
 You might need to use mx.utils.ArrayUtil.toArray() depending on 
which part
 of the data you're looking for. Search for that in the docs to 
see if it
 makes sense for you.
 
 
 
 Matt
 
 
 
 _ 
 
 From: pioplacz [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, February 03, 2005 9:45 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: dynamic xml in flex
 
 
 
 
 I've tryed to this is my php... 
 http://serenadserver.mine.nu:8080/katalog.php
 http://serenadserver.mine.nu:8080/katalog.php it won't work... 
don't 
 know really why... my app works the same way like the flex 
store... 
 
 --- In flexcoders@yahoogroups.com, Manish Jethani 
 [EMAIL PROTECTED] wrote:
  pioplacz wrote:
  
   would be nice is something like webservice used in the flex 
 store.. 
   cuase my application works the same way.. but how can i make 
it 
   happen i have mysql database and i run iis so i have both php 
 and 
   asp... 
  
  Write some PHP to output your data in XML format, and then Flex 
 can 
  access it from the URL using HTTPService. See the blog reader 
 example.
  
  Manish
 
 
 
 
 
 
 _ 
 
 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]
subject=Unsubscribe 
 
 * Your use of Yahoo! Groups is subject to the Yahoo!
 http://docs.yahoo.com/info/terms/ Terms of Service.







RE: [flexcoders] Re: how can I do this in Flex? -- (warning, best -practice police are in the hou

2005-02-03 Thread Mehdi, Agha
Miguel,

I'm not sure what are you asking. Can you please explain the problem?

Thanks

Agha 

-Original Message-
From: Miguel D�az Valenzuela [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 03, 2005 11:32 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: how can I do this in Flex? -- (warning, best
-practice police are in the hou



my friend, i have this problem now

if I do if(dg.getItemAt(i).select) never can enter to do:
Request.para = dg.getItemAt(i).code
servicio_datos_motivos.send(Request);
i don´t know which option or function can I use ...

thanks a lot anyway for all your help
if you can help me now, i will be very grateful to you

--- In flexcoders@yahoogroups.com, Mehdi, Agha [EMAIL PROTECTED] wrote:
 Miguel,
 
 Compare function1 with the one you sent. Notice, that I have 
 dg.getItemAt(i) instead of dg.getItemAt(i+1) and you can get
specific
 value from the column by giving the column Name like
dg.getItemAt(i).code
 
 When you do dg.getItemAt(i), it returns you the entire row row for 
 that index. The row is an object containing all the columns you have 
 in the dataprovider of the datagrid.
 
 ===Function 1==
 function envia_motivos_fuc(){
 var Request:Object = new Object();
 var selectedData:Array = new Array();
 for(var i=0;idg.length;i++)  dg is datagrid´s name
 {
 if(dg.getItemAt(i).select)
 {
 Request.para = dg.getItemAt(i).code  here i´m
specified 
 a parameter
 servicio_datos_motivos.send(Request);  that´s webservice
 }
 }
 }
 =
 
 One more thing that it'll work if you select only one checkbox in
the grid
 but if you're doing multiple selections from the checkbox then it'll
create
 problems since for every single selected checkbox, you're sending 
 single value to the webservice. It'll make a lot more sense if you 
 populate an array with all the selected items and send that array to the
server.
 
 function envia_motivos_fuc()
 {
 var Request:Object = new Object();
 var selectedData:Array = new Array();
 for(var i=0;idg.length;i++)  dg is datagrid´s name
 {
 if(dg.getItemAt(i).select)
 {
 selectedData.push( dg.getItemAt(i).code );
 }
 }
 Request.para = selectedData  here i´m specified a parameter
 servicio_datos_motivos.send(Request);  that´s webservice }
 
 This way you send any array with all the selected codes at once,
which makes
 it easier to manage. Let me know if you have any question.
 
 -- Agha
 
 -Original Message-
 From: Miguel D�az Valenzuela [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, February 02, 2005 7:28 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: how can I do this in Flex? -- (warning, best 
 -practice police are in the hou
 
 
 
 mmm, i have a question now, how can i get only one column of a row i
need to
 send it how a parameter, but no all row, only a column
 
 for example
 
 |___select one___|___code___|___name___|
 #9632; 101 name 1
 #9632; 102 name 2
 #9632; 103 name 3
 
 supposing that I select the second row, I want to take code only,
that is to
 say,  102, and this value I want to send it as parameter through
an aspx
 file across a webservice (which is already done)
 
 my another problem is I do not know if the function to extract the
value is
 realized well
 
 that´s code:
 
 function envia_motivos_fuc(){
 var Request:Object = new Object();
 var selectedData:Array = new Array();
 for(var i=0;idg.length;i++)  dg is datagrid´s name
 {
 if(dg.getItemAt(i+1).select)
 {
 Request.para = dg.getItemAt(i).rowIndex(i+1)  here
i´m 
 specified a parameter
 servicio_datos_motivos.send(Request);  that´s webservice
 }
 }
 }
 
 thanks in advance for all help
 
 --- In flexcoders@yahoogroups.com, Miguel D�az Valenzuela 
 [EMAIL PROTECTED] wrote:
  
  don´t worry, thanks for help me :)
  will check it out tomorrow, now i´m going to house :P
  
  --- In flexcoders@yahoogroups.com, Mehdi, Agha [EMAIL PROTECTED] wrote:
   I'm sorry. I should've been more clear. myData is the name of your
  datagrid.
   
   
   -Original Message-
   From: Miguel D�az Valenzuela [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, February 01, 2005 1:40 PM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Re: how can I do this in Flex? -- (warning, 
   best -practice police are in the hou
   
   
   
   I have a problem, what kind of variable is myData?
   
   sorry for my ignorance
   
   --- In flexcoders@yahoogroups.com, Miguel D�az Valenzuela 
   [EMAIL PROTECTED] wrote:

yeah man, i think that is for me, i will check you suggestion

many thanks to you Agha

--- In flexcoders@yahoogroups.com, Mehdi, Agha [EMAIL PROTECTED]
 wrote:
 Miguel,
 
 If I'm right about your question then here's the solution.
 
 The datagrid has 4 columns. One of them has checkboxes in it.
 
 Datagrid = myData
 
 Column1 = select (with checkboxes)
 

Re: Flex, Hibernate and Coldfusion

2005-02-03 Thread mpwoodward2

--- In flexcoders@yahoogroups.com, Michael McKellip
[EMAIL PROTECTED] wrote:
 Cathy,
 
 Success! Thanks very much to you and Peter we have a workaround. There
 is definitely a classloader issue between CFMX / JRun 4 and the
 commons-logging classes. The end result is a user will be unable to
 access any classes that use the commons-logging.jar classes from
 within ColdFusion. In our case, we wanted to use a Hibernate backend
 developed for a Flex app from within another app developed in CF /
 Mach II. Hibernate uses the logging framework alot.

I've been working with Hibernate in Java lately and of course would
love to have this same functionality for my CF apps, so this has
definitely piqued my interest. My main question is this: now that you
have Hibernate loading from CF, are you using Java objects with it, or
have you figured out a way to persist CFCs using Hibernate?

Any details you can give on the specifics of what you're doing would
be greatly appreciated.

Thanks,
Matt







Oddities with binding columns of a DataGridColumn width in a repeater.

2005-02-03 Thread Jeff Tapper
Ok, heres an odd one.
Normally, I can use bindings to specify widths of DataGridColumns (a trick 
i use to set a % width), like so:

mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
mx:Model id=sizes
size1{this.width*.28}/size1
size2{this.width*.08}/size2
/mx:Model
mx:DataGrid id=dg 
mx:columns
mx:Array
mx:DataGridColumn textAlign=left 
columnName=name width={sizes.size1} /
mx:DataGridColumn textAlign=right 
columnName=city width={sizes.size1}/
mx:DataGridColumn textAlign=right 
columnName=state width={sizes.size1}/
mx:DataGridColumn textAlign=right 
columnName=zip width={sizes.size2}/
/mx:Array
/mx:columns
/mx:DataGrid
/mx:Application

however, if the datagrid appears in a repeater, it suddenly stops working.
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
mx:Model id=sizes
size1{this.width*.28}/size1
size2{this.width*.08}/size2
/mx:Model
mx:Model id=x2
one/one
one/one
/mx:Model
mx:Repeater dataProvider={x2.one}
mx:DataGrid id=dg 
mx:columns
mx:Array
mx:DataGridColumn textAlign=left 
columnName=name width={sizes.size1} /
mx:DataGridColumn textAlign=right 
columnName=city width={sizes.size1}/
mx:DataGridColumn textAlign=right 
columnName=state width={sizes.size1}/
mx:DataGridColumn textAlign=right 
columnName=zip width={sizes.size2}/
/mx:Array
/mx:columns
/mx:DataGrid
/mx:Repeater
/mx:Application

I'm not looking for a debate on the merits of looping over datagrids, but 
am puzzled by this odd break in behavior. I thought perhaps I was losing 
scope while in the repeater, but that doesnt seem to be the case, as if i 
add width={sizes.size1*3+sizes.size2} to the DataGrid itself, the grid is 
sized to the right width, but the columns are all equally spaced.

Anyone know whats going on here?
At 10:18 AM 11/27/2004, you wrote:
We do have the request in our system already.
-Original Message-
From: Mitch Aunger [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 25, 2004 8:32 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DataGridColumn resize width request (was: Question 
on heightTo property of mx.effects. Resize)

Is there an open request to add support for percentage values on the
column widths for the DataGrid as well?
Ex of what I'd like to see:
mx:DataGridColumn columnName=NUMBER headerText=Order width=10% /
Tho that currently throws an error:
Error /gcc/gccAppDemoOrders.mxml:10
Type mismatch in assignment statement: found String where Number is required.
I really really really would like to be able to set widths for
DataGridColumns as percentages PLEASE? It would seem to be very
important to me to be able to have the DataGrid be FLEXible in size
via percentages and have the DataGridColumns grow and shrink by %ages
too :)
Any other votes?
Thanks
Mitch
The World's Finest Candles!
Strongest scent on the market
http://www.showmescents.com/http://www.showmescents.com/
Independent Distributor for Gold Canyon Candles
On Wed, 24 Nov 2004 11:49:30 -0800, Jason Szeto [EMAIL PROTECTED] wrote:



 The resize effect does not support percent based values. However, this is a
 good enhancement request. I'll add it to our list.



 Jason


Yahoo! Groups Sponsor
ADVERTISEMENT
http://us.ard.yahoo.com/SIG=129hob5va/M=298184.5639630.6699735.3001176/D=groups/S=1705007207:HM/EXP=1101655102/A=2434970/R=0/SIG=11edksnhv/*http://www.netflix.com/Default?mqso=60185402
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.