Re: [flexcoders] Re: Caringorm vs PureMVC

2010-01-11 Thread Julian Alexander
Honestly, nobody can really answer the question of which one is better, as they 
all are built to server a purpose.  As you are going to have to live and 
breathe whichever framework you choose, you really should research them 
yourself and try it out, then you'll know which one you prefer and which one 
works best with your specific project.

-Julian





From: Wally Kolcz wko...@isavepets.com
To: flexcoders@yahoogroups.com
Sent: Mon, January 11, 2010 9:08:19 AM
Subject: re: [flexcoders] Re: Caringorm vs PureMVC

   
I, too, am using Mate. The best part is the lower learning curve and the fact 
that it is completely independent of your code. I use it in all my projects.

Since there is NO Mate code in your Model, Managers, or Views, you can pop the 
framework off at any time and the application will still run. (you just have to 
handle to events). 

Even though I haven't used it, Swiz also has that reputation. Both have been 
referred to as 2nd generation Flex frameworks (verses Caringorm and PureMVC.





 From: gers32 c...@kitry.fr
Sent: Monday, January 11, 2010 2:32 AM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] Re: Caringorm vs PureMVC

  
Hi Patricia,

I spent a couple days investigating the various Flex frameworks and finally 
came to the conclusion that Mate was best for me. The big Plus is that it 
doesn't interfere with your Flex code.

Among my numerous findings, the following two are pretty good:

http://www.insideri a.com/2009/ 01/frameworkques t-2008-part- 6-the.html
http://www.adobe. com/devnet/ flex/articles/ flex_framework. html

Cheers,

Chris.


 


  

Re: [flexcoders] Network Topology Diagrams

2009-12-29 Thread Julian Alexander
Check out KapLabs diagrammer - that I think would be your best bet.

-Julian





From: vin.flex vin.f...@yahoo.com
To: flexcoders@yahoogroups.com
Sent: Tue, December 29, 2009 12:59:09 PM
Subject: [flexcoders] Network Topology Diagrams

   

Hi,

I got  a requiremnt to display newtwork diagrmas. These diagrams should be 
created dynamically by loading data from the database. 

I have looked into some 3rd party frameworks like, ILOG Elixir, y files etc, 
but none of them was giving me a solution. 

Any bidy cna suggest how to implemnt this. 

thanks
vin 


 


  

Re: [flexcoders] IE6 + SSL + Flex

2009-12-28 Thread Julian Alexander
Dear Venkat, 

Thanks for the direction, but unfortunately that just made it worse. Any other 
ideas?

-Julian





From: venkateswarlu naidu contactve...@yahoo.co.in
To: flexcoders@yahoogroups.com
Sent: Sat, December 26, 2009 10:43:39 PM
Subject: Re: [flexcoders] IE6 + SSL + Flex

   
If your SWF is not loading in IE6 + SSL + Flex combination, then try setting 
http-proxy-caching-of-cookiesin app server configuration file (like 
weblogic.xml)

 Thanks  Regards,Venkat.





From: wb...@ymail. com wb...@ymail. com
To: flexcod...@yahoogro ups.com
Sent: Sat, 26 December, 2009 7:54:57 PM
Subject: [flexcoders] IE6 + SSL + Flex

  
Dear All,

Having a bit of a rough time over here with getting IE6 + flex + ssl to play 
nicely together.

Everything works except that after the app has loaded once, if you go to a 
different URL and then go back it fails on loading, and unfortunately in my 
case this is a common scenario. 

If anyone is knowledgeable about this PLEASE (UL) let me know as I've been 
banging my head against the wall on this one for weeks on and off and now I 
have a bit of a deadline to meet and this is the primary stop.

Thanks in advance,
Julian



 The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. 
 


  

Re: [flexcoders] IE6 + SSL + Flex

2009-12-28 Thread Julian Alexander
Dear Guy,

While I generally see you're point, there are a few flaws in what you're saying:

1. Try saying that to a corporate executive who is expecting your software to 
work in his existing infrastructure and see how far you get.
2. It is a problem in all version of IE anyway, so if you used the garbage 
known as IE 8 you'd still be in the same boat.
3. It's solved anyway by hacking the hell out of the headers when it's IE 6 :) 
(will be posted somewhere online once I've got the solution 100%).

-Julian





From: Guy Morton g...@alchemy.com.au
To: flexcoders@yahoogroups.com
Sent: Mon, December 28, 2009 5:03:44 PM
Subject: Re: [flexcoders] IE6 + SSL + Flex

   
Yes. Drop support for IE6. It has very little market share these days and is 
about the worst browser out there.

Use a little browser detection javascript to tell users of IE6 it's time to 
update to something that isn't so crappy. Firefox, Google Chrome and Safari are 
all far better browsers than any version of IE.

If developers stopped tying themselves in knots trying to work around all IE's 
faults and instead encouraged everyone to install one of the aforementioned 
browsers we'd soon see many of these sorts of problems go away and we could 
concentrate instead on actually developing content. 


Guy



On 29/12/2009, at 2:37 AM, Julian Alexander wrote:




  

 


Dear Venkat, 

Thanks for the direction, but unfortunately that just made it worse. Any other 
ideas?

-Julian





From: venkateswarlu naidu contactvenku@ yahoo.co. in
To: flexcoders@yahoogroups.com
Sent: Sat, December 26, 2009 10:43:39 PM
Subject: Re: [flexcoders] IE6 + SSL +
 Flex

  

 


If your SWF is not loading in IE6 + SSL + Flex combination, then try setting 
http-proxy-caching-of-cookiesin app server configuration file (like 
weblogic.xml)

 Thanks  Regards,Venkat.






From: wb...@ymail. com wb...@ymail. com
To: flexcod...@yahoogro ups.com
Sent: Sat, 26 December, 2009 7:54:57 PM
Subject: [flexcoders] IE6 + SSL + Flex

  

 
Dear All,

Having a bit of a rough time over here with getting IE6 + flex + ssl to play 
nicely together.

Everything works except that after the app has loaded once, if you go to a 
different URL and then go back it fails on loading, and unfortunately in my 
case this is a common scenario. 

If anyone is knowledgeable about this PLEASE (UL) let me know as I've been 
banging my head against the wall on this one for weeks on and off and now I 
have a bit of a deadline to meet and this is the primary stop.

Thanks in advance,
Julian



 The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.

 




 


  

Re: [flexcoders] array count?

2009-12-11 Thread Julian Alexander
myArray.length

-J





From: tex_learning_flex tex.learning.f...@gmail.com
To: flexcoders@yahoogroups.com
Sent: Fri, December 11, 2009 9:46:17 PM
Subject: [flexcoders] array count?

   
how do I best count items in an array?

thanks,

Tex


 


  

Re: [flexcoders] MAC : TextInput focus

2009-11-24 Thread Julian Alexander
I ran into this same issue but with every browser - however it may be different 
for you.  Either way, the handling is simple:

First, the problem is that the SWF file within the browser doesn't have the 
focus.  Within the app your text field has focus, but you'll notice that you 
won't get any keyboard events or anything until you do a fix.

The simplicity of it is that you need to use a bit of javascript to set the 
focus to the swf on page load.  To do this, you modify the index.template.html 
file to have the following javascript function:

 function focusFlash ()
 {
document.getElementById('${application}').focus()
 }

Now you can call that via ExternalInterface.call('focusFlash') on 
CreationComplete or whichever event makes the most sense.

This will then set the focus to the SWF and shld resolve that issue.

ML,
Julian






From: suman gayakwad srgayak...@gmail.com
To: flexcoders@yahoogroups.com
Sent: Tue, November 24, 2009 12:13:50 AM
Subject: Re: [flexcoders] MAC : TextInput focus

   
Hi Julian, 
 
 The screen looks to have focus on the login page and the textinput seems to 
have focus(i mean blue border surrouding the text input field) but the focus is 
not set inside text input field.On clicking(Mouse click ) somewhere within the 
application, the focus is set in the text input field.This happens only in 
Safari Browser. 
 
 
Thanks,
Suman 
 
 
 
 
__._,_..___
Reply to sender | Reply to group Messages in this topic (3) 
Recent Activity:* New Members 27   
Visit Your Group Start a New Topic 
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat..com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
MARKETPLACE
Going Green: Your Yahoo! Groups resource for green living
 
Switch to: Text-Only, Daily Digest • Unsubscribe • Terms of Use
. 

 


  

Re: [flexcoders] byteStream to .txt file

2009-11-24 Thread Julian Alexander


Check out the FileReference class. It has a download() method that can be 
passed a URLRequest.

-Julian




From: Matthew fume...@yahoo.com
To: flexcoders@yahoogroups.com
Sent: Tue, November 24, 2009 9:30:14 AM
Subject: [flexcoders] byteStream to .txt file

   
Hi - 

I'm working with a Java developer and trying to figure out how to download 
files off a server. Because the server doesn't accept HTTP requests (only FTP), 
I can't link to the file. 

The Java developer wants to send the file to me as a byteStream. Is this 
possible? How do I transform that to a .txt file? Is there a better solution? 

Thanks for any tips. 

Matt


 


  

Re: [flexcoders] Re: byteStream to .txt file

2009-11-24 Thread Julian Alexander
How are you even getting the byte stream if it's over FTP?





From: Matthew fume...@yahoo.com
To: flexcoders@yahoogroups.com
Sent: Tue, November 24, 2009 10:21:15 AM
Subject: [flexcoders] Re: byteStream to .txt file

   
I didn't realize I could plug in an FTP address into URLRequest. 

Regardless, I just found out he have write access but not read access on that 
server. 

Anyway, I think I can use the byteArray class to read a byte stream but is 
there some type of library for creating a TXT file out of that? 

Thanks for your help.

Matt

--- In flexcod...@yahoogro ups.com, Julian Alexander wb...@... wrote:

 
 
 Check out the FileReference class. It has a download() method that can be 
 passed a URLRequest.
 
 -Julian
 
 
 
  _ _ __
 From: Matthew fume...@... 
 To: flexcod...@yahoogro ups.com
 Sent: Tue, November 24, 2009 9:30:14 AM
 Subject: [flexcoders] byteStream to .txt file
 
 
 Hi - 
 
 I'm working with a Java developer and trying to figure out how to download 
 files off a server. Because the server doesn't accept HTTP requests (only 
 FTP), I can't link to the file. 
 
 The Java developer wants to send the file to me as a byteStream. Is this 
 possible? How do I transform that to a .txt file? Is there a better solution? 
 
 Thanks for any tips. 
 
 Matt



 


  

