[flexcoders] How to display bullet insted asterisk in textinput controll

2009-09-10 Thread vladakg85
I added displayAsPassword but I want bullets instead of asterisks. How to 
achieve this? I can't change type of fonts in controll.



[flexcoders] How to create a spidar chart (Radar chart) with an array collection object...

2009-09-10 Thread piyush_dubey_16
I need to create a Spidar (Radar) chart with the help of an array collection. 
can any one help ???

do i need to include external library for using that ???



[flexcoders] Re: Vertical TabBar Control

2009-09-10 Thread flex_coder
yeah I figured that one out, thanks. However if I have a ViewStack in place for 
each of the tabs in the Tabbar, there is always a gap in between the tabbar and 
the viewstack. I have tried making all paddings and verticalgap and 
horizontalgap to 0 but the spacing doesnt go away. any ideas for that? 

--- In flexcoders@yahoogroups.com, turbo_vb timh...@... wrote:

 mx:TabBar direction=vertical/
 
 -TH
 
 --- In flexcoders@yahoogroups.com, turbo_vb TimHoff@ wrote:
 
  
  --- In flexcoders@yahoogroups.com, turbo_vb TimHoff@ wrote:
  
  
   --- In flexcoders@yahoogroups.com, flex_coder flex_coder@ wrote:
   
Does anyone know of a Vertical TabBar control for Flex. I am using
   Flex 3 and I cant seem to find a Vertical Tabbar.
   
Any help is much appreciated.
   
  
 





[flexcoders] i cant refresh datagrid

2009-09-10 Thread Carlos A. Diaz Alvarado
hello!, sorry but i cant refresh de datagrid in this code:
I use PHP to read de data from Mysql using HttpService.  The INSERT is ok, but 
i have to reload the app to view de result in datagrid.
The event is called from the buttom grabar using de function actualiza in 
the end of this code:
The funcion actualiza invoke the PHP file and reload de httpservice to the 
datagrid

Thank fro all

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute 
width=100% height=100%
    creationComplete=llena_grilla.send() 

mx:Script
    ![CDATA[
        import mx.events.ListEvent;
        import mx.events.DataGridEvent;
        private function seleccion(event:ListEvent):void {
            var fila:Object = event.currentTarget.selectedItem;
            dni.text = fila.dni;
            nombres.text = fila.nombres;
            descripcion.text = fila.descripcion;            
        }
        
        private function limpiar():void{
            dni.text = ;
            nombres.text = ;
            descripcion.text=
            dni.setFocus();
        }
        
        private function actualiza():void{
            inserta.send();
            llena_grilla.send();
        }
    ]]
/mx:Script

!--  service call --
!-- Para llenar la grilla --
mx:HTTPService id=llena_grilla 
url=http://localhost/flex_php_009/src/filtro.php;
      resultFormat=e4x
/mx:HTTPService

!-- Para el Combo --
mx:HTTPService id=llena_combo 
url=http://localhost/flex_php_009/src/myxml.php;
      resultFormat=e4x
/mx:HTTPService

!-- Para la Insercion de Registros --
mx:HTTPService id=inserta url=http://localhost/flex_php_009/src/inserta.php;
     method=POST
      resultFormat=e4x
     mx:request
     dni{dni.text}/dni
     nombres{nombres.text}/nombres
     id{descripcion.selectedIndex}/id
     /mx:request
/mx:HTTPService

!-- Layout --
    mx:Panel width=622 height=254 layout=absolute verticalCenter=30 
horizontalCenter=24
        mx:DataGrid x=10 y=10
            dataProvider={llena_grilla.lastResult.registro}
            itemClick=seleccion(event)
            change=seleccion(event)
            id=datagrid1
            mx:columns
                mx:DataGridColumn headerText=DNI dataField=dni/
                mx:DataGridColumn headerText=NOMBRES dataField=nombres/
                mx:DataGridColumn headerText=DISTRITO 
dataField=descripcion/
            /mx:columns
        /mx:DataGrid
        mx:Form x=320 y=10 width=272 height=142
            mx:FormItem label=DNIl
                mx:TextInput id=dni/
            /mx:FormItem
            mx:FormItem label=NOMBRES
                mx:TextInput id=nombres/
            /mx:FormItem
            mx:FormItem label=DISTRITO
                mx:ComboBox id=descripcion
                    creationComplete=llena_combo.send()
                    dataProvider={llena_combo.lastResult.registro}
                    labelField=descripcion width=120/mx:ComboBox
            /mx:FormItem
        /mx:Form
        mx:HBox x=10 y=171 width=582 height=33 horizontalAlign=right
            mx:Button label=Nuevo id=nuevo click=limpiar()/
            mx:Button label=Grabar id=grabar click=actualiza()/
        /mx:HBox
    /mx:Panel
    
/mx:Application



Carlos A. Diaz AlvaradoJefe de 
Informatica  Sistemas Instituto LIBERTADOR SAC
Jr. Martir Olaya 327 Chorrillos
995-262870, 4670643 Anexo 207cd...@isl.edu.pe



  

¡Obtén la mejor experiencia en la web!
Descarga gratis el nuevo Internet Explorer 8. 
http://downloads.yahoo.com/ieak8/?l=e1

[flexcoders] Re: File Upload with FireFox on SunRay Fails-we need this to work

2009-09-10 Thread adebonis
Good point - we have tried under Flash 9 and Latest V10 too.
We tried Flex 3.2 3.3 and 3.4

--- In flexcoders@yahoogroups.com, shameer.forflex shameer.forf...@... 
wrote:

 Please clarify which flash player version are you using? File Upload has some 
 issue with Flash player9 and Firefox. 
 
 Thanks,
 Shameer
 
 
 --- In flexcoders@yahoogroups.com, adebonis anthony@ wrote:
 
  Hope someone out there an help us with this issue.
  
  We can't get File upload to work with a Browser Running under SunRays on 
  FireFox
  
  We have finally identified the http problem (http 417) which is causing the 
  IO flash error.
  
  We tried this on FireFox 3.0 as well as FireFox 3.5.3 both with the same 
  results. Also, I doubt if this is a browser issue because uploading files 
  to the same servlet from a test JSP page works fine. Whatever happens, 
  happens between flash player and the browser. 
  
  After using a simple MXML file (attached below) to test the file upload 
  functionality on different operating systems we have discovered that it 
  brakes with an unusual error when tested on Solaris. 
  We put sniffers and clearly noticed the difference in the headers generated 
  by Flash 10 in different OS environments.
   
  As you can see from the examples below, the later version (the one running 
  on Solaris) has an extra Expect: in the header which we believe is 
  responsible for the HTTP 417 error (which, in its turn, is responsible for 
  2038 thrown by flex) 
  
  Here is a header generated from a functional system: POST 
  /iehs_core_document/FileUploadServlet HTTP/1.1
  Host: dev01.intelligentehs.com:9086
  Accept: */*
  User-Agent: Shockwave Flash
  Connection: Keep-Alive
  Cache-Control: no-cache
  Content-Length: 755
  Expect: 100-continue
  Content-Type: multipart/form-data; 
  boundary=e6d2f5d2c945
  
  
  
  And here is a header generated from OpenSolaris  11 2009.06 
  POST /iehs_core_document/FileUploadServlet HTTP/1.1
  Host: dev01.intelligentehs.com:9086
  Accept: */*
  User-Agent: Shockwave Flash
  Connection: Keep-Alive
  Cache-Control: no-cache
  Expect:
  Content-Length: 653
  Expect: 100-continue
  Content-Type: multipart/form-data; 
  boundary=b64e06f786e4
 





