RE: [flexcoders] Re: Microsoft Sharepoint Portal and Flex

2005-05-06 Thread Jose Lora










Hi Dave, how are you rendering the Flex
app inside the Web Part (building controls, URL?),how is the Flex app
interacting with both, the SPS lifecycle events and  shared or personal
values of the SPS properties?

 

Thanks

 









From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Dave
Sent: Friday, May 06, 2005 8:10 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re:
Microsoft Sharepoint Portal and Flex



 

I'm currently working on a project utilizing Flex and SPS. We're 
accessing Flex apps through SPS web parts. What
are you looking for?

-Dave

--- In flexcoders@yahoogroups.com, "Tolulope
Olonade" 
<[EMAIL PROTECTED]> wrote:
> Yeah I am interested in this too very much
:-)
> If its possible anyway..
>  
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of Jose Lora
> Sent: Thursday, April 28, 2005 2:05 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Microsoft Sharepoint
Portal and Flex
>  
> Hi Team, any experiences on integrating a
Flex application as a
> Sharepoint Web Part?
>  
> Jose Lora
> Meredith Corporation
>  
> 
> 
> 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]
>

subject=Unsubscribe> 
>     
> *  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 the Yahoo! Terms of Service.












Re: [flexcoders] Reloading Data Question

2005-05-06 Thread Fernando Lobos



i strong recomended change to remote object, with httpservice only problems
On 5/6/05, Tracy Spratt <[EMAIL PROTECTED]> wrote:
Yes, when you use one of the dataProvider API methods.  When you do:myDataGrid.removeItemAt(), you are really doing
myDataGrid.dataProvider.removeItemAt().Note: When you update a cell in an editable datagrid column, the data isNOT automatically modified in the dataProvider.  You must calleditField() in the updateField event handler.
Tracy-Original Message-From: flexcoders@yahoogroups.com [mailto:
flexcoders@yahoogroups.com] OnBehalf Of David TerrySent: Friday, May 06, 2005 3:11 PM
To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Reloading Data Question
So let me try to understand this - I'm coming from a .Net world.When I create a control alters the data from the original -Original Message-From: flexcoders@yahoogroups.com
 [mailto:flexcoders@yahoogroups.com] OnBehalf Of Manish Jethani
Sent: Friday, May 06, 2005 13:52To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Reloading Data QuestionOn 5/6/05, David Terry <[EMAIL PROTECTED]
> wrote:> Or is it going to be some like... > var objData:Object; > > objData = catalog.product.clone(); See this:http://www.macromedia.com/2003/mxml"  xmlns="*">      import 
mx.utils.ObjectCopy;    function copyObject(source:Object):Object    {  var newObject:Object = ObjectCopy.copy(source);  ObjectCopy.copyProperties(newObject, source);  return newObject;
    }              elephant    4  
      human    2                grid.removeItemAt(0)    copyObject() makes a copy of the object.  Clicking on the"removeItemAt(0)" button removes the 1st item from the first gridonly.  So the original data provider object (which the second grid
uses directly) is not modified.Yahoo! Groups LinksYahoo! 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 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 the Yahoo! Terms of Service.










RE: [flexcoders] Re: Newbie Question - referencing value in Remote Object

2005-05-06 Thread Peter Farland
Two things, first - I'd use the NetConnection Debugger that ships with
the Flex 1.5 extras to try and get a better understanding of the
structure of the data types being returned...

Also you could try introspecting the object yourself in ActionScript
using for in loops, typeof(), instanceof tests etc. There's also a
ObjectDumper helper method...
try:

trace(mx.data.binding.ObjectDumper.toString(result, false, true,
false));

The public API for this static helper method is:

public static function toString(obj, showFunctions,
showUndefined, showXMLstructures, maxLineLength, indent)


Secondly, but unrelated, is there any reason why you're using the
.result property on the RemoteObject method directly? I've never liked
this - I'd rather see you register a result and fault handler for the
method and then deal with the results as they are returned
asynchronously.



-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dval823
Sent: Friday, May 06, 2005 7:19 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Newbie Question - referencing value in Remote
Object

Tried that with no luck

--- In flexcoders@yahoogroups.com, "Peter Farland" <[EMAIL PROTECTED]>
wrote:
> Did you try:
> 
> ro.getCerts.result[i]['field_name']
> 
> 
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of dval823
> Sent: Friday, May 06, 2005 2:50 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Newbie Question - referencing value in Remote
> Object
> 
> I have a very simple coldfusion cfc that returns a query.
> 
> The remote object call is set up in flex, and it works.  I can
> populate a grid and a combobox, and display the length of the array:
> 
> Alert(ro.getCerts.result.length)
> 
> What is the syntax to access a single data point within the array.
> 
> I have tried many permutations of 
> 
> ro.getCerts.result[i].field_name
> 


> to no avail.  
> 
> Thanks in advance!
> 
> 
> 
> 
>  
> 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: Using HttpService (a jsp) as dataprovider

2005-05-06 Thread Rajesh Jayabalan
Hi,

 I have found the solution
 
I had to add
 
http://www.macromedia.com/2003/mxml";>
 
in the begining and in the dataprovider I had to change 
old
dataProvider="{clcrSModel.status}" 
 
new
dataProvider="{clcrSModel.result.clcrstatuses.status}" 

I got the solution from 

http://www.markme.com/hoyt/archives/006790.cfm   thanks kevin hoyt
 
Regards
Rajesh J


--- In flexcoders@yahoogroups.com, "Rajesh Jayabalan" <[EMAIL PROTECTED]> wrote:
> Hi,
> 
>  I am trying to use a jsp file which generates a xml 
> 
>   
>  
>
>
>
>
>
>
>
>   
> 
> to populate a combobox, my mxml looks like
> 
>
> 
> ..
> ..
> 
> 
> 
> 
> ..
> ..
> 
> both the mxml and jsp files are in the same directory.
> 
> I get the error
> 
> 2 Errors, 1 Warning found. 
>  
> Warning /tutorial/apptest.mxml:57 
> Changes to unknown property, mx.servicetags.HTTPService.status, will
> not be detected.
> 
> 
> 56:   
> 57:  dataProvider="{clcrSModel.status}" /> 
> 58:   
> 
> 
> Error /tutorial/apptest.mxml:57 
> There is no property with the name 'status'.
> 
> 
> 56:   
> 57:  dataProvider="{clcrSModel.status}" /> 
> 58:   
> 
> 
> Error /tutorial/apptest.mxml:57 
> There is no property with the name 'status'.
> 
> 
> 56:   
> 57:  dataProvider="{clcrSModel.status}" /> 
> 58:   
> 
> 
> Can anyone tell me what I am doing wrong. I am trying to dynamically
> populate a combobox from data in DB. 
> 
> Regards
> Rajesh J




 
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: Newbie Question - referencing value in Remote Object

2005-05-06 Thread dval823
Tried that with no luck

--- In flexcoders@yahoogroups.com, "Peter Farland" <[EMAIL PROTECTED]> wrote:
> Did you try:
> 
> ro.getCerts.result[i]['field_name']
> 
> 
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of dval823
> Sent: Friday, May 06, 2005 2:50 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Newbie Question - referencing value in Remote
> Object
> 
> I have a very simple coldfusion cfc that returns a query.
> 
> The remote object call is set up in flex, and it works.  I can
> populate a grid and a combobox, and display the length of the array:
> 
> Alert(ro.getCerts.result.length)
> 
> What is the syntax to access a single data point within the array.
> 
> I have tried many permutations of 
> 
> ro.getCerts.result[i].field_name
> 


> to no avail.  
> 
> Thanks in advance!
> 
> 
> 
> 
>  
> 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] Using HttpService (a jsp) as dataprovider

2005-05-06 Thread Rajesh Jayabalan
Hi,

 I am trying to use a jsp file which generates a xml 

  
 
   
   
   
   
   
   
   
  

to populate a combobox, my mxml looks like

 

..
..




..
..

both the mxml and jsp files are in the same directory.

I get the error

2 Errors, 1 Warning found. 
 
Warning /tutorial/apptest.mxml:57 
Changes to unknown property, mx.servicetags.HTTPService.status, will
not be detected.


56:   
57:  
58:   


Error /tutorial/apptest.mxml:57 
There is no property with the name 'status'.


56:   
57:  
58:   


Error /tutorial/apptest.mxml:57 
There is no property with the name 'status'.


56:   
57:  
58:   


Can anyone tell me what I am doing wrong. I am trying to dynamically
populate a combobox from data in DB. 

Regards
Rajesh J




 
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/
 




RE: [flexcoders] DataGrid display problem

2005-05-06 Thread Tracy Spratt










Yes.  You populate the DataGrid using a
dataProvider, which contains all of your data, including the fields you do NOT
want to show.  The dataGridColumn array specifies the columns you DO want to
show.  The “hidden” data is still in the dataProvider “items”,
but is not visible.  When you drag data, the entire item(s) is transferred, so
you have access to the hidden data as well.

 

Have you successfully populated a DataGrid
with data yet?

 

Tracy

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Fernando Barros
Sent: Friday, May 06, 2005 4:46 PM
To: flexcoders@yahoogroups.com
Subject: RES: [flexcoders]
DataGrid display problem



 

Ok. I want to drag some informations from
this datagrid to other. But, some informations like SPRODUTOIDOFFICER (my
product key), etc, I don’t show to my client.

 



->->-
Fernando Barros

->->-











De:
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] Em nome de Tracy
 Spratt
Enviada em: sexta-feira, 6 de maio
de 2005 17:44
Para: flexcoders@yahoogroups.com
Assunto: RE: [flexcoders] DataGrid
display problem



 

Ok, that is definitely wrong.  Take
the strings out of the dataGridColumn array.

 

Now, do you want those strings to appear
in the DataGrid? (That does not seem logical, there are 4 columns and only
three strings) Or somewhere else, like a List?  Dragging strings to a
DataGrid does not make sense either.

 

Lets back up and hear what your goal is.

 

Tracy

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Fernando Barros
Sent: Friday, May 06, 2005 4:14 PM
To: flexcoders@yahoogroups.com
Subject: RES: [flexcoders] DataGrid
display problem



 

I have to pass them to other datagrid by
drag…. I’m new on this… if you have a better idea or
I’m doing the wrong way, just say it. I’ll change it now!

 

Thks again.

 



->->-
Fernando Barros

->->-











De:
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] Em nome de Tracy
 Spratt
Enviada em: sexta-feira, 6 de maio
de 2005 17:28
Para: flexcoders@yahoogroups.com
Assunto: RE: [flexcoders] DataGrid
display problem



 

Why are those
strings INSIDE the dataGridColumn array?
Tracy

-Original Message-

 










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.












RES: [flexcoders] DataGrid display problem

2005-05-06 Thread Fernando Barros










Ok. I want to drag some
informations from this datagrid to other. But, some informations like
SPRODUTOIDOFFICER (my product key), etc, I don’t show to my client.

 



->->-
Fernando Barros

->->-











De: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] Em nome de Tracy Spratt
Enviada em: sexta-feira, 6 de maio
de 2005 17:44
Para: flexcoders@yahoogroups.com
Assunto: RE: [flexcoders] DataGrid
display problem



 