Re: [flexcoders] Re: byteStream to .txt file

2009-11-24 Thread Julian Alexander
I think it is possible to download via FTP in flex:

http://projects.maliboo.pl/FlexFTP/

and I'm pretty sure that there's no conversion needed to get it back to a text 
file or anything.  I haven't done any downloading via FTP but I've had a Java 
client stream me files plenty of times and it comes out the other end as the 
file.

-J




From: Matthew fume...@yahoo.com
To: flexcoders@yahoogroups.com
Sent: Tue, November 24, 2009 12:34:48 PM
Subject: [flexcoders] Re: byteStream to .txt file

   
I haven't hooked up the byteArray object yet so I don't even know if it could 
work with an FTP server. I'm guessing from your response that the answer is no, 
it wouldn't work. 

--- In flexcod...@yahoogro ups.com, Julian Alexander wb...@... wrote:

 How are you even getting the byte stream if it's over FTP?
 
 
 
 
  _ _ __
 From: Matthew fume...@ 
 To: flexcod...@yahoogro ups.com
 Sent: Tue, November 24, 2009 10:21:15 AM
 Subject: [flexcoders] Re: byteStream to .txt file
 
 
 I didn't realize I could plug in an FTP address into URLRequest. 
 
 Regardless, I just found out he have write access but not read access on that 
 server. 
 
 Anyway, I think I can use the byteArray class to read a byte stream but is 
 there some type of library for creating a TXT file out of that? 
 
 Thanks for your help.
 
 Matt
 
 --- In flexcod...@yahoogro ups.com, Julian Alexander wb2nd@ wrote:
 
  
  
  Check out the FileReference class. It has a download() method that can be 
  passed a URLRequest.
  
  -Julian
  
  
  
   _ _ __
  From: Matthew fumeng5@ 
  To: flexcod...@yahoogro ups.com
  Sent: Tue, November 24, 2009 9:30:14 AM
  Subject: [flexcoders] byteStream to .txt file
  
  
  Hi - 
  
  I'm working with a Java developer and trying to figure out how to download 
  files off a server. Because the server doesn't accept HTTP requests (only 
  FTP), I can't link to the file. 
  
  The Java developer wants to send the file to me as a byteStream. Is this 
  possible? How do I transform that to a .txt file? Is there a better 
  solution? 
  
  Thanks for any tips. 
  
  Matt
 



__._,_..___
Reply to sender | Reply to group Messages in this topic (5) 
Recent Activity:* New Members 28   
Visit Your Group Start a New Topic 
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat..com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
MARKETPLACE
Mom Power: Discover the community of moms doing more for their families, for 
the world and for each other 
 
Switch to: Text-Only, Daily Digest • Unsubscribe • Terms of Use
. 

 


  

Re: [flexcoders] MAC : TextInput focus

2009-11-24 Thread Julian Alexander
The other thing is callLater().  I've found also that in some cases the focus 
only gets partially set when other things are still being initialized.  Try 
calling callLater(myComp.setFocus); after creationComplete.

-J