Re: [flexcoders] How to create a spidar chart (Radar chart) with an array collection object...

2009-09-10 Thread Paul Hastings
piyush_dubey_16 wrote:
 I need to create a Spidar (Radar) chart with the help of an array collection. 
 can any one help ???

http://lab.kapit.fr/display/radarchart/Radar+Chart


[flexcoders] Re: File Upload with FireFox on SunRay Fails-we need this to work

2009-09-10 Thread shameer.forflex
Please make sure you have followed the steps mentioned in 
http://sujitreddyg.wordpress.com/?s=upload when you use flashplayer 10. you 
will have to configure your Flex Builder to target to Flash Player 10 and also 
use the new player APIs

Thanks,
Shameer


--- In flexcoders@yahoogroups.com, adebonis anth...@... wrote:

 Good point - we have tried under Flash 9 and Latest V10 too.
 We tried Flex 3.2 3.3 and 3.4
 
 --- In flexcoders@yahoogroups.com, shameer.forflex shameer.forflex@ wrote:
 
  Please clarify which flash player version are you using? File Upload has 
  some issue with Flash player9 and Firefox. 
  
  Thanks,
  Shameer
  
  
  --- In flexcoders@yahoogroups.com, adebonis anthony@ wrote:
  
   Hope someone out there an help us with this issue.
   
   We can't get File upload to work with a Browser Running under SunRays on 
   FireFox
   
   We have finally identified the http problem (http 417) which is causing 
   the IO flash error.
   
   We tried this on FireFox 3.0 as well as FireFox 3.5.3 both with the same 
   results. Also, I doubt if this is a browser issue because uploading files 
   to the same servlet from a test JSP page works fine. Whatever happens, 
   happens between flash player and the browser. 
   
   After using a simple MXML file (attached below) to test the file upload 
   functionality on different operating systems we have discovered that it 
   brakes with an unusual error when tested on Solaris. 
   We put sniffers and clearly noticed the difference in the headers 
   generated by Flash 10 in different OS environments.

   As you can see from the examples below, the later version (the one 
   running on Solaris) has an extra Expect: in the header which we believe 
   is responsible for the HTTP 417 error (which, in its turn, is responsible 
   for 2038 thrown by flex) 
   
   Here is a header generated from a functional system: POST 
   /iehs_core_document/FileUploadServlet HTTP/1.1
   Host: dev01.intelligentehs.com:9086
   Accept: */*
   User-Agent: Shockwave Flash
   Connection: Keep-Alive
   Cache-Control: no-cache
   Content-Length: 755
   Expect: 100-continue
   Content-Type: multipart/form-data; 
   boundary=e6d2f5d2c945
   
   
   
   And here is a header generated from OpenSolaris  11 2009.06 
   POST /iehs_core_document/FileUploadServlet HTTP/1.1
   Host: dev01.intelligentehs.com:9086
   Accept: */*
   User-Agent: Shockwave Flash
   Connection: Keep-Alive
   Cache-Control: no-cache
   Expect:
   Content-Length: 653
   Expect: 100-continue
   Content-Type: multipart/form-data; 
   boundary=b64e06f786e4
  
 





[flexcoders] Flex - BlazeDS - Java: int are set to 0 when they should be kept to NULL.

2009-09-10 Thread whiskerstasters
Hi everyone, I'm having an issue with Flex - BlazeDS - Java.

When I pass an object to Java through BlazeDS, my variables of type int are 
automatically set to 0 if they are NULL or NAN. Is there a way to keep them as 
NULL ?

Thanks everyone.



Re: [flexcoders] File Upload with FireFox on SunRay Fails-we need this to work

2009-09-10 Thread Tom Chiverton
On Tuesday 08 Sep 2009, adebonis wrote:
 We can't get File upload to work with a Browser Running under SunRays on
 FireFox

This isn't over SSL is it ? There's an open bug in Jira for that...

-- 
Helping to competently strategize B2B bleeding-edge one-to-one data as part of 
the IT team of the year, '09 and '08



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

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

CONFIDENTIALITY

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

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

Re: [flexcoders] Flex - BlazeDS - Java: int are set to 0 when they should be kept to NULL.

2009-09-10 Thread Tom Chiverton
On Thursday 10 Sep 2009, whiskerstasters wrote:
 When I pass an object to Java through BlazeDS, my variables of type int are
 automatically set to 0 if they are NULL or NAN. Is there a way to keep them
 as NULL ?

Does your Flex VO initialise them to zero ? If you look at the BlazeDS debug 
output, what is BlazeDS sending them as ?

-- 
Helping to globally aggregate dot-com users as part of the IT team of the 
year, '09 and '08



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

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

CONFIDENTIALITY

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

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

[flexcoders] Sorting XML number values in datagrid

2009-09-10 Thread AJC2357
Hi all, 

Looking for a simple solution to properly sorting number values in a datagrid.

I'm sure many of you have run across this limitation.  Trying to sort something 
like {1,5,100) turns into (1,100,5) because it is read a string and not numeric.

Suggestions?  Thanks, 

Alex



[flexcoders] Re: Flex - BlazeDS - Java: int are set to 0 when they should be kept to NULL.

2009-09-10 Thread whiskerstasters
Hi Tom, 
in my BlazeDS Debug, all my int variables are set to 0. 
My flex object variables of type int are pre-set to null and some are not set. 

When debuging Flex, I noticed Flex automatically sets my variables to 0.

Why does this happen?

Thank you.

-David




[flexcoders] Datagrid height problem.

2009-09-10 Thread aceoohay
I have a datagrid that displays text from a notes field. I have 
variableRowHeight=true. This works well unless one record has a note that is 
larger than the height of the entire grid. In this case I cannot see the bottom 
of the note. It truncates the lines at the height of the grid

There is a scroll bar for the grid, but not for the individual cell in the 
grid. 

Either of the following would solve my problem;

How can I tell the datagrid to allow cell heights greater than the grid height?

-or-

How can I turn on a scrollbar for the cell?

Paul



[flexcoders] Re: soap and cookies with webservice

2009-09-10 Thread stephen_anson
--- In flexcoders@yahoogroups.com, guy.tomer guy.to...@... wrote:

 In a standard browser flash application in a web page, if the server sets a 
 cookie on any http requests, the cookie will be sent back just fine. However 
 you're talking about a desktop app which you probably mean an AIR application 
 so I am not sure, although I guess it should work. The test should be easy - 
 make any http call from one of the air applications to a server that sets a 
 cookie and see if it is sent back.
 We'll be happy to hear the results...


