Re: [flexcoders] ambiguous reference error

2009-06-11 Thread Tom Chiverton
On Wednesday 10 Jun 2009, [p e r c e p t i c o n] wrote:
 mx:Button x=504 y=511 id=submitButton label=Continue
 click=Submit(); enabled={valid}/

So using
submitButton.valid 
is a work around ?

-- 
Helping to globally strategize error-free eligible professional products as 
part of the IT team of the year, '09 and '08

Tom Chiverton
Developer
Tel: +44 0161 618 5032
Fax: +44 0161 618 5099 
tom.chiver...@halliwells.com
3 Hardman Square, Manchester, M3 3EB
www.Halliwells.com



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] Read HTML content ???

2009-06-11 Thread Sam Lai
You can access the HTML DOM of that page like this, and get whatever
you want, just like you can in JS:

var forms:* = browser.domWindow.document.getElementsByTagName(form);
var loginForm:* = null;
for each (var f:* in forms)
{
if (f.innerText.toLowerCase().indexOf(login) = 0)
{
loginForm = f;
break;
}
}

This code gets the form on the page with the text login.

2009/6/11 lehaianh1986 lehaianh1...@yahoo.com:
 Hi everyone, I use HTML component in AIR project. When HTML component display 
 the website, I want to read text content of that website. I find but can't 
 see the attribute have what I want. Anyone know about it can help me please?

 Hai Anh



 

 --
 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] Read Items / Loop Through Datagrid Rows

2009-06-11 Thread Angelo Anolin

Hi FlexCoders,

I am dynamically creating a datagrid with 5 columns and 10 rows.  Columns 2, 3, 
4 and 5 are all rendered as textinput control where user can enter some 
information.

How do I loop through all the datagrid rows and store the values entered in the 
datagrid into an array collection?

Been trying to find some nice examples to achieve this but came up empty 
handed. Would appreciate your inputs.

By the way, I'd also like to ensure that no rows would be skipped by the user 
when filling up the datagrid (i.e. He could only populate row 1 before he can 
populate row 2 and so forth).  That way, when the array collection stores the 
values of the datagrid, there is no blank or null value.  The remaining blank 
rows would simply be ignored in the loop.

Thanks.

Regards,

Angelo



  

[flexcoders] Flex export to Excel