From: suman gayakwad srgayak...@gmail.com
To: flexcoders@yahoogroups.com
Sent: Tue, November 24, 2009 11:12:33 AM
Subject: Re: [flexcoders] MAC : TextInput focus

   
Hi Julian, 
I did that and the focus seems to be  in loaded SWF but it wont set the focus 
in textinput field embedded in the swf :( .  This happens only in safari 
browser. 
 
Thanks,
Suman
 


  

Re: [flexcoders] MAC : TextInput focus

2009-11-23 Thread Julian Alexander
Does the screen look like it has focus but when you type it doesn't actually go 
there?



From: Suman srgayak...@gmail.com
To: flexcoders@yahoogroups.com
Sent: Mon, November 23, 2009 11:37:49 AM
Subject: [flexcoders] MAC : TextInput focus

   
Hi, 

In our application, i am trying to set the focus on the login page which has 
got textinput field. This works fine in IE as well as Firefox but fails in Mac 
browser.  Any pointers on how to set the focus on the textinput field in Mac 
browser? 

Thanks,
Suman


 


  

Re: [flexcoders] Syntax Question

2009-11-21 Thread Julian Alexander
Dan,

The problem (I assume) is that the object you're getitng back isn't XML.  I was 
using that as an example, but when you use the as operator if the object 
isn't that type it will always return null.

What is your data provider?  Is it an array of objects? XML? It all depends on 
what you're doing.  Either way, it's based on a list.  Getting the selected 
item will give you a generic object that you need to cast to whichever data 
type (actually, you don't have to but it's nicer) at which point you have all 
of the properties accessible and you can grab the same property that the first 
column is bound to.

-Julian





From: Dan Pride danielpr...@yahoo.com
To: flexcoders@yahoogroups.com
Sent: Sat, November 21, 2009 7:42:28 AM
Subject: Re: [flexcoders] Syntax Question

   
Julian... Apparently you are wrong?

When I do it with an untyped var I get an object with an XMLList for each grid 
column
   var squat = dataGrid.selectedIt em;

This
var myValue:XML = dataGrid.selectedIt em as XML;
returns null for myValue

Why is it such Rocket Science to get the first value in a column?
Very frustrating for something that should be so simple.

Thanks for the help
Dan

--- On Fri, 11/20/09, Julian Alexander wb...@ymail. com wrote:


From: Julian Alexander wb...@ymail. com
Subject: Re: [flexcoders] Syntax Question
To: flexcod...@yahoogro ups.com
Date: Friday, November 20, 2009, 10:53 PM






  

 
  
 
You can't access the value from the column name - getting the selected value 
will give you the entire row that the datagrid is displaying from which you 
can get the value you're looking for.  In other words, if you have an XMLList 
as your dataProvider, you can do something like:

var myValue:XML = dataGrid.selectedIt em as XML;
var myName:String = myval...@name.

Make sense?

-Julian





From: Dan Pride
 danielpride@ yahoo.com
To: flexcod...@yahoogro ups.com
Sent: Fri, November 20, 2009 9:43:33 PM
Subject: [flexcoders] Syntax Question

  

 
  
 
On Creation complete I am filling a datagrid and I want to select the first 
value listed from the Name Column (NameCol)

What is the syntax?
dataGrid.selectedIn dex = 0;
Value = dataGrid.selectedIt em.NameCol;

Does not work. why not?

Thanks
Dan


 

 


  

Re: [flexcoders] Syntax Question

2009-11-21 Thread Julian Alexander
Why the heck do you need to re-cast as an XMLListCollection?

This is a actually really simple...

var squat:XML = XML(squaresGrid.selectedItem);
var myValue:String = squ...@myproperty OR squat.myProperty (depending on if 
it's a node or attribute)

It does work. I've done it hundreds of times.  Don't know what you're doing 
wrong...

-Julian





From: Dan Pride danielpr...@yahoo..com
To: flexcoders@yahoogroups.com
Sent: Sat, November 21, 2009 11:43:34 AM
Subject: Re: [flexcoders] Syntax Question

   
Thanks for the response.
Its an ArrayCollection of XML objects.

var squat:XMLList = squaresGrid. selectedItem. NameCol;
will trace as an XML List but I can not seem to get the list
to then recast as an XMLListCollection so I can get at it.
   
Thanks
Dan

--- On Sat, 11/21/09, Julian Alexander wb...@ymail. com wrote:


From: Julian Alexander wb...@ymail.. com
Subject: Re: [flexcoders] Syntax Question
To: flexcod...@yahoogro ups.com
Date: Saturday, November 21, 2009, 11:14 AM






  

 
  
 
Dan,

The problem (I assume) is that the object you're getitng back isn't XML.  I 
was using that as an example, but when you use the as operator if the object 
isn't that type it will always return null.

What is your data provider?  Is it an array of objects? XML? It all depends on 
what you're doing.  Either way, it's based on a list.  Getting the selected 
item will give you a generic object that you need to cast to whichever data 
type (actually, you don't have to but it's nicer) at which point you have all 
of the properties accessible and you can grab the same property that the first 
column is bound to.

-Julian





From: Dan Pride danielpride@ yahoo.com
To: flexcod...@yahoogro ups.com
Sent: Sat, November 21, 2009 7:42:28 AM
Subject: Re: [flexcoders] Syntax Question

  

 
  
 
Julian... Apparently you are wrong?

When I do it with an untyped var I get an object with an XMLList for each grid 
column
   var squat = dataGrid.selectedIt em;

This
var myValue:XML = dataGrid.selectedIt em as XML;
returns null for myValue

Why is it such Rocket Science to get the first value in a column?
Very frustrating for something that should be so simple.

Thanks for the help
Dan

--- On Fri, 11/20/09, Julian Alexander wb...@ymail. com wrote:


From: Julian Alexander wb...@ymail. com
Subject: Re:
 [flexcoders] Syntax Question
To: flexcod...@yahoogro ups.com
Date: Friday, November 20, 2009, 10:53 PM






  

 
  
 
You can't access the value from the column name - getting the selected value 
will give you the entire row that the datagrid is displaying from which you 
can get the value you're looking for.  In other words, if you have an XMLList 
as your dataProvider, you can do something like:

var myValue:XML = dataGrid.selectedIt em as XML;
var myName:String = myval...@name.

Make sense?

-Julian





From: Dan Pride
 danielpride@ yahoo.com
To: flexcod...@yahoogro ups.com
Sent: Fri, November 20, 2009 9:43:33 PM
Subject: [flexcoders] Syntax Question

  

 
  
 
On Creation complete I am filling a datagrid and I want to select the first 
value listed from the Name Column (NameCol)

What is the syntax?
dataGrid.selectedIn dex = 0;
Value = dataGrid.selectedIt em.NameCol;

Does not work. why not?

Thanks
Dan


 

 


Reply to sender | Reply to group Messages in this topic (6) 
Recent Activity:* New Members 34   
Visit Your Group Start a New Topic 
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
MARKETPLACE
Parenting Zone: Find useful resources for a happy, healthy family and home
 
Switch to: Text-Only, Daily Digest • Unsubscribe • Terms of Use
. 

__,_.._,___ 


  

Re: [flexcoders] Syntax Question

2009-11-21 Thread Julian Alexander
Alright Dan.. so we're going to solve this.  After this much back-and-forth, 
we've gotta make it work.

So here's the deal:

if you use my statement and squat is just XML, then you're almost there.

It should be something like this

yourObject
nameGZAW08/name
otherPropertyvalue/otherProperty
etc... /
/yourObject

With your variable squat, you can then access a specific property of it by 
saying, for example, squat.name - that will give you the value.  If you want it 
as a string, you can also say squat.name.toString().

Just to clarify earlier, if you had 

yourObject name=GZAW08 etc.../

then you would use squ...@name.

-Julian





From: Dan Pride danielpr...@yahoo.com
To: flexcoders@yahoogroups.com
Sent: Sat, November 21, 2009 4:09:59 PM
Subject: Re: [flexcoders] Syntax Question

   
Yes I would think something this absurdly simple would be a single sentence 
reply which I could cut and paste,... unfortunately not.

This statement with the variable uncast 
var crapola = squaresGrid. selectedItem. NameCol;

returns as follows in the debugger
this
Center (@137ef0a1)
crapolaXMLList (@1ce7c461)
   [0]  XML
 Name
 GZAW08

Your statement
var squat:XML = XML(squaresGrid. selectedItem) ;
returned just XML
Neither of the two options you stated worked.
It is the string GZAW08 which I am trying to return.
I am ready to throw something, sorry to visit this on you.


--- On Sat, 11/21/09, Julian Alexander wb...@ymail. com wrote:


From: Julian Alexander wb...@ymail. com
Subject: Re: [flexcoders] Syntax Question
To: flexcod...@yahoogro ups.com
Date: Saturday, November 21, 2009, 2:08 PM






  

 
  
 
Why the heck do you need to re-cast as an XMLListCollection?

This is a actually really simple...

var squat:XML = XML(squaresGrid. selectedItem) ;
var myValue:String = squ...@myproperty OR squat.myProperty (depending on if 
it's a node or attribute)

It does work. I've done it hundreds of times.  Don't know what you're doing 
wrong...

-Julian





From: Dan Pride danielpride@ yahoo.com
To: flexcod...@yahoogro ups.com
Sent:  Sat, November 21, 2009 11:43:34 AM
Subject: Re: [flexcoders] Syntax Question

  

 
  
 
Thanks for the response.
Its an ArrayCollection of XML objects.

var squat:XMLList = squaresGrid. selectedItem. NameCol;
will trace as an XML List but I can not seem to get the list
to then recast as an XMLListCollection so I can get at it.
   
Thanks
Dan

--- On Sat, 11/21/09, Julian Alexander wb...@ymail. com wrote:


From: Julian Alexander wb...@ymail. com
Subject: Re: [flexcoders] Syntax Question
To: flexcod...@yahoogro ups.com
Date: Saturday, November 21, 2009, 11:14 AM






  

 
  
 
Dan,

The problem (I assume) is that the object you're getitng back isn't XML.  I 
was using that as an example, but when you use the as operator if the 
object isn't that type it will always return null.

What is your data provider?  Is it an array of objects? XML? It all depends 
on what you're doing.  Either way, it's based on a list.  Getting the 
selected item will give you a generic object that you need to cast to 
whichever data type (actually, you don't have to but it's nicer) at which 
point you have all of the properties accessible and you can grab the same 
property that the first column is bound to.

-Julian





From: Dan Pride danielpride@ yahoo.com
To: flexcod...@yahoogro ups.com
Sent: Sat, November 21, 2009 7:42:28 AM
Subject: Re: [flexcoders] Syntax Question

  

 
  
 
Julian... Apparently you are wrong?

When I do it with an untyped var I get an object with an XMLList for each 
grid column
   var squat = dataGrid.selectedIt em;

This
var myValue:XML = dataGrid.selectedIt em as XML;
returns null for myValue

Why is it such Rocket Science to get the first value in a column?
Very frustrating for something that should be so simple.

Thanks for the help
Dan

--- On Fri, 11/20/09, Julian Alexander wb...@ymail. com wrote:


From: Julian Alexander wb...@ymail. com
Subject: Re:
 [flexcoders] Syntax Question
To: flexcod...@yahoogro ups.com
Date: Friday, November 20, 2009, 10:53 PM






  

 
  
 
You can't access the value from the column name - getting the selected value 
will give you the entire row that the datagrid is displaying from which you 
can get the value you're looking for..  In other words, if you have an 
XMLList as your dataProvider, you can do something like:

var myValue:XML = dataGrid.selectedIt em as XML;
var myName:String = myval...@name.

Make sense?

-Julian





From: Dan Pride
 danielpride@ yahoo.com
To: flexcod...@yahoogro ups.com
Sent: Fri, November 20, 2009 9:43:33 PM
Subject: [flexcoders] Syntax Question

  

 
  
 
On Creation complete I am filling a datagrid and I want to select the first 
value listed from the Name Column (NameCol)

What is the syntax

Re: [flexcoders] Extremely large HTTP Requests

2009-11-21 Thread Julian Alexander
Tino - thanks.  

There is a threshold on tomcat that limits the size.  I basically got rid of 
this and it was fine :)

-Julian




From: Tino Dai obe...@gmail.com
To: flexcoders@yahoogroups.com
Sent: Sat, November 21, 2009 2:25:33 PM
Subject: Re: [flexcoders] Extremely large HTTP Requests

   
You might want to start poking around in the Tomcat settings.
http://tomcat. apache.org/ tomcat-5. 5-doc/config/ http.html

-Tino


On Sat, Nov 21, 2009 at 2:16 PM, wb...@ymail. com wb...@ymail. com wrote:















  


 
  
 
Dear All,

I have a little IMAP Client that I wrote, and in the main it works perfectly 
except for when there is a MASSIVE email that I am trying to either reply to 
or anything.

I have one in particular that I'm struggling with, but more could come in as 
I will have about 600 people using the client in the next week or so (I'm 
running a pilot right now of only 12 people or so and I've already run into 
it).

I have a message that, when copied into a text file, is about 750k.  This 
message is one of the HTTP Parameters set, however Tomcat (the backend for 
it) seems to just kill all of the parameters when I send something this big.

Is there a limit to HTTP Request sizes?

If so, is there a way around it?

-Julian




Reply to sender | Reply to group Messages in this topic (2) 
Recent Activity:* New Members 34   
Visit Your Group Start a New Topic 
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
MARKETPLACE
Parenting Zone: Find useful resources for a happy, healthy family and home
 
Switch to: Text-Only, Daily Digest • Unsubscribe • Terms of Use
. 

__,_.._,___ 


  

Re: [flexcoders] Syntax Question

2009-11-21 Thread Julian Alexander
Can you somehow send me your code?  This is agitating.

Value Objects are abt 100x better anyway tho...

-Julian





From: Dan Pride danielpr...@yahoo.com
To: flexcoders@yahoogroups.com
Sent: Sat, November 21, 2009 5:14:59 PM
Subject: Re: [flexcoders] Syntax Question

   
I tried all that in the first hour. None of it works
I have been resisting it but I think I am just going to rewrite the whole damn 
thing in value objects.
i started this app some time ago leveraging off the auto generated php code for 
a database table. The references have been a pain ever since.
I would truely like to know why nothing anybody has suggested has worked tho.
It really bugs me.
Dan


--- On Sat, 11/21/09, Julian Alexander wb...@ymail. com wrote:


From: Julian Alexander wb...@ymail. com
Subject: Re: [flexcoders] Syntax Question
To: flexcod...@yahoogro ups.com
Date: Saturday, November 21, 2009, 4:53 PM






  

 
  
 
Alright Dan.. so we're going to solve this.  After this much back-and-forth, 
we've gotta make it work.

So here's the deal:

if you use my statement and squat is just XML, then you're almost there.

It should be something like this

yourObject
nameGZAW08/name
otherPropertyvalue/otherProperty
etc... /
/yourObject

With your variable squat, you can then access a specific property of it by 
saying, for example, squat.name - that will give you the value.  If you want 
it as a string, you can also say squat.name.toString ().

Just to clarify earlier, if you had 

yourObject name=GZAW08 etc.../

then you would use squ...@name.

-Julian





From: Dan Pride danielpride@ yahoo.com
To: flexcod...@yahoogro ups.com
Sent: Sat, November 21, 2009 4:09:59 PM
Subject: Re: [flexcoders] Syntax Question

  

 
  
 
Yes I would think something this absurdly simple would be a single sentence 
reply which I could cut and paste,... unfortunately not.

This statement with the variable uncast 
var crapola = squaresGrid. selectedItem. NameCol;

returns as follows in the debugger
this
Center (@137ef0a1)
crapolaXMLList (@1ce7c461)
   [0]  XML
 Name
   
  GZAW08

Your statement
var squat:XML = XML(squaresGrid. selectedItem) ;
returned just XML
Neither of the two options you stated worked.
It is the string
 GZAW08 which I am trying to return.
I am ready to throw something, sorry to visit this on you.


--- On Sat, 11/21/09, Julian Alexander wb...@ymail. com wrote:


From: Julian Alexander wb...@ymail. com
Subject: Re: [flexcoders] Syntax Question
To: flexcod...@yahoogro ups.com
Date: Saturday, November 21, 2009, 2:08 PM






  

 
  
 
Why the heck do you need to re-cast as an XMLListCollection?

This is a actually really simple...

var squat:XML = XML(squaresGrid. selectedItem) ;
var myValue:String = squ...@myproperty OR squat.myProperty (depending on if 
it's a node or attribute)

It does work. I've done it hundreds of times.  Don't know what you're doing 
wrong...

-Julian





From: Dan Pride danielpride@ yahoo.com
To: flexcod...@yahoogro ups.com
Sent:  Sat, November 21, 2009 11:43:34 AM
Subject: Re: [flexcoders] Syntax Question

  

 
  
 
Thanks for the response.
Its an ArrayCollection of XML objects.

var squat:XMLList = squaresGrid. selectedItem. NameCol;
will trace as an XML List but I can not seem to get the list
to then recast as an XMLListCollection so I can get at it.
   
Thanks
Dan

--- On Sat, 11/21/09, Julian Alexander wb...@ymail. com wrote:


From: Julian Alexander wb...@ymail. com
Subject: Re: [flexcoders] Syntax Question
To: flexcod...@yahoogro ups.com
Date: Saturday, November 21, 2009, 11:14 AM






  

 
  
 
Dan,

The problem (I assume) is that the object you're getitng back isn't XML.  I 
was using that as an example, but when you use the as operator if the 
object isn't that type it will always return null.

What is your data provider?  Is it an array of objects? XML? It all depends 
on what you're doing.  Either way, it's based on a list.  Getting the 
selected item will give you a generic object that you need to cast to 
whichever data type (actually, you don't have to but it's nicer) at which 
point you have all of the properties accessible and you can grab the same 
property that the first column is bound to.

-Julian





From: Dan Pride danielpride@ yahoo.com
To: flexcod...@yahoogro ups.com
Sent: Sat, November 21, 2009 7:42:28 AM
Subject: Re: [flexcoders] Syntax Question

  

 
  
 
Julian... Apparently you are wrong?

When I do it with an untyped var I get an object with an XMLList for each 
grid column
   var squat = dataGrid.selectedIt em;

This
var myValue:XML = dataGrid.selectedIt em as XML;
returns null for myValue

Why is it such Rocket Science to get the first value in a column?
Very frustrating for something that should be so simple.

Thanks for the help
Dan

--- On Fri, 11

Re: [flexcoders] Combo box right-anchor

2009-11-20 Thread Julian Alexander
Okay, I actually got a bit distracted and didn't end up working on this for the 
last day or so, however after a brief search I did find the solution in the 
archives, however I implemented it slightly differently (it's along the lines 
of what you were saying, Alex):

private function handleOpen (
aEvent:DropDownEvent
   ):void
{
  var myScreenWidth:Number  = Application(Application.application).width;
  var myCombo:cComboBox= aEvent.currentTarget as cComboBox;
  var myCurrentX:Number= localToGlobal(new Point(this.x, this.y)).x;

  if(myCurrentX + myCombo.dropdown.width - 50)  myScreenWidth) {
  myCombo.dropdown.x = myScreenWidth - myCombo.dropdown.width;
  }
}

This is specifically because I don't really care unless it's at the right edge 
of the screen and will be cut off, so only in that case do I do anything.  
cComboBox is my own extended combo box, and as you can tell the function is 
within it with the listener being added in the constructor.

Thanks for the direction!

-Julian





From: Alex Harui aha...@adobe.com
To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
Sent: Thu, November 19, 2009 1:09:10 AM
Subject: RE: [flexcoders] Combo box right-anchor

   
There is no API for this.  You might find an old discussion of
this problem in the archives.  I think you have to get the dropdown, add an
eventListener for “show” and/or “move” and reposition then.  You may also have
to adjust the scrollRect.
 
Alex Harui
Flex SDK Developer
Adobe
Systems Inc.
Blog: http://blogs. adobe.com/ aharui
 
From:flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On 
Behalf Of Julian
Alexander
Sent: Wednesday, November 18, 2009 6:16 PM
To: flexcod...@yahoogro ups.com
Subject: Re: [flexcoders] Combo box right-anchor
 
  
That's kinda what I'm trying to
do - I've already got it solved where it sets the drop down width dynamically
based on the content of the lookup, however the combo box is on the right side
of the screen and the drop down gets cut off by the right side of the screen,
thus I'm trying to anchor it on the right.

Is there any way to do this?
 


 
From:Alex Harui
aha...@adobe. com
To: flexcod...@yahoogro ups.com flexcod...@yahoogro ups.com
Sent: Wed, November 18, 2009 6:39:23 PM
Subject: RE: [flexcoders] Combo box right-anchor

  
Setting dropDownWidth will make it
wider, but you may not like where it puts the left edge.
 
Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs. adobe.com/
aharui
 
From:flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf
Of wb...@ymail. com
Sent: Wednesday, November 18, 2009 12:19 PM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] Combo box right-anchor
 
  
Dear All,

I am trying to make a combo box with an extended drop down (wider than the
control) anchor to the right. Basically I want

 
 +-+
 
|My Combo_|V|
   -
+
  |___ _ 
|
  |___ _ 
|
  |___ _ 
|

Hopefully my little ascii diagram makes sense...

Does aynyone know how this could be do! ne?
 
 


  

Re: [flexcoders] Syntax Question

2009-11-20 Thread Julian Alexander
You can't access the value from the column name - getting the selected value 
will give you the entire row that the datagrid is displaying from which you can 
get the value you're looking for.  In other words, if you have an XMLList as 
your dataProvider, you can do something like:

var myValue:XML = dataGrid.selectedItem as XML;
var myName:String = myval...@name.

Make sense?

-Julian





From: Dan Pride danielpr...@yahoo.com
To: flexcoders@yahoogroups.com
Sent: Fri, November 20, 2009 9:43:33 PM
Subject: [flexcoders] Syntax Question

   
On Creation complete I am filling a datagrid and I want to select the first 
value listed from the Name Column (NameCol)

What is the syntax?
dataGrid.selectedIn dex = 0;
Value = dataGrid.selectedIt em.NameCol;

Does not work. why not?

Thanks
Dan


__.._,_.___
Reply to sender | Reply to group Messages in this topic (1) 
Recent Activity:* New Members 34   
Visit Your Group Start a New Topic 
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
MARKETPLACE
Mom Power: Discover the community of moms doing more for their families, for 
the world and for each other 
 
Switch to: Text-Only, Daily Digest • Unsubscribe • Terms of Use
. 

 


  

Re: [flexcoders] measureHeightOfItems()

2009-11-18 Thread Julian Alexander
I ended up just hardcoding the heights of the renderers and now it's fine :)

Thanks though!





From: Alex Harui aha...@adobe.com
To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
Sent: Mon, November 16, 2009 5:52:10 PM
Subject: RE: [flexcoders] measureHeightOfItems()

   
The DG will measure the first item in the dataprovider.  If that
isn’t “typical” you can get bad results.  But first, make sure your custom
renderers to accurately measure.  Lots of folks have problems especially if the
renderer has something in it that word-wraps text.
 
I think you can just set rowHeight to a number that is “typical”
and variableRowHeight will still work.
 
Alex Harui
Flex SDK Developer
Adobe
Systems Inc.
Blog: http://blogs. adobe.com/ aharui
 
From:flexcod...@yahoogro ups.com
[mailto:flexcoders@ yahoogroups. com] On Behalf Of wb...@ymail. com
Sent: Monday, November 16, 2009 11:04 AM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] measureHeightOfItem s()
 
  
Dear All,