Ok, that is definitely
wrong.  Take the strings out of the dataGridColumn array.

 

Now, do you want those
strings to appear in the DataGrid? (That does not seem logical, there are 4
columns and only three strings) Or somewhere else, like a List?  Dragging
strings to a DataGrid does not make sense either.

 

Lets back up and hear
what your goal is.

 

Tracy

 









From:
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Fernando Barros
Sent: Friday, May 06, 2005 4:14 PM
To: flexcoders@yahoogroups.com
Subject: RES: [flexcoders]
DataGrid display problem



 

I have to pass them to
other datagrid by drag…. I’m new on this… if you have a
better idea or I’m doing the wrong way, just say it. I’ll change it
now!

 

Thks again.

 



->->-
Fernando Barros

->->-











De: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] Em nome de Tracy
 Spratt
Enviada em: sexta-feira, 6 de maio
de 2005 17:28
Para: flexcoders@yahoogroups.com
Assunto: RE: [flexcoders] DataGrid
display problem



 

Why are those strings INSIDE
the dataGridColumn array?
Tracy

-Original
Message-














Yahoo! Groups Links

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












RE: [flexcoders] DataGrid display problem

2005-05-06 Thread Tracy Spratt










Ok, that is definitely wrong.  Take the
strings out of the dataGridColumn array.

 

Now, do you want those strings to appear
in the DataGrid? (That does not seem logical, there are 4 columns and only
three strings) Or somewhere else, like a List?  Dragging strings to a DataGrid does
not make sense either.

 

Lets back up and hear what your goal is.

 

Tracy

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Fernando Barros
Sent: Friday, May 06, 2005 4:14 PM
To: flexcoders@yahoogroups.com
Subject: RES: [flexcoders]
DataGrid display problem



 

I have to pass them to other datagrid by
drag…. I’m new on this… if you have a better idea or
I’m doing the wrong way, just say it. I’ll change it now!

 

Thks again.

 



->->-
Fernando Barros

->->-











De:
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] Em nome de Tracy
 Spratt
Enviada em: sexta-feira, 6 de maio
de 2005 17:28
Para: flexcoders@yahoogroups.com
Assunto: RE: [flexcoders] DataGrid
display problem



 

Why are those
strings INSIDE the dataGridColumn array?
Tracy

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Fernando Barros
Sent: Friday, May 06, 2005 4:05 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DataGrid display problem

Hi there,

I have this situation:

My main app "proposta.mxml" has:

  


In this component "Proposta_Atual.mxml",
at the second TabNavigator, I have:

 
   
  
 
   
   

 
   
   
  
 
   
   
   

 
   
   
   

 
   
   
   

 
   
   
   

 
   
   
    SPRODUTOIDOFFICER
 
   
   
    NCODDEPTO
 
   
   
    NICMSPROD
 
   
   
  
 
   
   

 
   
  

In the first TabNavigator, I have a search. When I
do the search and open one item, I change the TabNav selectedIndex for the
second tab. If I have those 3 strings(SPRODUTOIDOFFICER, NCODDEPTO, NICMSPROD)
my second tab does not complete its display. I only see a little vertical
image. When I remove those 3 strings, everything runs ok!
The strange thing is, if I go to the first tab,
and just click on the second tab, I have no problems. I can execute everything
that I want.
I have others datagrid in the same way.

Any beginning idea?

Thks in advance!
 
->->-
Fernando Barros
->->-





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 the Yahoo! Terms of Service.












RES: [flexcoders] DataGrid display problem

2005-05-06 Thread Fernando Barros










I have to pass them to
other datagrid by drag…. I’m new on this… if you have a better
idea or I’m doing the wrong way, just say it. I’ll change it now!

 

Thks again.

 



->->-
Fernando Barros

->->-











De: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] Em nome de Tracy Spratt
Enviada em: sexta-feira, 6 de maio
de 2005 17:28
Para: flexcoders@yahoogroups.com
Assunto: RE: [flexcoders] DataGrid
display problem



 

Why are those strings INSIDE the dataGridColumn array?
Tracy

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Fernando Barros
Sent: Friday, May 06, 2005 4:05 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DataGrid display problem

Hi there,

I have this situation:

My main app "proposta.mxml" has:

  


In this component "Proposta_Atual.mxml",
at the second TabNavigator, I have:

 
   
  
 
   
   

 
   
   
  
 
   
   
   

 
   
   
   

 
   
   
   

 
   
   
   

 
   
   
    SPRODUTOIDOFFICER
   
   
   
  NCODDEPTO
 
   
   
    NICMSPROD
 
   
   
  
 
   
    
 
   
  

In the first TabNavigator, I have a search. When I
do the search and open one item, I change the TabNav selectedIndex for the
second tab. If I have those 3 strings(SPRODUTOIDOFFICER, NCODDEPTO, NICMSPROD)
my second tab does not complete its display. I only see a little vertical
image. When I remove those 3 strings, everything runs ok!
The strange thing is, if I go to the first tab,
and just click on the second tab, I have no problems. I can execute everything that
I want.
I have others datagrid in the same way.

Any beginning idea?

Thks in advance!
 
->->-
Fernando Barros
->->-





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 the Yahoo! Terms of Service.












RE: [flexcoders] DataGrid display problem

2005-05-06 Thread Tracy Spratt
Why are those strings INSIDE the dataGridColumn array?
Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Fernando Barros
Sent: Friday, May 06, 2005 4:05 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DataGrid display problem

Hi there,

I have this situation:

My main app "proposta.mxml" has:

  


In this component "Proposta_Atual.mxml", at the second TabNavigator, I have:








SPRODUTOIDOFFICER
NCODDEPTO
NICMSPROD




In the first TabNavigator, I have a search. When I do the search and open one 
item, I change the TabNav selectedIndex for the second tab. If I have those 3 
strings(SPRODUTOIDOFFICER, NCODDEPTO, NICMSPROD) my second tab does not 
complete its display. I only see a little vertical image. When I remove those 3 
strings, everything runs ok!
The strange thing is, if I go to the first tab, and just click on the second 
tab, I have no problems. I can execute everything that I want.
I have others datagrid in the same way.

Any beginning idea?

Thks in advance!
 
->->-
Fernando Barros
->->-




 
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 display problem

2005-05-06 Thread Fernando Barros
Hi there,

I have this situation:

My main app "proposta.mxml" has:

  


In this component "Proposta_Atual.mxml", at the second TabNavigator, I have:








SPRODUTOIDOFFICER
NCODDEPTO
NICMSPROD




In the first TabNavigator, I have a search. When I do the search and open one 
item, I change the TabNav selectedIndex for the second tab. If I have those 3 
strings(SPRODUTOIDOFFICER, NCODDEPTO, NICMSPROD) my second tab does not 
complete its display. I only see a little vertical image. When I remove those 3 
strings, everything runs ok!
The strange thing is, if I go to the first tab, and just click on the second 
tab, I have no problems. I can execute everything that I want.
I have others datagrid in the same way.

Any beginning idea?

Thks in advance!
 
->->-
Fernando Barros
->->-




 
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/
 




RE: [flexcoders] Reloading Data Question

2005-05-06 Thread Tracy Spratt
Yes, when you use one of the dataProvider API methods.  When you do:
myDataGrid.removeItemAt(), you are really doing
myDataGrid.dataProvider.removeItemAt().

Note: When you update a cell in an editable datagrid column, the data is
NOT automatically modified in the dataProvider.  You must call
editField() in the updateField event handler.

Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of David Terry
Sent: Friday, May 06, 2005 3:11 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Reloading Data Question

So let me try to understand this - I'm coming from a .Net world.

When I create a mailto:[EMAIL PROTECTED] On
Behalf Of Manish Jethani
Sent: Friday, May 06, 2005 13:52
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Reloading Data Question

On 5/6/05, David Terry <[EMAIL PROTECTED]> wrote:

> Or is it going to be some like... 

> var objData:Object; 
> 
> objData = catalog.product.clone(); 

See this:


http://www.macromedia.com/2003/mxml";
  xmlns="*">
  
import mx.utils.ObjectCopy;
function copyObject(source:Object):Object
{
  var newObject:Object = ObjectCopy.copy(source);
  ObjectCopy.copyProperties(newObject, source);
  return newObject;
}
  
  

  
elephant
4
  
  
human
2
  

  
  
  
grid.removeItemAt(0)
  
  


copyObject() makes a copy of the object.  Clicking on the
"removeItemAt(0)" button removes the 1st item from the first grid
only.  So the original data provider object (which the second grid
uses directly) is not modified.


 
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/
 




RE: [flexcoders] Reloading Data Question

2005-05-06 Thread Tracy Spratt










Oh, yeah, I forgot, that is actually what I
use!  I think slice will make a copy as well.

Tracy

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin
Sent: Friday, May 06, 2005 3:39 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
Reloading Data Question



 

Sorry, I forgot to double-check I was
using the real method name.  myArray.concat() will produce a shallow copy
of the array (meaning a new array that has the same contents).  

 

Matt

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tracy
 Spratt
Sent: Friday, May 06, 2005 12:35
PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
Reloading Data Question



 

I guess "clone()"
was psuedocode!

I just found "objectCopy" in the
livedocs flex api, and it is supposedly
"for internal use only".  

But I also found Darron Schall's article about it
here:
http://www.darronschall.com/weblog/archives/000148.cfm

Also, for a simple array of objects, it is easy to
write your own copy
routine.
function arrayCopy(aArray:Array):Array {
  var aCopy:Array = new Array()
  for (var i:Number=0;i
   
aCopy.push(aArray[i]); 
  
  }
}

Tracy

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On
Behalf Of Manish Jethani
Sent: Friday, May 06, 2005 2:52 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Reloading Data Question

On 5/6/05, David Terry
<[EMAIL PROTECTED]> wrote:

> Or is it going to be some like... 

> var objData:Object; 
> 
> objData = catalog.product.clone(); 

See this:


http://www.macromedia.com/2003/mxml"
  xmlns="*">
  
    import mx.utils.ObjectCopy;
    function
copyObject(source:Object):Object
    {
  var
newObject:Object = ObjectCopy.copy(source);
 
ObjectCopy.copyProperties(newObject, source);
  return newObject;
    }
  
  
    
  
   
elephant
   
4
  
  
   
human
   
2
  
    
  
  
  
   
grid.removeItemAt(0)
  
  


copyObject() makes a copy of the object. 
Clicking on the
"removeItemAt(0)" button removes the 1st
item from the first grid
only.  So the original data provider object
(which the second grid
uses directly) is not modified.



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 the Yahoo! Terms of Service.












RE: [flexcoders] Reloading Data Question

2005-05-06 Thread Matt Chotin










Sorry, I forgot to double-check I was
using the real method name.  myArray.concat() will produce a shallow copy of
the array (meaning a new array that has the same contents).  

 

Matt

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tracy Spratt
Sent: Friday, May 06, 2005 12:35
PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
Reloading Data Question



 

I guess "clone()" was psuedocode!

I just found "objectCopy" in the
livedocs flex api, and it is supposedly
"for internal use only".  