I'm planning on creating a projector using screenweaver / haxe that will load 
in a swf created in flex, needed for the webservice features.

i will let you know how it gets on

thanks Steve




[flexcoders] Re: Vertical TabBar Control

2009-09-10 Thread turbo_vb

mx:Canvas

  mx:TabBar id=myTabBar direction=vertical/

  mx:ViewStack left={ myTabBar.width - 1 }/

/mx:Canvas




-TH



--- In flexcoders@yahoogroups.com, flex_coder flex_co...@... wrote:

 yeah I figured that one out, thanks. However if I have a ViewStack in
place for each of the tabs in the Tabbar, there is always a gap in
between the tabbar and the viewstack. I have tried making all paddings
and verticalgap and horizontalgap to 0 but the spacing doesnt go away.
any ideas for that?

 --- In flexcoders@yahoogroups.com, turbo_vb TimHoff@ wrote:
 
  mx:TabBar direction=vertical/
 
  -TH
 
  --- In flexcoders@yahoogroups.com, turbo_vb TimHoff@ wrote:
  
  
   --- In flexcoders@yahoogroups.com, turbo_vb TimHoff@ wrote:
   
   
--- In flexcoders@yahoogroups.com, flex_coder flex_coder@
wrote:

 Does anyone know of a Vertical TabBar control for Flex. I am
using
Flex 3 and I cant seem to find a Vertical Tabbar.

 Any help is much appreciated.

   
  
 




[flexcoders] Re: Datagrid height problem.

2009-09-10 Thread turbo_vb
 How can I tell the datagrid to allow cell heights greater than the
grid height?
Even though it's not shown, the cell height is greater than the DataGrid
height.   However, the DataGrid's scroll mechanism will always take you
to the next row, so this isn't an option.
 How can I turn on a scrollbar for the cell?
You can use an itemRenderer that has a maxHeight.  Although, having
nested scrollBars is pretty bad for the user.A third option, if you
don't have thousands of records, is to put the DataGrid in a container
and do not set a height for the DataGrid.  In other words, go ahead and
render all of the DataGrid items and have the parent container do the
scrolling.  This would solve your problem by allowing smooth scrolling,
but would more of a hog when it comes to performance.  But, if you don't
have that many records to show, it's a decent trade-off and much better
than the choppy scrolling that is native to the DataGrid.
-TH
--- In flexcoders@yahoogroups.com, aceoohay pa...@... wrote:

 I have a datagrid that displays text from a notes field. I have
variableRowHeight=true. This works well unless one record has a note
that is larger than the height of the entire grid. In this case I cannot
see the bottom of the note. It truncates the lines at the height of the
grid

 There is a scroll bar for the grid, but not for the individual cell in
the grid.

 Either of the following would solve my problem;

 How can I tell the datagrid to allow cell heights greater than the
grid height?

 -or-

 How can I turn on a scrollbar for the cell?

 Paul




[flexcoders] Re: Sorting XML number values in datagrid

2009-09-10 Thread turbo_vb
Look at sortCompareFunction for DataGridColumn.
-TH
--- In flexcoders@yahoogroups.com, AJC2357 ajc2...@... wrote:

 Hi all,

 Looking for a simple solution to properly sorting number values in a
datagrid.

 I'm sure many of you have run across this limitation.  Trying to sort
something like {1,5,100) turns into (1,100,5) because it is read a
string and not numeric.

 Suggestions?  Thanks,

 Alex




[flexcoders] Concatenation yields Error #1034: Type Coercion

2009-09-10 Thread tex_learning_flex
I want to copy the file(s) f1 to the test directory, as follows
private function copyFile(event:Event=null) : void
{ if ( _files.length  0 )  {  var f1:File = _files.pop() as File;  var
myAppFolder:File = new File(file:///D:/tex/My Documents/test); 
f1.copyTo((myAppFolder) + (f1), true); }}


Any ideas on how to fix this so that I won't get the following error:


TypeError: Error #1034: Type Coercion failed:cannot convert [object
File][object File] to flash.net.FileReference. at
MyProject/copyNextFile()[D:\tex\My
Documents\Flex_Builder_3_Projects\MyProject\src\MyProject.mxml:128]

Many thanks,
tex



[flexcoders] LCDS DataService - Commit Response Slow

2009-09-10 Thread Kevin
I am having a problem where the response events (ie ResultEvent) to my  
DataService commits are extremely slow (sometimes up to 1 min before a  
response is received by the client).  Often my software doesn't allow  
the user to move on until the commit has been confirmed so this can  
slow the app down quite significantly.

Does anyone have any suggestions on how I can speed up these calls OR  
what might be slowing them down.  The database is running on a  
dedicated server with only 4 or 5 users right now and responds very  
quickly to non-LCDS/Flex calls.  It seems that the data is saving  
quickly and it's only the response that is taking a long time.

Any thoughts?  Because I am not sure really what is happening under- 
the-hood of these calls, I am at a loss as to how to approach  
debugging this?

Thanks for the help!

Kevin



[flexcoders] refer to dynamic XML elements?

2009-09-10 Thread Paul Hastings
i have an XML response from a server that has a gazillion elements in it where 
i 
need to use a few of these. the required element names are defined elsewhere  
read in at run time. the XML response is something along the lines of:

gml:featureMembers
topp:runoffdatapoints gml:id=runoffdatapoints.1
topp:UPSTREAMAREASQKM20.8503/topp:UPSTREAMAREASQKM
topp:ID13469/topp:ID
topp:QMCUBED9.8567/topp:QMCUBED
/topp:runoffdatapoints
gml:featureMembers

the namespaces are all defined ok  work fine if used statically.

for each (x in result.gml::featureMembers.topp::runoffdatapoints) {
id=x.topp::ID; // works just fine
}

but i'm having a brain freeze trying to understand how to refer to the required 
elements dynamically. like

var runoffIDField:String=topp::ID;

for each (x in result.gml::featureMembers.topp::runoffdatapoints) {
id=x[runoffIDField]; // nope
id=x.child(runoffIDField); // ditto 
}

i guess the namespace is playing havoc w/this.

anyone have any ideas or references?

thanks.









[flexcoders] HTTP Result

2009-09-10 Thread Yahoo
I’m using Flex with PHP.

I got a return from a HTTPService in the following way:

 

private function httpResult(event:ResultEvent):void {

 

var msg:String;





  msg = event.result.toString();

}

 

The problem is that msg is not an empty string. In fact is the following
ascii sequence (CRLF): 13, 10, 9.

How can i get an empty string or test this ascii sequence?

 

 



[flexcoders] Active collection does not get refreshed automatically if using findbyXXX

2009-09-10 Thread trenzig
var ac:ArrayCollection=new ArrayCollection();
ac=ActiveRecords.SiteMedia.findAll();

The above works perfectly and get automatic refreshed if new records have been 
added or removed. However, if we do

var ac:ArrayCollection=new ArrayCollection();
ac=ActiveRecords.SiteMedia.findBySite_ID(1);

The above arraycollection does not get automatic refreshed if new records have 
been added or removed.