I have a component that is a composite of a datagrid and an advancedDataGrid -
the datagrid being on top. The top datagrid shows the primary
information, while the bottom grid shows everything grouped (using the grouping
functionality of the AdvancedDataGrid) , however I am having some serious issues
with the sizing of the top grid.

The idea is that it is sized based on the components within it, however it has
the most variables you can possibly get for such a scenario - namely, it has
custom renderers in each case it's used (and it's not the same renderer each
time), variableRowHeight is true - and has to be.

The problem I'm running into is that the measureHeightOfItem s() gives me,
occasionally, grossly inaccurate figures. I get the top grid being twice the
size that it needs to be on occasion.

Does anyone know how to fix this or an alternative method?
 


  

Re: [flexcoders] Combo box right-anchor

2009-11-18 Thread Julian Alexander
That's kinda what I'm trying to do - I've already got it solved where it sets 
the drop down width dynamically based on the content of the lookup, however the 
combo box is on the right side of the screen and the drop down gets cut off by 
the right side of the screen, thus I'm trying to anchor it on the right.

Is there any way to do this?






From: Alex Harui aha...@adobe.com
To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
Sent: Wed, November 18, 2009 6:39:23 PM
Subject: RE: [flexcoders] Combo box right-anchor

   
Setting dropDownWidth will make it wider, but you may not like where
it puts the left edge.
 
Alex Harui
Flex SDK Developer
Adobe
Systems Inc.
Blog: http://blogs. adobe.com/ aharui
 
From:flexcod...@yahoogro ups.com
[mailto:flexcoders@ yahoogroups. com] On Behalf Of wb...@ymail. com
Sent: Wednesday, November 18, 2009 12:19 PM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] Combo box right-anchor
 
  
Dear All,

I am trying to make a combo box with an extended drop down (wider than the
control) anchor to the right. Basically I want

 
 +-+
 
|My Combo_|V|
   - +
  |___ _ 
|
  |___ _ 
|
  |___ _ 
|

Hopefully my little ascii diagram makes sense...

Does aynyone know how this could be do! ne?