But I also found Darron Schall's article about it
here:
http://www.darronschall.com/weblog/archives/000148.cfm

Also, for a simple array of objects, it is easy to
write your own copy
routine.
function arrayCopy(aArray:Array):Array {
  var aCopy:Array = new Array()
  for (var i:Number=0;i
   
aCopy.push(aArray[i]); 
  
  }
}

Tracy

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On
Behalf Of Manish Jethani
Sent: Friday, May 06, 2005 2:52 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Reloading Data Question

On 5/6/05, David Terry
<[EMAIL PROTECTED]> wrote:

> Or is it going to be some like... 

> var objData:Object; 
> 
> objData = catalog.product.clone(); 

See this:


http://www.macromedia.com/2003/mxml"
  xmlns="*">
  
    import mx.utils.ObjectCopy;
    function
copyObject(source:Object):Object
    {
  var
newObject:Object = ObjectCopy.copy(source);
 
ObjectCopy.copyProperties(newObject, source);
  return newObject;
    }
  
  
    
  
   
elephant
    4
  
  
   
human
   
2
  
    
  
  
  
   
grid.removeItemAt(0)
  
  


copyObject() makes a copy of the object. 
Clicking on the
"removeItemAt(0)" button removes the 1st
item from the first grid
only.  So the original data provider object
(which the second grid
uses directly) is not modified.



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 the Yahoo! Terms of Service.












RE: [flexcoders] Reloading Data Question

2005-05-06 Thread David Terry










Interesting…  Thank you very much
for the information and the sample code.

 

~David T.

 









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manish Jethani
Sent: Friday, May 06, 2005 14:26
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]
Reloading Data Question



 

On 5/7/05, David Terry <[EMAIL PROTECTED]> wrote:

> When I create a 
> control alters the data from the original


Yes.  If you call removeItemAt(0) on a
DataGrid, it modifies the
underlying DataProvider object.  If you don't
want it modified, you
should assign a copy to it.

Try this: assign the same DataProvider to two
DataGrid instances, and
then call removeItemAt(0) on one of the
DataGrid's.  The contens of
both the DataGrid instances will be in sync
because they both refer to
the same data.












Yahoo! Groups Links

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












Re: [flexcoders] Reloading Data Question

2005-05-06 Thread Manish Jethani
On 5/7/05, Tracy Spratt <[EMAIL PROTECTED]> wrote:

> But I also found Darron Schall's article about it here:
> http://www.darronschall.com/weblog/archives/000148.cfm
> 
> Also, for a simple array of objects, it is easy to write your own copy
> routine.
> function arrayCopy(aArray:Array):Array {
>   var aCopy:Array = new Array()
>   for (var i:Number=0;i aCopy.push(aArray[i]);
>   }
> }

[probably off-topic now...]
That creates a shallow copy.  If you ever want to deepcopy _and_ have
circular references resolved, then I wrote something that seems to
work well:
http://manish.revise.org/2005/04/deepcopying-actionscript-objects.html


 
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/
 




Re: [flexcoders] Reloading Data Question

2005-05-06 Thread Manish Jethani
On 5/7/05, David Terry <[EMAIL PROTECTED]> wrote:

> When I create a  control alters the data from the original  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/
 




Re: [flexcoders] backgoundImage style property

2005-05-06 Thread Manish Jethani
On 5/6/05, AC <[EMAIL PROTECTED]> wrote:
> The "backgroundImage" style property of a container component; is
> there a way of positioning the background image so its origin is not
> in the centre but at the very top-left of the image?

I'm Feeling Hacky.


http://www.macromedia.com/2003/mxml";
  xmlns="*">
  
  
  


Ideally you would at least create your own custom MXML component based
on the container you want this for (VBox in my example), and override
the draw() method -- call super.draw() and then run the above code in
the function body.

 http://www.macromedia.com/2003/mxml";>
   
public function draw():Void
{
super.draw();

border_mc._backgroundImage_mc._x = 0;
border_mc._backgroundImage_mc._y = 0;
}
   
 


 
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/
 




RE: [flexcoders] Reloading Data Question

2005-05-06 Thread Tracy Spratt
I guess "clone()" was psuedocode!

I just found "objectCopy" in the livedocs flex api, and it is supposedly
"for internal use only".  

But I also found Darron Schall's article about it here:
http://www.darronschall.com/weblog/archives/000148.cfm

Also, for a simple array of objects, it is easy to write your own copy
routine.
function arrayCopy(aArray:Array):Array {
  var aCopy:Array = new Array()
  for (var i:Number=0;imailto:[EMAIL PROTECTED] On
Behalf Of Manish Jethani
Sent: Friday, May 06, 2005 2:52 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Reloading Data Question

On 5/6/05, David Terry <[EMAIL PROTECTED]> wrote:

> Or is it going to be some like... 

> var objData:Object; 
> 
> objData = catalog.product.clone(); 

See this:


http://www.macromedia.com/2003/mxml";
  xmlns="*">
  
import mx.utils.ObjectCopy;
function copyObject(source:Object):Object
{
  var newObject:Object = ObjectCopy.copy(source);
  ObjectCopy.copyProperties(newObject, source);
  return newObject;
}
  
  

  
elephant
4
  
  
human
2
  

  
  
  
grid.removeItemAt(0)
  
  


copyObject() makes a copy of the object.  Clicking on the
"removeItemAt(0)" button removes the 1st item from the first grid
only.  So the original data provider object (which the second grid
uses directly) is not modified.


 
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/
 




RE: [flexcoders] Reloading Data Question

2005-05-06 Thread David Terry
So let me try to understand this - I'm coming from a .Net world.

When I create a mailto:[EMAIL PROTECTED] On
Behalf Of Manish Jethani
Sent: Friday, May 06, 2005 13:52
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Reloading Data Question

On 5/6/05, David Terry <[EMAIL PROTECTED]> wrote:

> Or is it going to be some like... 

> var objData:Object; 
> 
> objData = catalog.product.clone(); 

See this:


http://www.macromedia.com/2003/mxml";
  xmlns="*">
  
import mx.utils.ObjectCopy;
function copyObject(source:Object):Object
{
  var newObject:Object = ObjectCopy.copy(source);
  ObjectCopy.copyProperties(newObject, source);
  return newObject;
}
  
  

  
elephant
4
  
  
human
2
  

  
  
  
grid.removeItemAt(0)
  
  


copyObject() makes a copy of the object.  Clicking on the
"removeItemAt(0)" button removes the 1st item from the first grid
only.  So the original data provider object (which the second grid
uses directly) is not modified.


 
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/
 




RE: [flexcoders] Newbie Question - referencing value in Remote Object

2005-05-06 Thread Peter Farland
Did you try:

ro.getCerts.result[i]['field_name']



-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dval823
Sent: Friday, May 06, 2005 2:50 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Newbie Question - referencing value in Remote
Object

I have a very simple coldfusion cfc that returns a query.

The remote object call is set up in flex, and it works.  I can
populate a grid and a combobox, and display the length of the array:

Alert(ro.getCerts.result.length)

What is the syntax to access a single data point within the array.

I have tried many permutations of 

ro.getCerts.result[i].field_name

to no avail.  

Thanks in advance!




 
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/
 




RE: [flexcoders] help enabling or disabling a control when a user selects something

2005-05-06 Thread Tracy Spratt
The enable toggle works correctly right?  Say if you were to run it
directly from a button?

And the drag/drop works correctly?

Your code wasn't complete enough for me to run, so I need to ask, When
you drag an item into the list, is it automatically selected?

If so, you want to test:
event.target.selectedItem.label == "All Reports" (or whatever the label
column property is named)

If not, you will need to iterate through the items to see if the "All
Reports" option is included.

Can you extract the issue into a simple example?

Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Craig Newroth
Sent: Friday, May 06, 2005 2:05 PM
To: flexcoders@yahoogroups.com
Cc: [EMAIL PROTECTED]
Subject: Re: [flexcoders] help enabling or disabling a control when a
user selects something

well, it is supposed to test for the content of the
selected item and then what I want to do is enable or
disable a list control.. I have tired both the number
zero (the selected index) of my first list and the
text value and cannot get it to work.

--- Manish Jethani <[EMAIL PROTECTED]> wrote:
> On 5/5/05, cnewroth55 <[EMAIL PROTECTED]> wrote:
> 
> > if (event.target.selectedIndices == "All
> Reports"){
> > srcgrid.enabled =
> !srcgrid.enabled;
> > }
> 
> I'm sorry if this is a stupid question as I haven't
> gone through your
> entire code line by line, but what does the above
> if-condition want to
> test?  'selectedIndices' will be an array of Number
> objects, so I
> wonder if comparing it to a string like that is
> correct.
> 



Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html



 
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/
 




Re: [flexcoders] Reloading Data Question

2005-05-06 Thread Manish Jethani
On 5/6/05, David Terry <[EMAIL PROTECTED]> wrote:

> Or is it going to be some like… 

> var objData:Object; 
> 
> objData = catalog.product.clone(); 

See this:


http://www.macromedia.com/2003/mxml";
  xmlns="*">
  
import mx.utils.ObjectCopy;
function copyObject(source:Object):Object
{
  var newObject:Object = ObjectCopy.copy(source);
  ObjectCopy.copyProperties(newObject, source);
  return newObject;
}
  
  

  
elephant
4
  
  
human
2
  

  
  
  
grid.removeItemAt(0)
  
  


copyObject() makes a copy of the object.  Clicking on the
"removeItemAt(0)" button removes the 1st item from the first grid
only.  So the original data provider object (which the second grid
uses directly) is not modified.


 
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] Newbie Question - referencing value in Remote Object

2005-05-06 Thread dval823
I have a very simple coldfusion cfc that returns a query.

The remote object call is set up in flex, and it works.  I can
populate a grid and a combobox, and display the length of the array:

Alert(ro.getCerts.result.length)

What is the syntax to access a single data point within the array.

I have tried many permutations of 

ro.getCerts.result[i].field_name

to no avail.  

Thanks in advance!




 
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/
 




RE: [flexcoders] Reloading Data Question

2005-05-06 Thread Tracy Spratt










Also, you don’t use binding braces
in AS script:

lstElements.dataProvider = "{catalog.product}"

 

I’d do something like:

var oDPInitial:Object = catalog.product.clone();

 

Then in Reload:

lstElements.dataProvider = oDPInitial;

 

Tracy

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin
Sent: Friday, May 06, 2005 12:58
PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
Reloading Data Question



 

Maybe try doing
dataProvider=”{catalog.product.clone()}”.  Basically the
problem is that you’re messing with your original dataProvider and
deleting everything in it.  You need to pass your TileList a copy of the
dataProvider so that you can muck with it without doing permanent damage.

 

Matt

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of David Terry
Sent: Friday, May 06, 2005 8:17 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Reloading
Data Question



 

Hello,

 

I hope everyone is having a happy Friday.

 

I have another basic question for everyone – How do
you reload data into a tileList or in general?

 

So…  I have a tileList that is feed from an XML
file.  The user can drag items from the list to a canvas, and I remove the
item from the tileList.  There is a button to clear both the tileList and
the canvas, but I want to reload the data back into the tileList. 
How?  Cuz my code just isn’t working.

 

Many thanks,

~David T.

 

+++CODE+

My TileList



cellRenderer="lstThumbnail"
x="10" y="38" borderColor="#CC"
borderThickness="1" 

highlightColor="#FF"
dragEnabled="true" backgroundColor="#FF" 

barColor="#FF"
rollOverColor="#FF" selectionColor="#F0F0F0" 

columnCount="1"
borderStyle="solid" itemWidth="160" 

dragComplete="doDragComplete(event)" />

 

My XML File



 

My Clear & Reload Function

function ReloadContainers(){

   
lstElements.removeAll();

   
cvsCanvas.destroyAllChildren();

   
lstElements.dataProvider = "{catalog.product}"

   


}

END CODE+

 

 

 











Yahoo! Groups Links

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












RE: [flexcoders] Re: Tree Drag and Drop help

2005-05-06 Thread Tracy Spratt
I just sent it to you directly.

I use Outlook to handle this list so I just get attachments normally.

Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of heybluez
Sent: Friday, May 06, 2005 8:22 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Tree Drag and Drop help

How do you snag this attached file?!

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
> Attached is a complete example.  I just tested it and it seems to work
> fine.
> Tracy
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of pilby1
> Sent: Thursday, May 05, 2005 7:04 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Tree Drag and Drop help
> 
> I've been wracking my brains on this for a while now, and it hasn't 
> been a smooth ride. Instead of chanting my experiences in this forum, 
> it all boils down to my pleading for help from any of you.
> 
> Can anyone please provide me a code sample or a URL of such 
> pertaining to drag-n-drop with a Tree which can demonstrate a 
> successful drag of one node onto another, and having the dragged node 
> appear as a child of the node where it was dropped?
> 
> In a nutshell, I've gotten as far as getting the node references of 
> the dragged and dropped nodes within my dragDrop event, including the 
> index of the node that was dropped on. I can even display these two 
> nodes using "alert", and their internal toString() methods would 
> correctly display all the node contents (in XML). However, when I use 
> the addTreeNodeAt() method on a node that's a parent (i.e. a folder), 
> nothing happens! And when the node is a leaf (i.e., not a parent of 
> any child nodes), that node somehow "climbs" up one step higher in 
> the tree hierarchy, and the dragged node does not appear anywhere!
> 
> I would be very grateful to anyone who could provide me some help and 
> guidance on this please. :(
> 
> 
> 
> 
>  
> 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/
 




RE: [flexcoders] Performance question relating to array element referencing

2005-05-06 Thread Tracy Spratt
Don't' forget about the "associative" array.  I bet the hashing
algorithm is the fastest of all.  But I'm just guessing and could be
completely wrong!.
Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jgserrault
Sent: Thursday, May 05, 2005 11:36 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Performance question relating to array element
referencing

I am about to embark on building a component that will involve heavy 
usage of arrays, and before I write a benchmark routine to answer my 
question, I thought I would see if anyone already had the answer.  My 
question is basic:  When referencing array elements using the 
following approaches/methods which is the fastest to execute, and 
then what is the next best method relative to best? For example:  
Method x is best, method y would be about 1.4x, and method z would be 
1.8x.  

Method A (Integer ordinals from 0 or 1 to Length):
  Array[0]
  Array[1]
  Array[2]

Method B (Text ordinals short in length):
  Array[i00]
  Array[i01]
  Array[i02]

Method C (Text ordinals long in length):
  Array[ArrayItemDescriptionThatIsVeryInformative1] 
  Array[ArrayItemDescriptionThatIsVeryInformative2] 
  Array[ArrayItemDescriptionThatIsVeryInformative3]

I am just looking for a realistic approximation so I can make an 
informed decision.  Obviously Method C offers the greatest 
flexibility, but if the execution price is 2+ times the quickest 
method then it needs to be reconsidered...at least in my intended 
usage.  

Also, in the case of text based ordinals are there ranges that are 
better to use than others (i.e. a-z or A-Z).  Sorry if this has been 
covered in a tech doc.   




 
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/
 




Re: [flexcoders] Re: CSSI Security Issues and Flex (Proof of concept exploit)

2005-05-06 Thread John Dowdell
Eric Raymond wrote:
> Here is a sample exploit.  It requires you to trick the user into
> clicking a "link". But if you can do that some percent of the time,
> with the aid of a flash decompiler to explore the app, you might be
> able to do all sorts of interesting things.

Thanks, Eric. I suspect one of my partners may already have forwarded 
this along to the Security Center silently, without an acknowledgment to 
the public conversation, so I won't put a lot of time into this here myself.

But it almost sounds like you're describing a situation of "evil 
author", rather than "evil site visitor", because you listed MXML rather 
than text which a visitor could type into a field for a classic 
script-injection approach. (And even then, "asfunction()" calls would be 
bounded by the same security sandbox which corrals all ActionScript calls.)

Hmm... or maybe your scenario is closer to "I relied on some type of 
web service which went rogue behind my back", that might be it...?

But I'd defer to the Security Team... if you haven't received an offlist 
advisory that someone sent this there for you already, then here's the 
"Please alert us" entry:
http://www.macromedia.com/devnet/security/security_zone/alertus.html

tx,
jd



-- 
John Dowdell . Macromedia Developer Support . San Francisco CA USA
Weblog: http://www.macromedia.com/go/blog_jd
Aggregator: http://www.macromedia.com/go/weblogs
Technotes: http://www.macromedia.com/support/
Spam killed my private email -- public record is best, 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: CSSI Security Issues and Flex (Proof of concept exploit)

2005-05-06 Thread Eric Raymond
Two more points:

1) With a small number of ways to accept input and complete control
over the client implementation, Macromedia can plug this hole on the
client side.

2) But fixing things one the client may not prevent attack if the one
were to bypass the client in some way.  The flex proxy/remote objects
makes that a bit more difficult but not impossible.  One could
generate a post directly to the web service via a browser or other
tool.  This is analogous to performing input validation only in
javascript and not on the server side.

