Making any datagrid cell appear as a header

2005-03-02 Thread dhiren9

How do I change the appearance of a datagrid cell to look exactly 
like the header cell? I realize this will not have the functionality 
of the header cell such as sorting etc., just the look and feel.

Do I have to write a new cell renderer?

Thx.







n00b question: Flex compnents

2005-03-02 Thread Eric Diamond
I am a visual designer who is looking into Flex for a client solution. I know there are standard components like accordions, datagrids, etc. that can be used to create an interface. Is there a guide that lists all of them out so I can know what is out-of-the-box-standard and what might have to be custom written? I am having a hard time find the right stuff on the Macromedia site. Can someone point me to the light? Thanks in advance!
---
Eric Diamond
firstwater
x-tad-smallerwhere clarity comes first

/x-tad-smaller847 674 6568
847 414 6467 mobile
AIM: ericdiamondmm

Re: [flexcoders] n00b question: Flex compnents

2005-03-02 Thread alf
http://www.macromedia.com/software/flex/productinfo/features/
Quoting Eric Diamond [EMAIL PROTECTED]:
I am a visual designer who is looking into Flex for a client solution.
I know there are standard components like accordions, datagrids, etc.
that can be used to create an interface. Is there a guide that lists
all of them out so I can know what is out-of-the-box-standard and what
might have to be custom written? I am having a hard time find the right
stuff on the Macromedia site. Can someone point me to the light? Thanks
in advance!
---
Eric Diamond
firstwater
where clarity comes first
847 674 6568
847 414 6467 mobile
AIM: ericdiamondmm





RE: [flexcoders] n00b question: Flex compnents

2005-03-02 Thread Dennis Baldwin



Version 1.5 
controls: http://livedocs.macromedia.com/flex/15/asdocs_en/mx/controls/index.html

-Original Message-From: Eric Diamond 
[mailto:[EMAIL PROTECTED]Sent: Tuesday, March 01, 2005 7:55 
PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] 
n00b question: Flex compnentsI am a visual designer who 
is looking into Flex for a client solution. I know there are standard 
components like accordions, datagrids, etc. that can be used to create an 
interface. Is there a guide that lists all of them out so I can know whatis 
out-of-the-box-standard and what might have to be custom written? I am having 
a hard time find the right stuff on the Macromedia site. Can someone point me 
to the light? Thanks in advance!---Eric 
Diamondfirstwaterwhere 
clarity comes first847 
674 6568847 414 6467 mobileAIM: ericdiamondmm


DateField memory leak

2005-03-02 Thread Paul Frantz
Hi all,

I've been trying to track down a memory leak in our app and I believe I've
tracked it down to the DateField widget.
It appears that if I select a date programmatically and then delete the
component memory usage starts to creep up and
is seemingly never garbage collected. The sample code below when run on my
machine uses up a delta of ~50M
between when the app is first loaded and after 100 iterations of this
sequence. Additionally after 100 iterations the
Internet Explorer process is chewing up ~20% of my CPU while the app is
supposedly idling.

Has anyone else run into this issue and perhaps found a workaround? I gotta
feeling Matt is going to tell me to 
go wish :)

Cheers,
Paul.

?xml version=1.0 encoding=iso-8859-1?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; 
load=myLoad()


mx:Script
![CDATA[
var counter:Number;
var intervalId1:Number;
var intervalId2:Number;
var date:Date;


function destroy():Void {
clearInterval(intervalId2);


viewStack.destroyChildAt(0);
counter = counter + 1;
if (counter == 100) {
clearInterval(intervalId1);
}
}


function create():Void {
trace(date =  + date);
var dateField =
viewStack.createChild(mx.controls.DateField, undefined);

dateField.selectedDate = date;
intervalId2 = setInterval(this, destroy,
2000);
}   

function myLoad():Void {
counter = 0;
date = new Date();
}

function startIterations():Void {
intervalId1 = setInterval(this, create,
3000);  
}

function stopIterations():Void {
clearInterval(intervalId1);
}

]]
/mx:Script

mx:VBox 
mx:ViewStack id=viewStack /

mx:Button label=start iterations
click=startIterations()/
mx:Button label=stop iterations
click=stopIterations()/
mx:Label text={counter} /
/mx:VBox

/mx:Application


~~---
This e-mail may contain confidential information. If you are not the intended 
recipient, please notify the sender immediately and delete this e-mail from 
your system. You must not disclose this e-mail to anyone without express 
permission from the sender. The contents of all e-mails sent to and received 
from Optus may be scanned, stored, or disclosed to others at Optus discretion.

Optus has exercised care to avoid errors in the information contained in this 
e-mail but does not warrant that the information is error or omission free. The 
information (including any pricing information) contained in this e-mail is 
subject to change. This e-mail is not a quotation or proposal and no 
contractual obligations arise until you and Optus sign a formal written 
contract or formal variation to your existing contract. 

Any pricing contained in this e-mail is exclusive of GST unless otherwise 
stated.






RE: [flexcoders] Double Clicking -- A Question... and my Answer, the Double Click component.

2005-03-02 Thread Dimitrios Gianninas



Hi,

None of the Flex components 
handle double-click mouse events at the moment. Well you have obviously created 
an alternative or you cancall the following piece ofcode on thecellPress event of a DataGrid for example to detect and handle a 
double-click:

/*Handles the 
double-click event on the inbox display grid.*/public function cellPressEvt( evt:Object ):Void {var now = new Date();

// we got a 
double-clickif( ( now.getTime() - timestamp.getTime() )  375 
 view.inboxGrid.selectedItem != undefined ) {// 
do something..
}timestamp = new 
Date();}

Jimmy 
Gianninas
Software Developer - 
Optimal Payments 
Inc.



From: stealthbaz 
[mailto:[EMAIL PROTECTED] Sent: Tuesday, March 01, 2005 9:55 
AMTo: flexcoders@yahoogroups.comSubject: [flexcoders]Double Clicking -- A Question... and my Answer, the Double Click 
component.
So as i'm making my first app in Flex, I keep coming across 
questions.My first question is: Is there a built in event handler 
fordoubleClick detection?Please respond and let me know if I missed 
something.In the meantime after poking around, I could not find 
one. So I builtone. :)My component has 2 major pieces of 
functionality. First it containsan AS function that can detect a double click. But since I'm sick inthe head, I didn't stop 
there. I added an interface to alter thespeed of the double click, as 
well as test it.Below is my component for detecting double 
click. If you want to useit in your app, you simply include it inyour 
app as a component withno height, width, or visibility. A method in your app 
can make itvisible for when the user wants to change the settings of the 
mousespeed. I used the shared object to retain the mouse 
speed settings.The inclusion line in your App:--- 
CODE ---DoubleClick id="doubleClick" 
visible="false" height="0" width="0"/ END CODE--Once its in included, you can just reference 
it in your mouseDownhandlers:The line to actually detect a double 
click. (using some imaginarybutton in your app)- 
CODE --mx:Button label="Double Click Me" 
mouseDown="if(doubleClick.detectDoubleClick()){mx.controls.Alert.show('Double 
ClickDetected', '');}"/ 
  END 
CODE--And lastly, the component 
itself.You can alter it, muck with it, or do whatever you want to 
it.Critique, pointers, etc.. are all welcome. CODE 
---?xml version="1.0" 
encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"mx:Canvas 
xmlns:mx="http://www.macromedia.com/2003/mxml"mx:Panel 
label="Double Click Speed" 
initialize="loadDoubleClickSpeed()"mx:Script![CDATA[/* 
This component is free to use, alter, distribute, or ignore As I was 
starting to learn flex, and work on my own first App, I couldnot find away 
to perform a double click event handle. Russell 
Miner[EMAIL PROTECTED]*/var global_mouseTimer = 0; //The 
variable to keep track of the lastmouse click timevar doubleClickTime = 
300; // The variable to provide the minimum timeneeded to elapse for a double click to count/*This method will return true if a double 
click was detected and falseif not.It should be called as the 
eventhandler of a mouseDown event. Eg: 
mouseDown="if(detectDoubleClick()){mx.controls.Alert.show('Double Click 
Detected','');}"*/function 
detectDoubleClick(){ var aDate = new 
Date(); var now = 
aDate.getTime();  
  if (now -global_mouseTimer  doubleClickTime){ global_mouseTimer = 
now;  
  return 
true; }else{ 
 //too slow global_mouseTimer = 
now;  return 
false;  
  
} }/*This method will reload the 
last setting of the mouse speed*/function 
loadDoubleClickSpeed(){ var so:SharedObject = 
SharedObject.getLocal("_doubleClickTime"); 
 doubleClickTime = 
so.data.doubleClickTime;}/*The handler for the changing of the 
click speed slider*/function 
handleDoubleClickSpeedChange(event){ 
doubleClickTime = doubleClickSlider.value; var 
so:SharedObject = 
SharedObject.getLocal("_doubleClickTime"); 
so.data.doubleClickTime = doubleClickTime; 
so.flush();  
}/*These are left to be implemented by the user. They 
can make thiscomponent show or hide based on your particular 
implementation*/function showMe(){}function 
hideMe(){ 
}]]/mx:Script 
mx:VBox horizontalAlign="center" 
verticalGap="20" mx:Text text="Choose a double click speed in milliseconds, thentest on 
the button below" width="170" height="48" 
/  
mx:HSlider id="doubleClickSlider"
  
change="handleDoubleClickSpeedChange(event)" 
  
  minimum="0"  
  
 maximum="1000"  
  
  
liveDragging="true"  
  
  tickInterval="100" 
  
  
 value="{doubleClickTime}" 
  
  
 labels="['0', 
'1000']"
 
width="75%"/ 
 mx:Button label="Double Click Me" 
mouseDown="if(detectDoubleClick()){mx.controls.Alert.show('Double 
ClickDetected', '');}"/ 
  
/mx:VBox/mx:Panel/mx:Canvas/mx:Application 
END CODE --

AVIS IMPORTANTWARNING Les informations contenues dans le present document etses pieces jointes sont strictement confidentielles et 

Re: [flexcoders] n00b question: Flex compnents

2005-03-02 Thread Eric Diamond
Thanks!!!
---
Eric Diamond
firstwater
x-tad-smallerwhere clarity comes first

/x-tad-smaller847 674 6568
847 414 6467 mobile
AIM: ericdiamondmm
On Mar 1, 2005, at 8:05 PM, [EMAIL PROTECTED] wrote:

http://www.macromedia.com/software/flex/productinfo/features/

 Quoting Eric Diamond [EMAIL PROTECTED]>:

 > I am a visual designer who is looking into Flex for a client solution.
 > I know there are standard components like accordions, datagrids, etc.
 > that can be used to create an interface. Is there a guide that lists
 > all of them out so I can know what is out-of-the-box-standard and what
 > might have to be custom written? I am having a hard time find the right
 > stuff on the Macromedia site. Can someone point me to the light? Thanks
 > in advance!
 > ---
 > Eric Diamond
 > firstwater
 > where clarity comes first
 >
 > 847 674 6568
 > 847 414 6467 mobile
 > AIM: ericdiamondmm








