[flexcoders] Re: HTTPService problems with SSL when using IE

2005-06-22 Thread viraf_bankwalla
The swf is being served over https.  Also, if I type in the URL with 
the params the data is returned correctly.  I am not sure what the 
problem is but suspect that it is related to HTTPS/FLEX/IE.

- viraf


--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] 
wrote:
 Is your SWF being served over HTTPS as well?  If your SWF is 
served over
 HTTP but the web service is at HTTPS you will need a 
crossdomain.xml
 file on your HTTPS server to get the player to connect.  Of course 
if
 Firefox is working correctly in the same config it doesn't seem 
like
 that would be the problem.
 
  
 
 We have seen IE bugs with HTTPS that's usually related to bugs in 
the
 app server.  Check your app server support pages and see if 
anything
 jumps out.
 
  
 
 Matt
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of cennis22
 Sent: Tuesday, June 21, 2005 5:34 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: HTTPService problems with SSL when using 
IE
 
  
 
 I am having the exact same problem...  different circumstances 
though.
 
 I am trying to connect to my HTTPS .NET web services on IIS5 W2K 
which
 work fine in Firefox but not in IE!! Heres the killer that might 
lead
 to something , it only works on my IE on my computer but not any
 single other person that trys to connect to the shared server. 
 
 I can communicate fine when I change the url from https to http. I 
am
 also choosing not to use the Flex Proxy for performance reasons.
 
 Do I need to create a policy file to access HTTPS services?
 
 - cennis
 
  http://www.mail-
 archive.com/flexcoders@yahoogroups.com/msg08704.html
 
 --- In flexcoders@yahoogroups.com, viraf_bankwalla
 [EMAIL PROTECTED] wrote:
  Thanks - I had not seen this - however do not believe that this 
is 
  the same problem.  
  
  I am using BEA Weblogic (will be using OAS in production).  
Also, 
  the flex application appears to load fine.  It issues two POST 
  requests during startup.  I am getting the data for one of the 
  requests.  It is the second request for which IE does not appear 
to 
  be receiving the data.
  
  - viraf
  
  --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] 
  wrote:
   Did you see this thread?
   http://www.mail-
  archive.com/flexcoders@yahoogroups.com/msg08704.html
   

   
   Matt
   

   
   
   
   From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On
   Behalf Of viraf_bankwalla
   Sent: Monday, June 20, 2005 7:58 AM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] HTTPService problems with SSL when using 
IE
   

   
   Hi,
   
   I have a flex application that works fine when I use http.  I
 have 
  now 
   switched to serving the application from https.  The 
application 
   appears to be failing with IE.  It works fine with Firefox.
   
   Anyone had problems with IE and Flex in SSL mode using 
  HTTPService.  I 
   am NOT using the proxy.  Things appear to function if I enable
 the 
   proxy - not sure why I need it.  Maybe someone could explain.  
My 
   preference would be NOT to use the proxy.
   
   
   Thanks.
   
   - viraf
   
   
   
   
   
   
   
   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]
   mailto:[EMAIL PROTECTED]
  subject=Unsubscribe 
   
   *  Your use of Yahoo! Groups is subject to the Yahoo! 
Terms of
   Service http://docs.yahoo.com/info/terms/ .
 
 
 
 
 
 
 
 
 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]
 mailto:[EMAIL PROTECTED]
subject=Unsubscribe 
 
 * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
 Service http://docs.yahoo.com/info/terms/ .




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




[flexcoders] Re: HTTPService problems with SSL when using IE

2005-06-21 Thread viraf_bankwalla
Thanks - I had not seen this - however do not believe that this is 
the same problem.  

I am using BEA Weblogic (will be using OAS in production).  Also, 
the flex application appears to load fine.  It issues two POST 
requests during startup.  I am getting the data for one of the 
requests.  It is the second request for which IE does not appear to 
be receiving the data.

- viraf

--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] 
wrote:
 Did you see this thread?
 http://www.mail-
archive.com/flexcoders@yahoogroups.com/msg08704.html
 
  
 
 Matt
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of viraf_bankwalla
 Sent: Monday, June 20, 2005 7:58 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] HTTPService problems with SSL when using IE
 
  
 
 Hi,
 
 I have a flex application that works fine when I use http.  I have 
now 
 switched to serving the application from https.  The application 
 appears to be failing with IE.  It works fine with Firefox.
 
 Anyone had problems with IE and Flex in SSL mode using 
HTTPService.  I 
 am NOT using the proxy.  Things appear to function if I enable the 
 proxy - not sure why I need it.  Maybe someone could explain.  My 
 preference would be NOT to use the proxy.
 
 
 Thanks.
 
 - viraf
 
 
 
 
 
 
 
 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]
 mailto:[EMAIL PROTECTED]
subject=Unsubscribe 
 
 * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
 Service http://docs.yahoo.com/info/terms/ .





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




[flexcoders] HTTPService problems with SSL when using IE

2005-06-20 Thread viraf_bankwalla
Hi,

I have a flex application that works fine when I use http.  I have now 
switched to serving the application from https.  The application 
appears to be failing with IE.  It works fine with Firefox.

Anyone had problems with IE and Flex in SSL mode using HTTPService.  I 
am NOT using the proxy.  Things appear to function if I enable the 
proxy - not sure why I need it.  Maybe someone could explain.  My 
preference would be NOT to use the proxy.


Thanks.

- viraf




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




[flexcoders] Detecting flash player

2005-05-24 Thread viraf_bankwalla
Hi,

I have a Flex application that is embeded in a HTML page.  When the 
application is referenced using 'appname.mxml.swf' I have noticed that 
the flash player is not being detected.

If I visit 'appname.mxml' directly from the browser, the version 
detection takes place.  How do I enable the version detection through 
the embeded object 'appname.mxml.swf' 

Thanks.




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




[flexcoders] Re: Data-binding problem using Cairngorm ServiceLocator

2005-04-30 Thread viraf_bankwalla
You could build the request and pass it as a argument to the send.

var args:Object = new Object();
args[username] = username;

var query = ServiceLocator.getInstance().getService(myQuery);
query.send(args);

or 

var query = ServiceLocator.getInstance().getService(myQuery);
query.send({username:username});


- viraf

--- In flexcoders@yahoogroups.com, jruud68 [EMAIL PROTECTED] wrote:
 I have defined a HTTPService in my Services.mxml as follows:
 
 mx:HTTPService id=myQuery url=http://www.mysite.com/index.xml;
   mx:request
 username{username}/username
   /mx:request
 /mx:HTTPService
 
 I then try to invoke the service from a different MXML file:
 
 var query = ServiceLocator.getInstance().getService(myQuery);
 query.send();
 
 The problem is that 'username' is bound to myQuery before myQuery 
 has been given a value by the app, so running the query fails. Is 
 there a way to force a 'rebind' of the query once it has been 
 returned from the ServiceLocator and before invoking query.send()? 
 (this is not necessarily Cairngorm's fault, but I need a 
workaround 
 when for when services are defined in MXML)
 
 Thanks, John





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





[flexcoders] DataGrid Cell Validation

2005-04-27 Thread viraf_bankwalla


Hi,

I have a datagrid with a cellrenderer.  It does validation, however we 
would like prevent the user from moving to a new cell unless the 
validation has passed.  How could I do so.

Thanks.

- viraf





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





[flexcoders] Re: DataGrid Column updates

2005-04-27 Thread viraf_bankwalla


I ended off calling setValue on the column headerCell to update the 
header, and am triggering a modelChanged updateAll to get the grid 
to redraw.

I will try setting the headerText and the invalidate() again in case 
I made an error.  

- viraf


--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:
 I think you should still set headerText and it will call setValue 
for you
 and force the redraw.  I don't know if calling setValue yourself 
will work.
 
  
 
 Not sure why invalidate() isn't working.  This is undocumented but 
you could
 try calling updateControl() on the DG.
 
  
 
 Matt
 
  
 
   _  
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, April 26, 2005 6:36 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: DataGrid Column updates
 
  
 
 
 The invalidate did not result in the view to be updated until some 
 action such as scrolling took place.  How can I have the grid 
redraw 
 itself.  I tried redraw(true) but that did not seem to work either.
 
 Thanks.
 
 --- In flexcoders@yahoogroups.com, viraf_bankwalla 
 [EMAIL PROTECTED] wrote:
  
  Thanks - 
  
  1.  As I have a headerRenderer does this mean that I should 
 directly 
  call setValue ?
  
  2. Calling invalidate will result in a redraw of the entire 
grid.  
  Is there a way to just redraw the column's cells.  When should 
one 
  call invalidate() vs dispatching a modelChanged updateAll on the 
  dataProvider ?
  
  Thanks
  
  - viraf
  
  
  
  --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] 
 wrote:
   1.  You can simply set the headerText on the DataGridColumn
   2.  Call invalidate() on the DataGrid
   3.  same as 2 (though you might need to reset the 
headerText on 
  the
   column for the header to redraw).  Jim's suggestion while it 