Is this a last point an argument for throwing our hands up in the air
and not doing anything (even if it's not complete)?  I don't think so

IMHO, having the four or five input methods in Flex by default
disallow entry of asfunction  and possibly "<" and ">" (or map them to
something like "[" and "]") would be a small step towards safety for
the masses.  Perhaps this would be turned off automatically on
"password" input.


So much for beating a dead horse




 
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/
 




RE: [flexcoders] Reloading Data Question

2005-05-06 Thread David Terry










Hi Matt,

 

Thanks for the info, but I’m a very
new to ActiveScript.  Any chance you have some code examples of making a clone?

 

Or is it going to be some like…

 

var objData:Object;

objData = catalog.product.clone();

 

object.dataProvider=”{objDate}”

 

~David T.

 









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin
Sent: Friday, May 06, 2005 11:58
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
Reloading Data Question



 

Maybe try doing
dataProvider=”{catalog.product.clone()}”.  Basically the
problem is that you’re messing with your original dataProvider and
deleting everything in it.  You need to pass your TileList a copy of the
dataProvider so that you can muck with it without doing permanent damage.

 

Matt

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of David Terry
Sent: Friday, May 06, 2005 8:17 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Reloading
Data Question



 

Hello,

 

I hope everyone is having a happy Friday.

 

I have another basic question for everyone – How do
you reload data into a tileList or in general?

 

So…  I have a tileList that is feed from an XML
file.  The user can drag items from the list to a canvas, and I remove the
item from the tileList.  There is a button to clear both the tileList and
the canvas, but I want to reload the data back into the tileList. 
How?  Cuz my code just isn’t working.

 

Many thanks,

~David T.

 

+++CODE+

My TileList



cellRenderer="lstThumbnail"
x="10" y="38" borderColor="#CC"
borderThickness="1" 

highlightColor="#FF"
dragEnabled="true" backgroundColor="#FF" 

barColor="#FF"
rollOverColor="#FF" selectionColor="#F0F0F0" 

columnCount="1"
borderStyle="solid" itemWidth="160" 

dragComplete="doDragComplete(event)" />

 

My XML File



 

My Clear & Reload Function

function ReloadContainers(){

   
lstElements.removeAll();

   
cvsCanvas.destroyAllChildren();

   
lstElements.dataProvider = "{catalog.product}"

   


}

END CODE+

 

 

 











Yahoo! Groups Links

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












Re: [flexcoders] help enabling or disabling a control when a user selects something

2005-05-06 Thread Craig Newroth
well, it is supposed to test for the content of the
selected item and then what I want to do is enable or
disable a list control.. I have tired both the number
zero (the selected index) of my first list and the
text value and cannot get it to work.

--- Manish Jethani <[EMAIL PROTECTED]> wrote:
> On 5/5/05, cnewroth55 <[EMAIL PROTECTED]> wrote:
> 
> > if (event.target.selectedIndices == "All
> Reports"){
> > srcgrid.enabled =
> !srcgrid.enabled;
> > }
> 
> I'm sorry if this is a stupid question as I haven't
> gone through your
> entire code line by line, but what does the above
> if-condition want to
> test?  'selectedIndices' will be an array of Number
> objects, so I
> wonder if comparing it to a string like that is
> correct.
> 



Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html



 
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/
 




RE: [flexcoders] Reloading Data Question

2005-05-06 Thread Matt Chotin










Maybe try doing dataProvider=”{catalog.product.clone()}”. 
Basically the problem is that you’re messing with your original
dataProvider and deleting everything in it.  You need to pass your TileList a
copy of the dataProvider so that you can muck with it without doing permanent
damage.

 

Matt

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of David Terry
Sent: Friday, May 06, 2005 8:17 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Reloading
Data Question



 

Hello,

 

I hope everyone is having a happy Friday.

 

I have another basic question for everyone – How do
you reload data into a tileList or in general?

 

So…  I have a tileList that is feed from an XML
file.  The user can drag items from the list to a canvas, and I remove the
item from the tileList.  There is a button to clear both the tileList and
the canvas, but I want to reload the data back into the tileList. 
How?  Cuz my code just isn’t working.

 

Many thanks,

~David T.

 

+++CODE+

My TileList



cellRenderer="lstThumbnail"
x="10" y="38" borderColor="#CC"
borderThickness="1" 

highlightColor="#FF"
dragEnabled="true" backgroundColor="#FF" 

barColor="#FF"
rollOverColor="#FF" selectionColor="#F0F0F0" 

columnCount="1"
borderStyle="solid" itemWidth="160" 

dragComplete="doDragComplete(event)" />

 

My XML File



 

My Clear & Reload Function

function ReloadContainers(){

   
lstElements.removeAll();

   
cvsCanvas.destroyAllChildren();

   
lstElements.dataProvider = "{catalog.product}"

   


}

END CODE+

 

 

 










Yahoo! Groups Links

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












RE: [flexcoders] Pie Chart Sizing

2005-05-06 Thread Jeff Beeman
If it helps add to the push for this feature, I'm also needing to be
able to lock down the pie chart size when using callouts.


/**
* Jeff Beeman
**/
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ely Greenfield
Sent: Friday, May 06, 2005 9:51 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Pie Chart Sizing




Unfortunately, I have bad news for you then :(  There's no way, at least
no
obvious direct way, to direct the pie chart to lock down the size of the
pie
and adjust the labels accordingly (this is something you _can_ do with
the
other charts, by setting the gutter styles).  We're considering this
enhancement for the next flex release.

Sorry to be the bearer of bad news. 

Ely.


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Battershall, Jeff
Sent: Friday, May 06, 2005 9:47 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Pie Chart Sizing
Importance: High

Ely,

I'm trying to make the size of the pies consistent, if possible.  I've
gotten some success by breaking the callout text across multiple lines
via a callout function.  It would be nice to determine priorities in the
sizing algorthim, namely to have the size of text and pie size remain a
constant and the length of the callout to adjust on the fly.  

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ely Greenfield
Sent: Friday, May 06, 2005 12:37 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Pie Chart Sizing





Hi Jeff. Let me get a little more clarity on your question. Are you
trying
to:

- make the text size of the callouts larger?
- make the size of the pie itself larger?
- make the size of all of your pies consistent?

Thanks.
Ely.


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Battershall, Jeff
Sent: Friday, May 06, 2005 8:24 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Pie Chart Sizing
Importance: High

I'm having some problems getting pie charts to consistently size.
Problem is I've got 3 charts side-by-side, and the callout labels string
lengths are of different lengths in each chart.  The result is one of
the charts renders considerably smaller than the rest and makes the
callouts virtually unreadable.  I'm sure some sizing algorthim is at
fault, and I'm wondering how to best influence the outcome.

Any ideas?

Jeff Battershall
Application Architect
Dow Jones Indexes
[EMAIL PROTECTED]
(609) 520-5637 (p)
(484) 477-9900 (c)


 
Yahoo! Groups Links



 




 
Yahoo! Groups Links



 





 
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/
 




RE: [flexcoders] ColumnChart picture

2005-05-06 Thread Matt Chotin
Hey Devis,

We asked around and in theory what you're trying to do should work.
Unfortunately I don't really have time to try to write an example and see
what needs to be done, but the dataTip is supposed to support html and that
html is supposed to support the  tag.  Can you try loading that same
jpg into a random  just to make sure that the image can load at
all?  Better make sure that the image loads outside the dataTip before we
move into debugging that.

Matt

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Thursday, May 05, 2005 3:08 AM
To: Flex Coders
Subject: [flexcoders] ColumnChart picture

Hi it's possibile about you display a picture into dataTipFunction?

This is my code, but don't work.
Devis



 function Foto_Obj(obj)
 {
tot.title="";
return "";
 }








 
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/
 




Re: [flexcoders] HttpRequest and HttpSession access in Remote Obj ect

2005-05-06 Thread James Ward
Hey Brett & Pradeep,

Flex 1.5 uses the flashgateway.Gateway.getHttpRequest(),
flashgateway.Gateway.getHttpResponse(), and
flashgateway.Gateway.getServletConfig() methods. To use these methods,
you must have the WEB-INF/lib/flashgateway.jar file in your classpath.

Taken from
http://www.macromedia.com/support/documentation/en/flex/1_5/migration.html

I think there is more documentation on this somewhere, but I couldn't
find it.

Hope that helps.

-James


On Thu, 2005-05-05 at 23:52 -0600, Brett Palmer wrote:
> I think Pradeep's question is the same as mine.  Is there a method in
> Flex to gain access to the webcontainers session information?  We need
> this because we have a lot of existing server side code that uses a
> session object to determine login status, user rights, etc.  We also
> use sessions to help determine the load on our servers.
> 
> What is the recommended method for sharing session information with a
> Flex/Flash client and the server when using remote objects?
> 
> Thanks in advance,
> 
> Brett
> 
> On 5/5/05, Matt Chotin <[EMAIL PROTECTED]> wrote:
> >  
> >  
> > 
> > Hmm, that seems odd considering we need a request to reach the RemoteObject.
> >  You're not spawning a thread are you? 
> > 
> >   
> >  
> >  
> >  
> > 
> > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> > Behalf Of Pradeep
> >  Sent: Thursday, May 05, 2005 4:48 AM
> >  To: flexcoders@yahoogroups.com
> >  Subject: [flexcoders] HttpRequest and HttpSession access in Remote Object 
> >  
> > 
> >   
> > 
> > I'am using Remote Objects to call my Java class methods on server. For
> >  maintaining user information I need Http Session object. So I tried
> >  using flashgateway.Gateway.getHttpRequest() and
> >  flashgateway.Gateway.getHttpRequest().getSession() to get
> > HttpRequest
> >  and HttpSession objects respectively. But
> >  flashgateway.Gateway.getHttpRequest() method returns null.
> >  
> >  Unless I get reference to request obect I will not be able to access
> >  Session object.
> >  
> >  Can anybody please suggest something?
> >  
> >  
> >  
> >  
> >  
> >  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/
 




RE: [flexcoders] Pie Chart Sizing

2005-05-06 Thread Ely Greenfield



Unfortunately, I have bad news for you then :(  There's no way, at least no
obvious direct way, to direct the pie chart to lock down the size of the pie
and adjust the labels accordingly (this is something you _can_ do with the
other charts, by setting the gutter styles).  We're considering this
enhancement for the next flex release.

Sorry to be the bearer of bad news. 

Ely.


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Battershall, Jeff
Sent: Friday, May 06, 2005 9:47 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Pie Chart Sizing
Importance: High

Ely,

I'm trying to make the size of the pies consistent, if possible.  I've
gotten some success by breaking the callout text across multiple lines
via a callout function.  It would be nice to determine priorities in the
sizing algorthim, namely to have the size of text and pie size remain a
constant and the length of the callout to adjust on the fly.  

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ely Greenfield
Sent: Friday, May 06, 2005 12:37 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Pie Chart Sizing





Hi Jeff. Let me get a little more clarity on your question. Are you
trying
to:

- make the text size of the callouts larger?
- make the size of the pie itself larger?
- make the size of all of your pies consistent?

Thanks.
Ely.


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Battershall, Jeff
Sent: Friday, May 06, 2005 8:24 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Pie Chart Sizing
Importance: High

I'm having some problems getting pie charts to consistently size.
Problem is I've got 3 charts side-by-side, and the callout labels string
lengths are of different lengths in each chart.  The result is one of
the charts renders considerably smaller than the rest and makes the
callouts virtually unreadable.  I'm sure some sizing algorthim is at
fault, and I'm wondering how to best influence the outcome.

Any ideas?

Jeff Battershall
Application Architect
Dow Jones Indexes
[EMAIL PROTECTED]
(609) 520-5637 (p)
(484) 477-9900 (c)


 
Yahoo! Groups Links



 




 
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/
 




RE: [flexcoders] Pie Chart Sizing

2005-05-06 Thread Battershall, Jeff
Ely,

I'm trying to make the size of the pies consistent, if possible.  I've
gotten some success by breaking the callout text across multiple lines
via a callout function.  It would be nice to determine priorities in the
sizing algorthim, namely to have the size of text and pie size remain a
constant and the length of the callout to adjust on the fly.  

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ely Greenfield
Sent: Friday, May 06, 2005 12:37 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Pie Chart Sizing





Hi Jeff. Let me get a little more clarity on your question. Are you
trying
to:

- make the text size of the callouts larger?
- make the size of the pie itself larger?
- make the size of all of your pies consistent?

Thanks.
Ely.


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Battershall, Jeff
Sent: Friday, May 06, 2005 8:24 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Pie Chart Sizing
Importance: High

I'm having some problems getting pie charts to consistently size.
Problem is I've got 3 charts side-by-side, and the callout labels string
lengths are of different lengths in each chart.  The result is one of
the charts renders considerably smaller than the rest and makes the
callouts virtually unreadable.  I'm sure some sizing algorthim is at
fault, and I'm wondering how to best influence the outcome.

Any ideas?

Jeff Battershall
Application Architect
Dow Jones Indexes
[EMAIL PROTECTED]
(609) 520-5637 (p)
(484) 477-9900 (c)


 
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/
 




RE: [flexcoders] Pie Chart Sizing

2005-05-06 Thread Ely Greenfield



Hi Jeff. Let me get a little more clarity on your question. Are you trying
to:

- make the text size of the callouts larger?
- make the size of the pie itself larger?
- make the size of all of your pies consistent?

Thanks.
Ely.


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Battershall, Jeff
Sent: Friday, May 06, 2005 8:24 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Pie Chart Sizing
Importance: High

I'm having some problems getting pie charts to consistently size.
Problem is I've got 3 charts side-by-side, and the callout labels string
lengths are of different lengths in each chart.  The result is one of
the charts renders considerably smaller than the rest and makes the
callouts virtually unreadable.  I'm sure some sizing algorthim is at
fault, and I'm wondering how to best influence the outcome.

Any ideas?

Jeff Battershall
Application Architect
Dow Jones Indexes
[EMAIL PROTECTED]
(609) 520-5637 (p)
(484) 477-9900 (c)


 
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: Tree Drag and Drop help

2005-05-06 Thread pilby1
Ashish, that works! Thank you very much!




--- In flexcoders@yahoogroups.com, Ashish Goyal <[EMAIL PROTECTED]> wrote:
> One correction.. 'treeItems' should be in quotes. 
>  
>  var items = event.dragSource.dataForFormat("treeItems");
> 
> 
>  
> 
>   _  
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of Ashish Goyal
> Sent: Thursday, May 05, 2005 4:28 PM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] Tree Drag and Drop help
> 
> 
> Try this code as a dragDrop event handler for the tree and let me 
know if it
> doesn't work.
>  
>  
> function doDragDrop(event) {
>doDragExit(event);
>  
> var items = event.dragSource.dataForFormat(treeItems);
>  
>var dest = event.target;
>var dropLoc = dest.getDropLocation();
>  
>dest.clearSelected();
>var dropParent = dest.getDropParent();
> 
>for (var i = items.length - 1; i >= 0; i--)
>{
> var newNode = dropParent.addTreeNodeAt(dropLoc,items[i]);
> dest.selection = newNode;
>}
>   }
>  
>  
> -Ashish
>  
> 
> 
>   _  
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of pilby1
> Sent: Thursday, May 05, 2005 4:04 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Tree Drag and Drop help
> 
> 
> I've been wracking my brains on this for a while now, and it hasn't 
> been a smooth ride. Instead of chanting my experiences in this 
forum, 
> it all boils down to my pleading for help from any of you.
> 
> Can anyone please provide me a code sample or a URL of such 
> pertaining to drag-n-drop with a Tree which can demonstrate a 
> successful drag of one node onto another, and having the dragged 
node 
> appear as a child of the node where it was dropped?
> 
> In a nutshell, I've gotten as far as getting the node references of 
> the dragged and dropped nodes within my dragDrop event, including 
the 
> index of the node that was dropped on. I can even display these two 
> nodes using "alert", and their internal toString() methods would 
> correctly display all the node contents (in XML). However, when I 
use 
> the addTreeNodeAt() method on a node that's a parent (i.e. a 
folder), 
> nothing happens! And when the node is a leaf (i.e., not a parent of 
> any child nodes), that node somehow "climbs" up one step higher in 
> the tree hierarchy, and the dragged node does not appear anywhere!
> 
> I would be very grateful to anyone who could provide me some help 
and 
> guidance on this please. :(
> 
> 
> 
> 
>   _  
> 
> 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] Pie Chart Sizing

2005-05-06 Thread Battershall, Jeff
I'm having some problems getting pie charts to consistently size.
Problem is I've got 3 charts side-by-side, and the callout labels string
lengths are of different lengths in each chart.  The result is one of
the charts renders considerably smaller than the rest and makes the
callouts virtually unreadable.  I'm sure some sizing algorthim is at
fault, and I'm wondering how to best influence the outcome.

Any ideas?

Jeff Battershall
Application Architect
Dow Jones Indexes
[EMAIL PROTECTED]
(609) 520-5637 (p)
(484) 477-9900 (c)


 
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] Reloading Data Question