Help, please 

Thanks




[flexcoders] Understanding measure process

2009-09-10 Thread neilbrown08
Hi,

Searched the forum but cannot find an answer to my problem. Please look at the 
code and offer some advice.

My code is called Highlight.mxml if I put it in a normal VBox container and 
call setText it sizes correctly.

If I create it as a child in my own component which extends UIComponent, I 
cannot get it to size at all, its always width = 0 even though I do see 
measuredWidth reported correctly.

I wanted this component to size itself based on what is inside the textfield. 
So if it is a child of my component I still would like it to be the size of the 
text.

?xml version=1.0 encoding=utf-8?
mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; 
creationComplete=creationComplete()
backgroundColor=0xff 
borderColor=0x628297 
borderThickness=1 
borderStyle=solid
mx:Script
![CDATA[
import flash.filters.DropShadowFilter;

private var str:String;

private function creationComplete():void
{
this.filters = [new DropShadowFilter(4, 45, 
0x33, 0.5) ];
}

override protected function commitProperties():void 
{
super.commitProperties();

txt.text = this.str;
invalidateSize();
invalidateDisplayList();
}

override protected function measure():void 
{
super.measure();

measuredWidth = measuredMinWidth = 
txt.getExplicitOrMeasuredWidth();
measuredHeight = measuredMinHeight = 
txt.getExplicitOrMeasuredHeight();
}

override protected function 
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void 
{
super.updateDisplayList(unscaledWidth, 
unscaledHeight);
//this.setActualSize(txt.width, txt.height);
}

public function setText(str:String):void
{
this.str = str;
invalidateProperties();
}

]]
/mx:Script
mx:Label id=txt text=100 color=0x00/
/mx:Canvas



[flexcoders] HBox not sizing properly...how to kick it in the head

2009-09-10 Thread flexwdw
Hello.  I have a situation where I have an object that extends HBox.  This 
object has a variable number of children.  The object gets created and added to 
it's parent at runtime.  The reason I chose HBox is because it will size 
itself.  I want the width and the height of the HBox to be the width and height 
of the components inside the HBox.  

So, when I do this, my hbox simply does not appear when it should...if I 
override updateDipslayList and set a breakpoint inside it, I find that the 
width and the height are both zero (and yes, this is after all the child 
objects have been added).  Inside updateDisplayList, the children all have 
valid widths and heights.  So, I don't understand what's going on here.  Is 
there something I need to do to get the HBox to kick itself in the head and 
recalculate it's size.  Neither invalidateSize or invalidateDisplayList on the 
HBox seem to effect the layout.  So, I know I can go in and figure out how big 
this thing should be myself and size it appropriately, but I'd like to 
understand what I am not getting here, because it sure seems like there should 
be a better solution.

thanks for any advice...



[flexcoders] Re: Sorting XML number values in datagrid

2009-09-10 Thread valdhor
Create a numeric compare function like the following:

private function numericCompareFunc(itemA:Object, itemB:Object):int
{
 return ObjectUtil.numericCompare(itemA.itemToCompare,
itemB.itemToCompare);
}

Then set this function to the sortCompareFunction of your datagrid
column:

mx:DataGridColumn sortCompareFunction=numericCompareFunc/


--- In flexcoders@yahoogroups.com, AJC2357 ajc2...@... wrote:

 Hi all,

 Looking for a simple solution to properly sorting number values in a
datagrid.

 I'm sure many of you have run across this limitation.  Trying to sort
something like {1,5,100) turns into (1,100,5) because it is read a
string and not numeric.

 Suggestions?  Thanks,

 Alex





[flexcoders] Re: Datagrid height problem.

2009-09-10 Thread valdhor
What I do in this situation is to truncate the text in the cell and add 
elipses. If the user needs to see all the note text, they can click on the cell 
which opens a new popup. If the text is short enough, I use a tooltip.



--- In flexcoders@yahoogroups.com, turbo_vb timh...@... wrote:

  How can I tell the datagrid to allow cell heights greater than the
 grid height?
 Even though it's not shown, the cell height is greater than the DataGrid
 height.   However, the DataGrid's scroll mechanism will always take you
 to the next row, so this isn't an option.
  How can I turn on a scrollbar for the cell?
 You can use an itemRenderer that has a maxHeight.  Although, having
 nested scrollBars is pretty bad for the user.A third option, if you
 don't have thousands of records, is to put the DataGrid in a container
 and do not set a height for the DataGrid.  In other words, go ahead and
 render all of the DataGrid items and have the parent container do the
 scrolling.  This would solve your problem by allowing smooth scrolling,
 but would more of a hog when it comes to performance.  But, if you don't
 have that many records to show, it's a decent trade-off and much better
 than the choppy scrolling that is native to the DataGrid.
 -TH
 --- In flexcoders@yahoogroups.com, aceoohay pauls@ wrote:
 
  I have a datagrid that displays text from a notes field. I have
 variableRowHeight=true. This works well unless one record has a note
 that is larger than the height of the entire grid. In this case I cannot
 see the bottom of the note. It truncates the lines at the height of the
 grid
 
  There is a scroll bar for the grid, but not for the individual cell in
 the grid.
 
  Either of the following would solve my problem;
 
  How can I tell the datagrid to allow cell heights greater than the
 grid height?
 
  -or-
 
  How can I turn on a scrollbar for the cell?
 
  Paul
 





[flexcoders] Re: HTTP Result

2009-09-10 Thread valdhor
import mx.utils.StringUtil;

msg = StringUtil.trim(event.result.toString());

--- In flexcoders@yahoogroups.com, Jairo França (Yahoo) jairofrancaal...@... 
wrote:

 I'm using Flex with PHP.
 
 I got a return from a HTTPService in the following way:
 
  
 
 private function httpResult(event:ResultEvent):void {
 
  
 
 var msg:String;
 
 
 
 
 
   msg = event.result.toString();
 
 }
 
  
 
 The problem is that msg is not an empty string. In fact is the following
 ascii sequence (CRLF): 13, 10, 9.
 
 How can i get an empty string or test this ascii sequence?





[flexcoders] Text underline spacing...

2009-09-10 Thread transdimensionalmachine_elf
Hi


I am using a non-standard font in a Flex app and when I apply 
textDecoration=underline it looks more like a strike through.



Is there any easy way to change that spacing?




Thanks
--Kelly






Re: [flexcoders] Re: Flex - BlazeDS - Java: int are set to 0 when they should be kept to NULL.

2009-09-10 Thread Jon Gunnip
David,

The int primitive type in Java and Flex cannot be null.  They both
default to 0.  If you have,

var myInt:int; // ActionScript
int myInt; // Java

then that is the same as initializing myInt to 0.

Jon

On Thu, Sep 10, 2009 at 11:13 AM, whiskerstasters sailorse...@yahoo.com wrote:
 Hi Tom,
 in my BlazeDS Debug, all my int variables are set to 0.
 My flex object variables of type int are pre-set to null and some are not set.

 When debuging Flex, I noticed Flex automatically sets my variables to 0.

 Why does this happen?

 Thank you.

 -David




 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location: 
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links