Yahoo! Groups Sponsor

x-tad-smallerADVERTISEMENT/x-tad-smaller22305_0205_016_b_300250_a.gif>
l.gif>

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] Flex + Java Classes (as RemoteObjects) Config Question

2005-03-02 Thread Chris Reynolds








Presumably the last s in the folder was just
an email typo ;-)

{insall-server-root}/FlexProjects/Flex/WEB-INF/classess













From: Ben Elmore
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 02, 2005
5:26 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex +Java
Classes (as RemoteObjects) Config Question





All.

Basically I am trying to configure the my flex
application to work with some
server side java objects (basic pojos) and am
getting a
'flashgateway.adapter.NoSuchServiceException'
error thrown when I attempt to
access it. I have been able to get this working on
several different servers
but am at a loss to why this one particular setup
is causing an issue. I am
running my connectivity test with the both a
helloWorld java object and the
sample java connector that comes with the flex
install.

This is my environment.

Jrun 4.0 (running latest updater) install

I have several Jrun servers running each with a
couple of apps.

For the environment I am trying to set up I have
configured a new server
(called FlexProjects) and extracted the flex.war
file into a directory in
that server called 'flex'. I loaded my test java
classes (also tried the
Cairngorm demo) into the
{insall-server-root}/FlexProjects/Flex/WEB-INF/classess
directory. 

Is there something that I am missing in the config
of Jrun that is not
having the gateway find the classes in that
directory (oh, I can confirm
that the classes work through a jsp running on
that page).

Thanks.

Ben


--

This e-mail and any attachments may contain
information which is
confidential, proprietary, privileged or otherwise
protected by law. The
information is solely intended for the named
addressee (or a person
responsible for delivering it to the addressee).
If you are not the intended
recipient of this message, you are not authorized
to read, print, retain,
copy or disseminate this message or any partof
it. If you have received
this e-mail in error, please notify the sender
immediately by return e-mail
and delete it from your computer.













RE: [flexcoders] Flex + Java Classes (as RemoteObjects) Config Question

2005-03-02 Thread Ben Elmore
Title: Message




Correct. Iam hoping it is something that straight 
forward.

-Original Message-From: 
Chris Reynolds [mailto:[EMAIL PROTECTED] Sent: Wednesday, 
March 02, 2005 12:05 AMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Flex + Java 
Classes (as RemoteObjects) Config Question


Presumably thelast s 
in the folder was just an email typo ;-)
{insall-server-root}/FlexProjects/Flex/WEB-INF/classess