2005-05-06 Thread David Terry










Hello,

 

I hope everyone is having a happy Friday.

 

I have another basic question for everyone – How do
you reload data into a tileList or in general?

 

So…  I have a tileList that is feed from an XML
file.  The user can drag items from the list to a canvas, and I remove the
item from the tileList.  There is a button to clear both the tileList and
the canvas, but I want to reload the data back into the tileList.  How? 
Cuz my code just isn’t working.

 

Many thanks,

~David T.

 

+++CODE+

My TileList



cellRenderer="lstThumbnail"
x="10" y="38" borderColor="#CC"
borderThickness="1" 

highlightColor="#FF"
dragEnabled="true" backgroundColor="#FF" 

barColor="#FF"
rollOverColor="#FF" selectionColor="#F0F0F0" 

columnCount="1"
borderStyle="solid" itemWidth="160" 

dragComplete="doDragComplete(event)" />

 

My XML File



 

My Clear & Reload Function

function ReloadContainers(){

    lstElements.removeAll();

    cvsCanvas.destroyAllChildren();

    lstElements.dataProvider
= "{catalog.product}"

    

}

END CODE+

 

 











Yahoo! Groups Links

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












RE: [flexcoders] Updating HTTP Service Whitelist at Runtime

2005-05-06 Thread Peter Farland
The flex configuration file is read once at start up time in Flex 1.5.
It does not watch for changes. 