[flexcoders] Re: Datagrid height problem.

2009-09-10 Thread aceoohay
Thanks for the advice...

I was unable to use make the suggestion of removing the height from the 
datagrid work. Even if it did work, wouldn't that cause the headers to scroll 
out of sight?

Regarding using an item renderer, I have been unable to find one that will 
expand to the height available and then scroll. TextArea seems to display a 
fixed height. What item renderer would you recomend?

Regarding the elipses/popup, how do you know when to display elipses? Generally 
the data is only a couple of lines, very infrequently is the data bigger than 
the entire grid.

Paul

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

 What I do in this situation is to truncate the text in the cell and add 
 elipses. If the user needs to see all the note text, they can click on the 
 cell which opens a new popup. If the text is short enough, I use a tooltip.
 
 
 
 --- In flexcoders@yahoogroups.com, turbo_vb TimHoff@ wrote:
 
   How can I tell the datagrid to allow cell heights greater than the
  grid height?
  Even though it's not shown, the cell height is greater than the DataGrid
  height.   However, the DataGrid's scroll mechanism will always take you
  to the next row, so this isn't an option.
   How can I turn on a scrollbar for the cell?
  You can use an itemRenderer that has a maxHeight.  Although, having
  nested scrollBars is pretty bad for the user.A third option, if you
  don't have thousands of records, is to put the DataGrid in a container
  and do not set a height for the DataGrid.  In other words, go ahead and
  render all of the DataGrid items and have the parent container do the
  scrolling.  This would solve your problem by allowing smooth scrolling,
  but would more of a hog when it comes to performance.  But, if you don't
  have that many records to show, it's a decent trade-off and much better
  than the choppy scrolling that is native to the DataGrid.
  -TH
  --- In flexcoders@yahoogroups.com, aceoohay pauls@ wrote:
  
   I have a datagrid that displays text from a notes field. I have
  variableRowHeight=true. This works well unless one record has a note
  that is larger than the height of the entire grid. In this case I cannot
  see the bottom of the note. It truncates the lines at the height of the
  grid
  
   There is a scroll bar for the grid, but not for the individual cell in
  the grid.
  
   Either of the following would solve my problem;
  
   How can I tell the datagrid to allow cell heights greater than the
  grid height?
  
   -or-
  
   How can I turn on a scrollbar for the cell?
  
   Paul
  
 





[flexcoders] Re: Datagrid height problem.

2009-09-10 Thread turbo_vb
Yep, correct about the headers scrolling too.  My bad, was thinking about a 
List.   Using Steve's suggestion, a Text control with truncateToFit=:true will 
give you the ellipses and an automatic toolTip; if the text exceeds the size.

-TH

--- In flexcoders@yahoogroups.com, aceoohay pa...@... wrote:

 Thanks for the advice...
 
 I was unable to use make the suggestion of removing the height from the 
 datagrid work. Even if it did work, wouldn't that cause the headers to scroll 
 out of sight?
 
 Regarding using an item renderer, I have been unable to find one that will 
 expand to the height available and then scroll. TextArea seems to display a 
 fixed height. What item renderer would you recomend?
 
 Regarding the elipses/popup, how do you know when to display elipses? 
 Generally the data is only a couple of lines, very infrequently is the data 
 bigger than the entire grid.
 
 Paul
 
 --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote:
 
  What I do in this situation is to truncate the text in the cell and add 
  elipses. If the user needs to see all the note text, they can click on the 
  cell which opens a new popup. If the text is short enough, I use a tooltip.
  
  
  
  --- In flexcoders@yahoogroups.com, turbo_vb TimHoff@ wrote:
  
How can I tell the datagrid to allow cell heights greater than the
   grid height?
   Even though it's not shown, the cell height is greater than the DataGrid
   height.   However, the DataGrid's scroll mechanism will always take you
   to the next row, so this isn't an option.
How can I turn on a scrollbar for the cell?
   You can use an itemRenderer that has a maxHeight.  Although, having
   nested scrollBars is pretty bad for the user.A third option, if you
   don't have thousands of records, is to put the DataGrid in a container
   and do not set a height for the DataGrid.  In other words, go ahead and
   render all of the DataGrid items and have the parent container do the
   scrolling.  This would solve your problem by allowing smooth scrolling,
   but would more of a hog when it comes to performance.  But, if you don't
   have that many records to show, it's a decent trade-off and much better
   than the choppy scrolling that is native to the DataGrid.
   -TH
   --- In flexcoders@yahoogroups.com, aceoohay pauls@ wrote:
   
I have a datagrid that displays text from a notes field. I have
   variableRowHeight=true. This works well unless one record has a note
   that is larger than the height of the entire grid. In this case I cannot
   see the bottom of the note. It truncates the lines at the height of the
   grid
   
There is a scroll bar for the grid, but not for the individual cell in
   the grid.
   
Either of the following would solve my problem;
   
How can I tell the datagrid to allow cell heights greater than the
   grid height?
   
-or-
   
How can I turn on a scrollbar for the cell?
   
Paul
   
  
 





RE: [flexcoders] How to display bullet insted asterisk in textinput controll

2009-09-10 Thread Gordon Smith
If you are talking about mx:TextInput, you can't change the password 
character... mx:TextInput uses the TextField class in Flash Player, which 
only is capable of displaying asterisks. The new s:TextInput in Flex 4, which 
is based on TLF, has an mx_internal var for the password character.

- Gordon

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of vladakg85
Sent: Thursday, September 10, 2009 1:24 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to display bullet insted asterisk in textinput 
controll



I added displayAsPassword but I want bullets instead of asterisks. How to 
achieve this? I can't change type of fonts in controll.



[flexcoders] Manually triggering creation when creationPolicy=auto?

2009-09-10 Thread dfalling
How can I make a viewstack create its children (or more correctly, children's 
children) programmatically?  I know about the different creation policies, I am 
specifically asking about manually triggering a creation.

Cheers



[flexcoders] Re: Datagrid height problem.

2009-09-10 Thread aceoohay
My code looks like;

mx:DataGridColumn headerText=Description 
dataField=SCHEDULED_DESCRIPTION width=492 wordWrap=true
mx:itemRenderer
mx:Component
mx:Text width=100% 
text={data.SCHEDULED_DESCRIPTION} truncateToFit=true/
/mx:Component
/mx:itemRenderer
/mx:DataGridColumn

The text that is in the DB las line 1 followed by a new line followed by line 
2, etc.

It does not display the elipses.

Paul