2009-06-11 Thread mhbmarcos
Hi!!!
when i export to excel, i need open or save dialog box, but i use a library 
(http://www.cristalab.com/tips/exportar-datos-de-flex-a-excel-c70300l/) and it 
containg :

 var fr:FileReference = new FileReference(); 
 fr.save(bytes, fileExported);

this open a dialog box with only save options

I need save and open option

any solution ?

Thanks and Regards 




RE: [flexcoders] Flex export to Excel

2009-06-11 Thread Battershall, Jeff
The dialog generated when doing FileReference.save() isn't going to have open 
as an option - I wish it did.  To see that you'd have to be downloading from 
the browser itself.

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of mhbmarcos
Sent: Thursday, June 11, 2009 9:55 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex export to Excel


Hi!!!
when i export to excel, i need open or save dialog box, but i use a library 
(http://www.cristalab.com/tips/exportar-datos-de-flex-a-excel-c70300l/) and it 
containg :

 var fr:FileReference = new FileReference();
 fr.save(bytes, fileExported);

this open a dialog box with only save options

I need save and open option

any solution ?

Thanks and Regards






--
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] getting files in additional Source Paths to automatically recompile

2009-06-11 Thread Pan Troglodytes
I have a couple of external folders listed in my project's Flex Build
Path-Source Path section.  These folders are outside of my project
hierarchy and contain some common  files I share between several different
projects.

When I'm in my project and ctrl-click on an object in these files, it opens
the file properly.  But if I make changes and hit save, it doesn't recompile
my project to include those changes.  If I make changes in the project and
it rebuilds, it still doesn't get the changes in that external file.  Only
when I do a Project-Clean does it recompile those external files in.

Is there some better way of setting it up so that it will be more
intelligent about figuring out it needs to recompile those files on changes?

-- 
Jason


[flexcoders] Dispatch Event Issue on BreadCrumb Trail Click

2009-06-11 Thread n_manjunatha
Hi,
I have an applications where in have breadcrumb trails of the tree node 
clicked. I have to make forced selection of the tree nodes on click of the 
breadcrumb item.

say i have tree like this
root
 -- child1
--subchild1
  ---grandchild1
  ---grandchild2
--subchild2
 -- child2
 -- child3
 -- child4

my trail would be root-child1-subchild1-grandchild1

Now if i click child1 in breadcrumb trail i should have forced selection of 
tree.
i have main.mxml in which i am invoking component contentpane.mxml(where the 
tree panel is described). my main.mxml has the breadcrumb trails, the click of 
which i have to dispatch an event to tree to make the forced selection of the 
node.

Dispatch Event is not working for me whenever... and i do not know when/where 
to addeventlistener to tree.i tried it in 
creationcomplete..initialiszebut eventlistener is not catching my event of 
breadcrumb trail click

Can anyone help me on this issue please..



Re: [flexcoders] Flex export to Excel

2009-06-11 Thread Paul Kukiel
Actually with Flash 10 you can do this.  You can load and save
directly in the browser and save client side with no backend.

I have a short demo here:
http://blog.kukiel.net/2009/02/file-manipulation-client-side-with.html

I was playign with this a few months back.

fileRef = new FileReference();
fileRef.save(data, defualtfileName.extention);

Should work just fine.  Just remember its Flash 10 only though.

Paul.

On Thu, Jun 11, 2009 at 11:35 AM, Battershall,
Jeffjeff.battersh...@dowjones.com wrote:


 The dialog generated when doing FileReference.save() isn't going to have
 open as an option - I wish it did. To see that you'd have to be
 downloading from the browser itself.

 Jeff

 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of mhbmarcos
 Sent: Thursday, June 11, 2009 9:55 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Flex export to Excel

 Hi!!!
 when i export to excel, i need open or save dialog box, but i use a library
 (http://www.cristalab.com/tips/exportar-datos-de-flex-a-excel-c70300l/) and
 it containg :

 var fr:FileReference = new FileReference();
 fr.save(bytes, fileExported);

 this open a dialog box with only save options

 I need save and open option

 any solution ?

 Thanks and Regards

 

 --
 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: Dispatch Event Issue on BreadCrumb Trail Click

2009-06-11 Thread Tim Hoff

Hi,

If you're not using an MVC framework, an easy way is to create a public
method in contentpane.mxml, that will set the tree selection.  On
breadcrumb click, pass the event: contentpane.myPublicSelectionMethod(
event ).

-TH

--- In flexcoders@yahoogroups.com, n_manjunatha nmanjuna...@...
wrote:

 Hi,
 I have an applications where in have breadcrumb trails of the tree
node clicked. I have to make forced selection of the tree nodes on click
of the breadcrumb item.

 say i have tree like this
 root
 -- child1
 --subchild1
 ---grandchild1
 ---grandchild2
 --subchild2
 -- child2
 -- child3
 -- child4

 my trail would be root-child1-subchild1-grandchild1

 Now if i click child1 in breadcrumb trail i should have forced
selection of tree.
 i have main.mxml in which i am invoking component
contentpane.mxml(where the tree panel is described). my main.mxml has
the breadcrumb trails, the click of which i have to dispatch an event to
tree to make the forced selection of the node.

 Dispatch Event is not working for me whenever... and i do not know
when/where to addeventlistener to tree.i tried it in
creationcomplete..initialiszebut eventlistener is not catching my
event of breadcrumb trail click

 Can anyone help me on this issue please..






[flexcoders] Re: Grab the Current State of a Button

2009-06-11 Thread ericmaslowski
Ugh...thanks guys. Figured I was over thinking it and missing something simple. 
Thanks again!

E.

--- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote:

 
 For a ToggleButton, look at the selected property:
 
 if ( myButton.selected )
 {
   // my state is down
 }
 
 -TH
 
 --- In flexcoders@yahoogroups.com, ericmaslowski ericmaslowski@
 wrote:
 
  Hello,
  I have been trying to do something very simple here with Flex but have
 hit a wall. I have several toggle buttons throughout the UI that when
 one is activated others change their states depending on the states of
 others. So, if button one is pressed button 1 looks at what other
 buttons are pressed and makes a decision on what to do. Sometimes this
 involves resetting another button's state to UP or DOWN. The problem is
 that I can't find out how to query the state of any of these buttons. I
 would think it would be a simple member of the Button class that one can
 test like:
 
  if(button.getState() == ButtonStates.DOWN) {...}
 
  I looked into what Flex refers to as states, ButtonPhase (although
 there doesn't seem to be any documentation on this), and a few other
 methods. I would really hate to resort to creating over a dozen
 functions and event handlers to get this very simple query to work. Does
 anyone have any pointers or advice?
 
  Thanks!
 
  E.
 





[flexcoders] InvokeEvent not dispatched for webservice

2009-06-11 Thread peeyushtuli
Hi,

Is it possible to add an eventlistener for the InvokeEvent when caling a web 
operation using the autogenerated code from the webservice wizard in flex 
builder 3.
I am using flex sdk 3.2.
I tried to add an eventlistener to the instance of the BaseService class but 
that does not help.

Thanks,
Peeyush




[flexcoders] Flex 4 Profiling Question - GC Root?

2009-06-11 Thread Mark Lapasa
I was going over the Adobe Flex 4 Feature and Migration PDF which is 
pretty good synopsis so far of what's new in Flex 4. Under the Profiling 
Enhancements section, it says you can now view all the shortest paths 
from the object to the garbage collector root (GC root)

I understand as much as the mark  sweep but what does the above exactly 
mean?

Thx,

-mL


Notice of confidentiality:
The information contained in this e-mail is intended only for the use of the 
individual or entity named above and may be confidential. Should the reader of 
this message not be the intended recipient, you are hereby notified that any 
unauthorized dissemination, distribution or reproduction of this message is 
strictly prohibited. If you have received this message in error, please advise 
the sender immediately and destroy the e-mail.



[flexcoders] Re: mx:VideoDisplay does not return QuickTime metadata

2009-06-11 Thread Michael Slinn

Thank you for the information.  It is helpful to understand.

Because I want to size the player at the start of loading the file, and
I do not want to have to rearrange the contents of every file that is
uploaded, I think a server-side Java program that reads the metadata and
sends it to a custom player via RPC or POST is the best way for me to
go.  Here is a first attempt at such a program:
import javax.media.CannotRealizeException; import
javax.media.MediaLocator; import javax.media.NoPlayerException; import
javax.media.Player; import javax.media.Manager; import
java.awt.Component; import java.awt.Dimension; import
java.io.IOException; import java.net.URL;  public class
MediaMetadataReader {  public MediaMetadataReader(URL
mediaLocator) throws NoPlayerException, IOException,
CannotRealizeException { Player player =
Manager.createPlayer(mediaLocator); Component mediaViewer =
player.getVisualComponent(); Dimension mediaDimension =
mediaViewer.getPreferredSize(); double width =
mediaDimension.getWidth(); double height =
mediaDimension.getHeight(); System.out.println(width= + width
+ , height= + height); }  public static void main(String[]
args) throws NoPlayerException, IOException, CannotRealizeException {
if (args.length==0) { System.out.println(Usage:
MediaMetadataReader fileToRead); System.exit(-1); }
MediaMetadataReader metaReader = new MediaMetadataReader(new
URL(args[0])); } }
If anyone has a finished version of something similar, I'd like to hear
about it.



[flexcoders] ADG with grouping

2009-06-11 Thread mhbmarcos
Hi!!!
i have a AdvancedDataGrid with grouping and summaty by group. I need 
hide/remove the row that contains the group separator, in general, this 
separator by group have a folder icon, its expand or collapse the group.

do you can help me ?, Any solution for this?

i need some thing that (group by groupID field)

name folders groupId
   pepe51
   Lu  151

subtotal:   20

   Rich52
   clin52

subtotal:  10

total :30 


thanks and regards





Re: [flexcoders] ambiguous reference error

2009-06-11 Thread [p e r c e p t i c o n]
valid is not the same as enabled...i don't think...


On Thu, Jun 11, 2009 at 1:23 AM, Tom Chiverton tom.chiver...@halliwells.com
 wrote:





 On Wednesday 10 Jun 2009, [p e r c e p t i c o n] wrote:
  mx:Button x=504 y=511 id=submitButton label=Continue
  click=Submit(); enabled={valid}/

 So using
 submitButton.valid
 is a work around ?

 --
 Helping to globally strategize error-free eligible professional products as

 part of the IT team of the year, '09 and '08


   Tom Chiverton
  Developer
  Tel: +44 0161 618 5032
 Fax: +44 0161 618 5099
  tom.chiver...@halliwells.com
  3 Hardman Square, Manchester, M3 3EB
  www.Halliwells.com

  

 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] Generate sample request from WSDL

2009-06-11 Thread Everson Alves
Hello,
Does anyone knows if it's possible to generate a sample XML request for a
given WSDL. Or more generally, generate sample xml from a schema.

I'm trying to build a webservice testing tool. I've done that using PHP, but
I'm interested in doing it all in actionscript if it's possible.
-- 
Jhonny Everson


Re: [flexcoders] Read Items / Loop Through Datagrid Rows

2009-06-11 Thread Everson Alves
Hi,
I did something quite similar but using List + renderer manually added
instead. The custom line renderer dispatches events when edited so I can
save the values, remove or add new lines, block the others rows etc. My
previous implementation was using datagrid like you is trying but this new
approach is better for me, I've far more control over what I can do.

On Thu, Jun 11, 2009 at 10:12 AM, Angelo Anolin angelo_ano...@yahoo.comwrote:




 Hi FlexCoders,

 I am dynamically creating a datagrid with 5 columns and 10 rows.  Columns
 2, 3, 4 and 5 are all rendered as textinput control where user can enter
 some information.

 How do I loop through all the datagrid rows and store the values entered in
 the datagrid into an array collection?

 Been trying to find some nice examples to achieve this but came up empty
 handed. Would appreciate your inputs.

 By the way, I'd also like to ensure that no rows would be skipped by the
 user when filling up the datagrid (i.e. He could only populate row 1 before
 he can populate row 2 and so forth).  That way, when the array collection
 stores the values of the datagrid, there is no blank or null value.  The
 remaining blank rows would simply be ignored in the loop.

 Thanks.

 Regards,

 Angelo



 




-- 
Jhonny Everson


[flexcoders] Executing Eventgenerator Multipule times

2009-06-11 Thread jerry_gagliano
Hi,

I am having a problem with executing the event generator multiple times using 
the UM Caringrom Ext. What I do first execute the eventgenerator then once all 
the events are execute I load the view! If I navigate through the app and then 
i click on the button to load the form again the events get executed but the 
view doesn't switch.

The issue is this result=event_Result( event ). My result function from the 
event generator is not getting notified that the events are complete. In my 
command files I have the notifyCaller() function.

Is there a way to reset the notifyCaller function? Or how to make the result 
function execute again?

Thanks



RE: [flexcoders] Flex 4 Profiling Question - GC Root?

2009-06-11 Thread Alex Harui
The mark and sweep starts from several places (ApplicationDomain, Stage, a few 
internal places in the Player, stack).  Those are currently called GCRoots, 
although I'd push for changing it if we could come up with a better name.

Often when you looked at an object in the Flex 3 profiler it had many 
backreferences, most of which were circular, and others that were long chains 
through many different objects and still were circular, or didn't matter 
because the real problem was that some other object along that chain was the 
culprit.

The Flex 4 profiler removes all circular references and then will filter out 
chains that have long paths back to the root as those are less likely to be the 
source of a problem.

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 Mark Lapasa
Sent: Thursday, June 11, 2009 7:39 AM
To: Flexcoders
Subject: [flexcoders] Flex 4 Profiling Question - GC Root?





I was going over the Adobe Flex 4 Feature and Migration PDF which is
pretty good synopsis so far of what's new in Flex 4. Under the Profiling
Enhancements section, it says you can now view all the shortest paths
from the object to the garbage collector root (GC root)

I understand as much as the mark  sweep but what does the above exactly
mean?

Thx,

-mL

Notice of confidentiality:
The information contained in this e-mail is intended only for the use of the 
individual or entity named above and may be confidential. Should the reader of 
this message not be the intended recipient, you are hereby notified that any 
unauthorized dissemination, distribution or reproduction of this message is 
strictly prohibited. If you have received this message in error, please advise 
the sender immediately and destroy the e-mail.



Re: [flexcoders] Read Items / Loop Through Datagrid Rows

2009-06-11 Thread Angelo Anolin
Hi,

Would you care to share some codes of what you did previously?
Thanks.

Regards,

Angelo

 




From: Everson Alves jho...@eversonalves.com.br
To: flexcoders@yahoogroups.com
Sent: Friday, 12 June, 2009 5:47:27
Subject: Re: [flexcoders] Read Items / Loop Through Datagrid Rows





Hi,

I did something quite similar but using List + renderer manually added instead. 
The custom line renderer dispatches events when edited so I can save the 
values, remove or add new lines, block the others rows etc. My previous 
implementation was using datagrid like you is trying but this new approach is 
better for me, I've far more control over what I can do.

On Thu, Jun 11, 2009 at 10:12 AM, Angelo Anolin angelo_anolin@ yahoo.com 
wrote:





Hi FlexCoders,

I am dynamically creating a datagrid with 5 columns and 10 rows.  Columns 2, 3, 
4 and 5 are all rendered as textinput control where user can enter some 
information.

How do I loop through all the datagrid rows and store the values entered in the 
datagrid into an array collection?

Been trying to find some nice examples to achieve this but came up empty 
handed. Would appreciate your inputs.

By the way, I'd also like to ensure that no rows would be skipped by the user 
when filling up the datagrid (i.e. He could only populate row 1 before he can 
populate row 2 and so forth).  That way, when the array collection stores the 
values of the datagrid, there is no blank or null value.  The remaining blank 
rows would simply be ignored in the loop.

Thanks.

Regards,

Angelo






-- 
Jhonny Everson




  

Re: [flexcoders] Flex 4 Profiling Question - GC Root?

2009-06-11 Thread Doug McCune
  will filter out chains that have long paths back to the root as those are 
 less likely to be the source of a problem.


I'm curious about this part about filtering out chains with very long
paths. I've come across quite a few instances of loitering objects in
the FB 4 profiler that don't show any back references. When you expand
the reference it just lists itself and it says that it is a GC root
node. But then doing some really aggressive stuff to try to free up
all possible references does indded get those items collected (meaning
that I don't think it can be blamed on the GC simply not running when
I took my snapshot, etc).

Could this be because there are filtered out chains that I'm not
seeing? Is there any way to selectively turn any kind of filtering
like this off?

Doug


[flexcoders] ArrayCollection and Datagrid Binding and DataProvider Question

2009-06-11 Thread Angelo Anolin
Good day.

Learning Flex here for the past two (like three actually) weeks.  Using only 
mxml compiler.

I have a question with regards to the above subject:

Assuming I declared an ArrayCollection as follows:

[Bindable] private var _arrItems:ArrayCollection = new 
ArrayCollection([{itemNo:1, testItem:Angelo}, {itemNo:2, 
testItem:Dinah}]);

This array I am binding to a datagrid as follows:

mx:DataGrid id=dgOutwardList 
  dataProvider={_arrItems} 
  useRollOver=false 
  height=450
  width=100% 
  verticalScrollPolicy=auto 
  sortableColumns=false 
  draggableColumns=false 
  resizableColumns=false
 mx:columns
 mx:DataGridColumn headerText= dataField=itemNo width=20/
 mx:DataGridColumn headerText=Name of Passengers dataField=testItem 
width=200
  mx:itemRenderer
   mx:Component
mx:TextInput width=100% /
   /mx:Component
  /mx:itemRenderer
 /mx:DataGridColumn
 
 /mx:columns
/mx:DataGrid

No problem initially, as the itemNo and the testItem values are displayed 
properly on the datagrid.

Now for example, if I modified my first row which contains itemNo:1 and 
testItem:Angelo, where I changed Angelo to Mickey, will the dataprovider 
reflect the change in the said row?
How do I make so that the changes in the datagrid be reflected into the 
ArrayCollection?  such that when I changed the testItem data for the first row 
and access the item, via:

_arrItems.getItemAt(arrLength -1).itemNo
_arrItems.getItemAt(arrLength -1).testItem

The result would be 1 and Mickey respectively?

I am a bit puzzled on how databinding actually works in Flex. Is it like a 
two-way live update (such that when you modify the value in the datagrid, it is 
reflected back to the arraycollection)?

Would love to hear your inputs.

Thanks and regards,
Angelo


  

[flexcoders] Read Items / Loop Through Datagrid Rows

2009-06-11 Thread A. Resa Jones (Resa)
Why not create a bindable class for your data, populate objects of that
class into your array collection and use that collection as the source for
your data grid? That way you don't have to loop through the datagrid to fill
your collection.





Quoting:

 Hi FlexCoders,

 I am dynamically creating a datagrid with 5 columns and 10 rows. Columns 2,
 3, 4 and 5 are all rendered as textinput control where user can enter some
 information.

 How do I loop through all the datagrid rows and store the values entered in
 the datagrid into an array collection?

 Been trying to find some nice examples to achieve this but came up empty
 handed. Would appreciate your inputs.

 By the way, I'd also like to ensure that no rows would be skipped by the
 user when filling up the datagrid (i.e. He could only populate row 1 before
 he can populate row 2 and so forth). That way, when the array collection
 stores the values of the datagrid, there is no blank or null value. The
 remaining blank rows would simply be ignored in the loop.

 Thanks.

 Regards,

 Angelo


[flexcoders] Re: Charting dataFunction issues

2009-06-11 Thread Amy
--- In flexcoders@yahoogroups.com, Jake Churchill j...@... wrote:

 Charting people, please help!

take a look at this example and seeif it helps.

http://flexdiary.blogspot.com/2008/08/charting-example.html



[flexcoders] how

2009-06-11 Thread btc132
hello all 
I coding in AdvandDatagrid, but i can't to get data from a column in it.

I wrote:
[Bindable]
private var npupdate:ArrayCollection;
for(var i:int = 0; i  nounphrasesArray.length; i++)
{
var obj:Object = {object:nounphrasesArray[i]};  
NPresults.addItem(obj);
}
var adg:AdvancedDataGrid = new AdvancedDataGrid;
adg.dataProvider = NPresults;   
adg.editable = true;
var col1:AdvancedDataGridColumn = new AdvancedDataGridColumn();
col1.editable = false;
col1.minWidth = 210;
col1.headerText = Obect;  
col1.dataField = object;
col1.wordWrap = true;
var col2:AdvancedDataGridColumn = new AdvancedDataGridColumn();
col2.minWidth = 450;
col2.headerText = DEFINITION;
col2.dataField = definition;
col2.wordWrap = true;   
col2.addEventListener(Event.CHANGE, selectedItemchanged);
adg.displayItemsExpanded = true;
adg.groupedColumns = [col1,col2];
private function selectedItemchanged(event:Event):void
{

}

 Now, i want that, after user edit data to column 2 (col2), data in column 2 
will store in a matrix that i declared.
 You can help me to process it
thanks



[flexcoders] Get data from a column in datagrid

2009-06-11 Thread btc132
hello all 
I coding in AdvandDatagrid, but i can't to get data from a column in it.

I wrote:
[Bindable]
private var npupdate:ArrayCollection;
for(var i:int = 0; i  nounphrasesArray.length; i++)
{
var obj:Object = {object:nounphrasesArray[i]};  
NPresults.addItem(obj);
}
var adg:AdvancedDataGrid = new AdvancedDataGrid;
adg.dataProvider = NPresults;   
adg.editable = true;
var col1:AdvancedDataGridColumn = new AdvancedDataGridColumn();
col1.editable = false;
col1.minWidth = 210;
col1.headerText = Obect;  
col1.dataField = object;
col1.wordWrap = true;
var col2:AdvancedDataGridColumn = new AdvancedDataGridColumn();
col2.minWidth = 450;
col2.headerText = DEFINITION;
col2.dataField = definition;
col2.wordWrap = true;   
col2.addEventListener(Event.CHANGE, selectedItemchanged);
adg.displayItemsExpanded = true;
adg.groupedColumns = [col1,col2];
private function selectedItemchanged(event:Event):void
{

}

 Now, i want that, after user edit data to column 2 (col2), data in column 2 
will store in a matrix that i declared.
 You can help me to process it
thanks



[flexcoders] Datagrid - Using and Editing Data From XMLListCollection

2009-06-11 Thread azona26
I have an editable datagrid with data being populated from an
XMLListCollection. I am attempting to edit the data in one of the
columns that is using a labelFunction to get its value. This column does
not have a dataField value. How can I edit the data in the field and
have the XMLListCollection reflect the updated change correctly as well
as have the field value change? As it stands now I can change the data
in the column, however once I leave that datafield it reverts back to
the original value and the XMLListCollection remains unchanged.

Here is the DG code:

 mx:DataGrid id=buildingNumber_dg editable=true
dataProvider={building_xmlcoll} 
 mx:columns
 mx:DataGridColumn headerText=Building Number
labelFunction=getValue editable=true /
 /mx:columns
 /mx:DataGrid
mx:Script
 ![CDATA[
 private function
getValue(item:Object,grid:DataGridColumn):String {

 return item.toString();
 }
 ]]
 /mx:Script

XML CODE:
properties
 buildingOffice/building
 buildingLunch/building
 building333/building
 building404/building
/properties

Thanks.