[flexcoders] Re: error 2032 Stream Error

2007-05-08 Thread scott_flex

Well, i'm glad i'm not the only one, except that i released my app 
and now it seems every other time or so i get this error...i'm in a 
tight jam right now.

It appears but NOT always, that when call my web service and pass it 
xml, the larger the xml parameter, at some threshold, it throws the 
error more often.  That's just a symptom i've noticed.

Searching the web for the error doesn't turn up to many results.

I possible could have changed something in my code, doubt it but 
possible or something changes on my server but nothing to my 
knowledge.  So it appears to just start happening.  Which normally 
is never true to just all of a sudden start happening.  I'm at a 
loss of where to begin searching for the resolution.

--Scott


--- In flexcoders@yahoogroups.com, bhaq1972 [EMAIL PROTECTED] wrote:

 Your not alone. We have these inconsistent problems as well. 
 
 Its a shame flex doesn't show what the server fault is. would help.
 
 
 
 
 --- In flexcoders@yahoogroups.com, scott_flex skrause@ wrote:
 
  
  I just started getting the 2032 error when calling a web service 
 and 
  for the life of me cannot determine what's causing it.
  
  Code snippet looks like:
  var ws:WebService = new WebService()
  ws.addEventListener(fault, faultHandler); // alerts error 
  ws.loadWSDL(http://mylocalservers/test.asmx?WSDL;);
  ws.updateTest(__xml);
  
  
  Sometimes i get it, and sometimes i don't.  Not sure why though.
  
  faultCode Server.Error.Request
  faultDetail: Error: IOErrorEventtype: ioError
  faultString: HTTP Request error
  
  I getting in production when i'm in an SSL environement and I get 
 it 
  in my development environment where i'm running the flex app and 
 web 
  services all locally.
  
  The url to my web service url is correct and the web services 
runs 
  properly when called and tested from other apps.
  
  What's weird is that i haven't changes how my web service calls 
or 
  web service itself works...
  
  Any help or pointers would be greatly appreciated.
  
  --Scott
 





[flexcoders] Re: error 2032 Stream Error

2007-05-08 Thread scott_flex

And... this is not just an IE thing for me, it's Firefox and 
Netscape, running on Windows xp.

And.. the only time I ever get this message is with a single web 
service call, and it's one where I can potentially pass an xml 
parameter up to 15k. 

This was working in the past, not sure what's different now.

--Scott

--- In flexcoders@yahoogroups.com, scott_flex [EMAIL PROTECTED] wrote:

 
 Well, i'm glad i'm not the only one, except that i released my app 
 and now it seems every other time or so i get this error...i'm in a 
 tight jam right now.
 
 It appears but NOT always, that when call my web service and pass 
it 
 xml, the larger the xml parameter, at some threshold, it throws the 
 error more often.  That's just a symptom i've noticed.
 
 Searching the web for the error doesn't turn up to many results.
 
 I possible could have changed something in my code, doubt it but 
 possible or something changes on my server but nothing to my 
 knowledge.  So it appears to just start happening.  Which 
normally 
 is never true to just all of a sudden start happening.  I'm at a 
 loss of where to begin searching for the resolution.
 
 --Scott
 
 
 --- In flexcoders@yahoogroups.com, bhaq1972 mbhaque@ wrote:
 
  Your not alone. We have these inconsistent problems as well. 
  
  Its a shame flex doesn't show what the server fault is. would 
help.
  
  
  
  
  --- In flexcoders@yahoogroups.com, scott_flex skrause@ wrote:
  
   
   I just started getting the 2032 error when calling a web 
service 
  and 
   for the life of me cannot determine what's causing it.
   
   Code snippet looks like:
   var ws:WebService = new WebService()
   ws.addEventListener(fault, faultHandler); // alerts error

   ws.loadWSDL(http://mylocalservers/test.asmx?WSDL;);
   ws.updateTest(__xml);
   
   
   Sometimes i get it, and sometimes i don't.  Not sure why though.
   
   faultCode Server.Error.Request
   faultDetail: Error: IOErrorEventtype: ioError
   faultString: HTTP Request error
   
   I getting in production when i'm in an SSL environement and I 
get 
  it 
   in my development environment where i'm running the flex app 
and 
  web 
   services all locally.
   
   The url to my web service url is correct and the web services 
 runs 
   properly when called and tested from other apps.
   
   What's weird is that i haven't changes how my web service calls 
 or 
   web service itself works...
   
   Any help or pointers would be greatly appreciated.
   
   --Scott
  
 





[flexcoders] error 2032 Stream Error

2007-05-07 Thread scott_flex

I just started getting the 2032 error when calling a web service and 
for the life of me cannot determine what's causing it.

Code snippet looks like:
var ws:WebService = new WebService()
ws.addEventListener(fault, faultHandler); // alerts error 
ws.loadWSDL(http://mylocalservers/test.asmx?WSDL;);
ws.updateTest(__xml);


Sometimes i get it, and sometimes i don't.  Not sure why though.

faultCode Server.Error.Request
faultDetail: Error: IOErrorEventtype: ioError
faultString: HTTP Request error

I getting in production when i'm in an SSL environement and I get it 
in my development environment where i'm running the flex app and web 
services all locally.

The url to my web service url is correct and the web services runs 
properly when called and tested from other apps.

What's weird is that i haven't changes how my web service calls or 
web service itself works...

Any help or pointers would be greatly appreciated.

--Scott








[flexcoders] Re: RIA: record insert best practices

2007-05-06 Thread scott_flex

I'm no expert in Flex and RIA development but i have implemented 
creating the ID on the client using the createUUID to generate a GUID 
which by all practible means it will be globally unique.

I found this to work well, plus it saves me ALL the hassle of 
generating a temporary ID and then get the real ID back after i post 
the results to the server.

I'm generating many updates and a lot of times i'm updating parent 
child relatinships so if I don't have the real ID ahead of time it 
would be a large amount of work to get the real parent id then go 
through all the children and update the reference key based on the 
temporary key assigned to it on the client... it's even hard to explain 
in a sentance or two.


Some pureist will think it's crazy to generate the key on the client, 
and I partly agree.  But if it works, it works.

You can also setup a method to request a block of unique IDS on from 
the server if you don't want to create it on the client itself.  This 
keeps your ID generation centrally controlled but you still have the 
benefits of knowing your IDs for particular updates before sending them 
to the server.

Some of it also depends on the ID types in your database.  I actually 
am now using GUIDs in a SQL Server database and not using identity 
increment values.  Even though my primary key indexes are a bit more 
fragmented i have not found a performance loss, just a bit larger 
database since i'm storing  a 16bit id value instead of a 4 bit integer 
value.

In my case i'm trying to build rapid applications and i generally have 
oen app and one database so generating IDs on the client is ok in my 
circumstance... maybe not the best for all.

--Scott



--- In flexcoders@yahoogroups.com, arieljake [EMAIL PROTECTED] wrote:

 I am wondering how people like to handle insertion of records in a
 RIAs for records that have a unique number field.
 
 Do people determine the unique id on the client side and create the
 record, or do they do that server side and return the new ID number
 back to the client.
 
 I prefer to do the MAX(id) check on the server in the database within
 a transaction, but I am realizing that doing it that way sort of
 forces me to block user interaction in the RIA until the ID is
 returned lest the user try to do something with that new record that I
 cannot support yet.
 
 Thoughts? Thank you.





[flexcoders] Re: Html Text does NOT print in same format as rendered on scre

2007-05-05 Thread scott_flex

John,

I ended up going a different route.. i'll use this technique in the 
future.  It was a great expirement.  The print quality just wasn't 
good enough.

Anyway, I wrote a recursive routine to find all Text controls, then 
manually reset their heights for printing.  For reasons, unknown to 
me, when you add a couple pixels to the height of Text object, then 
print, ALL lines print.

Each time i found a Text control in my DisplayObject being added to 
the printJob, i determined line count (oddly, no built in lineCount 
property), went through each line and got the lineMetrics and 
calculated a new height, plus added a few pixels to be sure.  I did 
all this between calling my printJob.start() and printJob.send().

Oh, setting my printJob.printAsBitmap to false is also very good for 
quality and they suggest that in the docs if not printing images or 
non-vector stuff... the print quality is crystal clear!

I agree this is a hack... but when there's LITTLE documentation and 
it doesn't work as expected i was under the gun to get something out 
since i released my app... before testing all printing scenarios...

--Scott

Turning off printAsBitmap on the print job seems to condense the text 
a little so if you only have one word on the last line, it's possible 
that it's brought up to the previous line.  This may cause an extra 
blank space when printed, minor issue, but all text prints, the most 
important thing.

I went through several different fonts and sizes and now very rairly, 
a letter gets clipped on the right, i'll figure this out later.



--- In flexcoders@yahoogroups.com, John Robinson [EMAIL PROTECTED] wrote:

 Scott -
 
 I didn't notice the loss of quality when I tested it (quickly)  
 yesterday, but I'm noticing it now that you mentioned it.
 
 I played with it a bit more but the only thing I found that helped 
at  
 all (though still not great) was to set smoothing = true for the  
 Bitmap. It looks better but is now a little fuzzy and on paper 
(cheap  
 inkjet) the text is not as dark as the one without smoothing. I'm  
 wondering if it's possible to overlay the no-smoothing bitmap with 
a  
 transparent background over the smoothed version?
 
 
 John
 
 
 
 On May 3, 2007, at 10:55 PM, scott_flex wrote:
 
 
  Thanks for the example John! However, when you printed your output
  to PDF did you lose a lot of text quality? Printing the 
image/bitmap
  i lose a lot of quality on the printout, font is real jagged.
 
  The bitmap image created from my source panel is very clear on. I
  assume this is because the flash player is not printing it
  intellegently as a font but rather an image.
 
  Even so though... the bitmap image is pretty darn close to the 
real
  dimensions of the printed page, based on 72pixel per inch.. Would
  think i would lose that much qualtily.
 
  --Scott
 
  --- In flexcoders@yahoogroups.com, John Robinson jrobinso@ 
wrote:
  
   Scott -
  
   I thought the same thing (use Bitmap/BitmapData). Quick example:
  
  
   ?xml version=1.0 encoding=utf-8?
   mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
   creationComplete=init() 
  
   mx:Script
   ![CDATA[
  
   import flash.display.*;
   import flash.printing.*;
   import flash.events.*;
  
   public function init():void {
   var i:Number = 100;
   while(i0) {
   my_text.htmlText += brBob is cool
  as hell. I love bob. font
   face=\Cochin\ color=\#33\byay!/b/fontbob! bob!;
   i--;
   }
   }
  
   public function onClick():void {
  
   var bd:BitmapData = new BitmapData
  (my_panel.width,
   my_panel.height, false);
   var b:Bitmap = new Bitmap(bd);
   my_image.source = b;
   bd.draw(my_text);
  
   var pj:PrintJob = new PrintJob();
   pj.start();
   pj.addPage(my_text as Sprite);// page 1,
  original text
   pj.addPage(my_image as Sprite);// page 2,
  bitmap
   pj.send();
   }
  
  
 
   ]]
   /mx:Script
  
   mx:Panel id=my_panel title=My Panel width=100%
  height=100%
   autoLayout=true click=onClick()
   mx:TextArea id=my_text width=500 height=400/
   /mx:Panel
   mx:Image id=my_image width={my_panel.width}
   height={my_panel.height}/
  
   /mx:Application
  
   I didn't try going to a printer but just saved as a pdf. Page 2
  looks
   just like it's displayed in the browser, while page 1 looks like
  the
   text has been shrunken horizontally a tad. Strange, but using
  bitmap
   should solve your issues for now.
  
   Note... I tried adding the Bitmap object and the BitmapData 
object
  to
   the printJob but it gave me errors so I'm not sure if the image 
is
   necessary or not.
  
   John
  
  
  
   On May 2, 2007, at 11:24 AM, scott_flex wrote:
  
I thought about that. I don't know how to make it a bitmap 
yet but
from what i've seen i should be able to fairly easily...and I
  assume
i can send a bitmap image to the printer.
   
In my real app i'm taking a few panels and adding them to a 
vbox
control so I can create pages to send to the printer. I
  calculate
the height

[flexcoders] Re: Shouldn't this VBox have a scrollbar?

2007-05-05 Thread scott_flex

You would think so... however, i have found that you have to set the 
height of a vBox to a pixel height, not percentage to get the 
scrollbars to act the way you want them to.

By default a vBox's height will autosize to the combined height, plus 
verticalGap... of all it's children, UNLESS you set it's pixel 
height, which then properly display's scrollbars.

In this case, I would bind the height of the vBox to it's parent 
canvas height, that should do it.

This is very weird to me as well, and if you contrain the layout of 
the vbox to be top=0 and bottom=0, as if you are wanting to anchor or 
dock it so it resizes when the parent resizes, it won't work either.

The height must be set to a pixel height.  To get around this i had 
to tie into the resize even of my parent container and convert the 
size of my vbox appropriately... annoying, not what i expected i 
would have to do.


hope that helps some

--Scott



--- In flexcoders@yahoogroups.com, Tom Bray [EMAIL PROTECTED] wrote:

 Shouldn't the height of the VBox below end up being 300?  
Shouldn't  
 height=100% make it fill up the area allotted to it by it's  
 parent?  Instead it ends up having a height of 612 and no scrollbar:
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;  
 layout=absolute horizontalScrollPolicy=off  
 verticalScrollPolicy=off
   mx:Canvas width=500 height=300 
horizontalScrollPolicy=off  
 verticalScrollPolicy=off
   mx:VBox id=badVBox width=100% height=100%
   mx:Canvas width=100% height=200 
backgroundColor=green/
   mx:Canvas width=100% height=200 
backgroundColor=green/
   mx:Canvas width=100% height=200 
backgroundColor=green/
   /mx:VBox
   /mx:Canvas
   
   mx:Button y=400 label=debug click=debug()/
   
   mx:Script
   ![CDATA[
   public function debug():void
   {
   var v:VBox = badVBox;
   }
   ]]
   /mx:Script
 
 /mx:Application





[flexcoders] Re: Shouldn't this VBox have a scrollbar?

2007-05-05 Thread scott_flex

Oh, and one more thing, hopefully i don't butcher this.

As explain to me before, using constrained layout on objects does not 
actually resize them, just anchors them based on teh top, bottom, 
left and right properties.  That's why you can't anchor a vBox on all 
sides and expect the scrollbars to appear correctly.

Constrained layout is NOT equal to Docking as some other editors, 
such as in Visual Studio refer to it.

This is wierd if you anchor on all 4 sides, put a border on your vbox 
and it does appear to grow with the parent display object it's anchor 
against, but again, the vbox size, at least for calculating 
scrollbars is NOT aware of this.  I assume this is very similar to 
using 100% values for width and height.

Weird and certain not what i would expect.

--Scott



--- In flexcoders@yahoogroups.com, Tom Bray [EMAIL PROTECTED] wrote:

 Shouldn't the height of the VBox below end up being 300?  
Shouldn't  
 height=100% make it fill up the area allotted to it by it's  
 parent?  Instead it ends up having a height of 612 and no scrollbar:
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;  
 layout=absolute horizontalScrollPolicy=off  
 verticalScrollPolicy=off
   mx:Canvas width=500 height=300 
horizontalScrollPolicy=off  
 verticalScrollPolicy=off
   mx:VBox id=badVBox width=100% height=100%
   mx:Canvas width=100% height=200 
backgroundColor=green/
   mx:Canvas width=100% height=200 
backgroundColor=green/
   mx:Canvas width=100% height=200 
backgroundColor=green/
   /mx:VBox
   /mx:Canvas
   
   mx:Button y=400 label=debug click=debug()/
   
   mx:Script
   ![CDATA[
   public function debug():void
   {
   var v:VBox = badVBox;
   }
   ]]
   /mx:Script
 
 /mx:Application





[flexcoders] Any good documentation on printing text.....

2007-05-03 Thread scott_flex

Any really good articles on the fine points of printing text?  Or am 
i just running into bugs out of my control

I'm trying to print Text boxes with html text but never get 
consistent results.

My text box looks like this:

mx:Text id=myText 
 width=450/

The height of myText grows, depending on how much html text i assign 
to it. It previews on screen just fine.

I'm stacking 3-4 text boxes on top of each other in a VBox so I don't 
want to set their heights because i want them all to run right after 
each other.

However, when printing them i always lose a line of text.  I've tried 
embedding the fonts, setting my flex print job to printAsBitmap to 
true and false and never seem to get consistent print results.

The text always gets rendered slightly different on the printout as 
well, slightly different spacing, sometimes causing text to wrap to a 
new line.


I'm willing to pay for help... this is very frustrating and I could 
be running into issues out of my control or something so simple it's 
not funny.  I just can't find great info on printing text.



[flexcoders] Re: Html Text does NOT print in same format as rendered on scre

2007-05-03 Thread scott_flex

Thanks for the example John!  However, when you printed your output 
to PDF did you lose a lot of text quality? Printing the image/bitmap 
i lose a lot of quality on the printout, font is real jagged.

The bitmap image created from my source panel is very clear on.  I 
assume this is because the flash player is not printing it 
intellegently as a font but rather an image.

Even so though... the bitmap image is pretty darn close to the real 
dimensions of the printed page, based on 72pixel per inch.. Would 
think i would lose that much qualtily.

--Scott


--- In flexcoders@yahoogroups.com, John Robinson [EMAIL PROTECTED] wrote:

 Scott -
 
 I thought the same thing (use Bitmap/BitmapData). Quick example:
 
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;  
 creationComplete=init() 
   
   mx:Script
   ![CDATA[
   
   import flash.display.*;
   import flash.printing.*;
   import flash.events.*;
 
   public function init():void {
   var i:Number = 100;
   while(i0) {
   my_text.htmlText += brBob is cool 
as hell. I love bob. font  
 face=\Cochin\ color=\#33\byay!/b/fontbob! bob!;
   i--;
   }
   }
   
   public function onClick():void {
   
   var bd:BitmapData = new BitmapData
(my_panel.width,  
 my_panel.height, false);
   var b:Bitmap = new Bitmap(bd);
   my_image.source = b;
   bd.draw(my_text);
   
   var pj:PrintJob = new PrintJob();
   pj.start();
   pj.addPage(my_text as Sprite);// page 1, 
original text
   pj.addPage(my_image as Sprite);// page 2, 
bitmap
   pj.send();
   }
   
   

   ]]
   /mx:Script
   
   mx:Panel id=my_panel title=My Panel width=100% 
height=100%  
 autoLayout=true click=onClick()
   mx:TextArea id=my_text width=500 height=400/
   /mx:Panel
   mx:Image id=my_image width={my_panel.width}  
 height={my_panel.height}/
   
 /mx:Application
 
 I didn't try going to a printer but just saved as a pdf. Page 2 
looks  
 just like it's displayed in the browser, while page 1 looks like 
the  
 text has been shrunken horizontally a tad. Strange, but using 
bitmap  
 should solve your issues for now.
 
 Note... I tried adding the Bitmap object and the BitmapData object 
to  
 the printJob but it gave me errors so I'm not sure if the image is  
 necessary or not.
 
 John
 
 
 
 On May 2, 2007, at 11:24 AM, scott_flex wrote:
 
  I thought about that. I don't know how to make it a bitmap yet but
  from what i've seen i should be able to fairly easily...and I 
assume
  i can send a bitmap image to the printer.
 
  In my real app i'm taking a few panels and adding them to a vbox
  control so I can create pages to send to the printer. I 
calculate
  the height and when the combined height of my panels with text are
  taller than a page 700ish pixels high, i create another page... 
this
  also allows me to have a nice print preview screen so they see
  exactly how it will print...
 
  --Scott
 
  --- In flexcoders@yahoogroups.com, John Mark Hawley mark@ wrote:
  
   Can you make the display object into a bitmap and then print 
that
  instead?
  
  .
 
 





[flexcoders] Re: Stop Flex Builder copying files to bin directory

2007-05-02 Thread scott_flex

Check your Flex Compiler options on the Project Properties window... 
there's an option to Copy non-embeded files to output directory.


--scott



--- In flexcoders@yahoogroups.com, Mark Ingram [EMAIL PROTECTED] wrote:

 Hi, how can I stop Flex Builder from copying files to my bin folder?
 
  
 
 I have a readme.txt which is in the root folder, which gets copied 
to
 the bin folder and I also have a .svn folder which gets copied. How 
can
 I stop these from being copied every time I compile? I compile to a
 network location, so having to copy unnecessary files can really 
slow
 things down!
 
  
 
 Thanks,
 
  
 
 Mark





[flexcoders] Re: Html Text does NOT print in same format as rendered on screen..

2007-05-02 Thread scott_flex

Here's a small sample app to illustrate what i'm running into..

http://www.scottkrause.com/PrintTest/PrintingTest.html

Right click to view source It's one file.

When you click the print button it just adds the text control to the 
print job object. You'll notice not all the text is printed... I've 
been testing sending the document to the printer as well as (for 
saving paper) printing to pdf or Microsoft Document Image writer.


--Scott


--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 Can you make a really small test case?
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of scott_flex
 Sent: Tuesday, May 01, 2007 6:58 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Html Text does NOT print in same format as
 rendered on screen..
 
  
 
 
 Text/Fonts render differently when sent to the printer than when 
 viewed on screen, this is a real PAIN when formatting display 
objects 
 to send to the printer.
 
 I've added a few Text controls to to a vbox with variable length 
 data, some have custom font formatting, ALL installed fonts, even 
 tested with embedded fonts.
 
 The width of the text box is 100%, which fills to the width of the 
 vbox, and the height is not set, so it grows to show all text. 
Works 
 great.. except when sent to the printer.
 
 When I send these text controls to the print job.addObject and set 
 scale type to show all, the text breaks at different points and 
does 
 NOT render the same as seen on screen. If the text happens to 
render 
 a bit wider, teh font could go to the next line and therefore NOT 
 print.
 
 I JUST WANT THE Text DISPLAY OBJECT to print on the printer in the 
 exact format/rendering as seen on screen... is this not possible. I 
 think when you send this text control to the printer, flash trys to 
 get smart and not render the text as an image but as text... which 
 changes some line breaks and such... this is really annoying.
 
 Not sure how to solf this issue... just want all my text to print. 
 
 Any help would be appreciated.
 
 I posted this same issue in another post... not sure it was clear 
as 
 to what my problem is.





[flexcoders] Re: Html Text does NOT print in same format as rendered on screen..

2007-05-02 Thread scott_flex

I also just noticed something funny in this example...

After i send the text control to the printer the height of my text 
control get's smaller, instead of showing all lines (4 of them) it 
shrinks in height to just show 3 lines of text cutting off the text...

That does not happen in my real application but in my real applicatin 
i'm not sending the text control directly to the printer.  The text 
control is wrapped inside a grid table and panel control which is 
sent to the printer still has same strange effects on text 
though...


--Scott


--- In flexcoders@yahoogroups.com, scott_flex [EMAIL PROTECTED] wrote:

 
 Here's a small sample app to illustrate what i'm running into..
 
 http://www.scottkrause.com/PrintTest/PrintingTest.html
 
 Right click to view source It's one file.
 
 When you click the print button it just adds the text control to 
the 
 print job object. You'll notice not all the text is printed... I've 
 been testing sending the document to the printer as well as (for 
 saving paper) printing to pdf or Microsoft Document Image writer.
 
 
 --Scott
 
 
 --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote:
 
  Can you make a really small test case?
  
   
  
  
  
  From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On
  Behalf Of scott_flex
  Sent: Tuesday, May 01, 2007 6:58 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Html Text does NOT print in same format as
  rendered on screen..
  
   
  
  
  Text/Fonts render differently when sent to the printer than when 
  viewed on screen, this is a real PAIN when formatting display 
 objects 
  to send to the printer.
  
  I've added a few Text controls to to a vbox with variable length 
  data, some have custom font formatting, ALL installed fonts, even 
  tested with embedded fonts.
  
  The width of the text box is 100%, which fills to the width of 
the 
  vbox, and the height is not set, so it grows to show all text. 
 Works 
  great.. except when sent to the printer.
  
  When I send these text controls to the print job.addObject and 
set 
  scale type to show all, the text breaks at different points and 
 does 
  NOT render the same as seen on screen. If the text happens to 
 render 
  a bit wider, teh font could go to the next line and therefore NOT 
  print.
  
  I JUST WANT THE Text DISPLAY OBJECT to print on the printer in 
the 
  exact format/rendering as seen on screen... is this not possible. 
I 
  think when you send this text control to the printer, flash trys 
to 
  get smart and not render the text as an image but as text... 
which 
  changes some line breaks and such... this is really annoying.
  
  Not sure how to solf this issue... just want all my text to 
print. 
  
  Any help would be appreciated.
  
  I posted this same issue in another post... not sure it was clear 
 as 
  to what my problem is.
 





[flexcoders] Re: Html Text does NOT print in same format as rendered on scre

2007-05-02 Thread scott_flex
I thought about that. I don't know how to make it a bitmap yet but 
from what i've seen i should be able to fairly easily...and I assume 
i can send a bitmap image to the printer.

In my real app i'm taking a few panels and adding them to a vbox 
control so I can create pages to send to the printer.  I calculate 
the height and when the combined height of my panels with text are 
taller than a page 700ish pixels high, i create another page... this 
also allows me to have a nice print preview screen so they see 
exactly how it will print...

--Scott


--- In flexcoders@yahoogroups.com, John Mark Hawley [EMAIL PROTECTED] wrote:

 Can you make the display object into a bitmap and then print that 
instead?
 
  
  From: scott_flex [EMAIL PROTECTED]
  Date: 2007/05/02 Wed AM 08:55:20 CDT
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Html Text does NOT print in same format 
as rendered on screen..
  
  
  Here's a small sample app to illustrate what i'm running into..
  
  http://www.scottkrause.com/PrintTest/PrintingTest.html
  
  Right click to view source It's one file.
  
  When you click the print button it just adds the text control to 
the 
  print job object. You'll notice not all the text is printed... 
I've 
  been testing sending the document to the printer as well as (for 
  saving paper) printing to pdf or Microsoft Document Image writer.
  
  
  --Scott
  
  
  --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote:
  
   Can you make a really small test case?
   

   
   
   
   From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On
   Behalf Of scott_flex
   Sent: Tuesday, May 01, 2007 6:58 PM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Html Text does NOT print in same format as
   rendered on screen..
   

   
   
   Text/Fonts render differently when sent to the printer than 
when 
   viewed on screen, this is a real PAIN when formatting display 
  objects 
   to send to the printer.
   
   I've added a few Text controls to to a vbox with variable 
length 
   data, some have custom font formatting, ALL installed fonts, 
even 
   tested with embedded fonts.
   
   The width of the text box is 100%, which fills to the width of 
the 
   vbox, and the height is not set, so it grows to show all text. 
  Works 
   great.. except when sent to the printer.
   
   When I send these text controls to the print job.addObject and 
set 
   scale type to show all, the text breaks at different points and 
  does 
   NOT render the same as seen on screen. If the text happens to 
  render 
   a bit wider, teh font could go to the next line and therefore 
NOT 
   print.
   
   I JUST WANT THE Text DISPLAY OBJECT to print on the printer in 
the 
   exact format/rendering as seen on screen... is this not 
possible. I 
   think when you send this text control to the printer, flash 
trys to 
   get smart and not render the text as an image but as text... 
which 
   changes some line breaks and such... this is really annoying.
   
   Not sure how to solf this issue... just want all my text to 
print. 
   
   Any help would be appreciated.
   
   I posted this same issue in another post... not sure it was 
clear 
  as 
   to what my problem is.
  
  
  
  
  
 
 --
 John Mark Hawley
 The Nilbog Group
 773.968.4980 (cell)





[flexcoders] Re: FlexPrintJob not printing multiple formatted lines successfully

2007-05-01 Thread scott_flex

Geneva, Tahoma and Verdana are 3 problematic fonts i have isolated to 
not print correctly.  I never get the last line of text to print.

These 3 fonts are installed on my pc.

The height of my text area is not set, it grows with the amount of 
html text and this has worked very well.  Always showing all text on 
screen but these 3 fonts never want to print the last line.

However, for these 3 fonts if I set the height of my text control to 
2 pixels larger that what it would normally grow to when the height 
is not set, everything prints out ok... but I can't set the height of 
my text controls because I don't know ahead of time how much text 
they will contain.

At this time i plan to remove these 3 fonts from my selection list. 
It's odd since these are pretty common fonts.

Maybe i need to embed the fonts in the app itself, probably the 
safest since other users may not have the same font list as I but 
that's why i was sticking with common fonts.

Any other insight would be helpful

--Scott




--- In flexcoders@yahoogroups.com, scott_flex [EMAIL PROTECTED] wrote:

 
 Well i have determined that it really doesn't matter what font 
 family or size it is it just won't print the last line even 
 though all lines appear on screen with no scroll bars.
 
 The html text of my mx:text object is:
 TEXTFORMAT LEADING=2P ALIGN=LEFTFONT FACE=Verdana 
 SIZE=12 COLOR=#00 LETTERSPACING=0 KERNING=0When i try 
to 
 print this text from a mx:text control and the text wraps to more 
 than one line, the last line will not print.  It just prints a 
white 
 blank line intstead.  My mx:text component is set to 400 width 
which 
 is inside a grid item which inside a grid row which is inside  
mx:gid 
 object./FONT/P/TEXTFORMAT
 
 The width of my mx:text object is set to 400... and even though the 
 first few lines print they don't line break exactly as they do on 
 screen... just thought that was odd but probably has something to 
do 
 with the scaling when it prints.  I just want it to print the last 
 line.
 
 
 Any help would be greatly appreciated... i'm desperate for ideas of 
 what might be the issue.
 
 --Scott
 
 
 --- In flexcoders@yahoogroups.com, scott_flex skrause@ wrote:
 
  
  I have a text control displayed with multiple lines of wrapped 
 text , 
  no scroll bars, all text is completely displayed on screen.  When 
i 
  send this text to the printer only the first line is printed.
  
  The text control is displaying html formatted text.  This only 
 happens 
  to certain font/size combinations.  Verdana 11 prints first line 
 only, 
  second and 3rd lines don't print, even though they are on screen 
 ok.  
  Verdana 12 prints just fine, 2nd and following lines print ok.
  
  I've set the print object to NOT print as bitmap 
 (printAsBitmap=false) 
  and the scale type for each object added to the print job is set 
to 
  show all.
  
  Haven't figured out why this happens for some font/size 
 combonations... 
  any ideas?
 





[flexcoders] Re: FlexPrintJob not printing multiple formatted lines successf

2007-05-01 Thread scott_flex

Thanks for the reply... however, why would fonts display correctly on 
screen and size the text box correctly but not print the same way it 
was rendered on screen?  Must be luck of the draw on other fonts, 
because they do not produce the same bahavior when printing.

Embeding Verdana using
[Embed(systemFont='Verdana', fontName='Verdana', 
mimeType='application/x-font')]

Does fix the problem of the last line not printined correctly but 
then anywhere else in my app this embeded font shadows the system 
font and print outs are very poor quality and all other 
labels/buttons using Verdana are very fuzzy...

I'll keep digging into my font issues, there must be a correct way of 
handling this.

--Scott


--- In flexcoders@yahoogroups.com, John Mark Hawley [EMAIL PROTECTED] wrote:

 In order for Flash to know how much room it needs to print an 
autosized text field, the font must be embedded. There's no 
way 'round it. The _height of an autosized text field without 
embedded fonts will not be correct (for printing).
 
 
  
  From: scott_flex [EMAIL PROTECTED]
  Date: 2007/05/01 Tue AM 08:19:08 CDT
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: FlexPrintJob not printing multiple 
formatted lines successfully
  
  
  Geneva, Tahoma and Verdana are 3 problematic fonts i have 
isolated to 
  not print correctly.  I never get the last line of text to print.
  
  These 3 fonts are installed on my pc.
  
  The height of my text area is not set, it grows with the amount 
of 
  html text and this has worked very well.  Always showing all text 
on 
  screen but these 3 fonts never want to print the last line.
  
  However, for these 3 fonts if I set the height of my text control 
to 
  2 pixels larger that what it would normally grow to when the 
height 
  is not set, everything prints out ok... but I can't set the 
height of 
  my text controls because I don't know ahead of time how much text 
  they will contain.
  
  At this time i plan to remove these 3 fonts from my selection 
list. 
  It's odd since these are pretty common fonts.
  
  Maybe i need to embed the fonts in the app itself, probably the 
  safest since other users may not have the same font list as I 
but 
  that's why i was sticking with common fonts.
  
  Any other insight would be helpful
  
  --Scott
  
  
  
  
  --- In flexcoders@yahoogroups.com, scott_flex skrause@ wrote:
  
   
   Well i have determined that it really doesn't matter what 
font 
   family or size it is it just won't print the last line even 
   though all lines appear on screen with no scroll bars.
   
   The html text of my mx:text object is:
   TEXTFORMAT LEADING=2P ALIGN=LEFTFONT FACE=Verdana 
   SIZE=12 COLOR=#00 LETTERSPACING=0 KERNING=0When i 
try 
  to 
   print this text from a mx:text control and the text wraps to 
more 
   than one line, the last line will not print.  It just prints a 
  white 
   blank line intstead.  My mx:text component is set to 400 width 
  which 
   is inside a grid item which inside a grid row which is inside  
  mx:gid 
   object./FONT/P/TEXTFORMAT
   
   The width of my mx:text object is set to 400... and even though 
the 
   first few lines print they don't line break exactly as they do 
on 
   screen... just thought that was odd but probably has something 
to 
  do 
   with the scaling when it prints.  I just want it to print the 
last 
   line.
   
   
   Any help would be greatly appreciated... i'm desperate for 
ideas of 
   what might be the issue.
   
   --Scott
   
   
   --- In flexcoders@yahoogroups.com, scott_flex skrause@ 
wrote:
   

I have a text control displayed with multiple lines of 
wrapped 
   text , 
no scroll bars, all text is completely displayed on screen.  
When 
  i 
send this text to the printer only the first line is printed.

The text control is displaying html formatted text.  This 
only 
   happens 
to certain font/size combinations.  Verdana 11 prints first 
line 
   only, 
second and 3rd lines don't print, even though they are on 
screen 
   ok.  
Verdana 12 prints just fine, 2nd and following lines print ok.

I've set the print object to NOT print as bitmap 
   (printAsBitmap=false) 
and the scale type for each object added to the print job is 
set 
  to 
show all.

Haven't figured out why this happens for some font/size 
   combonations... 
any ideas?
   
  
  
  
  
  
 
 --
 John Mark Hawley
 The Nilbog Group
 773.968.4980 (cell)





[flexcoders] Html Text does NOT print in same format as rendered on screen..

2007-05-01 Thread scott_flex

Text/Fonts render differently when sent to the printer than when 
viewed on screen, this is a real PAIN when formatting display objects 
to send to the printer.

I've added a few Text controls to to a vbox with variable length 
data, some have custom font formatting, ALL installed fonts, even 
tested with embedded fonts.

The width of the text box is 100%, which fills to the width of the 
vbox, and the height is not set, so it grows to show all text.  Works 
great.. except when sent to the printer.

When I send these text controls to the print job.addObject and set 
scale type to show all, the text breaks at different points and does 
NOT render the same as seen on screen.  If the text happens to render 
a bit wider, teh font could go to the next line and therefore NOT 
print.

I JUST WANT THE Text DISPLAY OBJECT to print on the printer in the 
exact format/rendering as seen on screen... is this not possible.  I 
think when you send this text control to the printer, flash trys to 
get smart and not render the text as an image but as text... which 
changes some line breaks and such... this is really annoying.

Not sure how to solf this issue... just want all my text to print.  

Any help would be appreciated.

I posted this same issue in another post... not sure it was clear as 
to what my problem is.






[flexcoders] Re: FlexPrintJob not printing multiple formatted lines successf

2007-05-01 Thread scott_flex

Unfortunately i'm finding that out the hard way.. printing on and on 
screen display are different beasts... i ultimately just want my 
display objects i'm sending to the printer to print exactly as they 
appear on screen...

I actually just posted antoher thread on this topic, wasn't sure i 
was clear in the first.

When i embedded the Verdana font, all button labels and text labels 
that used the Verdana font became very fuzzy... not as clear when i 
didn't embed the font.

Also the more i tested with printing when I embeded the font, it 
still didn't resolve my issue.

So not i'm at my wits end... i just want to send a display 
object/Text control to the printer and it print in exactly the same 
format as seen on screen.

Seems odd as why this is SO difficult.  I assumed when I send display 
object to my PrintJob instance it wouldn't try to get smart and 
reformat my text, just send it as a vector image and scale based on 
my ScaleType I've set.

Thanks very much for you replies!

--Scott


--- In flexcoders@yahoogroups.com, John Mark Hawley [EMAIL PROTECTED] wrote:

 Printing and screen display are just different beasts. I'm not sure 
what you mean by shadowing, though it sounds like you want to set 
antiAliasType to the ADVANCED setting.
 
  
  From: scott_flex [EMAIL PROTECTED]
  Date: 2007/05/01 Tue PM 12:27:38 CDT
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: FlexPrintJob not printing multiple 
formatted lines successf
  
  
  Thanks for the reply... however, why would fonts display 
correctly on 
  screen and size the text box correctly but not print the same way 
it 
  was rendered on screen?  Must be luck of the draw on other fonts, 
  because they do not produce the same bahavior when printing.
  
  Embeding Verdana using
  [Embed(systemFont='Verdana', fontName='Verdana', 
  mimeType='application/x-font')]
  
  Does fix the problem of the last line not printined correctly but 
  then anywhere else in my app this embeded font shadows the 
system 
  font and print outs are very poor quality and all other 
  labels/buttons using Verdana are very fuzzy...
  
  I'll keep digging into my font issues, there must be a correct 
way of 
  handling this.
  
  --Scott
  
  
  --- In flexcoders@yahoogroups.com, John Mark Hawley mark@ wrote:
  
   In order for Flash to know how much room it needs to print an 
  autosized text field, the font must be embedded. There's no 
  way 'round it. The _height of an autosized text field without 
  embedded fonts will not be correct (for printing).
   
   

From: scott_flex skrause@
Date: 2007/05/01 Tue AM 08:19:08 CDT
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: FlexPrintJob not printing multiple 
  formatted lines successfully


Geneva, Tahoma and Verdana are 3 problematic fonts i have 
  isolated to 
not print correctly.  I never get the last line of text to 
print.

These 3 fonts are installed on my pc.

The height of my text area is not set, it grows with the 
amount 
  of 
html text and this has worked very well.  Always showing all 
text 
  on 
screen but these 3 fonts never want to print the last line.

However, for these 3 fonts if I set the height of my text 
control 
  to 
2 pixels larger that what it would normally grow to when the 
  height 
is not set, everything prints out ok... but I can't set the 
  height of 
my text controls because I don't know ahead of time how much 
text 
they will contain.

At this time i plan to remove these 3 fonts from my selection 
  list. 
It's odd since these are pretty common fonts.

Maybe i need to embed the fonts in the app itself, probably 
the 
safest since other users may not have the same font list as 
I 
  but 
that's why i was sticking with common fonts.

Any other insight would be helpful

--Scott




--- In flexcoders@yahoogroups.com, scott_flex skrause@ 
wrote:

 
 Well i have determined that it really doesn't matter 
what 
  font 
 family or size it is it just won't print the last line 
even 
 though all lines appear on screen with no scroll bars.
 
 The html text of my mx:text object is:
 TEXTFORMAT LEADING=2P ALIGN=LEFTFONT 
FACE=Verdana 
 SIZE=12 COLOR=#00 LETTERSPACING=0 
KERNING=0When i 
  try 
to 
 print this text from a mx:text control and the text wraps 
to 
  more 
 than one line, the last line will not print.  It just 
prints a 
white 
 blank line intstead.  My mx:text component is set to 400 
width 
which 
 is inside a grid item which inside a grid row which is 
inside  
mx:gid 
 object./FONT/P/TEXTFORMAT
 
 The width of my mx:text object is set to 400... and even 
though 
  the 
 first few lines print they don't line break exactly as they 
do 
  on 
 screen... just thought that was odd but probably has 
something

[flexcoders] FlexPrintJob not printing multiple formatted lines successfully

2007-04-30 Thread scott_flex

I have a text control displayed with multiple lines of wrapped text , 
no scroll bars, all text is completely displayed on screen.  When i 
send this text to the printer only the first line is printed.

The text control is displaying html formatted text.  This only happens 
to certain font/size combinations.  Verdana 11 prints first line only, 
second and 3rd lines don't print, even though they are on screen ok.  
Verdana 12 prints just fine, 2nd and following lines print ok.

I've set the print object to NOT print as bitmap (printAsBitmap=false) 
and the scale type for each object added to the print job is set to 
show all.

Haven't figured out why this happens for some font/size combonations... 
any ideas?





[flexcoders] Re: FlexPrintJob not printing multiple formatted lines successfully

2007-04-30 Thread scott_flex

Well i have determined that it really doesn't matter what font 
family or size it is it just won't print the last line even 
though all lines appear on screen with no scroll bars.

The html text of my mx:text object is:
TEXTFORMAT LEADING=2P ALIGN=LEFTFONT FACE=Verdana 
SIZE=12 COLOR=#00 LETTERSPACING=0 KERNING=0When i try to 
print this text from a mx:text control and the text wraps to more 
than one line, the last line will not print.  It just prints a white 
blank line intstead.  My mx:text component is set to 400 width which 
is inside a grid item which inside a grid row which is inside  mx:gid 
object./FONT/P/TEXTFORMAT

The width of my mx:text object is set to 400... and even though the 
first few lines print they don't line break exactly as they do on 
screen... just thought that was odd but probably has something to do 
with the scaling when it prints.  I just want it to print the last 
line.


Any help would be greatly appreciated... i'm desperate for ideas of 
what might be the issue.

--Scott


--- In flexcoders@yahoogroups.com, scott_flex [EMAIL PROTECTED] wrote:

 
 I have a text control displayed with multiple lines of wrapped 
text , 
 no scroll bars, all text is completely displayed on screen.  When i 
 send this text to the printer only the first line is printed.
 
 The text control is displaying html formatted text.  This only 
happens 
 to certain font/size combinations.  Verdana 11 prints first line 
only, 
 second and 3rd lines don't print, even though they are on screen 
ok.  
 Verdana 12 prints just fine, 2nd and following lines print ok.
 
 I've set the print object to NOT print as bitmap 
(printAsBitmap=false) 
 and the scale type for each object added to the print job is set to 
 show all.
 
 Haven't figured out why this happens for some font/size 
combonations... 
 any ideas?





[flexcoders] Re: denying GETs on .NET WSDL web service file...

2007-04-16 Thread scott_flex

can try it, don't have time right this minute, but it's not something 
i have thought of or tried, seems like a pretty good idea.

--- In flexcoders@yahoogroups.com, Clint Modien [EMAIL PROTECTED] wrote:

 Shot in the dark, and untested, but what about using basic auth and
 setCredentials on the webservice?
 
 On 13 Apr 2007 13:24:57 -0700, scott_flex [EMAIL PROTECTED] wrote:
 
 
  tried it, instead of calling the .loadWsdl() method, i just set 
the
  wsdl property so it at least know where the service exists, also 
set
  the endpoint to my asmx file, which is the web service.
 
  Doesn't work.
 
  --Scott
 
  --- In flexcoders@yahoogroups.com flexcoders%
40yahoogroups.com, Daniel
  Freiman FreimanCQ@
  wrote:
  
   double check to make sure you actually have to load the wsdl. 
It's
  possible
   that you can just call the functions and hope you're hitting a
  function that
   exists. Unfortunately I don't have time to test this (possibly
  crackpot)
   theory right now.
  
   - Daniel Freiman
   nondocs? http://nondocs.blogspot.com
  
   On 13 Apr 2007 06:26:25 -0700, scott_flex skrause@ wrote:
   
   
Tom,
   
Well, http://www.fiddler2.com/fiddler2 says it supports SSL 
but it
also seems to get in the way and cause trust issues for IE 
when
capturing traffic... didn't work to well with FireFox 
either...
  It's
in a beta state, oh well. I'll look for another free http 
tool.
   
Anyway, i guess i'll just have to expose my wsdl files, was
  hoping to
get an easy hit by just hiding them.
   
I'll keep looking, maybe i'm missing something easy, as 
usual. I'm
no web service security expert, so maybe the route i'm going 
isn't
that great anyway.
   
--Scott
   
--- In flexcoders@yahoogroups.com flexcoders%
40yahoogroups.comflexcoders%40yahoogroups.com,
 
  Tom
Chiverton tom.chiverton@
wrote:

 On Thursday 12 Apr 2007, scott_flex wrote:
  Not sure what other http network tools anyone uses, but 
i'll
  be
  testing this with Fiddler, a MS http debugging tool.

 Does it intercept SSL ?

 --
 Tom Chiverton
 Helping to continually harness professional models
 on: http://thefalken.livejournal.com

 

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

 Halliwells LLP is a limited liability partnership 
registered in
England and Wales under registered number OC307980 whose
  registered
office address is at St James's Court Brown Street Manchester 
M2
2JF. A list of members is available for inspection at the
  registered
office. Any reference to a partner in relation to Halliwells 
LLP
means a member of Halliwells LLP. Regulated by the Law 
Society.

 CONFIDENTIALITY

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

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

   
   
   
  
 
   
 





[flexcoders] Re: denying GETs on .NET WSDL web service file...

2007-04-13 Thread scott_flex

Tom,

Well, http://www.fiddler2.com/fiddler2 says it supports SSL but it 
also seems to get in the way and cause trust issues for IE when 
capturing traffic... didn't work to well with FireFox either...  It's 
in a beta state, oh well.  I'll look for another free http tool.

Anyway, i guess i'll just have to expose my wsdl files, was hoping to 
get an easy hit by just hiding them.

I'll keep looking, maybe i'm missing something easy, as usual.  I'm 
no web service security expert, so maybe the route i'm going isn't 
that great anyway.

--Scott


--- In [EMAIL PROTECTED], Tom Chiverton [EMAIL PROTECTED] 
wrote:

 On Thursday 12 Apr 2007, scott_flex wrote:
  Not sure what other http network tools anyone uses, but i'll be
  testing this with Fiddler, a MS http debugging tool.
 
 Does it intercept SSL ?
 
 -- 
 Tom Chiverton
 Helping to continually harness professional models
 on: http://thefalken.livejournal.com
 
 
 
 This email is sent for and on behalf of Halliwells LLP.
 
 Halliwells LLP is a limited liability partnership registered in 
England and Wales under registered number OC307980 whose registered 
office address is at St James's Court Brown Street Manchester M2 
2JF.  A list of members is available for inspection at the registered 
office. Any reference to a partner in relation to Halliwells LLP 
means a member of Halliwells LLP. Regulated by the Law Society.
 
 CONFIDENTIALITY
 
 This email is intended only for the use of the addressee named 
above and may be confidential or legally privileged.  If you are not 
the addressee you must not read it and must not use any information 
contained in nor copy it nor inform any person other than Halliwells 
LLP or the addressee of its existence or contents.  If you have 
received this email in error please delete it and notify Halliwells 
LLP IT Department on 0870 365 8008.
 
 For more information about Halliwells LLP visit www.halliwells.com.





[flexcoders] Re: denying GETs on .NET WSDL web service file...

2007-04-13 Thread scott_flex

tried it, instead of calling the .loadWsdl() method, i just set the 
wsdl property so it at least know where the service exists, also set 
the endpoint to my asmx file, which is the web service.

Doesn't work.

--Scott

--- In [EMAIL PROTECTED], Daniel Freiman [EMAIL PROTECTED] 
wrote:

 double check to make sure you actually have to load the wsdl.  It's 
possible
 that you can just call the functions and hope you're hitting a 
function that
 exists.  Unfortunately I don't have time to test this (possibly 
crackpot)
 theory right now.
 
 - Daniel Freiman
 nondocs? http://nondocs.blogspot.com
 
 On 13 Apr 2007 06:26:25 -0700, scott_flex [EMAIL PROTECTED] wrote:
 
 
  Tom,
 
  Well, http://www.fiddler2.com/fiddler2 says it supports SSL but it
  also seems to get in the way and cause trust issues for IE when
  capturing traffic... didn't work to well with FireFox either... 
It's
  in a beta state, oh well. I'll look for another free http tool.
 
  Anyway, i guess i'll just have to expose my wsdl files, was 
hoping to
  get an easy hit by just hiding them.
 
  I'll keep looking, maybe i'm missing something easy, as usual. I'm
  no web service security expert, so maybe the route i'm going isn't
  that great anyway.
 
  --Scott
 
  --- In [EMAIL PROTECTED] flexcoders%40yahoogroups.com, 
Tom
  Chiverton tom.chiverton@
  wrote:
  
   On Thursday 12 Apr 2007, scott_flex wrote:
Not sure what other http network tools anyone uses, but i'll 
be
testing this with Fiddler, a MS http debugging tool.
  
   Does it intercept SSL ?
  
   --
   Tom Chiverton
   Helping to continually harness professional models
   on: http://thefalken.livejournal.com
  
   
  
   This email is sent for and on behalf of Halliwells LLP.
  
   Halliwells LLP is a limited liability partnership registered in
  England and Wales under registered number OC307980 whose 
registered
  office address is at St James's Court Brown Street Manchester M2
  2JF. A list of members is available for inspection at the 
registered
  office. Any reference to a partner in relation to Halliwells LLP
  means a member of Halliwells LLP. Regulated by the Law Society.
  
   CONFIDENTIALITY
  
   This email is intended only for the use of the addressee named
  above and may be confidential or legally privileged. If you are 
not
  the addressee you must not read it and must not use any 
information
  contained in nor copy it nor inform any person other than 
Halliwells
  LLP or the addressee of its existence or contents. If you have
  received this email in error please delete it and notify 
Halliwells
  LLP IT Department on 0870 365 8008.
  
   For more information about Halliwells LLP visit 
www.halliwells.com.
  
 
   
 





[flexcoders] Re: Modal Windows - CPU Intensive?

2007-04-13 Thread scott_flex

Michael,

Not sure what you are doing and don't have a solution but i can say 
that i use modal popups loading from the PopupManger and i do not see 
this bahavior you are talking about.

I use them quite a bit and have never seen performance issue.

Could it be something in your code in the modal windows?  I would try 
in your app to just popup a blank panel control and see if that 
exhibits the same behavior...

--Scott

--- In [EMAIL PROTECTED], Michael Imhoff [EMAIL PROTECTED] wrote:

 Hi Everyone,
 
  
 
 I've noticed that modal windows seem to be extremely processor 
intensive.
 The cpu spikes to 40 or 50 and stays there until the window has 
been closed.
 Has anyone experienced this and/or knows of a workaround?
 
  
 
 Have a good day,
 
 Michael





[flexcoders] denying GETs on .NET WSDL web service file...

2007-04-12 Thread scott_flex

Has anyone, as part of their web service security, attempted to deny 
the verb get on their web services but still be able to call them in 
their actionscript code?

Ionly only have one client (flex app) that will call my web services, 
and part of the security, as I have done in the past, is deny any GETs 
on the WSDL file so someone can't easily determine all the methods 
exposed.  I will be calling these services via SSL as well.

However, when i call the load WSDL file, it obviously fails since that 
operation is a GET.  All method calls are POSTS, so they'll/should work.

Is this a situation where I would use a Proxy... just define the web 
service interface in my flex app... or am i required to always expose 
the wsdl file to my flex app?

Thanks for any help!

Usuing .NET Web services as my backend.




[flexcoders] Re: denying GETs on .NET WSDL web service file...

2007-04-12 Thread scott_flex

I'll have to confirm what you can and cannot see by watching traffic 
when connected via SSL, i know the actual data is encrypted, which is 
all in the soap body, so I would assume the actuall method call is 
encrypted as well.  I'll confirm...

You definately see all off the soap message if not using SSL.

However, and i do realize this is not an all encompassing security 
solution, but it's at least closing the front door to the house.  Why 
expose more than you have to.

Not sure what other http network tools anyone uses, but i'll be 
testing this with Fiddler, a MS http debugging tool.

--Scott


--- In [EMAIL PROTECTED], Tom Chiverton [EMAIL PROTECTED] 
wrote:

 On Thursday 12 Apr 2007, scott_flex wrote:
  and part of the security, as I have done in the past, is deny any 
GETs
  on the WSDL file so someone can't easily determine all the methods
  exposed.  I will be calling these services via SSL as well.
 
 They can determine that by watching the network traffic, can't 
they ?
 
 -- 
 Tom Chiverton
 Helping to preemptively syndicate customized information
 on: http://thefalken.livejournal.com
 
 
 
 This email is sent for and on behalf of Halliwells LLP.
 
 Halliwells LLP is a limited liability partnership registered in 
England and Wales under registered number OC307980 whose registered 
office address is at St James's Court Brown Street Manchester M2 
2JF.  A list of members is available for inspection at the registered 
office. Any reference to a partner in relation to Halliwells LLP 
means a member of Halliwells LLP. Regulated by the Law Society.
 
 CONFIDENTIALITY
 
 This email is intended only for the use of the addressee named 
above and may be confidential or legally privileged.  If you are not 
the addressee you must not read it and must not use any information 
contained in nor copy it nor inform any person other than Halliwells 
LLP or the addressee of its existence or contents.  If you have 
received this email in error please delete it and notify Halliwells 
LLP IT Department on 0870 365 8008.
 
 For more information about Halliwells LLP visit www.halliwells.com.





[flexcoders] Re: Changing a string to reference an ID of an Object

2007-04-11 Thread scott_flex

This will work
RichTextEditor(this.getChildByName(item1)).htmlText = TEST

... if your RichTextEditor object has the name, item1, not ID.  
getChildByName as it states finds your object by it's name property not 
the ID property.

You'll also have to make sure that whatever object you are calling 
getChildOByName on, the rich text editor is a direct child of it.  I 
don't believe the getChildByName is recursive at all.

And if you are creating the rich text editor on teh fly, why not just 
pass the reference to it?

--Scott

--- In flexcoders@yahoogroups.com, Nate Pearson [EMAIL PROTECTED] 
wrote:

 I am calling a webservice to get text for an item(RichTextEditor) that
 I am adding dynamically.
 
 If i set the ID of the rte to item1 how do I reference that in my
 webservice handler?  I have the string pass through so that the
 handler knows that the ID should be item1.
 
 I've tried:
 RichTextEditor(item1).htmlText = TEST
 
 and
 
 RichTextEditor(this.getChildByName(item1)).htmlText = TEST
 
 but neither work.  Any help is greatly appreciated.





[flexcoders] unable to bind to property on class....

2007-04-10 Thread scott_flex

I'm not the first person to run into this and after searching some 
previous threads i don't see any good explanations.  Any help is 
appreciated.

When i build my app, i get these warning messages and not sure how to 
fix them.  I don't get any errors when i bind a label's text property 
like this {com.session.current.userDisplayName}, it just doesn't bind 
when I run the code.

warning: unable to bind to property 'current' on class 'com::session' 
(class is not an IEventDispatcher)
warning: unable to bind to property 'userDisplayName' on 
class 'com::session'

Here's a code snippet of my session class, which is a singleton class.
 
package com
{
  [Bindable]
  public class session
  {

// -
// SINGLETON STUFF
// -
private static var _current:com.session = null;
public static function get current():com.session
{
if (_current == null) _current = new com.session();
return _current;
}   

// -
// CONSTRUCTOR
// -
public function session()
{
if (_current != null)
{
throw new Error(Only one instance of the 
session should be instantiated);
}
}

private var _userDisplayName:String = User's 
Fullname Goes here;
public function get userDisplayName():String {return 
_userDisplayName;}

}
}





[flexcoders] Re: unable to bind to property on class....

2007-04-10 Thread scott_flex

Actully, and i should have noted that in first post, i did try that, 
but same warnings and same effect, no errors, but my property did not 
bind to my label's text.

Would it or could it have anything to do with the fact it's a 
singleton object??... I wouldn't think so.

Not shown in the example, but i also exposed some public 
ArrayCollectin lists of value objects and was able to bind 
successfully to those, just not my public string properties.  So why 
somethings bind ok, and others don't?

thanks for your response.

--Scott


--- In flexcoders@yahoogroups.com, Paul DeCoursey [EMAIL PROTECTED] wrote:

 Binding depends on the object being able to dispatch events to 
notify
 the bind target that the property changed. To get around this you
 simply extend EventDispatcher.
 
 ie.
 public class session extends EventDispatcher {
 
 that will fix the warnings and bind your properties.
 
 Paul
 
 
 --- In flexcoders@yahoogroups.com, scott_flex skrause@ wrote:
 
  
  I'm not the first person to run into this and after searching 
some 
  previous threads i don't see any good explanations.  Any help is 
  appreciated.
  
  When i build my app, i get these warning messages and not sure 
how to 
  fix them.  I don't get any errors when i bind a label's text 
property 
  like this {com.session.current.userDisplayName}, it just doesn't 
bind 
  when I run the code.
  
  warning: unable to bind to property 'current' on 
class 'com::session' 
  (class is not an IEventDispatcher)
  warning: unable to bind to property 'userDisplayName' on 
  class 'com::session'
  
  Here's a code snippet of my session class, which is a singleton 
class.
   
  package com
  {
[Bindable]
public class session
{
  
  // -
  // SINGLETON STUFF
  // -
  private static var _current:com.session = null;
  public static function get current():com.session
  {
  if (_current == null) _current = new com.session();
  return _current;
  }   
  
  // -
  // CONSTRUCTOR
  // -
  public function session()
  {
  if (_current != null)
  {
  throw new Error(Only one instance of the 
  session should be instantiated);
  }
  }
  
  private var _userDisplayName:String = User's 
  Fullname Goes here;
  public function get userDisplayName():String {return 
  _userDisplayName;}
  
  }
  }
 





[flexcoders] Re: unable to bind to property on class....

2007-04-10 Thread scott_flex

Thanks, that did it, I initialized the value of userDisplayName via 
my setter (which I didn't have before), instead of just through the 
private _userDisplayName variable, bindings worked!

I still get this message though:
warning: unable to bind to property 'current' on class 'com::session' 
(class is not an IEventDispatcher), and my session class does extend 
the EventDispatcher class...

I don't like it, but everything now works as expected... that is good.

Thanks for your help, it's always something simple i'm missing... 
this group has been a ton of help!!

-Scott


--- In flexcoders@yahoogroups.com, Paul DeCoursey [EMAIL PROTECTED] wrote:

 do you have a setter on the property?  I don't see one in the code 
you
 posted.  You need a setter for it to bind. Or at least you must 
fire a
 PropertyChangeEvent when the property changes.
 
 Paul
 
 
 --- In flexcoders@yahoogroups.com, scott_flex skrause@ wrote:
 
  
  Actully, and i should have noted that in first post, i did try 
that, 
  but same warnings and same effect, no errors, but my property did 
not 
  bind to my label's text.
  
  Would it or could it have anything to do with the fact it's a 
  singleton object??... I wouldn't think so.
  
  Not shown in the example, but i also exposed some public 
  ArrayCollectin lists of value objects and was able to bind 
  successfully to those, just not my public string properties.  So 
why 
  somethings bind ok, and others don't?
  
  thanks for your response.
  
  --Scott
  
  
  --- In flexcoders@yahoogroups.com, Paul DeCoursey paul@ wrote:
  
   Binding depends on the object being able to dispatch events to 
  notify
   the bind target that the property changed. To get around this 
you
   simply extend EventDispatcher.
   
   ie.
   public class session extends EventDispatcher {
   
   that will fix the warnings and bind your properties.
   
   Paul
   
   
   --- In flexcoders@yahoogroups.com, scott_flex skrause@ 
wrote:
   

I'm not the first person to run into this and after searching 
  some 
previous threads i don't see any good explanations.  Any help 
is 
appreciated.

When i build my app, i get these warning messages and not 
sure 
  how to 
fix them.  I don't get any errors when i bind a label's text 
  property 
like this {com.session.current.userDisplayName}, it just 
doesn't 
  bind 
when I run the code.

warning: unable to bind to property 'current' on 
  class 'com::session' 
(class is not an IEventDispatcher)
warning: unable to bind to property 'userDisplayName' on 
class 'com::session'

Here's a code snippet of my session class, which is a 
singleton 
  class.
 
package com
{
  [Bindable]
  public class session
  {

// -
// SINGLETON STUFF
// -
private static var _current:com.session = null;
public static function get current():com.session
{
if (_current == null) _current = new 
com.session();
return _current;
}   

// -
// CONSTRUCTOR
// -
public function session()
{
if (_current != null)
{
throw new Error(Only one instance of 
the 
session should be instantiated);
}
}

private var _userDisplayName:String 
= User's 
Fullname Goes here;
public function get userDisplayName():String {return 
_userDisplayName;}

}
}
   
  
 





[flexcoders] Re: TextArea htmltext parsing

2007-04-03 Thread scott_flex

Thanks for the update... i've also made progress in my spell checker 
suggest words algorithm.  I'm basically using a modified version of 
the Levenshtein algorithm.  I've found that with some minor tweaks it 
works great for 90% of mispelled words.  I'm always looking to speed 
up the word distance algorithm Levenshtein provides.

As far as UI, i just modeled the spell checker dialog window MS Word 
uses.  It seams to be the most intuitive and what most people know.

I would be curious to know your performance since everytime you want 
to suggest a word or check some text for bad spellings you have to go 
back to the server.  I have the complete word list downloaded into my 
app and do all checking and suggesting based on that list.  It's not 
perfect but no spell checker is. I get suggestions back within 100-
500 milliseconds, sometimes less depending on the length of the word.

Now the question is, how well will this perform for me on a slower 
pc... i'm running a dual core 2.4ghz with 2gb of ram, i'm guessing on 
a slower pc i won't see as fast of a response.  I plan to test to see 
how well it holds up.

--Scott


--- In flexcoders@yahoogroups.com, jmfillman [EMAIL PROTECTED] wrote:

 Scott, 
 
 I'm sending the word Array to PHP for checking. PHP will check each 
 word until it finds an incorrect word, then it will send the wrong 
word 
 back, along with 10 suggestions. I'm not that good at PHP, so I 
hired 
 someone to do this for me. We've worked out a fairly comprehensive 
 logorithm that I'm quite pleased with the suggested words it 
returns.
 
 I'm still working on the Flex part, but how I envision this is that 
 Flex gets the wrong word back, searches for it and 
 highlights/underlines it. The user is presented with a list of 
words 
 they can replace it with, or they can type in a new word (there are 
 some good examples of similar stuff in the Flex Builder Help/Flex 2 
 Developer's Guide: Selecting and modifying text and Programming 
 RichTextEditor Subcontrols). Programming RichTextEditor 
Subcontrols 
 has a section near the end that has a find/replace Application that 
 uses a RichTextEditor with a TitleWindow popup.
 
 Anyway, after correcting or adding the wrong word, I re-send the 
word 
 Array to PHP for checking. Since I'll allow them to modify the text 
 during the spell checking process, I resend the whole array until 
there 
 are no incorrect words.
 
 Still thinking about how to give them the option to ignore words, 
 without adding to their custom dictionary, so the spell check 
doesn't 
 get caught in a loop of returning a word that the user says is 
correct, 
 but they don't want to add.





[flexcoders] Re: RegExp Help

2007-03-31 Thread scott_flex

Instead of using the \w which is short hand for word characters, 
just insert your own charactar ranges you consider valid word 
characters.

\w is does not always include the same character sets across all the 
different implementations of regular expressions.

Hope that helps... probably good to get a good primer article on 
regular expressions, they are powerful... yet until you understand 
all the rules and options you have they are the most confusing things.

--Scott


--- In flexcoders@yahoogroups.com, jmfillman [EMAIL PROTECTED] wrote:

 I'm using the following pattern to analyze simple text: /\b\w+/gi
 
 This seems to work well, except for hyphenated words, like pre-
 school, and contractions, like isn't.
 
 Please help!!





[flexcoders] Re: RegExp Help

2007-03-31 Thread scott_flex

[A-Za-z_] is the same as \w

so if you want to include dashes and ' your pattern would be
[A-Za-z'_-]

Surround that by \b for word bounderies and you've got what you need.


Try this:

// mySourceText is just my source text i'm checking... put whatever 
you want.

var wordPattern:RegExp = /\b[A-Za-z'_-]+\b/gi;
var wordMatch:Array;
//wordMatch = wordPattern.exec(mySourceText);
do
{
wordMatch = wordPattern.exec(text);
if (wordMatch != null) trace(wordMatch);
} while (wordMatch != null)



--- In flexcoders@yahoogroups.com, jmfillman [EMAIL PROTECTED] wrote:

 They sure are confusing. I spent several hours reading various 
sites 
 last night and everything I tried didn't work; they gave me 
nothing. 
 Seems not everything works with Flex.





[flexcoders] Re: RegExp Help

2007-03-31 Thread scott_flex

nothing really,

i'm also not sure why the - after the 9 doesn't need to be escaped, 
but it does seem to work property without it.

--Scott

--- In flexcoders@yahoogroups.com, jmfillman [EMAIL PROTECTED] wrote:

 I had been playing with this: 
 
 var pattern:RegExp = /\b[A-Za-z0-9-']+/gi;
 
 In your example, what does the \b at the end do that the one at the 
 beginning doesn't?





[flexcoders] Re: TextArea htmltext parsing

2007-03-30 Thread scott_flex

No matter what you do to keep the formatting you still need the words 
in a plain text to run through your spell checker.  Using the text 
property saves all the hassle of removing the html formatting.  Thanks 
Adobe!  Things like bappli/bcation come back correctly as one 
word.

When I get the plain text i run this regex /\b\w+/gi; to parse out 
all the words.  Removes punctuations and such, parsing just on spaces 
won't do.  It's not 100% perfect but can finetune later.

Once I know a word is not spelled correctly against my master word list 
and have the user's corrected spelling, i go find it in the htmlText 
and weave it in.  The only thing that does NOT work really well is when 
a word is formatted differently in itself such 
as bappli/bcation.  I currently lose that the first 5 letters are 
bolded... oh well.  Can fix later.

What i've found most difficult is the UI to highlight the word so a 
user has context.  For now i'm just using the setSelection since i'm 
spell checking on TextAreas only.

Not sure how you are doing suggestive words but havn't firgured that 
out yet, no algorithm.  I'm loading a 120,000 word list into an array 
collection :)! I'm quite impressed how fast it is, loads in 
milleseconds when i split my text file on \r\n.  Using the build in 
contains to validate each word.  It's faster than calling any other web 
service.

Would like to know what you are doing for suggestive words.

--Scott


--- In flexcoders@yahoogroups.com, jmfillman [EMAIL PROTECTED] wrote:

 Ultimately I'm wanting to find each word to check the spelling, while 
 maintaining the HTML formatting of the TextArea. Using the text would 
 be far easier, but I loose the formatting.





[flexcoders] filterFunction issue with shared array collection in model / shared list

2007-03-26 Thread scott_flex

I have a shared arraycollection of value objects.  Singeton, only one 
instance of this array collection.

Dfferent views (in a tab navigator) are generated using this shared 
array collection but each view filters the data in a datagrid list with 
different criteria.

So.. in each view i utilized the filterFunction to correctly filter the 
array collection and only display what i needed into my datagrid.  That 
works great.

However, when i set the filter function and refresh the arrayCollection 
all my other views (tab windows) change as well because they are all 
databound to the shared array collection...

This does make sense... but not what i want.  Maybe i need to put the 
filter on the datagrid for each view, not the array collection.

Am i going about this wrong? I'm a newbie cairngorm and i believe this 
is an issue that others would run into.






[flexcoders] Re: filterFunction issue with shared array collection in model / shared list

2007-03-26 Thread scott_flex
Thanks!  Works great.

As usual it was something very simple, i'm sure i'll make use of the 
ListCollectionView class a lot more.

I didn't try the other suggestion by assing a new array collection 
the source from the copied but i'm guessing they are similar in 
nature.

--scott

--- In flexcoders@yahoogroups.com, Paul Williams [EMAIL PROTECTED] wrote:

 Take a look at the ListCollectionView class - you can pass 
your 'master'
 ArrayCollection into its constructor (because ArrayCollection 
implements
 IList). You can then set filter options on your ListCollectionView
 without affecting the 'master'. So you'd probably want to create a
 ListCollectionView for each of your individual views:
 
  
 
 
http://livedocs.adobe.com/flex/2/langref/mx/collections/ListCollection
Vi
 ew.html
 
  
 
 You can use a ListCollectionView as a dataProvider for your datagrid
 controls because it implements the required interfaces (just like
 ArrayCollection). The ListCollectionView will also listen for 
changes to
 the underlying 'master' list and update accordingly.
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of scott_flex
 Sent: Monday, March 26, 2007 4:11 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] filterFunction issue with shared array 
collection
 in model / shared list
 
  
 
 
 I have a shared arraycollection of value objects. Singeton, only 
one 
 instance of this array collection.
 
 Dfferent views (in a tab navigator) are generated using this shared 
 array collection but each view filters the data in a datagrid list 
with 
 different criteria.
 
 So.. in each view i utilized the filterFunction to correctly filter 
the 
 array collection and only display what i needed into my datagrid. 
That 
 works great.
 
 However, when i set the filter function and refresh the 
arrayCollection 
 all my other views (tab windows) change as well because they are 
all 
 databound to the shared array collection...
 
 This does make sense... but not what i want. Maybe i need to put 
the 
 filter on the datagrid for each view, not the array collection.
 
 Am i going about this wrong? I'm a newbie cairngorm and i believe 
this 
 is an issue that others would run into.





[flexcoders] Re: How do I get the ControlBar to show at the top of my Panel?

2007-03-21 Thread scott_flex
The first thing i would do is make sure that your mx:ControlBar mxml 
tag is NOT the last mxml tag in your component.

Have you tried making it the first?  That's what i'm doing on one of my 
panels where i do want a Control bar of buttons at the top of my popup 
Panel window.

--Scott


--- In flexcoders@yahoogroups.com, michael_ramirez44 
[EMAIL PROTECTED] wrote:

 I want my Panel control to have a ControlBar link componet that 
appears 
 at the top of the Panel instead of the bottom. Basically I want my 
 Panel control to have a Application type menu.





[flexcoders] ControlBar on Panel not positioned correctly when added from ActionScript

2007-03-16 Thread scott_flex

This should be simple but i'm fighting the position of a ControlBar 
that's on a Panel control when add via actionscript, not mxml.

The control bar is not correctly displayed at the bottom of the panel.  
IE... if the other child components cause the scroll bars to appear, I 
have to scroll to view the control bar as well... it should be always 
visible and stationary.

This works properly if i add the control bar in with mxml as the last 
element but not when using actionscript... even if i add it via 
actionscript in the creationComplete of the panel  to ensure it's the 
last child added.


--Scott







[flexcoders] Re: ControlBar on Panel not positioned correctly when added from ActionScript

2007-03-16 Thread scott_flex

I figured out my issue... I needed to add my ControlBar to the panel 
in the initialize event handler not the creation complete.

Not sure exactly why but when i add the control bar in the initialize 
event handler it correctly positions the control bar to the bottom of 
my panel.

--Soctt

--- In flexcoders@yahoogroups.com, scott_flex [EMAIL PROTECTED] wrote:

 
 This should be simple but i'm fighting the position of a ControlBar 
 that's on a Panel control when add via actionscript, not mxml.
 
 The control bar is not correctly displayed at the bottom of the 
panel.  
 IE... if the other child components cause the scroll bars to 
appear, I 
 have to scroll to view the control bar as well... it should be 
always 
 visible and stationary.
 
 This works properly if i add the control bar in with mxml as the 
last 
 element but not when using actionscript... even if i add it via 
 actionscript in the creationComplete of the panel  to ensure it's 
the 
 last child added.
 
 
 --Scott





[flexcoders] VBox, constraint based layout not clipping content

2007-03-09 Thread scott_flex

Any particualar reason why a Vbox won't correctly clip content and show 
scrollbars when the object is using constraint based layout positioning?

I'm adding up to 50 child objects to the vbox and want the scrollbars 
to appear so the user can scroll to see them all.

If i set the height, and width everything works as expected, so i've 
manually tapped into the resize event on my parent canvas and manually 
set the height and width to get the effect of a constraint based 
layout.  Doesn't seem like i should have to do this.

If i used the top,left,right,bottom properties, my VBox just expands 
its size to include all child objects added... which then forces the 
scroll bars on it's parent container, not what i want.

Maybe i'm doing something wrong...



[flexcoders] Re: VBox, constraint based layout not clipping content

2007-03-09 Thread scott_flex

Thanks, 

I do agree that the vbox automatically grows based on it's content is 
a good thing sometimes, i am making use of that default behavior for 
sure.

However, the constraint based layout is designed so i don't have to 
manually code changes for the width and height when the parent object 
is resized... so I would have never expected this behavior nor does 
it make sense (IMHO).

I'll just continue on with what i've done, it's not that complicated, 
just more work for me :).

--Scott


--- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote:

 
 Unless you explicitly set the height and width of a container, it 
will
 automatically measure to include all of it's children; with no 
scroll
 bars.   This is a good thing in some situations.  If you want the 
scroll
 bars to show up, set the dimensions.   clipContent is an entirely
 different animal; and provides interesting reading in the help docs.
 
 -TH
 __
 
 Tim Hoff
 Cynergy Systems, Inc.
 http://www.cynergysystems.com
 Office http://www.cynergysystems.comoffice/ : 866-CYNERGY
 
 --- In flexcoders@yahoogroups.com, scott_flex skrause@ wrote:
 
 
  Any particualar reason why a Vbox won't correctly clip content and
 show
  scrollbars when the object is using constraint based layout
 positioning?
 
  I'm adding up to 50 child objects to the vbox and want the 
scrollbars
  to appear so the user can scroll to see them all.
 
  If i set the height, and width everything works as expected, so 
i've
  manually tapped into the resize event on my parent canvas and 
manually
  set the height and width to get the effect of a constraint based
  layout. Doesn't seem like i should have to do this.
 
  If i used the top,left,right,bottom properties, my VBox just 
expands
  its size to include all child objects added... which then forces 
the
  scroll bars on it's parent container, not what i want.
 
  Maybe i'm doing something wrong...
 





[flexcoders] Re: .NET Webservices

2007-03-09 Thread scott_flex

Here's how i've been calling my web services right or wrong...

private var ws:WebService = new WebService();

// handle any error for this web service instance
ws.addEventListener(fault, faultHandler); 

ws.loadWSDL(http://mywebsite.com/service.asmx?WSDL);

// MyFunction just takes one string parameter and returns a string
ws.MyFunction.addEventListener(result, serviceResult);

// actually calls the function...
ws.MyFunction(Hello Web Service);

private function serviceResult(event:ResultEvent):void 
{
// shows the string return from web services, 
// cast to whatever variable type you need to.
Alert.show(event.result.toString());
}

public function faultHandler(event:FaultEvent):void 
{
Alert.show(event.toString(), WebService Error);
{



--- In flexcoders@yahoogroups.com, Brian Holmes [EMAIL PROTECTED] wrote:

 Does anyone have any examples they'd be willing to share or point 
me to
 of connectin to .NET webservices with  or without soap headers,
 preferably both.
 It'll be greatly appreciated.
  
 Thanks,
  
 b..
 
 
 ***
 The information in this e-mail is confidential and intended solely 
for the individual or entity to whom it is addressed.  If you have 
received this e-mail in error please notify the sender by return e-
mail delete this e-mail and refrain from any disclosure or action 
based on the information.
 ***





[flexcoders] Re: VBox, constraint based layout not clipping content

2007-03-09 Thread scott_flex

Yes! It took me a few seconds to figure that out after you explained 
it, my brain is fragile...

When setting just one of the constraints, (left or right) or (top or 
bottom) it makes perfect sense... but setting both (top and bottom) 
or (left and right), i just figured it manually set the width or 
height behind the scenes.

I'm probably confusing constraint based layout with the 
term Docking in .Net windows development.



--Scott

--- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote:

 Well, just one more point: constraints (similar to padding) have 
 nothing to do with the dimensions of a container.  They simply 
 provide a mechanism for positioning. While using top, bottom, left 
 and right can cause resizing, relative to the parent, they are more 
 or less just a tool for placement.
 
 -TH
 
 --- In flexcoders@yahoogroups.com, scott_flex skrause@ wrote:
 
  
  Thanks, 
  
  I do agree that the vbox automatically grows based on it's 
content 
 is 
  a good thing sometimes, i am making use of that default behavior 
 for 
  sure.
  
  However, the constraint based layout is designed so i don't have 
 to 
  manually code changes for the width and height when the parent 
 object 
  is resized... so I would have never expected this behavior nor 
 does 
  it make sense (IMHO).
  
  I'll just continue on with what i've done, it's not that 
 complicated, 
  just more work for me :).
  
  --Scott
  
  
  --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote:
  
   
   Unless you explicitly set the height and width of a container, 
 it 
  will
   automatically measure to include all of it's children; with no 
  scroll
   bars.   This is a good thing in some situations.  If you want 
 the 
  scroll
   bars to show up, set the dimensions.   clipContent is an 
entirely
   different animal; and provides interesting reading in the help 
 docs.
   
   -TH
   __
   
   Tim Hoff
   Cynergy Systems, Inc.
   http://www.cynergysystems.com
   Office http://www.cynergysystems.comoffice/ : 866-CYNERGY
   
   --- In flexcoders@yahoogroups.com, scott_flex skrause@ 
wrote:
   
   
Any particualar reason why a Vbox won't correctly clip 
content 
 and
   show
scrollbars when the object is using constraint based layout
   positioning?
   
I'm adding up to 50 child objects to the vbox and want the 
  scrollbars
to appear so the user can scroll to see them all.
   
If i set the height, and width everything works as expected, 
 so 
  i've
manually tapped into the resize event on my parent canvas and 
  manually
set the height and width to get the effect of a constraint 
 based
layout. Doesn't seem like i should have to do this.
   
If i used the top,left,right,bottom properties, my VBox just 
  expands
its size to include all child objects added... which then 
 forces 
  the
scroll bars on it's parent container, not what i want.
   
Maybe i'm doing something wrong...
   
  
 





[flexcoders] Re: Not able to generate GUID

2007-03-06 Thread scott_flex
Shaun,

Thanks for the reply, good to hear some strong objections.

First, i'm 99.9% sure this is the only app that will be generating 
ids for this database, but i do agree with that point.  I have full 
control over all apps that would ever generate PKs for my db, i can 
make sure they won't conflict.

I guess the point of a GUID is that I won't have collisions, or the 
possibility is so small, i'll take my chances, i'm not talking about 
millions of transactions.

I did think about creating a temp id and the translating when it 
comes back down... but i'm trying to avoid having to send someting 
back down after i post and save my xml to the database.

Another thought is that when my app loads, i'll just download X 
number of new ids that are available so i know (since the server gave 
them to me) they are unused, no collisions.

I would say the stragety i'm trying to accomplish is not great for 
large teams, but in this case, i'm one developer, one database. If 
this product takes off and makes a ton of money it can always be 
redesiged later... for now, i'm trying to cut a layer out of all the 
server side to client ui mapping for sake of development time.

--Scott


--- In flexcoders@yahoogroups.com, shaun [EMAIL PROTECTED] wrote:

 Hi,
 
 scott_flex wrote:
  Thanks for the reply... i probably will look into writing my own 
  implementation.  Never really thought of it...
  
  Generating GUIDs on server, while i can do that, just makes more 
  sense if it's done in the flex app itself.
  
 
 No, it doesnt.
 
  and yes... these IDs will be used as primary keys in my 
database... 
  at least that's the current design i'm thinking about.
  
 
 Your kidding..
 
  I'm generating an XML document in my flex app, where each 
  node/element and its attributes represent a single row and child 
rows 
  in a parent child/foreign key relationship.
  
  When i call a web service, i get my xml document which contains 
pre-
  existing primary keys but when i add elements that have not yet 
had 
  been persisted to the database i don't want to both send up my 
xml 
  data and then turn right around and pull it back down just so my 
new 
  xml elements/nodes have the correct primary keys attached.  
That's 
  especially important when i save/send up the xml a second and 
third 
  time.
  
  If i can assign my IDs earlier in the process, that solves that 
  issue.  I still have to check pre-existence on my server side 
when i 
  actually commit my changes to either run an insert or update sql 
  statement.
  
 
 What will happen with things like collision handling or other 
 applications wanting to insert into the database in future etc? Do 
they 
 have to ask you to generate them a PK with your
 special actionscript function? ;)
 
 Why not do something simple like assign a tempid on the client, do 
the 
 all the DB stuff on the server and return a list of 
 temp_client_id=server_side_id key/value pairs, then put those 
values 
 back in the xml on the client? Should be simple enough.
 
 At least that way you are not generating database primary keys in 
your 
 client app. You can also implement a strategy on the server side so 
your 
 client app never gets a real database PK.
 
 cheers,
   shaun





[flexcoders] Re: Not able to generate GUID

2007-03-06 Thread scott_flex

My initial concerns was that it would give a true GUID.  

This statement from the Flex Live docs on adobe.com states: This UID 
will not be truly globally unique; but it is the best we can do 
without player support for UID generation.

Maybe i'm reading that wrong... but i'm not getting the sense that I 
can guarantee these numbers to be unique across the board and be used 
to uniquely identify rows in a database... either as the primary key 
itself but most likely to determine the PK based on the rowGUID 
column.

--Scott


--- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote:

 What are your concerns regarding createUID()?
  
 - Gordon
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of scott_flex
 Sent: Monday, March 05, 2007 4:57 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Not able to generate GUID
 
 
 
 
 Is there no function or object to generate a GUID, a true globally 
 unique identifier?
 
 the createUID is not what i'm looking for, just figured generating 
a 
 GUID would be something pretty basic.





[flexcoders] Re: Not able to generate GUID

2007-03-06 Thread scott_flex

Well.. i appreciate all the clarification on how the UID is 
generated.  That certainly builds my confidence that it will stay 
unqiue... and even at that these ids will be split between different 
tables in my database so that further decreases the chances of 
collision.

And the UID's can be used in uniqueidentifier column types in SQL 
Server.

Using the Flex's createUID does make my life a lot simpler.


Any reason why Flex/Actionscript can't use the MAC address or the 
CPU's information to get a true GUID?

--Scott


--- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote:

 createUID() uses ActionScript's Math.random() to generate 24 of the 
32
 bytes of the UID; the other 8 are determined from the current date-
time.
 The chance that these UIDs wouldn't be good enough for database 
keys is
 very small. But just in case, couldn't you simply call createUID() 
again
 if the database errored because a new row didn't have a unique key?
  
 - Gordon
  
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of scott_flex
 Sent: Tuesday, March 06, 2007 1:36 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Not able to generate GUID
 
 
 
 
 My initial concerns was that it would give a true GUID. 
 
 This statement from the Flex Live docs on adobe.com states: This 
UID 
 will not be truly globally unique; but it is the best we can do 
 without player support for UID generation.
 
 Maybe i'm reading that wrong... but i'm not getting the sense that 
I 
 can guarantee these numbers to be unique across the board and be 
used 
 to uniquely identify rows in a database... either as the primary 
key 
 itself but most likely to determine the PK based on the rowGUID 
 column.
 
 --Scott
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 , Gordon Smith gosmith@ wrote:
 
  What are your concerns regarding createUID()?
  
  - Gordon
  
  
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 ] On
  Behalf Of scott_flex
  Sent: Monday, March 05, 2007 4:57 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com 
  Subject: [flexcoders] Not able to generate GUID
  
  
  
  
  Is there no function or object to generate a GUID, a true 
globally 
  unique identifier?
  
  the createUID is not what i'm looking for, just figured 
generating 
 a 
  GUID would be something pretty basic.
 





[flexcoders] Re: printJob on a textArea

2007-03-05 Thread scott_flex

Try removing the height from your text area object and just let flex 
determine the height automatically... ie, it doesn't have scroll bars 
itself.  Then print it, you should get it all.

You'll probably also want to set the width manually when you print it 
to the width of the print object...  Flex prints at 72 dpi... so 8.5 X 
11 paper is 612 pixels wide, assuming you are not counting for any 
margins.

It appears flex will just print exactly what's on screen, scroll bars 
and all and it's not intelligent for printing text.  So in my case, i 
transform the objects and put them in a better printing state before I 
send them tothe printer... because the format for printing is not 
always desired for how it shows on screen.

I wish flex had better printing utilities for page breaks and making it 
easier to put more than one display object on a single page... but then 
again, you have a lot more control than trying to generate a html and 
print a web page... IF you want complete control over how things are 
printed.


--- In flexcoders@yahoogroups.com, Jeremy Tooley [EMAIL PROTECTED] wrote:

 When I go to print my text area in flex. The Text area gets clipped 
by 
 what is shown and the rest does not print. The styles and everything 
 come out great, I just cant print the data that is not shown.
 
 Any Ideas
 
 Jeremy Tooley





[flexcoders] Not able to generate GUID

2007-03-05 Thread scott_flex

Is there no function or object to generate a GUID, a true globally 
unique identifier?

the createUID is not what i'm looking for, just figured generating a 
GUID would be something pretty basic.









[flexcoders] Re: Not able to generate GUID

2007-03-05 Thread scott_flex

Thanks for the reply... i probably will look into writing my own 
implementation.  Never really thought of it...

Generating GUIDs on server, while i can do that, just makes more 
sense if it's done in the flex app itself.

and yes... these IDs will be used as primary keys in my database... 
at least that's the current design i'm thinking about.

I'm generating an XML document in my flex app, where each 
node/element and its attributes represent a single row and child rows 
in a parent child/foreign key relationship.

When i call a web service, i get my xml document which contains pre-
existing primary keys but when i add elements that have not yet had 
been persisted to the database i don't want to both send up my xml 
data and then turn right around and pull it back down just so my new 
xml elements/nodes have the correct primary keys attached.  That's 
especially important when i save/send up the xml a second and third 
time.

If i can assign my IDs earlier in the process, that solves that 
issue.  I still have to check pre-existence on my server side when i 
actually commit my changes to either run an insert or update sql 
statement.



--- In flexcoders@yahoogroups.com, Jim Cheng [EMAIL PROTECTED] wrote:

 scott_flex wrote:
  Is there no function or object to generate a GUID, a true 
globally 
  unique identifier?
 
 Just write your own--it's dirt simple.  FYI, GUIDs and UUIDs aren't 
 actually guaranteed to be absolutely unique--however, given the 
number 
 of random bits involved, a repeat is statistically highly unlikely 
to 
 happen.
 
 They're essentially just concatenated random bits,  although in 
some 
 cases a few bits are derived from MAC addresses (per version 1 
UUIDs, 
 which you won't have to access to) or hashes of a URL (version 3 
and 5 
 UUIDs).
 
 See:
 
http://en.wikipedia.org/wiki/Globally_Unique_Identifier
 
http://www.ietf.org/rfc/rfc4122.txt
 
 If you need it to play with a server and you're worried about 
repeats 
 enough to expend some developer cycles, a better use of your time 
is to 
 hash the GUIDs that you're given on the server-side and do a quick 
 search for a collision prior to creating a database entry.  This 
tactic 
 also gets you around the possibility of malicious folk passing in 
faked 
 GUIDs that they know may result in a collision.
 
 Jim Cheng
 effectiveUI





[flexcoders] Re: Is there a scrollIntoView for VBox?? Automatically scroll to a child object

2007-03-02 Thread scott_flex
Well, i thought i would answer myself... I certainly cannot find a 
built in way to automatically scroll to a display object inside a 
VBox.

So, here's my hack at it:

private function scrollObjectIntoView
(vBox:VBox,scrollToObject:DisplayObject):void
{
var startViewPosition:int   = vBox.verticalScrollPosition;
var endViewPosition:int = vBox.verticalScrollPosition + 
vBox.height;
var scrollToObjectPosition:int  = 0;

// determine intended scroll position of the input DisplayObject
// just sum up the virtual Y position of the child display object
for each (var displayObj:DisplayObject in vBox.getChildren())
{
if (displayObj == scrollToObject) break;
scrollToObjectPosition += displayObj.height;
}

// is already in view if the scroll to position is 
// between the start and end current view position
if (scrollToObjectPosition  startViewPosition  
scrollToObjectPosition  endViewPosition) return;

// don't let the scroll to postion be greater than 
// the max scroll to position, could also use a Math.max here.
if (scrollToObjectPosition  vBox.maxVerticalScrollPosition) 
scrollToObjectPosition = vBox.maxVerticalScrollPosition;

// set the scroll to positin.
vBox.verticalScrollPosition = scrollToObjectPosition;
}   




--- In flexcoders@yahoogroups.com, scott_flex [EMAIL PROTECTED] wrote:

 
 
 Is there no automatic way to scroll to a particualar child object 
 inside a VBox?
 
 I'm writing a tool that allows the user to select a child control 
in 
 a vbox, (it get highlighted just like a row in a datagrid) and then 
 give them an up and down arrow to move the object up or down.
 
 However, when you move a question up (using the vbox's 
setChildIndex 
 method) it's moved up or below the window i want to programatically 
 scroll the selected child into view but only if it needs to.
 
 Right now i've just writing my own code, basically reading the 
scroll 
 postion of the vertical scroll bar and all the heights of the child 
 object in the vbox it's a hack though.
 
 I think i've see a scrollIntoView method somewhere but it's not 
 listed on the VBox ui object.
 
 Thanks for anyones help i could be missing something really 
easy.





[flexcoders] Re: Starting out - recommendations

2007-03-02 Thread scott_flex

...ActionScript 3 CookBook from OReilly, fast read and really helpful 
for basics on AS... i came from C# and .net development.  I was 
TOTALLY new to Flex and AS, i needed to learn both... i still need to 
learn both :)

I can also ditto for the lynda.com training, i just purchased the one 
month cause i knew i would watch the video's once and never again... 
$24.95 was a cheap investment.

--Scott


--- In flexcoders@yahoogroups.com, Ryan Barrett [EMAIL PROTECTED] wrote:

 lynda.com have a two really nice videos that'll take you through the
 basics..
 
 -- 
 Ryan
 
 On 01/03/07, swain_will [EMAIL PROTECTED] wrote:
 
Hello group,
 
  I'm just starting out with Flex 2. I'm coming from a coldfusion
  background, and will want to focus on integrating Flex and CFMX.
 
  I've got the From the Source training book, which I'm working 
through,
  and I've read various of the articles on the Adobe site, and 
obviously
  I've found this list. Are there any other resources I should be
  looking at?
 
  Thanks all in advance.
 
  Will
 
   
 
 
 
 
 -- 
 Ryan





[flexcoders] determine when list of dynamically added UI objects are fully rendered?

2007-03-01 Thread scott_flex

When you programmatically add many UI objects, 25-100 to a display 
list, VBox, DataGrid or whatever, when can you determine all UI 
objects have been fully rendered?

I'm looping through an xml file, and for each row/node I'm creating a 
new instance of a custom display object and adding it as a child to a 
VBox.

The looping logic takes milliseconds to run but it could be 3-4 
seconds before the actual UI catches up.

How do I know when it's done rendering all my child objects?

I want to display the busy cursor and remove it when they are all 
done rendering.

Listening to updateComplete or creationComplete events don't 
necessarily work.  Multiple updateCompletes get fired for different 
stages in the creation process and creationComplete does get fired 
before UI is done drawing to the screen as well.

Any thoughts?  Am I just programming something wrong?




[flexcoders] Is there a scrollIntoView for VBox?? Automatically scroll to a child object

2007-02-24 Thread scott_flex


Is there no automatic way to scroll to a particualar child object 
inside a VBox?

I'm writing a tool that allows the user to select a child control in 
a vbox, (it get highlighted just like a row in a datagrid) and then 
give them an up and down arrow to move the object up or down.

However, when you move a question up (using the vbox's setChildIndex 
method) it's moved up or below the window i want to programatically 
scroll the selected child into view but only if it needs to.

Right now i've just writing my own code, basically reading the scroll 
postion of the vertical scroll bar and all the heights of the child 
object in the vbox it's a hack though.

I think i've see a scrollIntoView method somewhere but it's not 
listed on the VBox ui object.

Thanks for anyones help i could be missing something really easy.



[flexcoders] help creating XML object with variable data

2007-02-20 Thread scott_flex

how come the following does not work

var myString:String = Test data;
var myXml:XML = Option value={myString}/option
//not string substituion occurs, {myString} is just inserted as a
literal.

but this does:

var myString:String = Test data;
var myXml:XML = Option{myString}/option
// {myString} is property repaced wiht the text Test data... as I
would expect.

For some reason i can't bind or use the {} notation when creating an XML
object and trying to assign attributes of an element... but it does work
when i use the {} notation to insert text between the begin and end tags
of a node.

Am i doing something wrong?  Or is this a limitation seems silly if
it is.



[flexcoders] Re: help creating XML object with variable data

2007-02-20 Thread scott_flex

Thanks!  That did it... makes sense why it did what it did when i had 
quotes... just in case i really did want that as a literal.

I'm a newbie at flex... if only i could get my company to use it more 
for our web apps unfortunately we have MS Gold certified blinders 
on sometimes.  Go Flex!!!


--- In flexcoders@yahoogroups.com, David Chang [EMAIL PROTECTED] wrote:

 Hi,
 
 You don't need the quotes when assigning it to an attribute, 
myXml:XML = 
 Option value={myString}/option should do the trick.
 
 
 scott_flex wrote:
 
  how come the following does not work
 
  var myString:String = Test data;
  var myXml:XML = Option value={myString}/option
  //not string substituion occurs, {myString} is just inserted as 
a 
  literal.
 
  but this does:
 
  var myString:String = Test data;
  var myXml:XML = Option{myString}/option
  // {myString} is property repaced wiht the text Test data... as 
I 
  would expect.
 
  For some reason i can't bind or use the {} notation when creating 
an 
  XML object and trying to assign attributes of an element... but 
it 
  does work when i use the {} notation to insert text between the 
begin 
  and end tags of a node.
 
  Am i doing something wrong?  Or is this a limitation seems 
silly 
  if it is.
 
 





[flexcoders] retreiving object height after adding it as a child object

2007-02-09 Thread scott_flex
How or when can you retreive the height of a display object when you 
add it to your vbox or hbox.

I have code that looks like this:

var myObject:myControl = new myControl();

// call the public load method with xml to set some text
// on myControl and other display values.
myControl.load(myXml); 

myVBox.addChild(myControl);

trace(myControl.height); // returns 0

if I add an updateComplete event listener to myControl, i normally 
get 4 calls to the handler since there are several phases in the 
layout.  Which one is the last one?  In theory the next one is the 
last one, i realize that.  

if i listen to the creationComplete event, it's only called 
once but it's dispached before it finished it's truly done sizing 
itself.

even doing a callLater to get myControl's height doesn't work, too 
soon.

SO at what point can i be sure that i can retreive the 
myControl.height property and know it's the final height?




[flexcoders] How do i determine when all rendering is complete for added objects in for loop

2007-02-07 Thread scott_flex

I'm parsing an xml document and adding child objects to a VBox.  The
child components all have a text component which receives text that is
set to the htmlText property.  So depending on the text the height of
the control varies.

However, i need to know the height of each control i'm adding (for
printing reason) but i have no idea how to get it right away, at least
when it's added to the VBox, ideally at least.

I've tried listening to the updateComplete and creationComplete
listeners to each control added, then in theory when I handle the event
i know the object is done and i can finally use the object.height
property to get it's height in pixels.  If you attempt to the the
object.height proprety to early you get zero or something that is not
reflective of the final height.

However, listening to the updateComplete, you get multiples calls
because it's dispatched several times throughout the creation of the
child object... how do you know which one is the last one?  this may not
even be the best way to do it.

The creationComplete is only sent once but it's sent before it finishes
rendering the text box which controls the height.

So without intentionally waiting a few seconds for the components to
load, how or when can i be sure all the child components have finished
sizing themselves from which I can get a true height value from them?

Hopefully this makes sense, i'm not quite even sure what to search on. 
I'm a newbie to flex and love it so far, main expierience in asp.net.