Some application servers allow you to auto re-deploy an application when
a particular file has changed (JRun can do this by registering a file as
a "mandatory finger print" for a web application)... but I imagine
you're talking about a file watcher specifically for flex-config.xml
that won't cause a redeploy.

Though this may have been logged already for Flex 1.5, it can't hurt to
add weight to the wish by logging an enhancement request at:

http://www.macromedia.com/support/email/wishform/main.cgi

 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Harris Reynolds
Sent: Friday, May 06, 2005 10:37 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Updating HTTP Service Whitelist at Runtime

What would happen if you updated the whitelist for
HTTP services within flex-config.xml at runtime? 
Would Flex notice the change and reload the
configuration?

This would be a very nice feature for building dynamic
applications where users may want to add services on
the fly.  Of course this would require the service to
provided structured information that the application
could understand, but there are several uses for this
even today.

Anyone on the Flex team have an answer for this? or
anyone else?

~harris

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


 
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] Updating HTTP Service Whitelist at Runtime

2005-05-06 Thread Harris Reynolds
What would happen if you updated the whitelist for
HTTP services within flex-config.xml at runtime? 
Would Flex notice the change and reload the
configuration?

This would be a very nice feature for building dynamic
applications where users may want to add services on
the fly.  Of course this would require the service to
provided structured information that the application
could understand, but there are several uses for this
even today.

Anyone on the Flex team have an answer for this? or
anyone else?

~harris

__
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/
 




RE: [flexcoders] web services suddenly stopped working!!

2005-05-06 Thread Peter Farland





Something you did yesterday somehow changed your web 
service. Rather than trying to guess what that was lets try to solve the 
issue. From the solution you can then construct what might have 
changed. From your flashlog trace output it seems that a {context.root} 
token has creeped in to the URL
 
http://localhost:8080/anywhere/{context.root}/flashproxy?transport=wsdl&target=http%3A%2F%2Flocalhost%3A8080%2Fanywhere%2Fwsdl%2FUser%2Ewsdl
This looks wrong, agreed?
 
The fact that it has "{context.root}/flashproxy" is 
suspicious because that looks like the default url from the 
 section of the flex-config.xml file. Is the 
 element in this section commented out or uncommented? 

 
Can you try specifying the webroot command line 
parameter for mxmlc? The following link is the Flex 1.5 documentation for 
mxmlc.
 
http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flex_Documentation&file=0860.htm
 
If that doesn't work, also try specifying the 
contextroot command line parameter for mxmlc.
 
The fact that you get errors with no information is 
because the request never makes it to the proxy and thus must contain web server 
errors with a status code like 404 rather than special flex-proxy-formatted 
errors in the body of a HTTP 200 response. Note there is a limitation in the 
Flash Player that it doesn't return the HTTP reponse body for a non-200 
response. If you had an HTTP sniffer you could watch this traffic 
and see the 404 or whatever the HTTP error is.
 


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Steve 
PruittSent: Friday, May 06, 2005 9:09 AMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] web services 
suddenly stopped working!!

I 
have been using mxmlc called by an ant script for about a year.  I 
don't specify a context root only the Flex config file and location of the 
Application mxml.  I have made no changes to this process.  Everything 
worked fine on Wednesday.  Yesterday, I developed a few new GUI 
components, recompiled, tried to run only to run into the problem below.  
???
 
The ant script looks like...
 
 


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Peter 
FarlandSent: Thursday, May 05, 2005 6:47 PMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] web services 
suddenly stopped working!!

Hmm, {context.root} should have been replaced at compile 
time by the context root.
 
Are you using mxmlc to compile this on the command line or 
are you browsing to the .mxml file? If you are using the command line, are you 
specifying a context root?
 
 


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Steve 
PruittSent: Thursday, May 05, 2005 6:40 PMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] web services suddenly 
stopped working!!

I have a very 
inexplicable problem and I have exhausted everything I know to check, twiddle, 
verify, etc.  Perhaps someone can think of something else.  My 
application has a set of webservices that have been working for months.  I 
have not changed anything related to the deployment environment.  I have 
not changed the WSDLs.  I have not changed the web services that are 
called.  When my application starts up it makes a web service call for a 
list of items.  This particular web service call has been operational for 
nearly a year.  The only major change I have made is switching over to Flex 
1.5, but I did this last week and all of my web services have working up until 
now.  So I do not see how 1.5 is a factor.
 
Like I stated, when 
my application launches an initial window comes up and a web service call is 
invoked.  It looks like the call is never issued by Flex.  I use a tcp 
monitor and the request never shows.  What I do get is 5 alerts.  All 
five are completely blank and the title is simply Error.  If I click around 
blindly at the bottom of the alerts I can find the Ok button and it 
closes.  But, I have no idea what, if any, message is supposed to be 
viewable.  I have 5 wsdls so I think the 5 alerts is not 
coincidental.  However, like I said, they have not changed.  The way I 
deploy has not changed.  I have no idea what else I can look at or 
check on.
 
The flashlog shows 
no problems.  Each WSDL has the following in the 
flashlog:
 
5/5 18:22:29 [INFO] 
WebService: Creating stub for http://localhost:8080/anywhere/wsdl/User.wsdl5/5 
18:22:29 [INFO] WSDL: Creating WSDL object for http://localhost:8080/anywhere/{context.root}/flashproxy?transport=wsdl&target=http%3A%2F%2Flocalhost%3A8080%2Fanywhere%2Fwsdl%2FUser%2Ewsdl5/5 
18:22:29 [INFO] XMLSchema: Registering schema namespace: http://www.w3.org/1999/XMLSchema5/5 18:22:29 [INFO] 
XMLSchema: Registering schema namespace: http://www.w3.org/2000/10/XMLSchema5/5 18:22:29 
[INFO] XMLSchema: Registering schema namespace: http://www.w3.org/2001/XMLSchema5/5 18:22:29 [INFO] 
XMLSchema: Registering schema namespace: http://schemas.xmlso

[flexcoders] backgoundImage style property

2005-05-06 Thread AC
The "backgroundImage" style property of a container component; is
there a way of positioning the background image so its origin is not
in the centre but at the very top-left of the image?

Thanks in advanced.





 
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: Microsoft Sharepoint Portal and Flex

2005-05-06 Thread heybluez
interesting.

since I am not a windows programmer, here is an ignorant question.

does sharepoint have an API?  Could I patch an app into it?  if so,
where do i need to go?

--- In flexcoders@yahoogroups.com, "Dave" <[EMAIL PROTECTED]> wrote:
> I'm currently working on a project utilizing Flex and SPS. We're 
> accessing Flex apps through SPS web parts. What are you looking for?
> 
> -Dave
> 
> --- In flexcoders@yahoogroups.com, "Tolulope Olonade" 
> <[EMAIL PROTECTED]> wrote:
> > Yeah I am interested in this too very much :-)
> > If its possible anyway..
> >  
> > 
> > 
> > From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On
> > Behalf Of Jose Lora
> > Sent: Thursday, April 28, 2005 2:05 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Microsoft Sharepoint Portal and Flex
> >  
> > Hi Team, any experiences on integrating a Flex application as a
> > Sharepoint Web Part?
> >  
> > Jose Lora
> > Meredith Corporation
> >  
> > 
> > 
> > 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]
> >  subject=Unsubscribe> 
> >   
> > *   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] j2ee/net/dwh interview on 7th may PCMM level 5 chennai rush ur resumes

2005-05-06 Thread j2eenetdwhjobs
Hi All,

We are a Leading Resource Consultant catering to various MNCs in 
India and Abroad. We are looking for Our World's Largest PCMM Level 5 
Client in Chennai

[CANDIDATES SHOULD BE AVALIABLE IN CHENNAI TO ONE INTERVIEW ON 
07/05/2005]

REQUIREMENT I : C#,.NET Professionals
Position : Developer / Module Leader / Consultant / Technical Lead / 
Architect
Skills required No.:  .Net ,  ASP .Net, C#,  Biztalk , Share 
point and SQL Server.
Qualification:  BE/B Tech/MCA/MBA
Experience:  3 years to 7 years 
Work Location:  Chennai
Interview : 7/05/2005 One to One Candidates should available in 
Chennai

REQUIREMENT II : Datawarehousing Professionals 
Skills required:  Informatica   /  Ab Initio  /  Data stage (Any 
one skill will do) Developer / Senior Software Engineer / 
Consultants / Tech Lead  -  2 to 5 IT years experience with minimum 1 
year in DWH.
Qualification:  BE/B Tech/MCA/MBA
Work Location : Chennai 
Interview : 7/05/2005 One to One Candidates should available in 
Chennai

REQUIREMENT III: J2EE Professionals
Positions : Developer / Senior Software Engineer / Tech Lead / 
Architects / Project leaders and Project managers
Mandatory Skills :  Java / EJB / J2EE / Web Sphere / Web Logic
Qualification:  BE/B Tech/MCA/MBA
Experience:  3 years  to 12 years 
Work Location:  Chennai
Interview : 7/05/2005 One to One Candidates should available in 
Chennai