--- In flexcoders@yahoogroups.com, turbo_vb timh...@... wrote:

 Yep, correct about the headers scrolling too.  My bad, was thinking about a 
 List.   Using Steve's suggestion, a Text control with truncateToFit=:true 
 will give you the ellipses and an automatic toolTip; if the text exceeds the 
 size.
 
 -TH
 
 --- In flexcoders@yahoogroups.com, aceoohay pauls@ wrote:
 
  Thanks for the advice...
  
  I was unable to use make the suggestion of removing the height from the 
  datagrid work. Even if it did work, wouldn't that cause the headers to 
  scroll out of sight?
  
  Regarding using an item renderer, I have been unable to find one that will 
  expand to the height available and then scroll. TextArea seems to display 
  a fixed height. What item renderer would you recomend?
  
  Regarding the elipses/popup, how do you know when to display elipses? 
  Generally the data is only a couple of lines, very infrequently is the data 
  bigger than the entire grid.
  
  Paul
  
  --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote:
  
   What I do in this situation is to truncate the text in the cell and add 
   elipses. If the user needs to see all the note text, they can click on 
   the cell which opens a new popup. If the text is short enough, I use a 
   tooltip.
   
   
   
   --- In flexcoders@yahoogroups.com, turbo_vb TimHoff@ wrote:
   
 How can I tell the datagrid to allow cell heights greater than the
grid height?
Even though it's not shown, the cell height is greater than the DataGrid
height.   However, the DataGrid's scroll mechanism will always take you
to the next row, so this isn't an option.
 How can I turn on a scrollbar for the cell?
You can use an itemRenderer that has a maxHeight.  Although, having
nested scrollBars is pretty bad for the user.A third option, if you
don't have thousands of records, is to put the DataGrid in a container
and do not set a height for the DataGrid.  In other words, go ahead and
render all of the DataGrid items and have the parent container do the
scrolling.  This would solve your problem by allowing smooth scrolling,
but would more of a hog when it comes to performance.  But, if you don't
have that many records to show, it's a decent trade-off and much better
than the choppy scrolling that is native to the DataGrid.
-TH
--- In flexcoders@yahoogroups.com, aceoohay pauls@ wrote:

 I have a datagrid that displays text from a notes field. I have
variableRowHeight=true. This works well unless one record has a note
that is larger than the height of the entire grid. In this case I cannot
see the bottom of the note. It truncates the lines at the height of the
grid

 There is a scroll bar for the grid, but not for the individual cell in
the grid.

 Either of the following would solve my problem;

 How can I tell the datagrid to allow cell heights greater than the
grid height?

 -or-

 How can I turn on a scrollbar for the cell?

 Paul

   
  
 





[flexcoders] Creating class diagrams

2009-09-10 Thread gregholliday
Does anyone know of a tool that can create a class diagram from existing Flex 
code?



[flexcoders] Re: Datagrid height problem.

2009-09-10 Thread turbo_vb
Give it a height.

-TH

--- In flexcoders@yahoogroups.com, aceoohay pa...@... wrote:

 My code looks like;
 
   mx:DataGridColumn headerText=Description 
 dataField=SCHEDULED_DESCRIPTION width=492 wordWrap=true
   mx:itemRenderer
   mx:Component
   mx:Text width=100% 
 text={data.SCHEDULED_DESCRIPTION} truncateToFit=true/
   /mx:Component
   /mx:itemRenderer
   /mx:DataGridColumn
 
 The text that is in the DB las line 1 followed by a new line followed by line 
 2, etc.
 
 It does not display the elipses.
 
 Paul
 
 --- In flexcoders@yahoogroups.com, turbo_vb TimHoff@ wrote:
 
  Yep, correct about the headers scrolling too.  My bad, was thinking about a 
  List.   Using Steve's suggestion, a Text control with truncateToFit=:true 
  will give you the ellipses and an automatic toolTip; if the text exceeds 
  the size.
  
  -TH
  
  --- In flexcoders@yahoogroups.com, aceoohay pauls@ wrote:
  
   Thanks for the advice...
   
   I was unable to use make the suggestion of removing the height from the 
   datagrid work. Even if it did work, wouldn't that cause the headers to 
   scroll out of sight?
   
   Regarding using an item renderer, I have been unable to find one that 
   will expand to the height available and then scroll. TextArea seems to 
   display a fixed height. What item renderer would you recomend?
   
   Regarding the elipses/popup, how do you know when to display elipses? 
   Generally the data is only a couple of lines, very infrequently is the 
   data bigger than the entire grid.
   
   Paul
   
   --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote:
   
What I do in this situation is to truncate the text in the cell and add 
elipses. If the user needs to see all the note text, they can click on 
the cell which opens a new popup. If the text is short enough, I use a 
tooltip.



--- In flexcoders@yahoogroups.com, turbo_vb TimHoff@ wrote:

  How can I tell the datagrid to allow cell heights greater than the
 grid height?
 Even though it's not shown, the cell height is greater than the 
 DataGrid
 height.   However, the DataGrid's scroll mechanism will always take 
 you
 to the next row, so this isn't an option.
  How can I turn on a scrollbar for the cell?
 You can use an itemRenderer that has a maxHeight.  Although, having
 nested scrollBars is pretty bad for the user.A third option, if you
 don't have thousands of records, is to put the DataGrid in a container
 and do not set a height for the DataGrid.  In other words, go ahead 
 and
 render all of the DataGrid items and have the parent container do the
 scrolling.  This would solve your problem by allowing smooth 
 scrolling,
 but would more of a hog when it comes to performance.  But, if you 
 don't
 have that many records to show, it's a decent trade-off and much 
 better
 than the choppy scrolling that is native to the DataGrid.
 -TH
 --- In flexcoders@yahoogroups.com, aceoohay pauls@ wrote:
 
  I have a datagrid that displays text from a notes field. I have
 variableRowHeight=true. This works well unless one record has a note
 that is larger than the height of the entire grid. In this case I 
 cannot
 see the bottom of the note. It truncates the lines at the height of 
 the
 grid
 
  There is a scroll bar for the grid, but not for the individual cell 
  in
 the grid.
 
  Either of the following would solve my problem;
 
  How can I tell the datagrid to allow cell heights greater than the
 grid height?
 
  -or-
 
  How can I turn on a scrollbar for the cell?
 
  Paul
 

   
  
 





[flexcoders] AdvancedDataGrid: expandItem()

2009-09-10 Thread fumeng5
Hi,

I'm trying to expand the first row of my AdvancedDataGrid column when it is 
loaded with my XML data. I've found plenty of examples online that show how to 
do it from a click event, but nothing on init of the grid. I've tried the 
initialize method, the setter of my dataProvider method but they all give me a 
range out of bounds error. 

Here's my function:

private function expandRow():void{
// Expand the first row of the ADG
var obj:Object = gc.getRoot(); 
var temp:Object = 
ListCollectionView(obj).getItemAt(0); 
grid.expandItem(temp,true);
grid.validateNow();
}

Anyone know the proper event to trigger this? 

Thank you,

Matt



RE: [flexcoders] HBox not sizing properly...how to kick it in the head

2009-09-10 Thread Alex Harui
In updateDisplayList, see if the parameters are 0.  If they are, check 
measuredWIdth/Height and explicitWIdth/Height to see if either are 0.  It 
sounds like explicitWIdth/Height may have gotten set to 0 somewhere

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of flexwdw
Sent: Thursday, September 10, 2009 11:08 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] HBox not sizing properly...how to kick it in the head