may 
  work is
   completely undocumented and thus unsupported.
   

   
   Matt
   

   
 _  
   
   From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] 
   Sent: Tuesday, April 26, 2005 10:22 AM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Re: DataGrid Column updates
   

   
   
   Any suggestions ?
   
   --- In flexcoders@yahoogroups.com, viraf_bankwalla 
   [EMAIL PROTECTED] wrote:

Hi,

1.  What is the best way to have a column's headerRenderer 
  update 
   its 
value (i.e. call setValue).  

2.  Have a column update its conthent - i.e. each of the 
 column 
  rows 
update themselves - i.e. call setValue.  

3.  Have the column header and cells update themselves.

Thanks.
   
   
   
   
   
   
 _  
   
   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]
  subject=Unsubscribe 
 
   *  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]
subject=Unsubscribe 
   
 * Your use of Yahoo! Groups is subject to the Yahoo!
 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/

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

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





[flexcoders] Re: DataGrid Column updates

2005-04-26 Thread viraf_bankwalla


Thanks - 

1.  As I have a headerRenderer does this mean that I should directly 
call setValue ?

2. Calling invalidate will result in a redraw of the entire grid.  
Is there a way to just redraw the column's cells.  When should one 
call invalidate() vs dispatching a modelChanged updateAll on the 
dataProvider ?

Thanks

- viraf



--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:
 1.You can simply set the headerText on the DataGridColumn
 2.Call invalidate() on the DataGrid
 3.same as 2 (though you might need to reset the headerText on 
the
 column for the header to redraw).  Jim's suggestion while it may 
work is
 completely undocumented and thus unsupported.
 
  
 
 Matt
 
  
 
   _  
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, April 26, 2005 10:22 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: DataGrid Column updates
 
  
 
 
 Any suggestions ?
 
 --- In flexcoders@yahoogroups.com, viraf_bankwalla 
 [EMAIL PROTECTED] wrote:
  
  Hi,
  
  1.  What is the best way to have a column's headerRenderer 
update 
 its 
  value (i.e. call setValue).  
  
  2.  Have a column update its conthent - i.e. each of the column 
rows 
  update themselves - i.e. call setValue.  
  
  3.  Have the column header and cells update themselves.
  
  Thanks.
 
 
 
 
 
 
   _  
 
 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.





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





[flexcoders] Re: DataGrid Column updates

2005-04-26 Thread viraf_bankwalla


The invalidate did not result in the view to be updated until some 
action such as scrolling took place.  How can I have the grid redraw 
itself.  I tried redraw(true) but that did not seem to work either.

Thanks.

--- In flexcoders@yahoogroups.com, viraf_bankwalla 
[EMAIL PROTECTED] wrote:
 
 Thanks - 
 
 1.  As I have a headerRenderer does this mean that I should 
directly 
 call setValue ?
 
 2. Calling invalidate will result in a redraw of the entire grid.  
 Is there a way to just redraw the column's cells.  When should one 
 call invalidate() vs dispatching a modelChanged updateAll on the 
 dataProvider ?
 
 Thanks
 
 - viraf
 
 
 
 --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] 
wrote:
  1.  You can simply set the headerText on the DataGridColumn
  2.  Call invalidate() on the DataGrid
  3.  same as 2 (though you might need to reset the headerText on 
 the
  column for the header to redraw).  Jim's suggestion while it may 
 work is
  completely undocumented and thus unsupported.
  
   
  
  Matt
  
   
  
_  
  
  From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] 
  Sent: Tuesday, April 26, 2005 10:22 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: DataGrid Column updates
  
   
  
  
  Any suggestions ?
  
  --- In flexcoders@yahoogroups.com, viraf_bankwalla 
  [EMAIL PROTECTED] wrote:
   
   Hi,
   
   1.  What is the best way to have a column's headerRenderer 
 update 
  its 
   value (i.e. call setValue).  
   
   2.  Have a column update its conthent - i.e. each of the 
column 
 rows 
   update themselves - i.e. call setValue.  
   
   3.  Have the column header and cells update themselves.
   
   Thanks.
  
  
  
  
  
  
_  
  
  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.





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





[flexcoders] Re: DataGrid performance

2005-04-25 Thread viraf_bankwalla


The grid has 19 rows (all of which are visible) and 22 columns of 
which 5 are visible.  Yes I have to horizontally scroll to see them.


--- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote:
 How many of the 30 columns can be seen at any one time? I'm 
assuming you
 have to horizontally scroll to see them all.
 
 - Gordon
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] 
 Sent: Sunday, April 24, 2005 7:14 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: DataGrid performance
 
 
 
 
 David,
 
 The rendering of this grid takes over 20 seconds on a 20 (rows) 
and 
 30 columns.  Yes we have a custom cell renderer which has two 
images 
 and 3 labels.  We have disabled live scrolling, however as 
indicated 
 it takes approx 20 seconds to render this grid.  I suspect that it 
 will take considerably longer on a client machine. 
 
 Any guidance would be appreciated.  
 
 Thanks.
 
 - viraf
 
 
 --- In flexcoders@yahoogroups.com, David George [EMAIL PROTECTED] 
 wrote:
  Viraf -
  
  When you say each cell in the grid contains 4 other objects 
that 
 are
  displayed, it sounds like you are using a custom cell 
renderer.  
 Is
  that right?
  
  Unfortunately, large DataGrids with custom cell renderers are a 
 known
  performance issue.  I'm afraid I can't completely solve your 
 problem
  on Flex v1.5.  You might want to turn off live scrolling, so 
that 
 the
  DataGrid doesn't attempt to constantly update while the user is
  dragging the slider thumb.
  
  We've already spoken publicly about the performance improvements
  coming in Flash Player 8, so it should be no surprise that 
 performance
  is a major focus of Flex v2.0.
  
  Viraf - would you be willing to send us a copy of your app, so 
 that we
  can use it as a performance test case for the next release?  
Or ...
  even better ... could you create a simple version of your app 
that
  just contains the poorly-performing DataGrid?  If so, please 
send 
 it
  directly to me at my work address - [EMAIL PROTECTED]
  
  Other folks on the list - this is an open invitation to send 
along
  your performance test cases too!  We ordinarily discourage 
people 
 from
  contacting employees off-list, but I'll make an exception in this
  case.
  
  Thanks,
  Dave
  
  On 4/13/05, viraf_bankwalla [EMAIL PROTECTED] wrote:

I have a DataGrid with approximately 20 rows and 10 columns.  
 Each 
cell in the grid contains 4 other objects that are 
displayed.  
 When 
scrolling vertically the performance is poor at best.  What 
can 
 I do 
to improve the performance?

I am reading the articly on Macromedia's site - however my 
 effectStart 
and effectEnd eventHandlers are not being invoked.  I set 
them 
 on a 
HBox that contains the grids.

Thanks.

- viraf





Yahoo! Groups Links


   To visit your group on the web, go to:
   http://groups.yahoo.com/group/flexcoders/
 
   To unsubscribe from this group, send an email to:
   [EMAIL PROTECTED]
 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
 Service.
 
 
 
 
 
  
 Yahoo! Groups Links





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





[flexcoders] Re: createClassObject

2005-04-25 Thread viraf_bankwalla


I have two images and three labels in each cell.  Their visibility 
is controlled by the data and user display criteria - thus I specify 
a name for them.

I noticed that if I did not specify getNextHighestDepth() it 
appeared that each time createClassObject was called the prior 
object was destroyed and the new one created.  

Could someone please provide me an explanation on what 
getNextHighestDepth does.  My understanding was that this was the z-
order, thus could I just set all the children to be at the same z-
order ?  If not, is a simple one up counter sufficent ?

Thanks.



--- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote:
 If only a single Image named imgE is being created per cell, 
then you
 don't have to specify a unique name -- only children of a single 
parent have
 to have unique names. However, there is generally no good reason 
to ever
 specify a name in createClassObject. If you pass undefined for the 
second
 argument, Flex will generate a unique name for you.
 
 - Gordon
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] 
 Sent: Sunday, April 24, 2005 11:26 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: createClassObject
 
 
 
 
 --- In flexcoders@yahoogroups.com, viraf_bankwalla
 [EMAIL PROTECTED] wrote:
 
  imgE = createClassObject(Image,imgE, getNextHighestDepth()); 
 
 Try avoiding the call to getNextHighestDepth() by maintaining your 
own
 counter.
 
 Also, I think the second argument to createClassObject() needs to 
be
 unique.
 
 
 
 
 
  
 Yahoo! Groups Links





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





[flexcoders] DataGrid Column updates

2005-04-25 Thread viraf_bankwalla


Hi,

1.  What is the best way to have a column's headerRenderer update its 
value (i.e. call setValue).  

2.  Have a column update its conthent - i.e. each of the column rows 
update themselves - i.e. call setValue.  

3.  Have the column header and cells update themselves.

Thanks.





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





[flexcoders] Re: how to delay headerRenderer ?

2005-04-25 Thread viraf_bankwalla


We have the same situation.  Once we receive data from a service we 
create the columns (as it is based on the data in our case) and 
assign the data provider to the grid.  NOTE - if you assign a data 
provider when there are no columns created Flex will try to create 
columns based on the objects attributes.  So you need to take care
 of this

- viraf