From: Ben 
Elmore [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 02, 2005 5:26 
PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Flex + Java Classes 
(as RemoteObjects) Config Question

All.Basically I am trying to configure the my flex application 
to work with someserver side java 
objects (basic pojos) and am getting a'flashgateway.adapter.NoSuchServiceException' error thrown 
when I attempt toaccess it. I 
have been able to get this working on several different 
serversbut am at a loss towhy 
this one particular setup is causing an issue. I amrunning my connectivity test with the both a helloWorld 
java object and thesample java 
connector that comes with the flex install.This is my environment.Jrun 4.0 (running latest updater) 
installI have several Jrun 
servers running each with a couple of apps.For the environment I am trying to set up I have configured 
a new server(called FlexProjects) 
and extracted the flex.war file into a directory inthat server called 'flex'. I loaded my test java 
classes (also tried theCairngorm demo) into the{insall-server-root}/FlexProjects/Flex/WEB-INF/classess 
directory. Is there something 
that I am missing in the config of Jrun that is nothaving the gateway find the classes in that directory (oh, 
I can confirmthat the classes 
work through a jsp running on that page).Thanks.Ben--This 
e-mail and any attachments may contain information which 
isconfidential, proprietary, 
privileged or otherwise protected by law. Theinformation is solely intended for the named addressee (or 
a personresponsible for 
delivering it to the addressee). If you are not the 
intendedrecipient of this 
message, you are not authorized to read, print, 
retain,copy or disseminatethis 
message or any part of it. If you have receivedthis e-mail in error, please notify the sender immediately 
by return e-mailand deleteit 
from your 
computer.


Re: [flexcoders] Flex + Java Classes (as RemoteObjects) Config Question

2005-03-02 Thread Spike
Do you have a CFMX instance running on the JRun server.
I ran into an issue a week or so ago with a conflict between the 
instructions for setting up verity and running a Flex server.

The basic problem was a classpath issue that was causing the JVM to use 
the CFMX flash remoting instead of the generic flash remoting, so it was 
looking in the wrong place for the class files when a remoting request 
came through the Flex server.

Not sure if that's your issue, but I tracked it down by launching the 
server instance in debug mode and lookging at the details for the error 
when remoting couldn't find the classes.

HTH
Spike
Ben Elmore wrote:
Correct. I am hoping it is something that straight forward. 

-Original Message-
*From:* Chris Reynolds [mailto:[EMAIL PROTECTED]
*Sent:* Wednesday, March 02, 2005 12:05 AM
*To:* flexcoders@yahoogroups.com
*Subject:* RE: [flexcoders] Flex + Java Classes (as RemoteObjects) 
Config Question

Presumably the last s in the folder was just an email typo ;-)
{insall-server-root}/FlexProjects/Flex/WEB-INF/classess



*From:* Ben Elmore [mailto:[EMAIL PROTECTED]
*Sent:* Wednesday, March 02, 2005 5:26 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Flex + Java Classes (as RemoteObjects)
Config Question

All.
Basically I am trying to configure the my flex application to work
with some
server side java objects (basic pojos) and am getting a
'flashgateway.adapter.NoSuchServiceException' error thrown when I
attempt to
access it. I have been able to get this working on several different
servers
but am at a loss to why this one particular setup is causing an
issue. I am
running my connectivity test with the both a helloWorld java object
and the
sample java connector that comes with the flex install.
This is my environment.
Jrun 4.0 (running latest updater) install
I have several Jrun servers running each with a couple of apps.
For the environment I am trying to set up I have configured a new server
(called FlexProjects) and extracted the flex.war file into a
directory in
that server called 'flex'. I loaded my test java classes (also
tried the
Cairngorm demo) into the
{insall-server-root}/FlexProjects/Flex/WEB-INF/classess directory.
Is there something that I am missing in the config of Jrun that is not
having the gateway find the classes in that directory (oh, I can confirm
that the classes work through a jsp running on that page).
Thanks.
Ben

--
This e-mail and any attachments may contain information which is
confidential, proprietary, privileged or otherwise protected by law. The
information is solely intended for the named addressee (or a person
responsible for delivering it to the addressee). If you are not the
intended
recipient of this message, you are not authorized to read, print,
retain,
copy or disseminate this message or any part of it. If you have received
this e-mail in error, please notify the sender immediately by return
e-mail
and delete it from your computer.



*Yahoo! Groups Sponsor*
ADVERTISEMENT
click here 
http://us.ard.yahoo.com/SIG=1290mjllk/M=298184.6018725.7038619.3001176/D=groups/S=1705007207:HM/EXP=1109830219/A=2593423/R=0/SIG=11el9gslf/*http://www.netflix.com/Default?mqso=60190075


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


--

Stephen Milligan
Code poet for hire
http://www.spike.org.uk
Do you cfeclipse? http://cfeclipse.tigris.org



RE: [flexcoders] Flex + Java Classes (as RemoteObjects) Config Question

2005-03-02 Thread Ben Elmore
Spike.

I am running CFMX on one of my Jrun server instances. How did you go about
fixing the error (aside from uninstalling CF :) ). I was trying to determine
classpath conflicts today but hadn't discovered specifics. 

Thanks.

Ben

-Original Message-
From: Spike [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 02, 2005 1:24 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex + Java Classes (as RemoteObjects) Config
Question



Do you have a CFMX instance running on the JRun server.

I ran into an issue a week or so ago with a conflict between the 
instructions for setting up verity and running a Flex server.

The basic problem was a classpath issue that was causing the JVM to use 
the CFMX flash remoting instead of the generic flash remoting, so it was 
looking in the wrong place for the class files when a remoting request 
came through the Flex server.

Not sure if that's your issue, but I tracked it down by launching the 
server instance in debug mode and lookging at the details for the error 
when remoting couldn't find the classes.

HTH

Spike

Ben Elmore wrote:
 Correct. I am hoping it is something that straight forward.
  
 -Original Message-
 *From:* Chris Reynolds [mailto:[EMAIL PROTECTED]
 *Sent:* Wednesday, March 02, 2005 12:05 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* RE: [flexcoders] Flex + Java Classes (as RemoteObjects)
 Config Question
 
 Presumably the last s in the folder was just an email typo ;-)
 
 {insall-server-root}/FlexProjects/Flex/WEB-INF/classess
 
  
 
  
 
 
 --
 --
 
 *From:* Ben Elmore [mailto:[EMAIL PROTECTED]
 *Sent:* Wednesday, March 02, 2005 5:26 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Flex + Java Classes (as RemoteObjects)
 Config Question
 
  
 
 All.
 
 Basically I am trying to configure the my flex application to work
 with some
 server side java objects (basic pojos) and am getting a
 'flashgateway.adapter.NoSuchServiceException' error thrown when I
 attempt to
 access it. I have been able to get this working on several different
 servers
 but am at a loss to why this one particular setup is causing an
 issue. I am
 running my connectivity test with the both a helloWorld java object
 and the
 sample java connector that comes with the flex install.
 
 This is my environment.
 
 Jrun 4.0 (running latest updater) install
 
 I have several Jrun servers running each with a couple of apps.
 
 For the environment I am trying to set up I have configured a new
server
 (called FlexProjects) and extracted the flex.war file into a
 directory in
 that server called 'flex'. I loaded my test java classes (also
 tried the
 Cairngorm demo) into the
 {insall-server-root}/FlexProjects/Flex/WEB-INF/classess directory.
 
 Is there something that I am missing in the config of Jrun that is not
 having the gateway find the classes in that directory (oh, I can
confirm
 that the classes work through a jsp running on that page).
 
 Thanks.
 
 Ben
 


 --
 
 This e-mail and any attachments may contain information which is
 confidential, proprietary, privileged or otherwise protected by law.
The
 information is solely intended for the named addressee (or a person
 responsible for delivering it to the addressee). If you are not the
 intended
 recipient of this message, you are not authorized to read, print,
 retain,
 copy or disseminate this message or any part of it. If you have
received
 this e-mail in error, please notify the sender immediately by return
 e-mail
 and delete it from your computer.
 
 
 
 
 
 
 
 *Yahoo! Groups Sponsor*
 ADVERTISEMENT
 click here

http://us.ard.yahoo.com/SIG=1290mjllk/M=298184.6018725.7038619.3001176/D=gr
oups/S=1705007207:HM/EXP=1109830219/A=2593423/R=0/SIG=11el9gslf/*http://www.
netflix.com/Default?mqso=60190075
 
 
 --
 --
 *Yahoo! Groups Links*
 
 * To visit your group on the web, go to:
 http://groups.yahoo.com/group/flexcoders/

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

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

-- 


Stephen Milligan
Code poet for hire
http://www.spike.org.uk

Do you cfeclipse? http://cfeclipse.tigris.org


 
Yahoo! Groups Links



 









Re: [flexcoders] Flex + Java Classes (as RemoteObjects) Config Question

2005-03-02 Thread Spike
I removed the classpath entries I added to the JRun instance for verity.
Those were the ones that caused the problem for me. Haven't got round to 
sorting out how to put them back on again so they don't conflict, but 
that was the issue.

You should be able to tell if that's the issue if you run the flex 
server from the command line.

I can give you more details if you need them, but it's getting late here 
and I'm about to head off to bed.

Spike
Ben Elmore wrote:
Spike.
I am running CFMX on one of my Jrun server instances. How did you go about
fixing the error (aside from uninstalling CF :) ). I was trying to determine
classpath conflicts today but hadn't discovered specifics. 

Thanks.
Ben
-Original Message-
From: Spike [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 02, 2005 1:24 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex + Java Classes (as RemoteObjects) Config
Question


Do you have a CFMX instance running on the JRun server.
I ran into an issue a week or so ago with a conflict between the 
instructions for setting up verity and running a Flex server.

The basic problem was a classpath issue that was causing the JVM to use 
the CFMX flash remoting instead of the generic flash remoting, so it was 
looking in the wrong place for the class files when a remoting request 
came through the Flex server.

Not sure if that's your issue, but I tracked it down by launching the 
server instance in debug mode and lookging at the details for the error 
when remoting couldn't find the classes.

HTH
Spike
Ben Elmore wrote:
Correct. I am hoping it is something that straight forward.
-Original Message-
*From:* Chris Reynolds [mailto:[EMAIL PROTECTED]
*Sent:* Wednesday, March 02, 2005 12:05 AM
*To:* flexcoders@yahoogroups.com
*Subject:* RE: [flexcoders] Flex + Java Classes (as RemoteObjects)
Config Question
Presumably the last s in the folder was just an email typo ;-)
{insall-server-root}/FlexProjects/Flex/WEB-INF/classess


--
--
*From:* Ben Elmore [mailto:[EMAIL PROTECTED]
*Sent:* Wednesday, March 02, 2005 5:26 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Flex + Java Classes (as RemoteObjects)
Config Question

All.
Basically I am trying to configure the my flex application to work
with some
server side java objects (basic pojos) and am getting a
'flashgateway.adapter.NoSuchServiceException' error thrown when I
attempt to
access it. I have been able to get this working on several different
servers
but am at a loss to why this one particular setup is causing an
issue. I am
running my connectivity test with the both a helloWorld java object
and the
sample java connector that comes with the flex install.
This is my environment.
Jrun 4.0 (running latest updater) install
I have several Jrun servers running each with a couple of apps.
For the environment I am trying to set up I have configured a new
server
(called FlexProjects) and extracted the flex.war file into a
directory in
that server called 'flex'. I loaded my test java classes (also
tried the
Cairngorm demo) into the
{insall-server-root}/FlexProjects/Flex/WEB-INF/classess directory.
Is there something that I am missing in the config of Jrun that is not
having the gateway find the classes in that directory (oh, I can
confirm
that the classes work through a jsp running on that page).
Thanks.
Ben


--
This e-mail and any attachments may contain information which is
confidential, proprietary, privileged or otherwise protected by law.
The
information is solely intended for the named addressee (or a person
responsible for delivering it to the addressee). If you are not the
intended
recipient of this message, you are not authorized to read, print,
retain,
copy or disseminate this message or any part of it. If you have
received
this e-mail in error, please notify the sender immediately by return
e-mail
and delete it from your computer.



*Yahoo! Groups Sponsor*
ADVERTISEMENT
click here
http://us.ard.yahoo.com/SIG=1290mjllk/M=298184.6018725.7038619.3001176/D=gr
oups/S=1705007207:HM/EXP=1109830219/A=2593423/R=0/SIG=11el9gslf/*http://www.
netflix.com/Default?mqso=60190075
--
--
*Yahoo! Groups Links*
* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
* Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service http://docs.yahoo.com/info/terms/.


--

Stephen Milligan
Code poet for hire
http://www.spike.org.uk
Do you cfeclipse? http://cfeclipse.tigris.org



RE: [flexcoders] tool tips for a linkbar

2005-03-02 Thread Matt Chotin








I think if you specify the toolTip on the
child (so elements of the ViewStack) those will be propagated to the Links
themselves.



Matt











From: Robert
Brueckmann [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 01, 2005
12:30 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] tool tips
for a linkbar







Maybe another stupid question but I
cant seem to anything in the APIs or LiveDocs about how to have
individual tool tips for a number of links I have in a linkbar component.
Right now as it stands, there seems to be only the ability to have an
overall tooltip for everything in a linkbar component.



Any ideas? Thanks!

















This message contains information
fromMerlin Securities, LLC, or from one of its affiliates, that may be
confidential and privileged. If you are not an intended recipient, please
refrain from any disclosure, copying, distribution or use of this information
and note that such actions are prohibited. If you have received this
transmission in error, please notify the sender immediately by telephone orby
replying to this transmission.












Merlin Securities, LLC is a registered
broker-dealer. Services offered throughMerlin Securities, LLC are notinsured
by the FDIC or any other Federal Government Agency, are not deposits of or
guaranteed byMerlin Securities, LLCand may lose value. Nothing in
this communication shall constitute a solicitation or recommendation to buyor
sell a particular security.













RE: [flexcoders] resizing a panel

2005-03-02 Thread Matt Chotin








I dont have time to experiment,but
maybe if you specify minHeight on the child panels and dont specify
height they will start sizing according to their children?



Matt











From: Tom Fitzpatrick
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 01, 2005 1:58
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] resizing a
panel





The undocumented ViewStack resizeToContent property works really well.
Is 
there a way to achieve the same effect for Panels?

I have a container Panel that holds several other
Panels as children. In 
each of child Panels are a number of objectsthat
can be open or closed: 
mainly VBoxes whose heights I'm toggling between 0
and 100%. The VBoxes 
contain objects such as datagrids and graphsthat
I'm showing and hiding 
with this toggling effect. This all works fine,
except that the subpanels 
always try to fill up100% of the container panel.
Is there a way to tell 
the subpanels to set their heights to the combined
heights of their contents?

I hope I've explained this properly.

Thanks!

- Tom
















RE: [flexcoders] Array for Tree?

2005-03-02 Thread Matt Chotin








Tree should be able to take a Model orthe
result of an HTTPService and simply use it. The Tree will convert theobject
graph into TreeNodes for you automatically.



So any example you see that uses mx:XML
you should be able to change the XML to Model and have the same behavior.



Matt











From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 01, 2005 2:43
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Array for
Tree?





Hi All,

I've seen many examples for building XML
datamodels to populate a Tree in Flex
But I haven't seen any examples for Tree 
Array as a dataprovider.

are their any examples out there that I missed?
if not can someone post an example?

thanks,
-Art











RE: [flexcoders] flex production deployment issues

2005-03-02 Thread Matt Chotin








Well {localserver} is going to be the same
machine where flashproxy is, not machine B. So I think you need to update
flex-config.xml to have the webservice location be on machine B directly.



There are debugging settings in
flex-config:


web-service-proxy-debugtrue/web-service-proxy-debug



Youll be able to see the input and
output of the proxy in web-inf/flex/logs (or your console)



Matt











From: jonbez
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 01, 2005 3:30
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] flex
production deployment issues






Hi there,

Our deployment team is having a lot of trouble
getting our Flex app
deployed to the outside world.

From what I understand, the user accesses machine
A, which in turns
forwards the request to internal machine B which
runs weblogic 8.1
with the application.

Unfortunately it seems flashproxy is lookingfor
the app/data on
machine A. 

In flex-config.xml the webservice is definedas
{localserver}.

Do we need to do specify any parameters to make
this happen? The
symptom is that the application just hangs -as
soon as it is making a
webservice, http or remote object call (we don't
know which is causing
the problems).

What does flashproxy do, and where can we start to
look for things
that can make the app break.

Thanks

Jonathan













RE: [flexcoders] Flex + Java Classes (as RemoteObjects) Config Question

2005-03-02 Thread Ben Elmore
Spike.

Thanks for the nudge in the right direction. I solved my issue (though I
haven't seen if this messes up CF yet) by updating the class path in the
jvm.config file to have it look in jrun/lib rather then Web-Inf/cfusion/lib
directory first. I seem to remember that this might not be the best thing
since CFusionMX had different versions of certain sub component (xml parsers
and the like) then Jrun. Can anyone from MM comment on that, esp if this
would mess up a CF7 install on a Java instance (our target prod
environment)?

Ben

-Original Message-
From: Spike [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 02, 2005 1:39 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex + Java Classes (as RemoteObjects) Config
Question



I removed the classpath entries I added to the JRun instance for verity.

Those were the ones that caused the problem for me. Haven't got round to 
sorting out how to put them back on again so they don't conflict, but 
that was the issue.

You should be able to tell if that's the issue if you run the flex 
server from the command line.

I can give you more details if you need them, but it's getting late here 
and I'm about to head off to bed.

Spike

Ben Elmore wrote:
 Spike.
 
 I am running CFMX on one of my Jrun server instances. How did you go 
 about fixing the error (aside from uninstalling CF :) ). I was trying 
 to determine classpath conflicts today but hadn't discovered 
 specifics.
 
 Thanks.
 
 Ben
 
 -Original Message-
 From: Spike [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 02, 2005 1:24 AM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Flex + Java Classes (as RemoteObjects) Config
 Question
 
 
 
 Do you have a CFMX instance running on the JRun server.
 
 I ran into an issue a week or so ago with a conflict between the
 instructions for setting up verity and running a Flex server.
 
 The basic problem was a classpath issue that was causing the JVM to 
 use
 the CFMX flash remoting instead of the generic flash remoting, so it was 
 looking in the wrong place for the class files when a remoting request 
 came through the Flex server.
 
 Not sure if that's your issue, but I tracked it down by launching the
 server instance in debug mode and lookging at the details for the error 
 when remoting couldn't find the classes.
 
 HTH
 
 Spike
 
 Ben Elmore wrote:
 
Correct. I am hoping it is something that straight forward.
 
-Original Message-
*From:* Chris Reynolds [mailto:[EMAIL PROTECTED]
*Sent:* Wednesday, March 02, 2005 12:05 AM
*To:* flexcoders@yahoogroups.com
*Subject:* RE: [flexcoders] Flex + Java Classes (as RemoteObjects) 
Config Question

 Presumably the last s in the folder was just an email typo ;-)

 {insall-server-root}/FlexProjects/Flex/WEB-INF/classess

 

 


--
--

 *From:* Ben Elmore [mailto:[EMAIL PROTECTED]
 *Sent:* Wednesday, March 02, 2005 5:26 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Flex + Java Classes (as RemoteObjects)
 Config Question

 

 All.

 Basically I am trying to configure the my flex application to work
 with some
 server side java objects (basic pojos) and am getting a
 'flashgateway.adapter.NoSuchServiceException' error thrown when I
 attempt to
 access it. I have been able to get this working on several different
 servers
 but am at a loss to why this one particular setup is causing an
 issue. I am
 running my connectivity test with the both a helloWorld java object
 and the
 sample java connector that comes with the flex install.

 This is my environment.

 Jrun 4.0 (running latest updater) install

 I have several Jrun servers running each with a couple of apps.

 For the environment I am trying to set up I have configured a new
 
 server
 
 (called FlexProjects) and extracted the flex.war file into a
 directory in
 that server called 'flex'. I loaded my test java classes (also
 tried the
 Cairngorm demo) into the
 {insall-server-root}/FlexProjects/Flex/WEB-INF/classess directory.

 Is there something that I am missing in the config of Jrun that is not
 having the gateway find the classes in that directory (oh, I can
 
 confirm
 
 that the classes work through a jsp running on that page).

 Thanks.

 Ben


 
 --
 --
 
 --

 This e-mail and any attachments may contain information which is
 confidential, proprietary, privileged or otherwise protected by 
 law.
 
 The
 
 information is solely intended for the named addressee (or a person
 responsible for delivering it to the addressee). If you are not the
 intended
 recipient of this message, you are not authorized to read, print,
 retain,
 copy or disseminate this message or any part of it. If you have
 
 received
 
 this e-mail in error, please notify the sender immediately by return
 e-mail
 and delete it from your computer.







*Yahoo! Groups 

RE: [flexcoders] User Credentials Cache

2005-03-02 Thread Matt Chotin








Another potential fix is to set
max-connections0/max-connections in flex-config.xml and seeif
that solves it.



Matt











From: billheit
[mailto:[EMAIL PROTECTED] 
Sent: Friday, February 25, 2005
9:38 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] User
Credentials Cache






I have a .NET Web Service running on IIS with
Basic authentication. 
In flex, I have a HttpService configured to
request data from my web 
service. On a button click I call the
HttpService.send() and set an 
event to handle the result.

When I run this Flex app on my IE browser, Iget a
security login 
dialog and so I enter my user name and
password. I am granted 
access to the web service and I see my data.
All seems to be 
working fine.

However, when I close the browser and re-open it,
I am not prompted 
with the security login again and my application
acts as if I am 
already logged in. Even if I clear thecache
on my browser, it 
still acts as it I am logged in.

So I am wondering where my credentials are being
cached. Is there a 
cache duration setting somewhere? How I can clear
it? If the user 
closes the browser and re-opens the app, I want
them to log back in.

Thanks,

Bill















RE: [flexcoders] DateField memory leak

2005-03-02 Thread Matt Chotin
 I gotta feeling Matt is going to tell me to go wish :)

Yep :-) If you don't find something it might be worth contacting support, I
know I don't really have time right now to investigate. Did you try setting
selectedDate to undefined before destroying it? If it seems to be selecting
the date that's the problem maybe it would clean it up?

Matt



From: Paul Frantz [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 01, 2005 9:16 PM
To: 'flexcoders@yahoogroups.com'
Subject: [flexcoders] DateField memory leak

Hi all,

I've been trying to track down a memory leak in our app and I believe I've
tracked it down to the DateField widget.
It appears that if I select a date programmatically and then delete the
component memory usage starts to creep up and
is seemingly never garbage collected.  The sample code below when run on my
machine uses up a delta of ~50M
between when the app is first loaded and after 100 iterations of this
sequence.  Additionally after 100 iterations the
Internet Explorer process is chewing up ~20% of my CPU while the app is
supposedly idling.

Has anyone else run into this issue and perhaps found a workaround?  I gotta
feeling Matt is going to tell me to 
go wish :)

Cheers,
Paul.

?xml version=1.0 encoding=iso-8859-1?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; 
  load=myLoad()


    mx:Script
    ![CDATA[
      var counter:Number;
      var intervalId1:Number;
      var intervalId2:Number;
      var date:Date;
      

      function destroy():Void {
        clearInterval(intervalId2);

      
        viewStack.destroyChildAt(0);
          counter = counter + 1;
          if (counter == 100) {
            clearInterval(intervalId1);
          }
      }


      function create():Void {
        trace(date=  + date);
        var dateField =
viewStack.createChild(mx.controls.DateField, undefined);

        dateField.selectedDate = date;
        intervalId2= setInterval(this, destroy,
2000);
      }      
      
      function myLoad():Void {
        counter =0;
        date = new Date();
      }
      
      function startIterations():Void {
        intervalId1= setInterval(this, create,
3000);        
      }
      
      function stopIterations():Void {
        clearInterval(intervalId1);
      }
      
   ]]
    /mx:Script

  mx:VBox    
    mx:ViewStack id=viewStack /
        
    mx:Button label=start iterations
click=startIterations()/
    mx:Button label=stop iterations
click=stopIterations()/
    mx:Label text={counter} /
  /mx:VBox

/mx:Application


~~---
This e-mail may contain confidential information.  If you are not the
intended recipient, please notify the sender immediately and delete this
e-mail from your system.  You must not disclose this e-mail to anyone
without express permission from the sender.  The contents of all e-mails
sent to and received from Optus may be scanned, stored, or disclosed to
others at Optus discretion.

Optus has exercised care to avoid errors in the information contained in
this e-mail but does not warrant that the information is error or omission
free.  The information (including any pricing information) contained in this
e-mail is subject to change.  This e-mail is not a quotation or proposal and
no contractual obligations arise until you and Optus sign a formal written
contract or formal variation to your existing contract.  

Any pricing contained in this e-mail is exclusive of GST unless otherwise
stated.




Yahoo! Groups Sponsor
ADVERTISEMENT





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: Making any datagrid cell appear as a header

2005-03-02 Thread dhiren9

Never mind, I found some examples in the Live Docs. I'd like to find 
out why the cells refresh so badly on this example below though. Any 
ideas?

http://groups.yahoo.com/group/flexcoders/message/10410

Thanks.

--- In flexcoders@yahoogroups.com, dhiren9 [EMAIL PROTECTED] wrote:
 
 Thanks Matt. Are there any examples out there from Macromedia on 
 writing a custom cell renderer. Did you guys get a chance to check 
 out this one? Its got some issues the author outlines, any ideas 
on 
 how to fix them?
 
 http://groups.yahoo.com/group/flexcoders/message/10410
 
 Thanks.
 
 --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] 
wrote:
  Yep, a custom cell renderer (it can simply be a Label). You 
could 
 give it
  the same style as your column's headerStyle.
  
  
  
  Matt
  
  
  
  _ 
  
  From: dhiren9 [mailto:[EMAIL PROTECTED] 
  Sent: Tuesday, March 01, 2005 8:07 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Making any datagrid cell appear as a header
  
  
  
  
  How do I change the appearance of a datagrid cell to look 
exactly 
  like the header cell? I realize this will not have the 
 functionality 
  of the header cell such as sorting etc., just the look and feel.
  
  Do I have to write a new cell renderer?
  
  Thx.
  
  
  
  
  
  
  
  
  Yahoo! Groups Sponsor
  
  
  
  ADVERTISEMENT
  
  
 
http://us.ard.yahoo.com/SIG=129lkrc94/M=298184.6018725.7038619.30011
 76/D=gr
  
 
oups/S=1705007207:HM/EXP=1109812021/A=2593423/R=0/SIG=11el9gslf/*http
 :/www.n
  etflix.com/Default?mqso=60190075 click here
  
  
  
  http://us.adserver.yahoo.com/l?
 M=298184.6018725.7038619.3001176/D=groups/S=
  :HM/A=2593423/rand=928282889 
  
  
  
  _ 
  
  Yahoo! Groups Links
  
  *   To visit your group on the web, go to:
  http://groups.yahoo.com/group/flexcoders/
  http://groups.yahoo.com/group/flexcoders/ 
  
  *   To unsubscribe from this group, send an email to:
  [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED]
 subject=Unsubscribe 
  
  *   Your use of Yahoo! Groups is subject to the Yahoo!
  http://docs.yahoo.com/info/terms/ Terms of Service.







Re: [flexcoders] About Image

2005-03-02 Thread [EMAIL PROTECTED]
My god,
thank's thank's and thank's again.
Devis
Dirk Eismann ha scritto:
Hi Devis,
unfortunately, the Flash Player can only handle JPG files that are non-progressive. to 
check, open a JPG that doesn't get displayed in Flex in a program like Photoshop or Fireworks and 
save it as a JPG but don't click the progressive box.
I attached a screenshot from the according setting in Fireworks - the 
progressive checkbox has to be disabled.
Dirk.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 02, 2005 9:12 AM
To: Flex Coders
Subject: [flexcoders] About Image

I am desperate, I am trying to write a simple application that loads 
some photos in formed jpg, under you see my code. 
I don't understand two things 
1) I am photo from 40/50 kbs and do I find that in flex it 
employs a lot 
to load her, while in a banal page jsps come almost 
immediately to load 
thing I am being wrong? 
2)Perchè some photos, are not loaded although do they exist 
in the path 
and the thing + strange it is that if it didn't find the photo 
you/he/she should go out me the simbolino of flex of photo 
not gimmick 
and instead nothing stays everything white, and the worse 
thing is that 
the same result does me him him making a will in an intranet? 
I pray you I don't understand what we have my photos yet 
those that are 
not opened, other programs of graphics open her without problems 
Thanks
Devis


?xml version=1.0 encoding=utf-8?
mx:VBox xmlns:mx=http://www.macromedia.com/2003/mxml; 
horizontalAlign=center
verticalGap=0 borderStyle=none

mx:Script
var product: Object;
function setValue(str: String, item: Object) {
if (item==undefined) {
visible = false;
return;
} else {
product=item;
visible=true;
}
}
/mx:Script
mx:Image id=image width=60 height=60 
source=images/{product.de20mo}.jpg/
mx:Label text={product.de20mo} width=120 textAlign=center/
mx:Label text={product.de30mo} fontWeight=bold/

/mx:VBox


Yahoo! Groups Links






Yahoo! Groups Links








Custom cell renderer granularity

2005-03-02 Thread dhiren9

My custom cell renderer works when I set it at the DataGridColumn 
level, however it does not take effect when I set it for the entire 
DataGrid tag.

I don't use the DataGridColumn tags since my grid is populated 
using a DataProvider. Am I missing something here? Also, how do I 
modify the column headers to use my custom cell renderer.

Thanks.

-D







How to access arbitrary menu item?

2005-03-02 Thread extensive_systems

Perhaps I'm missing something obvious...

Given a MenuBar defined by this XML:

menuitem
menuitem label=A
menuitem label=AA
menuitem label=AA1 instanceName=inAA1/
/menuitem
/menuitem
/menuitem

How can I zero in and operate on an arbitrary menu item (like that
with instanceName inAA1), e.g., to enable or disable it?

And is the 'instanceName' attribute useful for anything other than
discrimination in a switch statement in a menu's event handler?








RE: [flexcoders] AMFPHP and Flex

2005-03-02 Thread Robert Stuttaford
Set your endpoint on your RemoteObject tag to point to your AMFPHP gateway.

-Original Message-
From: daniele_galiffa [mailto:[EMAIL PROTECTED] 
Sent: 02 March 2005 12:05 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] AMFPHP and Flex



Anybody knows hot to use AMFPHP with Flex ?

Thanks,







Yahoo! Groups Links











Using fullscreen

2005-03-02 Thread Kleber Voigt
Hi,

Can I make a fullscreen flex app? How?

I use:
function initApp(){
fscommand(fullscreen,true);
}

and put this function in initialize from mx:application tag but don't works!

Anyone can help me?

Thanks

Kleber Voigt





Re: how can I refresh a datagrid?

2005-03-02 Thread Miguel Diaz Valenzuela

that modelChanged event should be created or what?


--- In flexcoders@yahoogroups.com, Manish Jethani
[EMAIL PROTECTED] wrote:
 Dimitrios Gianninas wrote:
  Just change the dataProvider and the DataGrid will refresh itself.
 
 I think firing the 'modelChanged' event on the data provider will also 
 do the trick.
 
 myDataProvider.dispatchEvent({type: modelChanged});
 
 Manish







datagrid cell scrollbars

2005-03-02 Thread Robert Brueckmann







I have a datagrid that has 6 columns and
it about 20 rows high. I send it as one page to the printer using the
PrintJob class, it prints the datagrid so everything fits within the boundaries
of the piece of paper but the problem is, some of the text in the cells is
wider than the printer-friendly adjusted widths of the columns that I guessthe
internal PrintJob class is handling or whatever mechanism to send an objectto
a PrintJob class is doing. 



It wouldnt be so bad if the text
got cut off, but instead of getting cut off, the entire cell is replaced with a
horizontal scrollbar that completely hides the contents of the cell and thats
what gets printeda random scatter of cells that are simply horizontal
scrollbars. Is there any way to prevent the horizontal scrolling? I
cant find anything in the DataGridColumn or DataGridRow classesideas?





Robert L. Brueckmann

Web Developer

Merlin Securities,LLC


RE: [flexcoders] resizing a panel

2005-03-02 Thread Tom Fitzpatrick
At 01:49 AM 3/2/2005, you wrote:
Matt -
Thanks - that was it. A stray height=100% had crept into one of my 
components. Removing it fixed the problem.

- Tom
I don't have time to experiment, but maybe if you specify minHeight on the 
child panels and don't specify height they will start sizing according to 
their children?

Matt

From: Tom Fitzpatrick [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 01, 2005 1:58 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] resizing a panel
The undocumented ViewStack resizeToContent property works really well. Is
there a way to achieve the same effect for Panels?
I have a container Panel that holds several other Panels as children. In
each of child Panels are a number of objects that can be open or closed:
mainly VBoxes whose heights I'm toggling between 0 and 100%. The VBoxes
contain objects such as datagrids and graphs that I'm showing and hiding
with this toggling effect. This all works fine, except that the subpanels
always try to fill up100% of the container panel. Is there a way to tell
the subpanels to set their heights to the combined heights of their contents?
I hope I've explained this properly.
Thanks!
- Tom





RE: [flexcoders] Flex + Java Classes (as RemoteObjects) Config Qu estion

2005-03-02 Thread Peter Farland
Hi Ben, Spike is correct - CF 6.1 unfortunately made changes to Jrun's
jvm.config level classpath. I've heard from the CF team a while ago that
they no longer do this for CF7.

If you've tried removing the jvm.config level additions to the classpath and
CF 6.1 still runs, then I think you're fine.

Web applications should keep their class paths isolated at the application
level. If you have this setup, things should be fine in Flex 1.5 (as the CF
gateway is behind their own bootstrap classloader).

Pete


-Original Message-
From: Spike [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 02, 2005 1:24 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex + Java Classes (as RemoteObjects) Config
Question



Do you have a CFMX instance running on the JRun server.

I ran into an issue a week or so ago with a conflict between the 
instructions for setting up verity and running a Flex server.

The basic problem was a classpath issue that was causing the JVM to use 
the CFMX flash remoting instead of the generic flash remoting, so it was 
looking in the wrong place for the class files when a remoting request 
came through the Flex server.

Not sure if that's your issue, but I tracked it down by launching the 
server instance in debug mode and lookging at the details for the error 
when remoting couldn't find the classes.

HTH

Spike

Ben Elmore wrote:
 Correct. I am hoping it is something that straight forward.
 
 -Original Message-
 *From:* Chris Reynolds [mailto:[EMAIL PROTECTED]
 *Sent:* Wednesday, March 02, 2005 12:05 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* RE: [flexcoders] Flex + Java Classes (as RemoteObjects)
 Config Question
 
 Presumably the last s in the folder was just an email typo ;-)
 
 {insall-server-root}/FlexProjects/Flex/WEB-INF/classess
 
 
 
 
 
 
 --
 --
 
 *From:* Ben Elmore [mailto:[EMAIL PROTECTED]
 *Sent:* Wednesday, March 02, 2005 5:26 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Flex + Java Classes (as RemoteObjects)
 Config Question
 
 
 
 All.
 
 Basically I am trying to configure the my flex application to work
 with some
 server side java objects (basic pojos) and am getting a
 'flashgateway.adapter.NoSuchServiceException' error thrown when I
 attempt to
 access it. I have been able to get this working on several different
 servers
 but am at a loss to why this one particular setup is causing an
 issue. I am
 running my connectivity test with the both a helloWorld java object
 and the
 sample java connector that comes with the flex install.
 
 This is my environment.
 
 Jrun 4.0 (running latest updater) install
 
 I have several Jrun servers running each with a couple of apps.
 
 For the environment I am trying to set up I have configured a new
server
 (called FlexProjects) and extracted the flex.war file into a
 directory in
 that server called 'flex'. I loaded my test java classes (also
 tried the
 Cairngorm demo) into the
 {insall-server-root}/FlexProjects/Flex/WEB-INF/classess directory.
 
 Is there something that I am missing in the config of Jrun that is not
 having the gateway find the classes in that directory (oh, I can
confirm
 that the classes work through a jsp running on that page).
 
 Thanks.
 
 Ben
 


 --
 
 This e-mail and any attachments may contain information which is
 confidential, proprietary, privileged or otherwise protected by law.
The
 information is solely intended for the named addressee (or a person
 responsible for delivering it to the addressee). If you are not the
 intended
 recipient of this message, you are not authorized to read, print,
 retain,
 copy or disseminate this message or any part of it. If you have
received
 this e-mail in error, please notify the sender immediately by return
 e-mail
 and delete it from your computer.
 
 
 
 
 
 
 
 *Yahoo! Groups Sponsor*
 ADVERTISEMENT
 click here

http://us.ard.yahoo.com/SIG=1290mjllk/M=298184.6018725.7038619.3001176/D=gr
oups/S=1705007207:HM/EXP=1109830219/A=2593423/R=0/SIG=11el9gslf/*http://www.
netflix.com/Default?mqso=60190075
 
 
 --
 --
 *Yahoo! Groups Links*
 
 * To visit your group on the web, go to:
 http://groups.yahoo.com/group/flexcoders/
 
 * To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
 
 mailto:[EMAIL PROTECTED]
 
 * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
 Service http://docs.yahoo.com/info/terms/.
 
 

-- 


Stephen Milligan
Code poet for hire
http://www.spike.org.uk

Do you cfeclipse? http://cfeclipse.tigris.org



Yahoo! Groups Links










datagrid does not display http data

2005-03-02 Thread jivankohinoor

I try to fill a DataGrid from live XML data over http, but the grid
desperately stays empty.
The code is :

mx:HTTPService id=catalogContents contentType=application/xml
method=GET protocol=http resultFormat=xml 
url=http://localhost:8080/protocore/getCatalogContents;
fault='alert(event.fault.faultstring,,mx.controls.Alert.OK)'
result='alert(Catalog OK,,mx.controls.Alert.OK)'

mx:DataGrid id=catalogGrid height=100% width=100%
dataProvider={catalogContents.result.element}


Returned XML is like :
?xml version=1.0 encoding=utf-8?
elements
element Key=Key Name=Name Dir=Dir lang=lang nloc=nloc
npar=npar UNKNOWN1=UNKNOWN1 UNKNOWN2=UNKNOWN2 Status=Status
Anom=Anom label=label0 /
element Key=BAT00 Name=COA034 Dir=A1/PRG lang=Cobol
nloc=944 npar=649 UNKNOWN1=58 UNKNOWN2= Status=CORRECT
Anom=OK label=label1 /
element ...
/elements

I know that the Server part is OK, as I am able to display raw XML
code in the following TextArea:
mx:TextArea text={catalogContents.result}/

I tried the same, with XML compiled statically, and it works :

mx:Model id=catalogContentsModel
ource=D:\\src\\Flex\\Phoenix-proto\\cataloContents.xml /

mx:DataGrid id=catalogGrid
dataProvider={catalogContentsModel.result.element}

Help would be greatly needed, I tried many different combinations of
returned XML without success (like returning mx:Array/mx:Object
tags, specifying the object attributes as XML attributes or as XML
elements, nothing work)

Am I *really* an idiot as I seem to be the only one with this problem.







Re: Flex Builder

2005-03-02 Thread jivankohinoor

I have one that works, if u need it send me a mail and I will return
it back 2u







RE: [flexcoders] datagrid does not display http data

2005-03-02 Thread Robert Brueckmann







Instead of creating an alert with the
result attribute of the HTTPService request, make a call to a method that would
set the dataprovider to the resulting XML.



The problem is, when the datagrid is
created, the XML from the HTTPService isnt ready yet, so you need to
reset the dataprovider of the datagrid once the XML is actually returned. So
try something like:



mx:HTTPService id=catalogContents
contentType=application/xml
method=GET protocol=http
resultFormat=xml 
url=""
href="http://localhost:8080/protocore/getCatalogContents">http://localhost:8080/protocore/getCatalogContents
fault='alert(event.fault.faultstring,,mx.controls.Alert.OK)'
result=setData(event.result);
resultFormat=object



mx:Script

public function setDate(result:Object) {

catalogGrid.dataProvider =
result.element;

}

/mx:Script

mx:DataGrid id=catalogGrid
height=100% width=100%
dataProvider={catalogContents.result.element}




Not sure if that code will actually work but thats
the general gist of it.





Robert L. Brueckmann

Web Developer

Merlin Securities,LLC


Re: [flexcoders] AMFPHP and Flex

2005-03-02 Thread daniele | mentegrafica
Thanks very much!

dott. daniele galiffa
multimedia designer  developer
Macromedia Flash MX Developer Certified
[EMAIL PROTECTED]
- Original Message - 
From: Robert Stuttaford [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, March 02, 2005 11:18 AM
Subject: RE: [flexcoders] AMFPHP and Flex


 Set your endpoint on your RemoteObject tag to point to your AMFPHP gateway.
 
 -Original Message-
 From: daniele_galiffa [mailto:[EMAIL PROTECTED] 
 Sent: 02 March 2005 12:05 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] AMFPHP and Flex
 
 
 
 Anybody knows hot to use AMFPHP with Flex ?
 
 Thanks,
 
 
 
 
 
 
 
 Yahoo! Groups Links
 
 
 
 
 
 
 
 
 Yahoo! Groups Sponsor 
 ADVERTISEMENT
 
 
 
 
 
 
 Yahoo! Groups Links
 
 a.. To visit your group on the web, go to:
 http://groups.yahoo.com/group/flexcoders/
 
 b.. To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
 
 c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
 
 




RE: [flexcoders] AMFPHP and Flex

2005-03-02 Thread Peter Farland
I imagine certain things won't be supported in AMFPHP - such as calling the
setUsernamePassword API or specifying the service type, as these modify the
AMF request in a Flex-specific manner.


-Original Message-
From: daniele | mentegrafica [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 02, 2005 10:33 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] AMFPHP and Flex



Thanks very much!

dott. daniele galiffa
multimedia designer  developer
Macromedia Flash MX Developer Certified
[EMAIL PROTECTED]
- Original Message - 
From: Robert Stuttaford [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, March 02, 2005 11:18 AM
Subject: RE: [flexcoders] AMFPHP and Flex


 Set your endpoint on your RemoteObject tag to point to your AMFPHP 
 gateway.
 
 -Original Message-
 From: daniele_galiffa [mailto:[EMAIL PROTECTED]
 Sent: 02 March 2005 12:05 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] AMFPHP and Flex
 
 
 
 Anybody knows hot to use AMFPHP with Flex ?
 
 Thanks,
 
 
 
 
 
 
 
 Yahoo! Groups Links
 
 
 
 
 
 
 
 
 Yahoo! Groups Sponsor 
 ADVERTISEMENT
 
 
 
 
 
 --
 --
 Yahoo! Groups Links
 
 a.. To visit your group on the web, go to:
 http://groups.yahoo.com/group/flexcoders/
 
 b.. To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
 
 c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
 Service.
 
 



Yahoo! Groups Links











RE: [flexcoders] Re: Flex Builder

2005-03-02 Thread Robertson-Ravo, Neil (RX)
Not sure that will be entirely legal.



-Original Message-
From: jivankohinoor [mailto:[EMAIL PROTECTED] 
Sent: 02 March 2005 15:20
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex Builder



I have one that works, if u need it send me a mail and I will return
it back 2u






Yahoo! Groups Links






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




Cairngorm or ARP

2005-03-02 Thread Leo
Hi ellite coders

In a past thread someone posted a message with a link to the ARP
platform for Flex.

I'd like to know if somebody has worked with this platform and if so,
what are the advantages and/or disadvantages.

My question is because i only knew Cairngorm framework and i think
it's great, but always is better to know other technoligies

regards
-- 
Leonardo Moreno Guzmán
http://leo.logtar.com




loader

2005-03-02 Thread Robert Brueckmann







Background:



Ive built a reporting application.
The user logs in, selects criteria and I send the users criteria in XML
format to a stored procedure, which generates an XML result set, which we send
to a template-based 3rd-party reporting engine which produces
a PDF reportwhen the report has been generated, I make a call to another
3rd-party utilitythe open-source SWFTools utility called
PDF2SWF, which converts that newly generated PDF report into a single SWF filewith
each page of the original PDF file being represented in a frame of the overall SWF
moviethen I load the converted SWF report into my loader component for
the users viewing pleasure, where I created a page slider component that
allows the user to flip pages of the report. (Honestly, the next version of Flex,
I HOPE, really needs to focus on reporting functionality because this is one
hell of a convoluted, EXPENSIVE way to get a simple multi-paged, printable
report out of this system!). 



Question: 



This is all working fine and great, but
the main complaint is the user cant use the mouse scroll or the vertical
scroll bar to the right to scroll down the report to the next page, and then to
the next page and so onlike they can in the PDF version of the report.
In the Flash-version, they can only get to the next page of the SWF report by
using my nifty page slider which simply increments (or decrements) to the next
frame of the report SWF movie. Is there anyway to load that multi-framed SWF
movie into the loader component and within the loader component, dynamically
extract out each frame of the movie and display it in a vertical series of HBox
components? Can you do that with a multiframed movie? I wouldnt think
so but I figured its worth a shot in asking. Ive tried using
FlashPaper and embedding that into the loader component, but trying to get that
to stretch and print correctly is a nightmare in and of itselfnot to
mention the application server is running on Linux so while in theory and
development, FlashPaper works beautifully on my Windows desktop, but FlashPaper
doesnt come for Linux unfortunately. 



Alternatively, is there anything smartI
can do with the mouse scroller that would scroll through each consecutive page
of the report insteadlike once Ive gotten to the bottom of the
visible reports page, increment the report movie frame number to the
next frame automatically? How do you capture the mouse scroller as well as the
vertical scrollbar itself, if the user was dragging this scrollbar with the
mouse pointer, itd need to mimic this behavior alsothoughts?







Robert L. Brueckmann

Web Developer

Merlin Securities,LLC


DATAPROVIDER LENGTH - PLEASE HELP

2005-03-02 Thread gevgelija50

I am not sure if this is a Flex bug or just the wrong approach.

I have two datagrids that have drag-drop enabled. I followed the drag 
and drop example from Macromedia (Flex Explorer)

When I hit the doDragDrop function, instead of simply adding the 
items to the grid, I also want to add them to a global array named 
TestArray.

I assign the items to the array and I can browse the contents of the 
array during my debugging process. However, the length of the array 
and the length of the datagrid dataProvider is set to 0! Althought 
there are items inside the grid.

Why does this happen? Is it because the array is un-accessible in the 
scope of the event?

PLEASE HELP

Alex







RE: [flexcoders] Flex + Java Classes (as RemoteObjects) Config Qu estion

2005-03-02 Thread Peter Farland
I'm not aware of the tech note you mention (but someone else on this may
be!), but as you allude to, it's not so much an issue with verity, it's an
issue of having ColdFusion's flashgateway.jar added to the top level
jvm.config classpath. If by adding support for verity you lump the entire
/WEB-INF/cfusion/lib into the top level jvm.config classpath, then this is
not advisable if you also want to have Flex and CF on the same JRun server
as flashgateway.jar also resides in this directory.

Of the three options you outline, the last one is the most desirable, but we
would need to know why they suggested adding verity support libraries to the
top level jvm.config classpath to address this.

The next easiest solution is to go with your second option. To do this I
think you could move the cf-specific gateway to somewhere like this:

/WEB-INF/cfusion/amflib

Then all we need to ensure is that the CF bootstrap classloader can find the
gateway servlet class in this new location. I'd try updating the
cf.class.path setting in /WEB-INF/web.xml:

context-param id=macromedia_context_88
param-namecf.class.path/param-name

param-value./WEB-INF/cfusion/lib/cfusion.jar,./WEB-INF/cfusion/amflib/flas
hgateway.jar/param-value
/context-param

I apologize that I haven't tried this out. I'm not from the CF team and I
use ColdFusion on a day-to-day basis. If this doesn't work then we'd need to
get more information from the CF team.


Pete


-Original Message-
From: Spike [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 02, 2005 10:46 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex + Java Classes (as RemoteObjects) Config Qu
estion



Thanks for the update Peter.

The specific config setting that causes the problem is adding verity 
support, so if you don't need that you should be fine. The question is 
whether there is a standard way to set it up so that you can have both 
CFMX with verity and Flex running at the same time.

The relevant docs here: 
http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/instal17.htm

My guess that the solution would be one of:

* Move the verity files elsewhere and change the JVM config path to 
point to the new location.
* Remove flashgateway.jar from the cfusion/lib directory of any CFMX 
server instances and reconfigure the web.xml if necessary so that it 
uses the one in JRun/lib.
* Modify the classloader settings so that the classpath setting for each 
CFMX server instance doesn't affect the whole server.

Rather than playing around to figure out which (if any) of those options 
would work, it would be nice if we could get official confirmation from 
Macromedia, or a link to a technote that answers this. I have a feeling 
that I have seen a technote along those lines, but it was a long time 
ago and I can't find it now.

Spike

Peter Farland wrote:
 Hi Ben, Spike is correct - CF 6.1 unfortunately made changes to Jrun's 
 jvm.config level classpath. I've heard from the CF team a while ago 
 that they no longer do this for CF7.
 
 If you've tried removing the jvm.config level additions to the 
 classpath and CF 6.1 still runs, then I think you're fine.
 
 Web applications should keep their class paths isolated at the 
 application level. If you have this setup, things should be fine in 
 Flex 1.5 (as the CF gateway is behind their own bootstrap 
 classloader).
 
 Pete
 
 
 -Original Message-
 From: Spike [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 02, 2005 1:24 AM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Flex + Java Classes (as RemoteObjects) Config
 Question
 
 
 
 Do you have a CFMX instance running on the JRun server.
 
 I ran into an issue a week or so ago with a conflict between the
 instructions for setting up verity and running a Flex server.
 
 The basic problem was a classpath issue that was causing the JVM to 
 use
 the CFMX flash remoting instead of the generic flash remoting, so it was 
 looking in the wrong place for the class files when a remoting request 
 came through the Flex server.
 
 Not sure if that's your issue, but I tracked it down by launching the
 server instance in debug mode and lookging at the details for the error 
 when remoting couldn't find the classes.
 
 HTH
 
 Spike
 
 Ben Elmore wrote:
 
Correct. I am hoping it is something that straight forward.
 
-Original Message-
*From:* Chris Reynolds [mailto:[EMAIL PROTECTED]
*Sent:* Wednesday, March 02, 2005 12:05 AM
*To:* flexcoders@yahoogroups.com
*Subject:* RE: [flexcoders] Flex + Java Classes (as RemoteObjects) 
Config Question

 Presumably the last s in the folder was just an email typo ;-)

 {insall-server-root}/FlexProjects/Flex/WEB-INF/classess

 

 

 
--
--

 *From:* Ben Elmore [mailto:[EMAIL PROTECTED]
 *Sent:* Wednesday, March 02, 2005 5:26 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Flex + Java Classes (as RemoteObjects)
 Config Question

 

 All.

 

Re: [flexcoders] About Image

2005-03-02 Thread satish chandra
It does not support Jpeg files. it only support Png and all other
formats except jpeg.

Thank u


On Wed, 02 Mar 2005 09:11:54 +0100, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 
 I am desperate, I am trying to write a simple application that loads
 some photos in formed jpg, under you see my code.
 I don't understand two things
 1) I am photo from 40/50 kbs and do I find that in flex it employs a lot
 to load her, while in a banal page jsps come almost immediately to load
 thing I am being wrong?
 2)Perchè some photos, are not loaded although do they exist in the path
 and the thing + strange it is that if it didn't find the photo
 you/he/she should go out me the simbolino of flex of photo not gimmick
 and instead nothing stays everything white, and the worse thing is that
 the same result does me him him making a will in an intranet?
 I pray you I don't understand what we have my photos yet those that are
 not opened, other programs of graphics open her without problems
 Thanks
 Devis
 
 ?xml version=1.0 encoding=utf-8?
 
 mx:VBox xmlns:mx=http://www.macromedia.com/2003/mxml;
 horizontalAlign=center
 verticalGap=0 borderStyle=none
 
 mx:Script
 
 var product: Object;
 
 function setValue(str: String, item: Object) {
 
 if (item==undefined) {
 visible = false;
 return;
 } else {
 product=item;
 visible=true;
 }
 }
 
 /mx:Script
 
 mx:Image id=image width=60 height=60
 source=images/{product.de20mo}.jpg/
 mx:Label text={product.de20mo} width=120 textAlign=center/
 mx:Label text={product.de30mo} fontWeight=bold/
 
 /mx:VBox
 
 
 Yahoo! Groups Links
 
 
 
 





Re: [flexcoders] Re: Advanced Printing Question

2005-03-02 Thread Manish Jethani
AC wrote:
The idea is: If I can programmatically build a complex nested control
(eg Lables inside HBox, which are in turn inside VBox which can have a
variety of different sibling controls) and then send it to the print
to SUCCESSFULLY print, I would save a lot of work and maintenance
issues in the long run.
You can create it at runtime.
var myPrintableView = PopUpManager.createPopUp(this, VBox, false);
myPrintableView.visible = false;
var hbox = myPrintableView.createChild(HBox, , {});
var label1 = hbox.createChild(Label, , {text: Address:});
... and so on. Then you send 'myPrintableView' to printing.
Manish



great idea for a cheap flex site....

2005-03-02 Thread David

this is a great forum for flexer's







Re: [flexcoders] list drag'n'drop object

2005-03-02 Thread Manish Jethani
Krzysztof Szlapinski wrote:

so lets say I've got this list:
[snip]
and I've got the handle for drop event
function doDrop(event){

var data = event.dragSource.dataForFormat('items');
var s:String = ;
for (var i in data)
s += data[i].label + \n;
alert(s);

}
what do I get in data then
'data' is an Array that contains the list items.
Manish



Re: [flexcoders] datagrid cell scrollbars

2005-03-02 Thread Manish Jethani
Robert Brueckmann wrote:
Is there any way to prevent the horizontal scrolling? I cant find
anything in the DataGridColumn or DataGridRow classesideas?
How about setting the 'hScrollPolicy' to off?
Manish



Re: datagrid does not display http data

2005-03-02 Thread jivankohinoor

--- In flexcoders@yahoogroups.com, Manish Jethani
[EMAIL PROTECTED] wrote:
 jivankohinoor wrote:
  
  I try to fill a DataGrid from live XML data over http, but the grid
  desperately stays empty.
  The code is :
  
  mx:HTTPService id=catalogContents contentType=application/xml
  method=GET protocol=http resultFormat=xml 
 
 Try resultFormat=object and see if that works.
 
 Manish

Thanks, I already tried before, as many other things, and it does not work
Also, I have exactly the same problem with the List component, that
does not display live XML, but works fine with static XML.
Maybe I get some parasites in my http result when passing through
the Flash Proxy (I use Tomcat 5 as java server) ?
But if I monitor network traffic, I see the GET requests OK, as well
as the XML response, everything looks fine











RE: [flexcoders] datagrid cell scrollbars

2005-03-02 Thread Robert Brueckmann
Doesn't exist for DataGridColumn...at least not in the APIs...I tried
applying it to the overall datagrid, but that did nothing. *sigh*

Robert L. Brueckmann
Web Developer
Merlin Securities, LLC
595 Madison Avenue
New York, NY 10022
p: 212.822.4821
f: 212.822.4820
-Original Message-
From: Manish Jethani [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 02, 2005 1:29 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] datagrid cell scrollbars


Robert Brueckmann wrote:

 Is there any way to prevent the horizontal scrolling? I can't find
 anything in the DataGridColumn or DataGridRow classes...ideas?

How about setting the 'hScrollPolicy' to off?

Manish



 
Yahoo! Groups Links



 


This message contains information from Merlin Securities, LLC, or from one of 
its affiliates, that may be confidential and privileged. If you are not an 
intended recipient, please refrain from any disclosure, copying, distribution 
or use of this information and note that such actions are prohibited.If you 
have received this transmission in error, please notify the sender immediately 
by telephone or by replying to this transmission.
 
Merlin Securities, LLC is a registered broker-dealer. Services offered through 
Merlin Securities, LLC are not insured by the FDIC or any other 
FederalGovernment Agency, are not deposits of or guaranteed by Merlin 
Securities,LLC and may lose value. Nothing in this communication shall 
constitute a solicitation or recommendation to buy or sell a particular 
security.




recompile xml

2005-03-02 Thread Miguel Diaz Valenzuela

hi coders, i´m here again

I don´t know exactly if i´m right, but the flex-config.xml file allow
me to set a lot of options. I´m search one specifically. I need that
all mxml request (webservice, and consequently, the xml file) refresh
automatically after execute a specifically opcion. 

Well, I don´t if this question is too stupid, I hope no

thanks a lot in advance







flex and mobile devices

2005-03-02 Thread Ivan Sergeev
Greetings to all!
Somebody really tested | worked with Flex on mobile devices?
If yes - be so kind as inform marks and models

-- 
Best regards,
Ivan mailto:[EMAIL PROTECTED]





Re: [flexcoders] Problem closing pop up on datagrid cellpress

2005-03-02 Thread Robert Moss
Thanks Manish!!! That seems to work. 

I wnat to use cellPress because I have an HR application that allows
department contacts to request specific forms for employees based on
department, type of action, exempt / non-exempt, etc... So when I ask
for an employee ID number, I need to have a mechanism that allows them
to search for the ID. I've decided to use a pop up and allow for search
of Name, Job Code, Position #, Department, etc... The results of the
search are returned in a DataGrid. Upon selecting the desired employee,
I want the pop up to close and return the selected employee to the main
app. I could allow them to select the employee in the datagrid and then
click a continue button or something, but using the cellPress I think
makes more sense. If you have any ideas on a better way of doing this,
please let me know.

Robert

 [EMAIL PROTECTED] 03/02 12:13 PM 
Robert Moss wrote:

 If you use the buttons, the window closes and you can hit search
 again to get a new window, however if you select an item in the
 datagrid the window closes, but you can not select the search button
 again to get a new window, ultimately everything on the main app
 freezes up.

I don't know what's happening, but uses doLater() seems to fix it.

cellPress=doLater(this, 'deletePopUp')

I wonder why you'd want to close the window on cellPress though.

Manish

Yahoo! Groups SponsorADVERTISEMENT

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 cell scrollbars

2005-03-02 Thread Manish Jethani
Robert Brueckmann wrote:
Doesn't exist for DataGridColumn...at least not in the APIs...I tried
applying it to the overall datagrid, but that did nothing. *sigh*
I can't try any code now because my machine's frozen, but here's an 
idea: maybe you could iterate through the columns and set the width of 
the datagrid to be the sum of the widths of its columns? Worth giving a 
shot?

Manish



RE: [flexcoders] flex and mobile devices

2005-03-02 Thread David Mendels
Hi,

This is a key part of our vision over time, but not really an option to do
in production today. The reason is the version requirements of the Flash
player. Flex does require Flash Player 7, but the version most device
manufacturers have is based on earlier versions of the Flash Player.

Over the next year or two you will start to see a dramatic advance in the
version of the Flash player on devices and then it should be quite possible
to deploy Flex apps to devices. So if this is something you need over the
next few year, Flex is a great place to be. If you need it today, you will
need to look at other solutions (such as using the Flash MX 2004 authoring
tool to target FlashLite.)

HTH,
David
Macromedia 

 -Original Message-
 From: Ivan Sergeev [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, March 02, 2005 2:25 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] flex and mobile devices
 
 
 Greetings to all!
 Somebody really tested | worked with Flex on mobile devices?
 If yes - be so kind as inform marks and models
 
 --
 Best regards,
 Ivan mailto:[EMAIL PROTECTED]
 
 
 
 
 Yahoo! Groups Links
 
 
 
 
 
 
 




Would someone from MM please answer this question?

2005-03-02 Thread extensive_systems

After having read the Flex and Flash documentation on Menu and
MenuBar, my already low opinion of these animals and their
documentation has declined further.

Like others, I am unable to get (for example)
menu.setMenuItemEnabled(myInstanceName, false);
to work.

Is this access-via-instanceName simply broken?
How do I get the index number of a nested menu / submenu item?

TIA.

--- In flexcoders@yahoogroups.com, extensive_systems
[EMAIL PROTECTED] wrote:
 
 Perhaps I'm missing something obvious...
 
 Given a MenuBar defined by this XML:
 
 menuitem
 menuitem label=A
 menuitem label=AA
 menuitem label=AA1 instanceName=inAA1/
 /menuitem
 /menuitem
 /menuitem
 
 How can I zero in and operate on an arbitrary menu item (like that
 with instanceName inAA1), e.g., to enable or disable it?
 
 And is the 'instanceName' attribute useful for anything other than
 discrimination in a switch statement in a menu's event handler?







Re: flex and mobile devices

2005-03-02 Thread hughstevens

David

I wonder if you could be more helpful. We wish to develop Flex 
applications for PDAs running Windows CE

Our timeframe is the next 6 months. Will FP7 be available for these 
devices? If not I will have to think of alternative methods

Some indication would be most welcome

Regards

Hugh Stevens



  David Mendels wrote:
  
   Hi,
  
   This is a key part of our vision over time, but not really 
  an option 
   to do in production today. The reason is the version 
  requirements of 
   the Flash player. Flex does require Flash Player 7, but 
  the version 
   most device manufacturers have is based on earlier versions 
  of the Flash Player.
  
   Over the next year or two you will start to see a dramatic 
  advance in 
   the version of the Flash player on devices and then it 
  should be quite 
   possible to deploy Flex apps to devices. So if this is 
  something you 
   need over the next few year, Flex is a great place to be. 
  If you need 
   it today, you will need to look at other solutions (such as 
  using the 
   Flash MX 2004 authoring tool to target FlashLite.)
  
   HTH,
   David
   Macromedia







Re: Flex + Java Classes (as RemoteObjects) Config Qu estion

2005-03-02 Thread temporal_illusion

I've been fighting with this for the past few days as well and 
eventually came to the conclusion that it was the CF install on the 
same JRun that was causing the issue, so I figured it must have 
something to do with the classpath changes. Thanks for the great 
post about this!

I agree, a technote from Macromedia would be great.

This also seems to be the reason I was getting odd errors when trying 
to embed fonts in my flex apps. It would never work but when I went 
to a Flex install without CF to try to resolve the remote object 
problems my font embedding problems vanished as well.

--- In flexcoders@yahoogroups.com, Spike [EMAIL PROTECTED] wrote:
 Thanks for the update Peter.
 
 The specific config setting that causes the problem is adding 
verity 
 support, so if you don't need that you should be fine. The question 
is 
 whether there is a standard way to set it up so that you can have 
both 
 CFMX with verity and Flex running at the same time.
 
 The relevant docs here: 
 http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/instal17.htm
 
 My guess that the solution would be one of:
 
 * Move the verity files elsewhere and change the JVM config path to 
 point to the new location.
 * Remove flashgateway.jar from the cfusion/lib directory of any 
CFMX 
 server instances and reconfigure the web.xml if necessary so that 
it 
 uses the one in JRun/lib.
 * Modify the classloader settings so that the classpath setting for 
each 
 CFMX server instance doesn't affect the whole server.
 
 Rather than playing around to figure out which (if any) of those 
options 
 would work, it would be nice if we could get official confirmation 
from 
 Macromedia, or a link to a technote that answers this. I have a 
feeling 
 that I have seen a technote along those lines, but it was a long 
time 
 ago and I can't find it now.
 
 Spike








htmlText property doesn't support table tag?

2005-03-02 Thread Pilby



I have a 
mx:Text control where i'm equating its htmlText property with a 
full-fledged html document. The results didn't come out too well. I'd like to 
say it doesn't support the table tag, but in the final rendering, it 
seems that boldfaced and italicized text are coming out right, and I don't see 
table tags in the result either. So it seems to me that Flex was able to 
parse the table tags but just didn't render it right. All formatting 
expected from the use of table didn't seem evident to 
me.

I just wanted to get 
something official from the Flex community. So the htmlText attribute of the 
mx:Text does not handle table tags?

Thanks.



Integrating with Python

2005-03-02 Thread dunwerkin
Can anyone point me towards an example integrating Flex with Python? I
have existing Python classes, etc that I hope to reuse so that I can
feed in a data structure coming from a Flex front end and get back a
new data structure to send to Flex for visualization. I'm not sure if
I need to dive into learning how Jython works, or if there is a
simpler way I'm missing. If the Jython route is recommended, any
links would be great.

If it matters, my development version of Flex is currently running on
JRun integrated, but I'm considering switching it to Tomcat. The
server runs Apache 2, with PHP 4.3, and Python2.4 works fine for CGI
stuff.




Getting mouse coordinates at a drop operation

2005-03-02 Thread Pilby



How can Iget the 
mouse xy-coordinates? I'm trying to drop an object into a Canvas, and I'd like 
the object to position itself where it is dropped, and I can't do that unless I 
knew what the mouse xy-coordinatse are at the time.

Thanks.



How do I get references to children of a container?

2005-03-02 Thread Pilby



If I had a 
mx:Canvas id="cvs" which had 3 buttons, how can I access references to 
these 3 buttons programmatically?

I have tried 
:

for (var p in 
cvs)
 alert(p);

But I seeno 
property I can use to iterate through the children, nor do I see the "id" of 
these 3 buttons.

Thanks.



Re: [flexcoders] Integrating with Python

2005-03-02 Thread dave buhler
http://www.jonasgalvez.com/blog/
http://blog.klaustrofobik.org/

Tanja and Jonas work with AS and Python applications.


On Wed, 2 Mar 2005 15:26:41 -0500, dunwerkin [EMAIL PROTECTED] wrote:
 
 Can anyone point me towards an example integrating Flex with Python? I
 have existing Python classes, etc that I hope to reuse so that I can
 feed in a data structure coming from a Flex front end and get back a
 new data structure to send to Flex for visualization. I'm not sure if
 I need to dive into learning how Jython works, or if there is a
 simpler way I'm missing. If the Jython route is recommended, any
 links would be great.
 
 If it matters, my development version of Flex is currently running on
 JRun integrated, but I'm considering switching it to Tomcat. The
 server runs Apache 2, with PHP 4.3, and Python2.4 works fine for CGI
 stuff.
 
 
 Yahoo! Groups Links
 
 
 
 





RE: [flexcoders] How do I get references to children of a container?

2005-03-02 Thread Robert Brueckmann







You give each button its own id
attribute and you can directly access that button by its idyou
dont have to reference the parent id first.





Robert L. Brueckmann

Web Developer

Merlin Securities,LLC


Re: [flexcoders] How do I get references to children of a container?

2005-03-02 Thread Manish Jethani
Pilby wrote:
If I had a mx:Canvas id=cvs which had 3 buttons, how can I access 
references to these 3 buttons programmatically?
for (var i:Number = 0; i  cvs.numChildren; i++)
{
var child = cvs.getChildAt(i);
}
Manish



Re: [flexcoders] Getting mouse coordinates at a drop operation

2005-03-02 Thread Manish Jethani
Pilby wrote:
How can I get the mouse xy-coordinates? I'm trying to drop an object 
into a Canvas, and I'd like the object to position itself where it is 
dropped, and I can't do that unless I knew what the mouse xy-coordinatse 
are at the time.
See the 'mouseX' and 'mouseY' properties. You might have to convert 
from global co-ordinates to local co-ordinates using globalToLocal()

Manish



Flex Samples on CFMX Jrun

2005-03-02 Thread Jeff Chastain


I went through the following Macromedia TechNote trying to get the
Flex samples to run on the CFMX JRun server.

http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_19258

First, I could not figure out the web path to the samples directory. 
I ended up making a IIS virtual directory that points to: 

C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\samples

This might be causing my problem, but when I attempt to browse and of
the sample apps, I am getting a pop-up message saying:

HTTPService Fault: Not Found

Being that I am brand new to Flex, I have no idea what this means.

Anybody got any suggestions?

Thanks
-- Jeff







Re: Interesting Loader/DividedBox behavior

2005-03-02 Thread lm7e

Perfect! Thank you so much! Works like a charm!

Cheers,
Lawrence

--- In flexcoders@yahoogroups.com, Manish Jethani 
[EMAIL PROTECTED] wrote:
 lm7e wrote:
 
  I have seen is that a subsystem app I have written contains a 
  DividedBox and when it is loaded, the cursor does not show the 
  proper move indicator (-| |-) that it should when hovering 
over 
  the divider; the cursor disappears. If I open the subsystem app 
  separately, the behavior is correct. Any ideas??? Workarounds??? 
You 
 
 I think it's because it looks for the cursor asset in the main 
SWF. You 
 could force the cursor to be included by having a HDividedBox in 
your 
 main app.
 
 ?xml version=1.0?
 mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
 mx:HDividedBox width=0 height=0 /
 !-- subapp contains HDividedBox whose
 resize handle is now showing --
 mx:Loader source=subapp.swf /
 /mx:Application
 
 You could also embed the asset directly using the [Embed] 
directive.
 
 Manish







Re: Cannot retrieve tree items properties

2005-03-02 Thread dustin_speer

Try tree.selectedItem.attributes.id or 
tree.selectedItem.attributes.data or 
tree.selectedItem.attributes.label.

--- In flexcoders@yahoogroups.com, jivankohinoor [EMAIL PROTECTED] 
wrote:
 
 I have a strange problem with the tree component.
 I fill the tree with live http XML, it works fine, I am even able to
 modify item icons. 
 BUT, I cannot retrieve the selected object, when I dump the 
property :
 tree.selectedItem into a TextArea field, I get the XML code for 
this
 node :
 object id=60 label=Anomalies-New icon=icon1 /
 And, if I try to retrieve a property : tree.selectedItem.id, the
 result is undefined
 I have the same problem whatever the resultType of the httpService 
is,
 xml or object.
 BUT, with object, I also get an extra root node, and my icons are no
 more displayed
 I also tried to load an XML URL directly, instead of getting it 
from a
 servlet, it never works.
 
 How does Flex manage equivalence XML/objects ? I thought that XML 
data
 was converted to AS objects, or am I wrong ?
 Thanks for helping







Re[2]: [flexcoders] flex and mobile devices

2005-03-02 Thread Ivan Sergeev
Hi David
Your answer has afflicted me but what to do, if the truth is those.
Because of inaccessibility flex on mobile devices I lose the client.
And still I hope, that technologies will develop faster,
than the terms specified by you.
Flex in my heart :-)

Thanks.
-- 
Best regards,
Ivan mailto:[EMAIL PROTECTED]





Web Service Authentication

2005-03-02 Thread billheit

I have a .NET web service that allows access to various levels of 
resources (data) depending on what user logs into IIS using Basic 
authentication.

In my Flex application, which is not running on the same server as 
my web service, I would like to have the user login with a user name 
and password. Then pass these credentials along to the .NET web 
service. I don't care if the flex app itself is secure; it is only 
the web service that has sensitive data.

I have tried to use named HttpService and assign the user's 
credentials using the setUsernamePassword method but it doesn't seem 
to work after the first use. Once the proxy connects to the web 
service, it seems to keep the same connection credentials.

Does anyone know of a better way to pass along the user's 
credentials? Or does anyone have a better idea on how to do this?

Thanks,

Bill








Re: [flexcoders] Cairngorm or ARP

2005-03-02 Thread Aral Balkan
Hi Leo,
The best way to find out is probably to use both of them and see which 
works better for you! :) You will find that they are very similar in some 
respects and quite different in others.

I've sent you over a preview of the upcoming ARP release and its Flex 
sample application offlist. I'd be interested in hearing your feedback -- 
please feel free to send it directly to me or to the ARP mailing list (you 
can sign up from http://ariaware.com/mailman/listinfo/arp_ariaware.com).

All the best,
Aral
--
Aral Balkan
Managing Director, Ariaware
http://ariaware.com
On Wed, 2 Mar 2005 10:44:01 -0500, Leo [EMAIL PROTECTED] wrote:
Hi ellite coders
In a past thread someone posted a message with a link to the ARP
platform for Flex.
I'd like to know if somebody has worked with this platform and if so,
what are the advantages and/or disadvantages.
My question is because i only knew Cairngorm framework and i think
it's great, but always is better to know other technoligies
regards




Re: Cannot retrieve tree items properties

2005-03-02 Thread jivankohinoor

It works, much thanks for your help
BUT, I saw many examples using my first syntax, I have Flex 1.5, what
did I miss ?

--- In flexcoders@yahoogroups.com, dustin_speer [EMAIL PROTECTED] wrote:
 
 Try tree.selectedItem.attributes.id or 
 tree.selectedItem.attributes.data or 
 tree.selectedItem.attributes.label.
 
 --- In flexcoders@yahoogroups.com, jivankohinoor [EMAIL PROTECTED] 
 wrote:
  
  I have a strange problem with the tree component.
  I fill the tree with live http XML, it works fine, I am even able to
  modify item icons. 
  BUT, I cannot retrieve the selected object, when I dump the 
 property :
  tree.selectedItem into a TextArea field, I get the XML code for 
 this
  node :
  object id=60 label=Anomalies-New icon=icon1 /
  And, if I try to retrieve a property : tree.selectedItem.id, the
  result is undefined
  I have the same problem whatever the resultType of the httpService 
 is,
  xml or object.
  BUT, with object, I also get an extra root node, and my icons are no
  more displayed
  I also tried to load an XML URL directly, instead of getting it 
 from a
  servlet, it never works.
  
  How does Flex manage equivalence XML/objects ? I thought that XML 
 data
  was converted to AS objects, or am I wrong ?
  Thanks for helping