Hello. I have a situation where I have an object that extends HBox. This object 
has a variable number of children. The object gets created and added to it's 
parent at runtime. The reason I chose HBox is because it will size itself. I 
want the width and the height of the HBox to be the width and height of the 
components inside the HBox.

So, when I do this, my hbox simply does not appear when it should...if I 
override updateDipslayList and set a breakpoint inside it, I find that the 
width and the height are both zero (and yes, this is after all the child 
objects have been added). Inside updateDisplayList, the children all have valid 
widths and heights. So, I don't understand what's going on here. Is there 
something I need to do to get the HBox to kick itself in the head and 
recalculate it's size. Neither invalidateSize or invalidateDisplayList on the 
HBox seem to effect the layout. So, I know I can go in and figure out how big 
this thing should be myself and size it appropriately, but I'd like to 
understand what I am not getting here, because it sure seems like there should 
be a better solution.

thanks for any advice...



[flexcoders] Re: BlazeDS use secure channel when loaded over https.

2009-09-10 Thread Wesley Acheson
Does anyone else know where I can ask or point me somewhere I might find
more information?

Regards,

Wesley Acheson

On Wed, Sep 9, 2009 at 5:28 PM, Wesley Acheson wesley.ache...@gmail.comwrote:

 Hi all,

 We are nearing the end of a development cycle. One thing that I just
 noticed is that my application is talking over http instead of https when
 the application is loaded from a https domain.

 In live we will not have any http element of the domain active, only https.
 However locally there is no https component.  Is there any way of loading
 off a secure channel when the flash file was loaded via https and a non
 secure channel otherwise?

 Otherwise I'm going to have to change all the channels to secure for
 deployment, and no longer run the application locally.

 Regards,
 Wesley Acheson



RE: [flexcoders] Understanding measure process

2009-09-10 Thread Alex Harui
If you have a component that extends UIComponent it is responsible for 
measuring itself to reserve the right amount of room in the parent container, 
and responsible for sizing its children, usually by calling setActualSIze() and 
using getExplicitOrMeasuredWIdth/Height

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of neilbrown08
Sent: Thursday, September 10, 2009 6:27 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Understanding measure process



Hi,

Searched the forum but cannot find an answer to my problem. Please look at the 
code and offer some advice.

My code is called Highlight.mxml if I put it in a normal VBox container and 
call setText it sizes correctly.

If I create it as a child in my own component which extends UIComponent, I 
cannot get it to size at all, its always width = 0 even though I do see 
measuredWidth reported correctly.

I wanted this component to size itself based on what is inside the textfield. 
So if it is a child of my component I still would like it to be the size of the 
text.

?xml version=1.0 encoding=utf-8?
mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml;
creationComplete=creationComplete()
backgroundColor=0xff
borderColor=0x628297
borderThickness=1
borderStyle=solid
mx:Script
![CDATA[
import flash.filters.DropShadowFilter;

private var str:String;

private function creationComplete():void
{
this.filters = [new DropShadowFilter(4, 45, 0x33, 0.5) ];
}

override protected function commitProperties():void
{
super.commitProperties();

txt.text = this.str;
invalidateSize();
invalidateDisplayList();
}

override protected function measure():void
{
super.measure();

measuredWidth = measuredMinWidth = txt.getExplicitOrMeasuredWidth();
measuredHeight = measuredMinHeight = txt.getExplicitOrMeasuredHeight();
}

override protected function updateDisplayList(unscaledWidth:Number, 
unscaledHeight:Number):void
{
super.updateDisplayList(unscaledWidth, unscaledHeight);
//this.setActualSize(txt.width, txt.height);
}

public function setText(str:String):void
{
this.str = str;
invalidateProperties();
}

]]
/mx:Script
mx:Label id=txt text=100 color=0x00/
/mx:Canvas



RE: [flexcoders] Manually triggering creation when creationPolicy=auto?

2009-09-10 Thread Alex Harui
createComponentFromDescriptor

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of dfalling
Sent: Thursday, September 10, 2009 1:15 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Manually triggering creation when creationPolicy=auto?



How can I make a viewstack create its children (or more correctly, children's 
children) programmatically? I know about the different creation policies, I am 
specifically asking about manually triggering a creation.

Cheers



[flexcoders] reading Xml excel files

2009-09-10 Thread charleswcng
I'm writing a small app that can upload excel xml files and convert
them into graphs. When I was using e4x to see how the data is shown,
it didn't return anything.  It works fine if I simplified all the data
with only
Workbook,Row,Cell and Data.  Anyone have any idea why I
couldn't use Worksheet.Row.Cell.Data in the complex example below?
Also, when it is imported in flex, some of the tags are inserted with
o:  in front like o:DocumentProperties.

How can I read this file using e4x expression?  Please go easy on me,
I'm pretty new to flex.

Here is the sample data.xml:
?xml version=1.0?
Workbook xmlns=urn:schemas-microsoft-com:office:spreadsheet
 xmlns:o=urn:schemas-microsoft-com:office:office
 xmlns:x=urn:schemas-microsoft-com:office:excel
 xmlns:ss=urn:schemas-microsoft-com:office:spreadsheet
 xmlns:html=http://www.w3.org/TR/REC-html40;
 DocumentProperties xmlns=urn:schemas-microsoft-com:office:office
 AuthorAuthor/Author
 LastAuthorAuthor/LastAuthor
 Created2009-09-08T11:52:44Z/Created
 LastSaved2009-09-10T19:52:04Z/LastSaved
 Version12.0/Version
 /DocumentProperties
 OfficeDocumentSettings xmlns=urn:schemas-microsoft-
com:office:office
 AllowPNG/
 /OfficeDocumentSettings
 ExcelWorkbook xmlns=urn:schemas-microsoft-com:office:excel
 WindowHeight16280/WindowHeight
 WindowWidth24320/WindowWidth
 WindowTopX860/WindowTopX
 WindowTopY420/WindowTopY
 Date1904/
 ProtectStructureFalse/ProtectStructure
 ProtectWindowsFalse/ProtectWindows
 /ExcelWorkbook
 Styles
 Style ss:ID=Default ss:Name=Normal
  Alignment ss:Vertical=Bottom/
  Borders/
  Font ss:FontName=Verdana/
  Interior/
  NumberFormat/
  Protection/
 /Style
 Style ss:ID=s21
  NumberFormat ss:Format=Short Date/
 /Style
 /Styles
 Worksheet ss:Name=AllTransactions.csv
 Table ss:ExpandedColumnCount=13 ss:ExpandedRowCount=6
x:FullColumns=1
  x:FullRows=1
  Column ss:Index=4 ss:Width=98.0/
  Column ss:Index=11 ss:Width=498.0/
  Row
   CellData ss:Type=StringSymbol/Data/Cell
   CellData ss:Type=StringQuantity/Data/Cell
   CellData ss:Type=StringPrice/Data/Cell
   CellData ss:Type=StringActionNameUS/Data/Cell
   CellData ss:Type=StringTradeDate/Data/Cell
   CellData ss:Type=StringSettledDate/Data/Cell
   CellData ss:Type=StringInterest/Data/Cell
   CellData ss:Type=StringAmount/Data/Cell
   CellData ss:Type=StringCommission/Data/Cell
   CellData ss:Type=StringFees/Data/Cell
   CellData ss:Type=StringDescription/Data/Cell
   CellData ss:Type=StringActionId/Data/Cell
   CellData ss:Type=StringRecordType/Data/Cell
  /Row
  Row
   CellData ss:Type=StringCash/Data/Cell
   CellData ss:Type=Number0.0/Data/Cell
   CellData ss:Type=Number0.0/Data/Cell
   CellData ss:Type=StringCredit Interest/Data/Cell
   Cell ss:StyleID=s21Data