--- In flexcoders@yahoogroups.com, sanjayd [EMAIL PROTECTED] wrote:
 
 Hi.
 
 I have a 'headerRenderer' that creates dynamic column headers 
based on
 the results from a webService dataprovider. The problem is that 
when I
 load the app on my browser for the first time, the result of the
 dataProvider is still 'undefined', so the column headers do not 
render
 properly. However, when I reload the app by pressing 'refresh' on 
my
 browser, the column headers look good. How can I solve this 
problem ?
 Thanks in advance.
 
 Sanjay
 here is the webService tag:
 
 mx:WebService id=ws
 
wsdl=http://localhost:8080/axis/services/PositionsRepoRatesService?
wsdl
 fault=faultHandler(event.fault.faultstring)
 concurrency=single load=runRepoRateServices() useProxy=false
 mx:operation name=getRepoRates
 result=repoRateResultHandler(event.result)
   mx:request
   date{soapRequest_mmdd_date}/date
   /mx:request
   /mx:operation
 /mx:WebService





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





[flexcoders] Re: how to delay headerRenderer ?

2005-04-25 Thread viraf_bankwalla


That is what I am doing as the data that I receive from the service 
includes the column and row information.

- viraf

--- In flexcoders@yahoogroups.com, sanjayd [EMAIL PROTECTED] wrote:
 
 Viraf: Thanks for your response. Are you saying that the dataGrid
 should not have any dataProvider assigned to it in the beginning 
and
 then dynamically assign a dataProvider to the dataGrid only after 
the
 data has been obtained ?
 
 Sanjay
 
 --- In flexcoders@yahoogroups.com, viraf_bankwalla
 [EMAIL PROTECTED] wrote:
  
  We have the same situation.  Once we receive data from a service 
we 
  create the columns (as it is based on the data in our case) and 
  assign the data provider to the grid.  NOTE - if you assign a 
data 
  provider when there are no columns created Flex will try to 
create 
  columns based on the objects attributes.  So you need to take 
care
   of this
  
  - viraf
  
  --- In flexcoders@yahoogroups.com, sanjayd [EMAIL PROTECTED] 
wrote:
   
   Hi.
   
   I have a 'headerRenderer' that creates dynamic column headers 
  based on
   the results from a webService dataprovider. The problem is 
that 
  when I
   load the app on my browser for the first time, the result of 
the
   dataProvider is still 'undefined', so the column headers do 
not 
  render
   properly. However, when I reload the app by pressing 'refresh' 
on 
  my
   browser, the column headers look good. How can I solve this 
  problem ?
   Thanks in advance.
   
   Sanjay
   here is the webService tag:
   
   mx:WebService id=ws
   
  
wsdl=http://localhost:8080/axis/services/PositionsRepoRatesService?
  wsdl
   fault=faultHandler(event.fault.faultstring)
   concurrency=single load=runRepoRateServices() 
useProxy=false
   mx:operation name=getRepoRates
   result=repoRateResultHandler(event.result)
 mx:request
 date{soapRequest_mmdd_date}/date
 /mx:request
 /mx:operation
   /mx:WebService





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





[flexcoders] Re: DataGrid performance

2005-04-24 Thread viraf_bankwalla


David,

The rendering of this grid takes over 20 seconds on a 20 (rows) and 
30 columns.  Yes we have a custom cell renderer which has two images 
and 3 labels.  We have disabled live scrolling, however as indicated 
it takes approx 20 seconds to render this grid.  I suspect that it 
will take considerably longer on a client machine. 

Any guidance would be appreciated.  

Thanks.

- viraf


--- In flexcoders@yahoogroups.com, David George [EMAIL PROTECTED] 
wrote:
 Viraf -
 
 When you say each cell in the grid contains 4 other objects that 
are
 displayed, it sounds like you are using a custom cell renderer.  
Is
 that right?
 
 Unfortunately, large DataGrids with custom cell renderers are a 
known
 performance issue.  I'm afraid I can't completely solve your 
problem
 on Flex v1.5.  You might want to turn off live scrolling, so that 
the
 DataGrid doesn't attempt to constantly update while the user is
 dragging the slider thumb.
 
 We've already spoken publicly about the performance improvements
 coming in Flash Player 8, so it should be no surprise that 
performance
 is a major focus of Flex v2.0.
 
 Viraf - would you be willing to send us a copy of your app, so 
that we
 can use it as a performance test case for the next release?  Or ...
 even better ... could you create a simple version of your app that
 just contains the poorly-performing DataGrid?  If so, please send 
it
 directly to me at my work address - [EMAIL PROTECTED]
 
 Other folks on the list - this is an open invitation to send along
 your performance test cases too!  We ordinarily discourage people 
from
 contacting employees off-list, but I'll make an exception in this
 case.
 
 Thanks,
 Dave
 
 On 4/13/05, viraf_bankwalla [EMAIL PROTECTED] wrote:
   
   I have a DataGrid with approximately 20 rows and 10 columns.  
Each 
   cell in the grid contains 4 other objects that are displayed.  
When 
   scrolling vertically the performance is poor at best.  What can 
I do 
   to improve the performance?
   
   I am reading the articly on Macromedia's site - however my 
effectStart 
   and effectEnd eventHandlers are not being invoked.  I set them 
on a 
   HBox that contains the grids.
   
   Thanks.
   
   - viraf
   
   
   
   
   
   Yahoo! Groups Links
   
   
  To visit your group on the web, go to:
  http://groups.yahoo.com/group/flexcoders/

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

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





 
Yahoo! Groups Links

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

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

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





[flexcoders] createClassObject

2005-04-24 Thread viraf_bankwalla


Hi,

I have a cellRenderer that creates a number of children in the 
createChildren.  When profiling I noticed that this is taking a 
considerable amount of time as I have a 20x20 grid.  I create the 
objects in the createChildren method as:

imgE = createClassObject(Image,imgE, getNextHighestDepth()); 

As each cell contains 5 objects it is taking over 20 seconds to render 
the initial grid.  What can I do to improve performance ?  





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





[flexcoders] General / Performance questions

2005-04-22 Thread viraf_bankwalla


Hi,

I have an application that is primarily two data grids (summary and 
detailed) that is suffering from performance problems (takes approx 
20 seconds to render a page).  I am just about to start profiling 
and examining our application for performance, and have a host of 
introductory questions 

1.  Is there a performance difference between accessing 
properties as object.property and object[property].
2.  Is there a performance difference between calling methods 
and static methods?  
3.  What is the overhead for the dispatcher and dispatching 
events vs. calling methods directly?
4.  What is the difference between instantiating classes using 
new vs createClassObject.  What are the best practices between their 
usage?
5.  The Flex Application Performance… paper on
Macromedia's 
site suggests using absolute positioning and sizing.  What is the 
difference between setting width/height and calling setSize.  What 
is the difference between setting x,y vs move.  What is the the 
preferred mechanism for setting the above.
6.  What documents are available to help me better understand 
how the UI component work so that I can apply appropriate mechanisms 
to improve rendering of the application.
7.  What have been other peoples experience and how have they 
improved the performance of the application?






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





[flexcoders] Flex with OAS

2005-04-20 Thread viraf_bankwalla


Hi,

Has anyone been successful in running a flex application on Oracle 10 
app server.  I have a test page hello.mxml that I am able to access, 
however if I access main.mxml.swf it appears that a 404 is being 
returned.

This works fine under weblogic.  

Thanks

- viraf





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





[flexcoders] Cairngorm

2005-04-18 Thread viraf_bankwalla


Hi,

Wanted to follow up to see when we can expect the next release of 
Cairngorm.  

Thanks.





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





[flexcoders] Re: Containers siziong - scroll bars

2005-04-17 Thread viraf_bankwalla


Is it ?  Your suggestion appears to work which suggests that there 
are different.  What is the difference ?

I decided not to use percents as soem of the articles suggest not 
using percents.  I did get the above working by specifying the 
hScrollPolicy and vScrollPolicy to off.  

So what is the preferred way os specifying sizes, and what the the 
difference between specifying percents vs pixels.

Thanks.


--- In flexcoders@yahoogroups.com, Manish Jethani 
[EMAIL PROTECTED] wrote:
 On 4/17/05, viraf_bankwalla [EMAIL PROTECTED] wrote:
 
  mx:ViewStack id=appView width={width} height={height}
 
 Isn't that the same as the following, except that the following 
works?
 
   mx:ViewStack id=appView width=100% height=100%
 
 -- 
 [EMAIL PROTECTED]
 http://manish.revise.org/





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





[flexcoders] resizing containers as user resizes browser window

2005-04-17 Thread viraf_bankwalla


Hi,

How do I resize my containers when the user resizes the browsers 
window?  I added a resize event listner to one of the views in a 
viewstack.  This handler was called twice during the initial rendering 
if the screen, however it was not called when I resized my browser 
window.

Thanks.





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





[flexcoders] Re: HTTPService xmlEncoder

2005-04-16 Thread viraf_bankwalla


I have a set of VO's in the application that need to be sent to the 
server as XML.  I was debating whether I should provide the objects 
and specify an xmlEncoder to the HTTP Service, or simply do the 
encoding use Strings as the request arguments to send.