REQUIREMENT IV : COGNOS PROFESSIONALS
Skills: Cognos-tools like IWR, PowerPlay, Report net,Cognos Decision 
Stream  (Check the enclosure for JD)
Qualification: BE/ B Tech/  MCA / MTech 
Experience: 2 to 6 years
Work Location: Chennai
Interview : 7/05/2005 One to One Candidates should available in 
Chennai

REQUIREMENT V : OLAP PROFESSIONALS
Skills: HYPERION ESSBASE-metadata,OLAP cubes,ad-hoc and regular 
reports,OLAP methodology  (Check the enclosure for JD)
Qualification: BE/ B Tech/  MCA / MTech  
Experience: 4 to 6 years
Work Location: Chennai 
Interview : 7/05/2005 One to One Candidates should available in 
Chennai

REQUIREMENT VI : DATAWAREHOUSING PROFESSIONALS
Mandatory Skills: INFORMATICA / COGNOS /Progress 4GL/ORACLE (Check 
the enclosure for JD)Experience in Cognos tools like Report net, IWR 
is an added advantage   
Qualification: BE/ B Tech/  MCA / MTech  
Experience: 2 to 4 years
Work Location: Chennai
Interview : 7/05/2005 One to One Candidates should available in 
Chennai

In receipt of your resume we will contact you for discussing on the 
Job profile .We assure that your resume will not be processed without 
your 
Consent. We will be Online in Yahoo Chat ID: career_impact. Kindly 
Please send as your updated resume at the earliest.

With best regards,
Ravi.P
E-Mail: 
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Ph:98400 70743
Chennai





 
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: MXML VTM's for Homesite?

2005-05-06 Thread stevenkeys2003
Brian.. please keep us abreast of your progress, this is needed big time!

-Steve