ss:Type=DateTime2009-08-31T00:00:00.000/Data/Cell
   Cell ss:Index=8Data ss:Type=Number0.11/Data/Cell
   CellData ss:Type=Number0.0/Data/Cell
   CellData ss:Type=Number0.0/Data/Cell
   CellData ss:Type=StringCREDIT  INTEREST 31 DAYS @ .05%
AVERAGE CREDIT BALANCE  2537.05 APY EARNED .05%/Data/Cell
   CellData ss:Type=Number4.0/Data/Cell
   CellData ss:Type=StringFinancial/Data/Cell
  /Row
  Row
   CellData ss:Type=StringCash/Data/Cell
   CellData ss:Type=Number0.0/Data/Cell
   CellData ss:Type=Number0.0/Data/Cell
   CellData ss:Type=StringMargin Interest/Data/Cell
   Cell ss:StyleID=s21Data
ss:Type=DateTime2009-08-31T00:00:00.000/Data/Cell
   Cell ss:Index=8Data ss:Type=Number-10.62/Data/Cell
   CellData ss:Type=Number0.0/Data/Cell
   CellData ss:Type=Number0.0/Data/Cell
   CellData ss:Type=StringMARGIN INTEREST 4 DAYS @ 7 1/2%
AVERAGE DEBIT BALANCE  12739.40/Data/Cell
   CellData ss:Type=Number7.0/Data/Cell
   CellData ss:Type=StringFinancial/Data/Cell
  /Row
  Row
   CellData ss:Type=StringBAC/Data/Cell
   CellData ss:Type=Number150.0/Data/Cell
   CellData ss:Type=Number17.7/Data/Cell
   CellData ss:Type=StringBuy/Data/Cell
   Cell ss:StyleID=s21Data
ss:Type=DateTime2009-08-25T00:00:00.000/Data/Cell
   Cell ss:StyleID=s21Data
ss:Type=DateTime2009-08-28T00:00:00.000/Data/Cell
   Cell ss:Index=8Data ss:Type=Number-20355.0/Data/Cell
   CellData ss:Type=Number0.0/Data/Cell
   CellData ss:Type=Number0.0/Data/Cell
   CellData ss:Type=StringBOUGHT 150 SHARES OF BAC AT $17.70/
Data/Cell
   CellData ss:Type=Number1.0/Data/Cell
   CellData ss:Type=StringTrade/Data/Cell
  /Row
  Row
   CellData ss:Type=StringBAC/Data/Cell
   CellData ss:Type=Number100.0/Data/Cell
   CellData ss:Type=Number17.7/Data/Cell
   CellData ss:Type=StringBuy/Data/Cell
   Cell ss:StyleID=s21Data
ss:Type=DateTime2009-08-25T00:00:00.000/Data/Cell
   Cell ss:StyleID=s21Data
ss:Type=DateTime2009-08-28T00:00:00.000/Data/Cell
   Cell ss:Index=8Data ss:Type=Number-1777.0/Data/Cell
   CellData ss:Type=Number-7.0/Data/Cell
   CellData ss:Type=Number0.0/Data/Cell
   CellData ss:Type=StringBOUGHT 100 SHARES OF BAC AT $17.70/
Data/Cell
   CellData ss:Type=Number1.0/Data/Cell
   CellData ss:Type=StringTrade/Data/Cell
  /Row
  Row
   CellData ss:Type=StringBKS/Data/Cell
   CellData 

[flexcoders] Is Flex 3.4 DMV source in wrong place?

2009-09-10 Thread tntomek
Is the default zip of Flex 3.4 source in the wrong place?

it extracts to ... 
...sdks\3.4.0\frameworks\projects\datavisualisation\src

Flex builder Library path for datavisualization.swc expects it to be in:
...sdks\3.4.0\fbpro\projects\datavisualisation\src

I had to manually add this to Source path so I can jump into DMV source. 
Copying the source to the correct folder wasn't enough as FB still didn't let 
me step into DMV code.

Do I still need to run the .jar extract that we had for Flex 3.3 or is the zip 
extract + xcopy enough?





[flexcoders] Re: AdvancedDataGrid: expandItem()

2009-09-10 Thread fumeng5
I believe the answer is to use callLater before acting on the AdvancedDataGrid. 
However, the kink is that my dataProvider isn't set until XML is loaded. 

Here is the setter for the dataProvider (source of my GroupingCollection):
public function set applications( arr:Array ):void{
_applications = arr;
appColl.source = applications;
callLater( expandRow );
}

..And then here is the expandRow() method:
private function expandRow():void{
// Expand the first row of the ADG
var obj:Object = gc.getRoot(); 
var temp:Object = 
ListCollectionView(obj).getItemAt(0); 
grid.expandItem(temp,true);
}

mx:dataProvider
mx:GroupingCollection id=gc source={appColl}
mx:Grouping
mx:GroupingField name=label/
/mx:Grouping
/mx:GroupingCollection
/mx:dataProvider 

The error I get when I run this code is this:

Index '0' specified is out of bounds.

I'm just not sure why this might be happening. I mean, I'm using callLater..Any 
ideas? 
--- In flexcoders@yahoogroups.com, fumeng5 fume...@... wrote:

 Hi,
 
 I'm trying to expand the first row of my AdvancedDataGrid column when it is 
 loaded with my XML data. I've found plenty of examples online that show how 
 to do it from a click event, but nothing on init of the grid. I've tried the 
 initialize method, the setter of my dataProvider method but they all give me 
 a range out of bounds error. 
 
 Here's my function:
 
 private function expandRow():void{
   // Expand the first row of the ADG
   var obj:Object = gc.getRoot(); 
   var temp:Object = 
 ListCollectionView(obj).getItemAt(0); 
   grid.expandItem(temp,true);
   grid.validateNow();
   }
 
 Anyone know the proper event to trigger this? 
 
 Thank you,
 
 Matt





[flexcoders] SWF SWC File extensions. What they stands for..??

2009-09-10 Thread Manu Dhanda

My understanding about SWF:
SWF(Shockwave Flash) which was later changed to Small Web Format.

SWC - ???

Can anybody post me the extension details about swc. What it stands for?
I know that it is an extension for library files. But, I am just interested
in the term SWC, Ehat it stands for?

--Manu.
-- 
View this message in context: 
http://www.nabble.com/SWF---SWC-File-extensions.-What-they-stands-for..---tp25395056p25395056.html
Sent from the FlexCoders mailing list archive at Nabble.com.