At this this time, I have decided to go ahead and specify an 
xmlEncoder. 

Thanks.



--- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote:
  my decoder could just as easily build the XML document as a 
  string.
 You mean a XML string or XML to name-value pairs...
 
 If you want to convert a XML object to string, you can do 
_xml.toString(),
 it would give you entire xml structure as string...
 
 Does your encoder do same?
 
 -abdul
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] 
 Sent: Friday, April 15, 2005 6:17 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] HTTPService xmlEncoder
 
 
 
 Hi,
 
 I have a HTTPService for which I have written a xmlDecoder to 
build my 
 VOs from data received from my service.  I am not about to send 
data 
 to the service, and was wondering if using the xmlEncoder was an 
 overkill - my decoder could just as easily build the XML document 
as a 
 string.
 
 What are the pro's and cons of each ?
 
 Thanks.
 
 
 
 
 
  
 Yahoo! Groups Links





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





[flexcoders] HTTPService xmlEncoder

2005-04-15 Thread viraf_bankwalla


Hi,

I have a HTTPService for which I have written a xmlDecoder to build my 
VOs from data received from my service.  I am not about to send data 
to the service, and was wondering if using the xmlEncoder was an 
overkill - my decoder could just as easily build the XML document as a 
string.

What are the pro's and cons of each ?

Thanks.





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





[flexcoders] Rendering in background

2005-04-14 Thread viraf_bankwalla


Hi,

I have an application that displays a splash page on startup.  It then 
proceeds to load data for some grids.  Once the data has been 
received, it selects the view to be displayed.  

The problem is that this view takes a considerable amount of time to 
load (it has two grids).  I would like for this view to be constructed 
in thee background if possible.  When the data is received, and the 
view has been constructed, I would like to switch from the splash view 
to the application view.

My question being how do I get the view to render its content in the 
background while the splash page is being displayed.

Thanks.





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





[flexcoders] Grid Header ContextMenu

2005-04-13 Thread viraf_bankwalla


Hi,

How do I create a context menu for my Header in a grid?  I have a 
HeaderRenderer and tried to cast it to a MovieObject and set the menu 
attribute, however this did not work.

Thanks.

- viraf





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





[flexcoders] DataGrid performance

2005-04-13 Thread viraf_bankwalla


I have a DataGrid with approximately 20 rows and 10 columns.  Each 
cell in the grid contains 4 other objects that are displayed.  When 
scrolling vertically the performance is poor at best.  What can I do 
to improve the performance?

I am reading the articly on Macromedia's site - however my effectStart 
and effectEnd eventHandlers are not being invoked.  I set them on a 
HBox that contains the grids.

Thanks.

- viraf





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





[flexcoders] Re: Grid Header ContextMenu

2005-04-13 Thread viraf_bankwalla


Thanks - I was looking for an example on how to detect the right 
mouseDown in a header (or appropiate action to bring up the 
ContextMenu) , and determine which header the mouse was pressed in.  

Thanks

--- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote:
 Yeah, Label uses Flash Textfield, But for ContextMenu, a textfield 
should be
 selectable/editable.
 
 
 Following is simple example for context-menu, if you already know 