--- In flexcoders@yahoogroups.com, "cpsdesigns2002"
<[EMAIL PROTECTED]> wrote:
> Yes definitely...In need of tag insights for Homesite. Sometimes you 
> just don't need all the bells and whistles of dreamweaver/flex 
> builder. Anyway, think you'll have them up on flex exchange? ;)
> >   _  
> > 
> > From: Brian LeRoux [mailto:[EMAIL PROTECTED] 
> > Sent: Tuesday, April 06, 2004 10:29 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] MXML VTM's for Homesite?
> > 
> > 
> > I'm a big fan of homesite for plain ol' text editing and wondered 
> if
> > Macromedia has created VTM files / tag completion for MXML yet. If 
> not,
> > I'll do it to because I need it.. errr, I mean, because I love the
> > community! ;) 
> > 
> > Thanks in advance,
> > Brian
> > 
> > 
> > 
> > 
> > 
> > Yahoo! Groups Sponsor   
> > 
> > ADVERTISEMENT
> >  
> > 
>  =egroup
> > 
> web/S=1705007207:HM/EXP=1081402183/A=2072415/R=0/SIG=11thh7ako/*http:
> //www.n
> > etflix.com/Default?mqso=60178432&partid=4786521> click here 
> >  
> >  M=291630.4786521.5933964.1261774/D=egroupweb
> > /S=:HM/A=2072415/rand=225649274>
> > 
> >   _  
> > 
> > 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]
> >  subject=Unsubscribe> 
> >   
> > 
> > *   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] Re: Microsoft Sharepoint Portal and Flex

2005-05-06 Thread Dave
I'm currently working on a project utilizing Flex and SPS. We're 
accessing Flex apps through SPS web parts. What are you looking for?

-Dave

--- In flexcoders@yahoogroups.com, "Tolulope Olonade" 
<[EMAIL PROTECTED]> wrote:
> Yeah I am interested in this too very much :-)
> If its possible anyway..
>  
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of Jose Lora
> Sent: Thursday, April 28, 2005 2:05 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Microsoft Sharepoint Portal and Flex
>  
> Hi Team, any experiences on integrating a Flex application as a
> Sharepoint Web Part?
>  
> Jose Lora
> Meredith Corporation
>  
> 
> 
> 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/
 




RE: [flexcoders] web services suddenly stopped working!!

2005-05-06 Thread Steve Pruitt





I 
have been using mxmlc called by an ant script for about a year.  I 
don't specify a context root only the Flex config file and location of the 
Application mxml.  I have made no changes to this process.  Everything 
worked fine on Wednesday.  Yesterday, I developed a few new GUI 
components, recompiled, tried to run only to run into the problem below.  
???
 
The ant script looks like...
 
 


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Peter 
FarlandSent: Thursday, May 05, 2005 6:47 PMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] web services 
suddenly stopped working!!

Hmm, {context.root} should have been replaced at compile 
time by the context root.
 
Are you using mxmlc to compile this on the command line or 
are you browsing to the .mxml file? If you are using the command line, are you 
specifying a context root?
 
 


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Steve 
PruittSent: Thursday, May 05, 2005 6:40 PMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] web services suddenly 
stopped working!!

I have a very 
inexplicable problem and I have exhausted everything I know to check, twiddle, 
verify, etc.  Perhaps someone can think of something else.  My 
application has a set of webservices that have been working for months.  I 
have not changed anything related to the deployment environment.  I have 
not changed the WSDLs.  I have not changed the web services that are 
called.  When my application starts up it makes a web service call for a 
list of items.  This particular web service call has been operational for 
nearly a year.  The only major change I have made is switching over to Flex 
1.5, but I did this last week and all of my web services have working up until 
now.  So I do not see how 1.5 is a factor.
 
Like I stated, when 
my application launches an initial window comes up and a web service call is 
invoked.  It looks like the call is never issued by Flex.  I use a tcp 
monitor and the request never shows.  What I do get is 5 alerts.  All 
five are completely blank and the title is simply Error.  If I click around 
blindly at the bottom of the alerts I can find the Ok button and it 
closes.  But, I have no idea what, if any, message is supposed to be 
viewable.  I have 5 wsdls so I think the 5 alerts is not 
coincidental.  However, like I said, they have not changed.  The way I 
deploy has not changed.  I have no idea what else I can look at or 
check on.
 
The flashlog shows 
no problems.  Each WSDL has the following in the 
flashlog:
 
5/5 18:22:29 [INFO] 
WebService: Creating stub for http://localhost:8080/anywhere/wsdl/User.wsdl5/5 
18:22:29 [INFO] WSDL: Creating WSDL object for http://localhost:8080/anywhere/{context.root}/flashproxy?transport=wsdl&target=http%3A%2F%2Flocalhost%3A8080%2Fanywhere%2Fwsdl%2FUser%2Ewsdl5/5 
18:22:29 [INFO] XMLSchema: Registering schema namespace: http://www.w3.org/1999/XMLSchema5/5 18:22:29 [INFO] 
XMLSchema: Registering schema namespace: http://www.w3.org/2000/10/XMLSchema5/5 18:22:29 
[INFO] XMLSchema: Registering schema namespace: http://www.w3.org/2001/XMLSchema5/5 18:22:29 [INFO] 
XMLSchema: Registering schema namespace: http://schemas.xmlsoap.org/soap/encoding/5/5 
18:22:29 [INFO] XMLSchema: Registering schema namespace: http://xml.apache.org/xml-soap5/5 18:22:29 [INFO] 
XMLSchema: Registering schema namespace: http://rpc.xml.coldfusion5/5 18:22:29 [INFO] WSDL: 
Successfully created WSDL object5/5 18:22:29 [INFO] WebService: Created stub 
for http://localhost:8080/anywhere/{context.root}/flashproxy?transport=wsdl&target=http%3A%2F%2Flocalhost%3A8080%2Fanywhere%2Fwsdl%2FUser%2Ewsdl
The Flex log doesn't 
show any problems, nor does anything appear in the server 
console.
 
The method for 
calling the first service is below.  Everyone of those trace stmts appears 
in the Flash log, so the method is not blowing up.
 
 public function fetchDSNList() : 
Object {trace("UserWebServiceImpl - 
fetchDSNList()"); var request : XML = new 
XML();var root : XMLNode = 
request.createElement(Constants.DSNLIST_REQUEST_TAG);var dNode : XMLNode = 
request.createElement(Constants.LIST_TAG);var tNode : XMLNode = 
request.createTextNode("Get List."); 
dNode.appendChild(tNode); 
root.appendChild(dNode); 
request.appendChild(root);trace("UserWebServiceImpl - calling: " + 
"FetchDSNList");trace("UserWebServiceImpl - _userServices: " + 
_userServices); _userServices.FetchDSNList.request = 
request;   var userCall = 
_userServices.FetchDSNList.send();trace("UserWebServiceImpl - userCall: " + 
userCall);    userCall.resultHandler = 
mx.utils.Delegate.create(this, fetchDSNListResult);    
userCall.faultHandler  = mx.utils.Delegate.create(this, 
fetchDSNListFault);trace("UserWebServiceImpl - creating return 
call");    userCall.returnCall = new 
Object();trace("UserWebServiceImpl - returning return 
call");    return 
userCall.returnCall; }







Yahoo! Groups Link

RE: [flexcoders] HttpRequest and HttpSession access in Remote Obj ect

2005-05-06 Thread Peter Farland
You simply get the HttpServletRequest object from
flashgateway.Gateway.getHttpRequest() and then call getSession from
there. If a session doesn't exist you need to pass true to getSession so
that it will create one for you.

This method only works if you are within the same thread that made the
HTTP request - i.e. your class was invoked normally by our RemoteObject
framework by a normal NetConnection to the AMF Gateway Servlet.

I've not heard of anyone having problems with the syntax so I'd be
interested to hear how Pradeep or yourself are having issues with this.
Without more information, however, I can not suggest what might be
wrong.

 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brett Palmer
Sent: Friday, May 06, 2005 1:53 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] HttpRequest and HttpSession access in Remote
Obj ect

I think Pradeep's question is the same as mine.  Is there a method in
Flex to gain access to the webcontainers session information?  We need
this because we have a lot of existing server side code that uses a
session object to determine login status, user rights, etc.  We also
use sessions to help determine the load on our servers.

What is the recommended method for sharing session information with a
Flex/Flash client and the server when using remote objects?

Thanks in advance,

Brett

On 5/5/05, Matt Chotin <[EMAIL PROTECTED]> wrote:
>  
>  
> 
> Hmm, that seems odd considering we need a request to reach the
RemoteObject.
>  You're not spawning a thread are you? 
> 
>   
>  
>  
>  
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of Pradeep
>  Sent: Thursday, May 05, 2005 4:48 AM
>  To: flexcoders@yahoogroups.com
>  Subject: [flexcoders] HttpRequest and HttpSession access in Remote
Object 
>  
> 
>   
> 
> I'am using Remote Objects to call my Java class methods on server. For
>  maintaining user information I need Http Session object. So I tried
>  using flashgateway.Gateway.getHttpRequest() and
>  flashgateway.Gateway.getHttpRequest().getSession() to get
> HttpRequest
>  and HttpSession objects respectively. But
>  flashgateway.Gateway.getHttpRequest() method returns null.
>  
>  Unless I get reference to request obect I will not be able to access
>  Session object.
>  
>  Can anybody please suggest something?
>  
>  
>  
>  
>  
>  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/
 




RE: [flexcoders] HttpRequest and HttpSession access in Remote Obj ect

2005-05-06 Thread Peter Farland

 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brett Palmer
Sent: Friday, May 06, 2005 1:53 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] HttpRequest and HttpSession access in Remote
Obj ect

I think Pradeep's question is the same as mine.  Is there a method in
Flex to gain access to the webcontainers session information?  We need
this because we have a lot of existing server side code that uses a
session object to determine login status, user rights, etc.  We also
use sessions to help determine the load on our servers.

What is the recommended method for sharing session information with a
Flex/Flash client and the server when using remote objects?

Thanks in advance,

Brett

On 5/5/05, Matt Chotin <[EMAIL PROTECTED]> wrote:
>  
>  
> 
> Hmm, that seems odd considering we need a request to reach the
RemoteObject.
>  You're not spawning a thread are you? 
> 
>   
>  
>  
>  
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of Pradeep
>  Sent: Thursday, May 05, 2005 4:48 AM
>  To: flexcoders@yahoogroups.com
>  Subject: [flexcoders] HttpRequest and HttpSession access in Remote
Object 
>  
> 
>   
> 
> I'am using Remote Objects to call my Java class methods on server. For
>  maintaining user information I need Http Session object. So I tried
>  using flashgateway.Gateway.getHttpRequest() and
>  flashgateway.Gateway.getHttpRequest().getSession() to get
> HttpRequest
>  and HttpSession objects respectively. But
>  flashgateway.Gateway.getHttpRequest() method returns null.
>  
>  Unless I get reference to request obect I will not be able to access
>  Session object.
>  
>  Can anybody please suggest something?
>  
>  
>  
>  
>  
>  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: Tree Drag and Drop help

2005-05-06 Thread heybluez
How do you snag this attached file?!

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
> Attached is a complete example.  I just tested it and it seems to work
> fine.
> Tracy
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of pilby1
> Sent: Thursday, May 05, 2005 7:04 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Tree Drag and Drop help
> 
> I've been wracking my brains on this for a while now, and it hasn't 
> been a smooth ride. Instead of chanting my experiences in this forum, 
> it all boils down to my pleading for help from any of you.
> 
> Can anyone please provide me a code sample or a URL of such 
> pertaining to drag-n-drop with a Tree which can demonstrate a 
> successful drag of one node onto another, and having the dragged node 
> appear as a child of the node where it was dropped?
> 
> In a nutshell, I've gotten as far as getting the node references of 
> the dragged and dropped nodes within my dragDrop event, including the 
> index of the node that was dropped on. I can even display these two 
> nodes using "alert", and their internal toString() methods would 
> correctly display all the node contents (in XML). However, when I use 
> the addTreeNodeAt() method on a node that's a parent (i.e. a folder), 
> nothing happens! And when the node is a leaf (i.e., not a parent of 
> any child nodes), that node somehow "climbs" up one step higher in 
> the tree hierarchy, and the dragged node does not appear anywhere!
> 
> I would be very grateful to anyone who could provide me some help and 
> guidance on this please. :(
> 
> 
> 
> 
>  
> 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/
 




RE: [flexcoders] Alex Uhlmann: Rotation class help

2005-05-06 Thread Duccio Del Ministro
Thanks Alex.
Regards
Duccio Del Ministro
--- Alex Uhlmann <[EMAIL PROTECTED]> ha
scritto:

-


Hi Duccio,

As you said, your component is centered around 0,0.
For your effect to work properly, you need to simulate
the registration point with modifying the x and y
postions of the component. The current version of AP
1.05 doesn't support a setRegistrationPoint method of
Rotation. But the Scale class provides one. You could
listen to the onUpdate event of Rotation and modify
the x and y positions in your onUpdate listener. Look
into the source code of Scale for more information
about how to simulate a registration point. BTW: The
registration point implementation in Scale was a
contribution from Ben Jackson and here are other
contributions from Robert Penner and Darron Schall:
http://www.iterationtwo.com/cgi-bin/mt-comments.cgi?entry_id=73

This is the kind of functionality the upcomming Flex
Effects Framework ( announced here
http://www.richinternetapps.com/archives/000108.html )
will provide for you.

Best,
Alex
--
Alex Uhlmann
Software Engineer
iteration::two


-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] Behalf Of Duccio
Sent: 05 May 2005 19:57
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Alex Uhlmann: Rotation class
help


Hi,
i'm currently using animationpackage. I have one
little problem with the Rotation class, i'm using it
to rotate an image but it rotates on its 0,0 axis
(upper left corner) and not on its centre as i
expected. I looked the documentation but didn't find
anything regarding changing the centre of rotation. I
'd like also to thank you again for your great work!!!
Below there's the interested code ...
Best Regards
Duccio Del Ministro
  public function myMouseDownHandler(event) : Void
 {
  trace("mouseDown "+ _indice.valueOf());

  if (!_selected) { 
   _alpha=100;
   width+=1;

   setStyle("shadowDistance",0);
   setStyle("dropShadow",false); 
   setStyle("borderSides","left top right bottom");  
   new
Rotation(this).run(360,2000,Quad.easeIn,"onCallback");
  } else {
   _alpha=80;
   width-=1;
  
   setStyle("borderSides","");  
   setStyle("shadowDistance",4);
   setStyle("dropShadow",true); 
   my_border.clear();
  
  }
_selected=!_selected;

 }   



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 the Yahoo!
Terms of Service.




___ 
Nuovo Yahoo! Messenger: E' molto più divertente: Audibles, Avatar, Webcam, 
Giochi, Rubrica… Scaricalo ora! 
http://it.messenger.yahoo.it


 
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/
 




Re: [flexcoders] Re: Filtering data in Flex

2005-05-06 Thread Ketan Bengali
Thanks once again Manish.
Used your Filter class. This is what I required.

Thanks a ton again.

Regards,

Ketan Bengali


>  
>


 
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/
 




RE: [flexcoders] Alex Uhlmann: Rotation class help

2005-05-06 Thread Alex Uhlmann


Hi Duccio,

As you said, your component is centered around 0,0. For your effect to work 
properly, you need to simulate the registration point with modifying the x and 
y postions of the component. The current version of AP 1.05 doesn't support a 
setRegistrationPoint method of Rotation. But the Scale class provides one. You 
could listen to the onUpdate event of Rotation and modify the x and y positions 
in your onUpdate listener. Look into the source code of Scale for more 
information about how to simulate a registration point. BTW: The registration 
point implementation in Scale was a contribution from Ben Jackson and here are 
other contributions from Robert Penner and Darron Schall:
http://www.iterationtwo.com/cgi-bin/mt-comments.cgi?entry_id=73

This is the kind of functionality the upcomming Flex Effects Framework ( 
announced here http://www.richinternetapps.com/archives/000108.html ) will 
provide for you.

Best,
Alex
--
Alex Uhlmann
Software Engineer
iteration::two


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Behalf Of Duccio
Sent: 05 May 2005 19:57
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Alex Uhlmann: Rotation class help


Hi,
i'm currently using animationpackage. I have one little problem with the 
Rotation class, i'm using it to rotate an image but it rotates on its 0,0 axis 
(upper left corner) and not on its centre as i expected. I looked the 
documentation but didn't find anything regarding changing the centre of 
rotation. I 'd like also to thank you again for your great work!!! Below 
there's the interested code ...
Best Regards
Duccio Del Ministro
  public function myMouseDownHandler(event) : Void
 {
  trace("mouseDown "+ _indice.valueOf());

  if (!_selected) { 
   _alpha=100;
   width+=1;

   setStyle("shadowDistance",0);
   setStyle("dropShadow",false); 
   setStyle("borderSides","left top right bottom");  
   new Rotation(this).run(360,2000,Quad.easeIn,"onCallback");
  } else {
   _alpha=80;
   width-=1;
  
   setStyle("borderSides","");  
   setStyle("shadowDistance",4);
   setStyle("dropShadow",true); 
   my_border.clear();
  
  }
_selected=!_selected;

 }   



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/
 




RE: [flexcoders] Re: Cairngorm Result Question

2005-05-06 Thread Steven Webster
Iain,

> I thought a bug was to blame, but have pasted some code for a quick
> browse:

Nothing jumps out as embarassing :)

Can you confirm at which point your array isn't being returned as
expected ?  Go into gateway-config.xml and turn on debug; that'll
let you see what comes over the wire in your console ... so you
can confirm your array comes back over the wire.

In your delegate, trace/assert that the array is not null, and
that it has the number of items you expect.

Then do the same in your onResult() on the command, check it's
not null.

Also (for sanity check) trace that getInboxViewHelper isn't null
either (doesn't look like it should be, but AS2.0 can be too
forgiving ... check everything and check it again !).

I'd also check event.result in the same way in your onResult. 

A great "cut and paste" check is just do the following:

public function alertDebug( elements : Array )
{
var debug:String
for( var e in elements )
{
debug += e + ":" + elements[e] +", ";
}
mx.core.Application.alert("debug: " + debug );
}

Use that to alertDebug( event.result ), etc, in your code.

While you're feeling your way around, that should give you
some insight into what's going on between your commands/delegate/
etc.

You could also work backwards; in your ViewHelper, just put
some known static data into the datagrid.  If that works, then
change your ViewHelper back, but have your command onResult
send some known static data to the ViewHelper, then work back
to the delegate, etc.

Bottom line ... no obvious gotchas from what I can see, so 
roll your sleeves up and learn the joys of Flex debugging :)

Let us know what you find,

Steven

--
Steven Webster
Technical Director
iteration::two
 
This e-mail and any associated attachments transmitted with it may contain
confidential information and must not be copied, or disclosed, or used by
anyone other than the intended recipient(s). If you are not the intended
recipient(s) please destroy this e-mail, and any copies of it, immediately.
 
Please also note that while software systems have been used to try to ensure
that this e-mail has been swept for viruses, iteration::two do not accept
responsibility for any damage or loss caused in respect of any viruses
transmitted by the e-mail. Please ensure your own checks are carried out
before any attachments are opened.

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.11.5 - Release Date: 04/05/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/
 




RE: [flexcoders] Vertical Accordion?

2005-05-06 Thread Gordon Smith
Title: Message





Can 
you show us how you are using a vertical accordion? We were kind of surprised 
when developers started asking for one. Do you want the labels to be readable 
sideways, or 
 
L
o
o
k
 
l
i
k
e
 
t
h
i
s
?
 
- 
Gordon
 

  
  -Original Message-From: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
  Sent: Thursday, May 05, 2005 10:07 PMTo: 
  flexcodersSubject: [flexcoders] Vertical 
  Accordion?
  HAi,
     Is there any possibility to have a 
  vertical accordion in flex? anything like Rotate can be used to rotate the 
  whole container? i came to know it is possible with laszlo.. 
   
  thanks,
  nithya
  
  
  Yahoo! 
  Messenger - Communicate instantly..."Ping" your friends today! Download 
  Messenger Now 
  







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.