how to do
 it, ignore it.
 
 ##ContextMenuExample.mxml##
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
 initialize=addContextMenu();
 mx:Script
 ![CDATA[
   
   
   
   function addContextMenu()
   {
   var _cm:ContextMenu;
   var about_cmi:ContextMenuItem;
   _cm = new ContextMenu();
   about_cmi  = new ContextMenuItem(About This App,
 mx.utils.Delegate.create(this,showAbout));
   _cm.customItems.push(about_cmi);
   _cm.hideBuiltInItems();
   mx.core.Application.application.menu = _cm;
   }
   
   function showAbout()
   {
   alert(Context Menu Example App v 1.0);
   }
   
 ]]
 /mx:Script
 /mx:Application
 
 
 -abdul
 
 
  
 
 -Original Message-
 From: viraf_bankwalla [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, April 13, 2005 5:45 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Grid Header ContextMenu
 
 
 
 Thanks
 
 UIObject extends MovieClip - so I thought that I could simply add 
it 
 to any object.  How do I find out which Flex components use the 
 Flash TextField ? (Do Labels use the text field ?)
 
 Do you have an example ?
 
 
 - viraf
 
 
 --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote:
  Hi,
  
  We only support context-menus at application level only, not to 
 any children
  of application or to nested objects. However you can add context-
 menu items
  to TextInput, TextArea or anything that uses a Flash TextField.
  
  Hopefully, in future context-menu would be supported for nested 
 objects.
  
  
  But there is workaround, you can add/remove context menu items 
to 
 main
  context menu depending upon where mouse pointer isSo if user 
 right
  clicks on header, you can detect that mouse pointer is on 
datagrid 
 header
  and add context menu items...
  
  Does it make sense?
  
  -abdul
  
  
  -Original Message-
  From: viraf_bankwalla [mailto:[EMAIL PROTECTED] 
  Sent: Wednesday, April 13, 2005 5:10 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Grid Header ContextMenu
  
  
  
  Hi,
  
  How do I create a context menu for my Header in a grid?  I have 
a 
  HeaderRenderer and tried to cast it to a MovieObject and set the 
 menu 
  attribute, however this did not work.
  
  Thanks.
  
  - viraf
  
  
  
  
  
   
  Yahoo! Groups Links
 
 
 
 
 
  
 Yahoo! Groups Links





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





[flexcoders] Cairngorn Example

2005-04-10 Thread viraf_bankwalla


Hi,

I have started looking at Cairngorn and was wondering if there were 
any real-world examples available.  The BOE example appears to be pre 
Cairngorn and the demo sample is trivial.

Are people using Cairngorn as a framework ?  Could you share your 
experiences? 

Thanks.





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





[flexcoders] DataProvider Events (filterModel or updateAll)

2005-04-10 Thread viraf_bankwalla


Hi,

The DataProvider document identifies the following events:

addItems - The firstItem and lastItem properties will indicate the 
indices of the new items added. 
removeItems - The firstItem and lastItem properties will indicate 
the indices of the removed items. 
updateItems - The firstItem and lastItem properties will indicate 
the indices of the updated items. 
sort - The entire data set has been sorted. 
updateField - This means that a cell or field in the data for that 
row/item has been edited. The firstItem and lastItem properties will 
indicate the index of the updated item, fieldName will name which 
field in the item changed. 
filterModel - The data set has been filtered, or the filter has been 
changed or removed. 
updateAll - this means that the data has been entirely replaced or 
that the data has changed so significantly that the component 
displaying the data should recheck the number of items and request 
all the data again. 

My question is when should I use the filterModel vs the updateAll.  
I have a filtered DataProvider that extends an Array.  When a filter 
is applied, it uses the Array functions splice(0) to remove the 
elements from the Array and then populates it using push().  When 
this is done I want to trigger the appropiate event (not sure if it 
is filterModel or updateAll).

Any siggestions on what I should be using ?  I am using the array 
functions rather than the dataProvider functions removeAll, addItem 
as I do not want to trigger a set of events while I am updating the 
data provider.  An alternative would be to simple create and 
populate a new DataProvider.

Any suggestions / comments on my alternatives ?

Thanks.





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





[flexcoders] HTTPService.send help needed

2005-04-08 Thread viraf_bankwalla


Hi,

Enclosed is a simple example of a HTTPService.send.  I set the 
result, fault and xmlDecode properties in the call - however, they 
do not appear to be called.

Could someone please shed light on what I am doing wrong. 

Thanks.

--- startup.mxml
?xml version=1.0 encoding=utf-8?
mx:Application 
xmlns:mx=http://www.macromedia.com/2003/mxml; 
xmlns=*
backgroundColor=white
creationComplete=startupApp()
mx:Script
![CDATA[
function startupApp()
{
var handler:ServiceHandler = new 
ServiceHandler(catalogRequest);
handler.getCatalog();
}   
]]
/mx:Script
mx:HTTPService id=catalogRequest url=catalog.xml 
resultFormat=object  showBusyCursor=true/

mx:Text text=This is a test /
/mx:Application

--- ServiceHandler.as
import mx.utils.Delegate;

class ServiceHandler
{
var service:mx.servicetags.HTTPService;

public function ServiceHandler
(service:mx.servicetags.HTTPService)
{
super();
this.service = service;
}

public function getCatalog()
{
var call = service.send();
// call.xmlDecode = Delegate.create( Object( this ), 
this.onDecode )
call.result = Delegate.create( this, this.onResult )
call.fault = Delegate.create( this, this.onResult )

}

public function onResult( event : Object ) : Void
{
trace(onResult);
}

public function onFault( event : Object ) : Void
{
trace(onFault);
}

public function onDecode( node : XMLNode ) : Object
{
trace(onDecode);
return new Object();
}
}






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





[flexcoders] Re: Debug Flex Cairngorm application

2005-04-07 Thread viraf_bankwalla


Hi,

I am getting started with Cairngorm and do not see a 
CairngormApplication.mxml.  Did you mean CairngormApplication.as ?
Is there an mxml version of CairngormApplication that I should be 
using ?

What is the status of 1.0 ?

Thanks.


--- In flexcoders@yahoogroups.com, Steven Webster [EMAIL PROTECTED] 
wrote:
 Laurent,
 
 This is a known issue with FlexBuilder, that doesn't like the 
Application
 tag being extended.  For debug, just open 
CairngormApplication.mxml and
 rename it to whatever you want your top Application to be, and 
insert your
 own application in there for now.
 
 It's a reported issue with FlexBuilder.
 
 Best,
 
 Steven 
 
  -Original Message-
  From: Laurent Cornelis [mailto:[EMAIL PROTECTED] 
  Sent: 21 March 2005 11:28
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Debug Flex Cairngorm application
  
  
  Hi,
  
  I try to debug a Cairngorm Flex application using FlexBuilder 
  byt the debugger complains that the application is not using 
  mx:Application tag ...
  
  How do you debug Cairngorm application ?
  And more generally, what are you using to debug Flex 
applications ?
  
  Laurent Cornélis
  
  
   
  Yahoo! Groups Links
  
  
  
   
  
  
  --
  No virus found in this incoming message.
  Checked by AVG Anti-Virus.
  Version: 7.0.308 / Virus Database: 266.7.4 - Release Date: 
18/03/2005
   
  
 
 -- 
 No virus found in this outgoing message.
 Checked by AVG Anti-Virus.
 Version: 7.0.308 / Virus Database: 266.7.4 - Release Date: 
18/03/2005





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





[flexcoders] HTTPService.send

2005-04-07 Thread viraf_bankwalla


The HTTPService.send has the following signature

send( parameters: Object) :  Object 

1.  Could someone please explain how to progmatically build the 
parameters.  In the examples mx:request is used but I could not 
find the mx:request documented.

2.  send returns an object HTTP call that can be used for tracking 
multiple requests.  Could someone please explain this object and 
what operations may be performed on it.

3.  If the returned object is a handle to the request, can I set the 
decodeXML, encodeXML, fault, result properties on it?  If so, how 
does one handle race conditions (i.e. result received before 
properties being set).

Thanks.







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





[flexcoders] DataGrid events

2005-04-06 Thread viraf_bankwalla


Hi,

I have a datagrid in which columns have the sortCompareFunction 
defined.  When the method is called this appears to refer to the 
DataGrid as expected (event).

The problem that I am having is that the compiler complains if I try 
to call any of the methods on the datagrid, as the class in which the 
handler is defined is not a DataGrid.  For example, I have the 
columnIndex and would like to get the column, so I do 

this.getColumnAt(columnIndex)

I tried casting this to DataGrid - this did not work either.

Any suggestions on I could access the methods the DataGrid, or in the 
more general case whichever object this referes to.

Thanks.





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





[flexcoders] XMLNode CDATA

2005-04-05 Thread viraf_bankwalla


Hi,

I am writing an XML decoder for my HTTPService, and noticed that the 
nodeValue is a null when I have a CDATA element.  How do I get the 
CDATA value from the XMLNode?  

Thanks.

- viraf





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





[flexcoders] Re: XMLNode CDATA

2005-04-05 Thread viraf_bankwalla


Thanks - I will try this.

Is there any documentation (except in the ActionScript manual 
describing the XML class) that defines the rules as to when to use 
nodeValue vs firstChild.  

- viraf


--- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote:
 Try firstChild.firstChild instead of firstChild.nodeValue.
 
 - Original Message - 
 From: viraf_bankwalla [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Tuesday, April 05, 2005 3:40 PM
 Subject: [flexcoders] XMLNode CDATA
 
 
 
 
 Hi,
 
 I am writing an XML decoder for my HTTPService, and noticed that 
the 
 nodeValue is a null when I have a CDATA element.  How do I get the 
 CDATA value from the XMLNode?  
 
 Thanks.
 
 - viraf
 
 
 
 
 
  
 Yahoo! Groups Links





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





[flexcoders] Re: AS - adding dynamic properties to an object

2005-04-04 Thread viraf_bankwalla


While I can do an object.propertyName in AS to create the property 
with a known name, I do not know the property name till runtime 
(specified in the dataset that I receive), and did not know how to 
create the property at runtime.

The object to which I am adding the property is one of my classes, 
so I have control over it.

Thanks.




--- In flexcoders@yahoogroups.com, Harris Reynolds [EMAIL PROTECTED] 
wrote:
 In AS you always have the option of taking advantage
 of the dynamic type system and just adding properties
 to an untyped object on the fly.  What is the type of
 the object?  Is that an option?
 
 ~harris
 
 --- viraf_bankwalla [EMAIL PROTECTED] wrote:
  
  Hi,
  
  How do I add dynamic properties to an obect ?  These
  properties are 
  received over the HTTPService request.
  
  Thanks
  
  
  
  
  
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around 
 http://mail.yahoo.com





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





[flexcoders] Re: AS - adding dynamic properties to an object

2005-04-04 Thread viraf_bankwalla


Thanks - the example below would have worked if I had knowledge of the 
property name when I wrote the code.  This is not the case (the 
property name is retrieved with a service request).

The solution that I found was to use the associative array syntax - 

obj[propertyName] = yy;

Now the next question is that how do I specify that propertyName is 
of a given type - say Date or Number.

Thanks.




--- In flexcoders@yahoogroups.com, Manish Jethani 
[EMAIL PROTECTED] wrote:
 On Apr 5, 2005 1:08 AM, viraf_bankwalla [EMAIL PROTECTED] wrote:
 
  How do I add dynamic properties to an obect ?  These properties are
  received over the HTTPService request.
 
 If you have an instance of a dynamic class, you can just stick them
 onto the object.
 
  var o:Object = new Object(); // dynamic object
  o.newProperty = default value; // stick a new property onto it
 
 Pretty much it.
 
 Manish





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





[flexcoders] TextInput and cellEditor questions

2005-03-25 Thread viraf_bankwalla


Hi,

I noticed that if I right click on a TextInput field the context 
menu displays Cut, Copy, Paste, Delete and Select All.  How can I 
add an item to this menu?  

In a DataGrid, when one selects the cell, one is able to edit it.  
It appears that a TextInput is being displayed.  I would like the 
TextInput to have the new menu items, and invoke a dialog when 
selected.  How would I go about it.  I believe that it is the 
cellEditor that I need to override.

Thanks.





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





[flexcoders] edit ContextMenu

2005-03-25 Thread viraf_bankwalla


When I right-click in a TextInput I get the edit menu.  How do I add 
items to this edit ContextMenu ?  I tried the following, however the 
compiler complains that there is no property with the name Menu.

class CellEditor extends mx.controls.TextInput
{
  var _cm = null;

  function CellEditor()
  {
_cm = new ContextMenu();
_cm.customItems.push(new ContextMenuItem(new ContextMenuItem
(Details, details)));
this.menu = _cm;
  }

  function details(item:mx.controls.TextInput, 
mi:ContextMenuItem) :Void
  {
trace(Selected  + mi.caption);
  }
}

Thanks





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





[flexcoders] Re: edit ContextMenu

2005-03-25 Thread viraf_bankwalla


Thanks - I tried it but it does not seem to be working.
Any suggestions ?


--- application
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; 
xmlns=*
CellEditor text=Hello editable=true /
/mx:Application

- class
class CellEditor extends mx.controls.TextInput
{
function CellEditor()
{
var _cm = new ContextMenu();
_cm.customItems.push(new ContextMenuItem(new 
ContextMenuItem(Details, details)));
this.label.menu = _cm;
}

function details(item:mx.controls.TextInput, 
mi:ContextMenuItem) :Void
{
trace(Selected  + mi.caption);
}
}


--- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote:
 Hi,
 
 Try this:
 
 
 _ti.label.menu = cm;
 
 Where _ti is instance of TextInput.
 
 
 ###Modified Code##
 
 class CellEditor extends mx.controls.TextInput
 {
   var _cm = null;
   
   function CellEditor()
   {
 _cm = new ContextMenu();
 _cm.customItems.push(new ContextMenuItem(new ContextMenuItem
 (Details, details)));
 this.label.menu = _cm;
   }
 
   function details(item:mx.controls.TextInput, 
 mi:ContextMenuItem) :Void
   {
 trace(Selected  + mi.caption);
   }
 } 
 
 
 -abdul
 
 
 
 -Original Message-
 From: viraf_bankwalla [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, March 26, 2005 2:26 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] edit ContextMenu
 
 
 
 When I right-click in a TextInput I get the edit menu.  How do I 
add 
 items to this edit ContextMenu ?  I tried the following, however 
the 
 compiler complains that there is no property with the name Menu.
 
 class CellEditor extends mx.controls.TextInput
 {
   var _cm = null;
   
   function CellEditor()
   {
 _cm = new ContextMenu();
 _cm.customItems.push(new ContextMenuItem(new ContextMenuItem
 (Details, details)));
 this.menu = _cm;
   }
 
   function details(item:mx.controls.TextInput, 
 mi:ContextMenuItem) :Void
   {
 trace(Selected  + mi.caption);
   }
 }
 
 Thanks
 
 
 
 
 
  
 Yahoo! Groups Links





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





[flexcoders] Re: edit ContextMenu

2005-03-25 Thread viraf_bankwalla


Thanks - it works.

--- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote:
  
 Hi,
 
 Problem in your CellEditor.as code, 
 
 _cm.customItems.push(new ContextMenuItem(new ContextMenuItem
(Details,
 details)))
 
 *Nested ContextMenuItem(...)
 
 
 ##Corrected Code##
 
 class CellEditor extends mx.controls.TextInput
 {
   function CellEditor()
   {
   var _cm = new ContextMenu();
   _cm.customItems.push(new ContextMenuItem(Details,
 details));
   this.label.menu = _cm;
   }
 
   function details(item:mx.controls.TextInput, 
 mi:ContextMenuItem) :Void
   {
   trace(Selected  + mi.caption);
   }
 }
 
 -abdul
 
 -Original Message-
 From: viraf_bankwalla [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, March 26, 2005 4:12 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: edit ContextMenu
 
 
 
 Thanks - I tried it but it does not seem to be working.
 Any suggestions ?
 
 
 --- application
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; 
 xmlns=*
   CellEditor text=Hello editable=true /
 /mx:Application
 
 - class
 class CellEditor extends mx.controls.TextInput
 {
   function CellEditor()
   {
   var _cm = new ContextMenu();
   _cm.customItems.push(new ContextMenuItem(new 
 ContextMenuItem(Details, details)));
   this.label.menu = _cm;
   }
 
   function details(item:mx.controls.TextInput, 
 mi:ContextMenuItem) :Void
   {
   trace(Selected  + mi.caption);
   }
 }
 
 
 --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote:
  Hi,
  
  Try this:
  
  
  _ti.label.menu = cm;
  
  Where _ti is instance of TextInput.
  
  
  ###Modified Code##
  
  class CellEditor extends mx.controls.TextInput
  {
var _cm = null;
  
function CellEditor()
{
  _cm = new ContextMenu();
  _cm.customItems.push(new ContextMenuItem(new ContextMenuItem
  (Details, details)));
  this.label.menu = _cm;
}
  
function details(item:mx.controls.TextInput, 
  mi:ContextMenuItem) :Void
{
  trace(Selected  + mi.caption);
}
  } 
  
  
  -abdul
  
  
  
  -Original Message-
  From: viraf_bankwalla [mailto:[EMAIL PROTECTED] 
  Sent: Saturday, March 26, 2005 2:26 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] edit ContextMenu
  
  
  
  When I right-click in a TextInput I get the edit menu.  How do I 
 add 
  items to this edit ContextMenu ?  I tried the following, however 
 the 
  compiler complains that there is no property with the name Menu.
  
  class CellEditor extends mx.controls.TextInput
  {
var _cm = null;
  
function CellEditor()
{
  _cm = new ContextMenu();
  _cm.customItems.push(new ContextMenuItem(new ContextMenuItem
  (Details, details)));
  this.menu = _cm;
}
  
function details(item:mx.controls.TextInput, 
  mi:ContextMenuItem) :Void
{
  trace(Selected  + mi.caption);
}
  }
  
  Thanks
  
  
  
  
  
   
  Yahoo! Groups Links
 
 
 
 
 
  
 Yahoo! Groups Links





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





[flexcoders] Re: edit ContextMenu

2005-03-25 Thread viraf_bankwalla


Ok - now how do I use this as the CellEditor of a data grid?  

Thanks.

--- In flexcoders@yahoogroups.com, viraf_bankwalla 
[EMAIL PROTECTED] wrote:
 
 Thanks - it works.
 
 --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote:
   
  Hi,
  
  Problem in your CellEditor.as code, 
  
  _cm.customItems.push(new ContextMenuItem(new ContextMenuItem
 (Details,
  details)))
  
  *Nested ContextMenuItem(...)
  
  
  ##Corrected Code##
  
  class CellEditor extends mx.controls.TextInput
  {
  function CellEditor()
  {
  var _cm = new ContextMenu();
  _cm.customItems.push(new ContextMenuItem(Details,
  details));
  this.label.menu = _cm;
  }
  
  function details(item:mx.controls.TextInput, 
  mi:ContextMenuItem) :Void
  {
  trace(Selected  + mi.caption);
  }
  }
  
  -abdul
  
  -Original Message-
  From: viraf_bankwalla [mailto:[EMAIL PROTECTED] 
  Sent: Saturday, March 26, 2005 4:12 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: edit ContextMenu
  
  
  
  Thanks - I tried it but it does not seem to be working.
  Any suggestions ?
  
  
  --- application
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; 
  xmlns=*
  CellEditor text=Hello editable=true /
  /mx:Application
  
  - class
  class CellEditor extends mx.controls.TextInput
  {
  function CellEditor()
  {
  var _cm = new ContextMenu();
  _cm.customItems.push(new ContextMenuItem(new 
  ContextMenuItem(Details, details)));
  this.label.menu = _cm;
  }
  
  function details(item:mx.controls.TextInput, 
  mi:ContextMenuItem) :Void
  {
  trace(Selected  + mi.caption);
  }
  }
  
  
  --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] 
wrote:
   Hi,
   
   Try this:
   
   
   _ti.label.menu = cm;
   
   Where _ti is instance of TextInput.
   
   
   ###Modified Code##
   
   class CellEditor extends mx.controls.TextInput
   {
 var _cm = null;
 
 function CellEditor()
 {
   _cm = new ContextMenu();
   _cm.customItems.push(new ContextMenuItem(new 
ContextMenuItem
   (Details, details)));
   this.label.menu = _cm;
 }
   
 function details(item:mx.controls.TextInput, 
   mi:ContextMenuItem) :Void
 {
   trace(Selected  + mi.caption);
 }
   } 
   
   
   -abdul
   
   
   
   -Original Message-
   From: viraf_bankwalla [mailto:[EMAIL PROTECTED] 
   Sent: Saturday, March 26, 2005 2:26 AM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] edit ContextMenu
   
   
   
   When I right-click in a TextInput I get the edit menu.  How do 
I 
  add 
   items to this edit ContextMenu ?  I tried the following, 
however 
  the 
   compiler complains that there is no property with the name 
Menu.
   
   class CellEditor extends mx.controls.TextInput
   {
 var _cm = null;
 
 function CellEditor()
 {
   _cm = new ContextMenu();
   _cm.customItems.push(new ContextMenuItem(new 
ContextMenuItem
   (Details, details)));
   this.menu = _cm;
 }
   
 function details(item:mx.controls.TextInput, 
   mi:ContextMenuItem) :Void
 {
   trace(Selected  + mi.caption);
 }
   }
   
   Thanks
   
   
   
   
   

   Yahoo! Groups Links
  
  
  
  
  
   
  Yahoo! Groups Links





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





[flexcoders] Caching of HTTPService Requests

2005-03-24 Thread viraf_bankwalla


Hi,

It appears that my HTTPService requests are being cached (I do not 
see the request being made to the application).  How can I disable 
the caching of these requests ?

Thanks.







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





[flexcoders] Deploying flex application in an ear

2005-03-21 Thread viraf_bankwalla


Hi,

I have a web application that will be provided to customers as an 
EAR.  Some of the pages in the web application will be available in 
two versions (HTML and FLEX).  

I am having difficulties in packaging the flex application in a WAR 
that is included in the EAR (I get ClassNotFound exceptions at 
startup).  Has anyone been successful in this.

The second item refers to the License and config files.  Is there a 
way that these can reside outside the EAR - this will simplify the 
build / packaging process.

Thanks.







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





Flex setup

2005-03-05 Thread viraf_bankwalla

Hi,

I am experimenting with flex and have an application that will be 
requesting for services (HTTP Service) from a J2EE application. I 
would prefer not to bundle the flex jars, filters etc in the EAR I 
provide to the client.

My understanding is that I can compile flex files into SWF. Is this 
correct ?

Do I need any of the flex related files to be bundled with the EAR 
if I precompile the application as a SWF ? 







Re: DataGridColumn.headerRenderer / rotating text in header

2005-02-27 Thread viraf_bankwalla

Thanks - it appears to be working now. The code is as follows

var cname:String = a + ass.id;
var col:mx.controls.gridclasses.DataGridColumn = new 
mx.controls.gridclasses.DataGridColumn(cname);
col.columnName=cname;
col.headerText=cname;
col.headerRenderer=GradeHeaderRenderer;
col.cellRenderer=GradeCellRenderer;
display.addColumn(col);

I noticed that I could not specify the renderers as a string

- viraf


--- In flexcoders@yahoogroups.com, Manish Jethani 
[EMAIL PROTECTED] wrote:
 viraf_bankwalla wrote:
 
  For some reason, I do not see setValue being called. My cell 
  renderer is defined in MXML.
 
 How are you setting the headerRenderer? Can you post some code, 
please?
 
 Manish







Re: inline vs embedded fonts

2005-02-27 Thread viraf_bankwalla

Yes - it is - however the embeded font looks very different from the 
inline font. I am using verdana.ttf from windows/font directory. 

I have declared the font as: 

mx:Style
@font-face { fontFamily:headerFont; src:url
(assets/verdana.ttf); }
/mx:Style

and using it like:

mx:Label id=line1 fontFamily=headerFont fontSize=10/



--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:
 Only difference I can see in the header font is that it's bold. 
Otherwise
 it looks like it's Verdana 10pt (maybe it's 9pt but I don't think 
so).
 
 
 
 You can see the default styles by checking in 
mx/skins/halo/Default.as which
 you can find in the FlexForFlash.zip which came with your install.
 
 
 
 Matt
 
 
 
 _ 
 
 From: viraf_bankwalla [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, February 26, 2005 5:25 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] inline vs embedded fonts
 
 
 
 
 Hi,
 
 In order to rotate text, I have discovered that I need to use 
 embeded fonts. I would like text in a datagrid header to be 
rotated.
 
 How do I discover the inline font being used in the data grid 
header.
 I thought that the default font was vernanda size 10, however 
 columns with embeded font look very different from the inline 
font. 
 How do I get them to match ?
 
 Thanks.
 
 
 
 
 
 
 
 
 Yahoo! Groups Sponsor
 
 
 
 ADVERTISEMENT
 
 
http://us.ard.yahoo.com/SIG=129qbk7rj/M=298184.6018725.7038619.30011
76/D=gr
 
oups/S=1705007207:HM/EXP=1109553930/A=2593423/R=0/SIG=11el9gslf/*http
:/www.n
 etflix.com/Default?mqso=60190075 click here
 
 
 
 http://us.adserver.yahoo.com/l?
M=298184.6018725.7038619.3001176/D=groups/S=
 :HM/A=2593423/rand=478941882 
 
 
 
 _ 
 
 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: inline vs embedded fonts

2005-02-27 Thread viraf_bankwalla

Looking at the manuals, I need to use embeded fonts if I want 
rotation, however the drawbacks of embeded fonts as specified in the 
manual are:

• You can only embed TrueType fonts.
• Embedded fonts increase the file size of your application, because 
the document must contain font outlines for the text. This can 
result in longer download times for your users.
• Embedded fonts decrease legibility of the text at sizes below 10 
points. All embedded fonts use anti-aliasing to render the font 
information on the client screen. As a result, fonts may look
fuzzy or illegible at small sizes.
• You can only specify a single fontFamily style property when 
embedding fonts. Flex does not support a list of embedded fonts.

So I may be stuck with the poor quality of text that I am 
observing. This just doesnt sound like an acceptable solution.  
Anyone had more luck than me ?

--- In flexcoders@yahoogroups.com, viraf_bankwalla 
[EMAIL PROTECTED] wrote:
 
 Yes - it is - however the embeded font looks very different from 
the 
 inline font. I am using verdana.ttf from windows/font directory.  
 
 I have declared the font as: 
 
 mx:Style
 @font-face { fontFamily:headerFont; src:url
 (assets/verdana.ttf); }
 /mx:Style
 
 and using it like:
 
 mx:Label id=line1 fontFamily=headerFont fontSize=10/
 
 
 
 --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] 
wrote:
  Only difference I can see in the header font is that it's bold.  
 Otherwise
  it looks like it's Verdana 10pt (maybe it's 9pt but I don't 
think 
 so).
  
   
  
  You can see the default styles by checking in 
 mx/skins/halo/Default.as which
  you can find in the FlexForFlash.zip which came with your 
install.
  
   
  
  Matt
  
   
  
  _  
  
  From: viraf_bankwalla [mailto:[EMAIL PROTECTED] 
  Sent: Saturday, February 26, 2005 5:25 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] inline vs embedded fonts
  
   
  
  
  Hi,
  
  In order to rotate text, I have discovered that I need to use 
  embeded fonts. I would like text in a datagrid header to be 
 rotated.
  
  How do I discover the inline font being used in the data grid 
 header.
  I thought that the default font was vernanda size 10, however 
  columns with embeded font look very different from the inline 
 font. 
  How do I get them to match ?
  
  Thanks.
  
  
  
  
  
  
  
  
  Yahoo! Groups Sponsor
  
  
  
  ADVERTISEMENT
   
  
 
http://us.ard.yahoo.com/SIG=129qbk7rj/M=298184.6018725.7038619.30011
 76/D=gr
  
 
oups/S=1705007207:HM/EXP=1109553930/A=2593423/R=0/SIG=11el9gslf/*http
 :/www.n
  etflix.com/Default?mqso=60190075 click here
  
  
   
  http://us.adserver.yahoo.com/l?
 M=298184.6018725.7038619.3001176/D=groups/S=
  :HM/A=2593423/rand=478941882 
  
   
  
  _  
  
  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.







DataGridColumn.headerRenderer / rotating text in header

2005-02-26 Thread viraf_bankwalla

Does someone have an example of the headerRenderer that they could 
share? Does the headerRenderer need to implement the same methods 
as a cellRenderer - i.e. setValue? Are there any properties (beyond 
listOwner, getCellIndex, getDataLabel) that are set?

I am trying to create a header in which the text is rotated. Rather 
than rotating each label, I though I would create a HBox that is 
rotated. I suspect that the header is not being displayed as it is 
being clipped. How to I specify the point around which rotation 
occurs, and then adjust the coordinates to compensate for the 
rotation ?

An example would be great. Thanks







Re: DataGrid / dataProvider question

2005-02-26 Thread viraf_bankwalla

Thanks - I ended up using a cellRenderer. Now another question - is 
the headerRenderer the same as a cellRenderer? 

- viraf

--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:
 You're going to need to look into using labelFunction to return 
the values
 you want.
 
 
 
 Matt
 
 
 
 _ 
 
 From: viraf_bankwalla [mailto:[EMAIL PROTECTED] 
 Sent: Friday, February 25, 2005 7:14 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: DataGrid / dataProvider question
 
 
 
 
 Thanks. Can one specify a hierachy for the column name, such as 
 
 mx:DataGridColumn columnName=cat.product.123 ... ?
 
 --- In flexcoders@yahoogroups.com, Manish Jethani 
 [EMAIL PROTECTED] wrote:
  viraf_bankwalla wrote:
  
   I have an xml document that has the following form
   
   categories
   category id=123 name=abc
   products
   product id=123 name=def
   price12.54/price 
   /product
  
  [snip]
  
   of each product in the category. My question is how do I 
 specify 
   the reference to a specific 
   product in DataGridColumn? If someone has an example, I 
would 
 love 
   to see it.
  
  You could set your dataProvider to 
  {categories.category[0].products.product}, but that would only 
get 
 you 
  the products at the 0th category (abc).
  
  Manish
 
 
 
 
 
 
 
 
 Yahoo! Groups Sponsor
 
 
 
 ADVERTISEMENT
 
 
http://us.ard.yahoo.com/SIG=129pbsgbl/M=298184.6018725.7038619.30011
76/D=gr
 
oups/S=1705007207:HM/EXP=1109474042/A=2593423/R=0/SIG=11el9gslf/*http
:/www.n
 etflix.com/Default?mqso=60190075 click here
 
 
 
 http://us.adserver.yahoo.com/l?
M=298184.6018725.7038619.3001176/D=groups/S=
 :HM/A=2593423/rand=206981682 
 
 
 
 _ 
 
 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: DataGridColumn.headerRenderer / rotating text in header

2005-02-26 Thread viraf_bankwalla

As a followup question, how can I pass context to the 
headerRenderer, or how can the headerRenderer know about its 
DataGridColumn 

--- In flexcoders@yahoogroups.com, viraf_bankwalla 
[EMAIL PROTECTED] wrote:
 
 Does someone have an example of the headerRenderer that they could 
 share? Does the headerRenderer need to implement the same methods 
 as a cellRenderer - i.e. setValue? Are there any properties 
(beyond 
 listOwner, getCellIndex, getDataLabel) that are set?
 
 I am trying to create a header in which the text is rotated. 
Rather 
 than rotating each label, I though I would create a HBox that is 
 rotated. I suspect that the header is not being displayed as it 
is 
 being clipped. How to I specify the point around which rotation 
 occurs, and then adjust the coordinates to compensate for the 
 rotation ?
 
 An example would be great. Thanks







Specifying renderers in DataGrid

2005-02-26 Thread viraf_bankwalla

Hi,

I have the following code that is called to create DataGridColumn's

var col:mx.controls.gridclasses.DataGridColumn;
col = new mx.controls.gridclasses.DataGridColumn(cname);
col.columnName=cname;
col.headerText=cname;
col.cellRenderer=MyCellRenderer;
col.headerRenderer=MyHeaderRenderer;
grid.addColumn(col);

I have noticed that when I specify the renderers as a String the 
columns are not rendered. However, if I simply specify the class as:

col.cellRenderer=MyCellRenderer;
col.headerRenderer=MyHeaderRenderer;

They are being instantiated. Could someone please explain the 
difference. The renderers were created as MXML and have the 
setValue method in a script.

Thanks.










Re: Specifying renderers in DataGrid

2005-02-26 Thread viraf_bankwalla

Thanks - I am not familiar with DevNet (new to development with 
Flex). Could you please give me a reference to DevNet. Is this a 
free or fee based service ?

- viraf

--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:
 You need to specify the classes so that they will get linked in. 
If Flex
 doesn't see a class reference it doesn't know to link it into the 
SWF.
 Roger has an article on DevNet that goes into this in great detail.
 
 
 
 Matt
 
 
 
 _ 
 
 From: viraf_bankwalla [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, February 26, 2005 10:27 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Specifying renderers in DataGrid
 
 
 
 
 Hi,
 
 I have the following code that is called to create DataGridColumn's
 
 var col:mx.controls.gridclasses.DataGridColumn;
 col = new mx.controls.gridclasses.DataGridColumn(cname);
 col.columnName=cname;
 col.headerText=cname;
 col.cellRenderer=MyCellRenderer;
 col.headerRenderer=MyHeaderRenderer;
 grid.addColumn(col);
 
 I have noticed that when I specify the renderers as a String the 
 columns are not rendered. However, if I simply specify the class 
as:
 
 col.cellRenderer=MyCellRenderer;
 col.headerRenderer=MyHeaderRenderer;
 
 They are being instantiated. Could someone please explain the 
 difference. The renderers were created as MXML and have the 
 setValue method in a script.
 
 Thanks.
 
 
 
 
 
 
 
 
 
 
 
 Yahoo! Groups Sponsor
 
 
 
 ADVERTISEMENT
 
 
http://us.ard.yahoo.com/SIG=1298qteg0/M=298184.6018725.7038619.30011
76/D=gr
 
oups/S=1705007207:HM/EXP=1109528842/A=2593423/R=0/SIG=11el9gslf/*http
:/www.n
 etflix.com/Default?mqso=60190075 click here
 
 
 
 http://us.adserver.yahoo.com/l?
M=298184.6018725.7038619.3001176/D=groups/S=
 :HM/A=2593423/rand=239372553 
 
 
 
 _ 
 
 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: DataGridColumn.headerRenderer / rotating tex t in header

2005-02-26 Thread viraf_bankwalla

I do have a listOwner as described in the documents. There are 
multiple columns in the grid. Are you suggesting that I add a 
column variable to my HeaderRenderer class ?

I have noticed that setValue(str:Object, item:Object sel:String) 
does not appear to be called in my header renderer, however is 
called in the cellRenderer.

--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:
 I don't know about the text rotation but listOwner is your 
reference to the
 DataGrid and if you add a column property I think you'll be given a
 reference to the DataGridColumn. setValue(str) will be called 
giving you
 the expected header text.
 
 
 
 Matt
 
 
 
 _ 
 
 From: viraf_bankwalla [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, February 26, 2005 9:20 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: DataGridColumn.headerRenderer / rotating 
text in
 header
 
 
 
 
 As a followup question, how can I pass context to the 
 headerRenderer, or how can the headerRenderer know about its 
 DataGridColumn 
 
 --- In flexcoders@yahoogroups.com, viraf_bankwalla 
 [EMAIL PROTECTED] wrote:
  
  Does someone have an example of the headerRenderer that they 
could 
  share? Does the headerRenderer need to implement the same 
methods 
  as a cellRenderer - i.e. setValue? Are there any properties 
 (beyond 
  listOwner, getCellIndex, getDataLabel) that are set?
  
  I am trying to create a header in which the text is rotated. 
 Rather 
  than rotating each label, I though I would create a HBox that is 
  rotated. I suspect that the header is not being displayed as it 
 is 
  being clipped. How to I specify the point around which rotation 
  occurs, and then adjust the coordinates to compensate for the 
  rotation ?
  
  An example would be great. Thanks
 
 
 
 
 
 
 
 
 Yahoo! Groups Sponsor
 
 
 
 ADVERTISEMENT
 
 
http://us.ard.yahoo.com/SIG=129oqi8rt/M=298184.6018725.7038619.30011
76/D=gr
 
oups/S=1705007207:HM/EXP=1109524833/A=2593423/R=0/SIG=11el9gslf/*http
:/www.n
 etflix.com/Default?mqso=60190075 click here
 
 
 
 http://us.adserver.yahoo.com/l?
M=298184.6018725.7038619.3001176/D=groups/S=
 :HM/A=2593423/rand=728828270 
 
 
 
 _ 
 
 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: DataGridColumn.headerRenderer / rotating tex t in header

2005-02-26 Thread viraf_bankwalla

Thanks - I added a 

var column:Object;

However it is not being set. The listOwner is being set. 

- viraf

--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:
 Yes, add a column variable to your HeaderRenderer class and the 
DataGrid
 will automatically set it for you.
 
 
 
 Not sure why setValue() isn't called, in looking at the code I 
think it
 should be (though in the header case we won't pass in item and 
sel, just the
 first parameter str.
 
 
 
 Matt
 
 
 
 _ 
 
 From: viraf_bankwalla [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, February 26, 2005 11:23 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: DataGridColumn.headerRenderer / rotating 
tex t in
 header
 
 
 
 
 I do have a listOwner as described in the documents. There are 
 multiple columns in the grid. Are you suggesting that I add a 
 column variable to my HeaderRenderer class ?
 
 I have noticed that setValue(str:Object, item:Object sel:String) 
 does not appear to be called in my header renderer, however is 
 called in the cellRenderer.
 
 --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] 
wrote:
  I don't know about the text rotation but listOwner is your 
 reference to the
  DataGrid and if you add a column property I think you'll be 
given a
  reference to the DataGridColumn. setValue(str) will be called 
 giving you
  the expected header text.
  
  
  
  Matt
  
  
  
  _ 
  
  From: viraf_bankwalla [mailto:[EMAIL PROTECTED] 
  Sent: Saturday, February 26, 2005 9:20 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: DataGridColumn.headerRenderer / 
rotating 
 text in
  header
  
  
  
  
  As a followup question, how can I pass context to the 
  headerRenderer, or how can the headerRenderer know about its 
  DataGridColumn 
  
  --- In flexcoders@yahoogroups.com, viraf_bankwalla 
  [EMAIL PROTECTED] wrote:
   
   Does someone have an example of the headerRenderer that they 
 could 
   share? Does the headerRenderer need to implement the same 
 methods 
   as a cellRenderer - i.e. setValue? Are there any properties 
  (beyond 
   listOwner, getCellIndex, getDataLabel) that are set?
   
   I am trying to create a header in which the text is rotated. 
  Rather 
   than rotating each label, I though I would create a HBox that 
is 
   rotated. I suspect that the header is not being displayed as 
it 
  is 
   being clipped. How to I specify the point around which 
rotation 
   occurs, and then adjust the coordinates to compensate for the 
   rotation ?
   
   An example would be great. Thanks
  
  
  
  
  
  
  
  
  Yahoo! Groups Sponsor
  
  
  
  ADVERTISEMENT
  
  
 
http://us.ard.yahoo.com/SIG=129oqi8rt/M=298184.6018725.7038619.30011
 
http://us.ard.yahoo.com/SIG=129oqi8rt/M=298184.6018725.7038619.30011
 
 76/D=gr
  
 
oups/S=1705007207:HM/EXP=1109524833/A=2593423/R=0/SIG=11el9gslf/*http
 :/www.n
  etflix.com/Default?mqso=60190075 click here
  
  
  
  http://us.adserver.yahoo.com/l? http://us.adserver.yahoo.com/l?
 
 M=298184.6018725.7038619.3001176/D=groups/S=
  :HM/A=2593423/rand=728828270 
  
  
  
  _ 
  
  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]
 subject=Unsubscribe 
  
  * 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 Sponsor
 
 
 
 ADVERTISEMENT
 
 
http://us.ard.yahoo.com/SIG=129pbfnve/M=298184.6018725.7038619.30011
76/D=gr
 
oups/S=1705007207:HM/EXP=1109532210/A=2593423/R=0/SIG=11el9gslf/*http
:/www.n
 etflix.com/Default?mqso=60190075 click here
 
 
 
 http://us.adserver.yahoo.com/l?
M=298184.6018725.7038619.3001176/D=groups/S=
 :HM/A=2593423/rand=181950802 
 
 
 
 _ 
 
 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: DataGridColumn.headerRenderer / rotating text in header

2005-02-26 Thread viraf_bankwalla

Manish,

Thanks for the example (I am assuming that you are refering to 
ReorderableHeaderRenderer.as). You are looking up the column based 
on the listOwner.columns. This works if the setValue is called.

For some reason, I do not see setValue being called. My cell 
renderer is defined in MXML.

- ciraf


--- In flexcoders@yahoogroups.com, Manish Jethani 
[EMAIL PROTECTED] wrote:
 viraf_bankwalla wrote:
  
  As a followup question, how can I pass context to the 
  headerRenderer, or how can the headerRenderer know about its 
  DataGridColumn 
 
 See this example:
 
 http://manish.revise.org/archives/2005/01/16/drag-n-drop-reodering-
of-datagrid-columns/
 
 I'm getting a reference to the column inside the headerRenderer.
 
 Manish







DataGrid / dataProvider question

2005-02-25 Thread viraf_bankwalla

Hi,

I have an xml document that has the following form

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

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

the following is the basic grid that I have

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

Thanks.

- viraf