[flexcoders] Re: Dynamic datagrid columns

2006-08-16 Thread e_baggg
Tom- The Datagrid component now has an attribute called columns. When you dynamically create columns, add them to an array and set datagrid.columns value to this array. To add or remove columns, just get a reference to that 'columns' attribute and call normal array methods. I actually have

[flexcoders] Re: TileList item margins

2006-08-16 Thread e_baggg
Sergey, if you set the verticalGap=0 on the component's container, then that will do the trick. You will need to setup a separate mxml component and drop the mx:image within that container...then change your TileList to contain the attribute itemRenderer=com.myComponent --- In

[flexcoders] CairngormEvent Antipattern

2006-08-23 Thread e_baggg
Hello group- I hadn't seen a previous post regarding this explicity so I wrote a small blog about it. It helps reduce the #of classes that get created when using Cairngorm (a big issue with me since the client is VERY picky with their swf file sizes). This blog shows the code for usuing a

[flexcoders] Re: CairngormEvent Antipattern

2006-08-25 Thread e_baggg
no longer hard-coding the WidgetFrontController.ADD_WIDGET into each CairngormEvent sublcass. --- In flexcoders@yahoogroups.com, Andrea Varga [EMAIL PROTECTED] wrote: e_baggg wrote: Hello group- I hadn't seen a previous post regarding this explicity so I wrote a small blog about it. It helps

[flexcoders] Re: specifying a percentage width in script?

2006-08-28 Thread e_baggg
You have to calculate that yourself. Add an event listener for resize and which calls a function that calculates and resets the width. private function resizeHandler () : void { //if parent is an HBox that is set to 100% spacer.width = parent.width; } --- In flexcoders@yahoogroups.com,

[flexcoders] Re: Error #2038: File I/O Error.

2006-11-06 Thread e_baggg
It actually doesn't have anything to do with the filename, it's actually the file size. FileReference can't upload files that are 0KB. Add some characters to 'new document.txt' and the upload will be fine. I added a try/catch to notify the user if this happens: try {

[flexcoders] Re: Error #2038: File I/O Error.

2006-11-08 Thread e_baggg
still continues... my application work in my localhost but not in my server (i get the error 2038 File I/O) how can i fix it? thanks... yigit boyar middle east technical university / sophomore - Original Message From: e_baggg [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent

[flexcoders] Re: socket question

2006-12-07 Thread e_baggg
David, We are able to have some synchronous behavior to sockets. What we do is assign a unique ID with each request the client sends, and when the server is done, it passes that id back. So to further illustrate your example: Client sends this: getServerData id=1 data=yourData/ The server

[flexcoders] Re: How do I parse this XML?

2006-12-11 Thread e_baggg
The namespaces is why you are having trouble using e4x. Please see the livedocs on namespaces for more help. http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1912.html --- In flexcoders@yahoogroups.com, Prakaz [EMAIL PROTECTED]

[flexcoders] RegExp

2006-12-21 Thread e_baggg
I am trying to create a regular expression that essentially parses out all the html of a text string. (i.e. - Remove all text between lt; and gt;). I am not the seasoned regex pro, but my attempts have failed based on research within the livedocs: var pattern : RegExp = /\lt;[a-zA-Z0-9]*gt;/gi

[flexcoders] Re: RegExp

2006-12-21 Thread e_baggg
need the multi-line flag also (if the XML has line breaks... so I'd give this a shot... haven't tried it myself though /lt;.*?gt;/gim good luck PW --- In flexcoders@yahoogroups.com, e_baggg e_baggg@ wrote: I am trying to create a regular expression that essentially parses out

[flexcoders] Re: RegExp

2006-12-21 Thread e_baggg
- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of e_baggg Sent: Thursday, December 21, 2006 2:57 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: RegExp Parker, Thanks, but that did not do the trick. It still returned the full HTML

[flexcoders] How to create navigateToURL http links with non ascii characters??

2007-02-14 Thread e_baggg
Hello. I have the situation where some of the URLs that I need to link to have non-Ascii characters in them. So, for example... if I have a directory structure like this (hopefully the A comes through with the accent above it): non-ascii Á/test/ the URL that gets generated is:

[flexcoders] Re: How to create navigateToURL http links with non ascii characters??

2007-02-14 Thread e_baggg
@yahoogroups.com, e_baggg e_baggg@ wrote: Hello. I have the situation where some of the URLs that I need to link to have non-Ascii characters in them. So, for example... if I have a directory structure like this (hopefully the A comes through with the accent above it): non

[flexcoders] Re: setFocus - help needed

2007-02-27 Thread e_baggg
Change the line of code in your goTo() method to be: focusManager.setFocus(one); --- In flexcoders@yahoogroups.com, dffmyco [EMAIL PROTECTED] wrote: Three text input controls. Tab enabled, tab index 1,2,3. On the focus out of text control three I run a function to set focus back to text

[flexcoders] Re: Need help seaching and comparing in an ArrayCollection

2007-02-27 Thread e_baggg
That is exactly what you need to do. Create a for loop and get a handle on each object in the loop. Then, set up a method that returns a Boolean if it needs to be flagged. This method will check the dates. if true, then inside your For loop, flag the data object. Note: You can do the

[flexcoders] Compile CSS to SWF problem

2007-04-06 Thread e_baggg
I have a .css file which compiles to a swf and I can load in via runtime without problem (using StyleManager.loadStyleDeclarations()). However, I receive compiler errors once I have Embed code in my css like below. I presume it is because the swf that the css gets compiled to does not have

[flexcoders] Re: Compile CSS to SWF problem

2007-04-10 Thread e_baggg
[EMAIL PROTECTED] wrote: The images you embed need to be accessible by the compiler. Is the images folder in the same directory as the CSS? Have you tried changing the path to the image? Tim On 06 Apr 2007 09:51:37 -0700, e_baggg [EMAIL PROTECTED] wrote: I have a .css file which

[flexcoders] Cairngorm ServiceLocator error - duplicate instantiation

2007-04-19 Thread e_baggg
I am using Cairngorm (Flex 2.0.1)...and if I put the cursor inside the text area and (holding down the Ctrl key) hit Enter really fast, I get this error below where the main application is trying to call the ServiceLocator constructor again. Any idea why? I can replicate it w/ a simple app. ##

[flexcoders] DataGrid HeaderRenderer Recreates every click

2007-05-31 Thread e_baggg
I have a server-side sort on my DataGrid which means I had to implement my own headerRenderer to handle the click event, sort, and server calls. I am trying to create the asc/desc arrow now but I realized that any click event on the DataGrid instantiates a new Object of the headerRenderer (all

[flexcoders] Re: DataGrid HeaderRenderer Recreates every click

2007-05-31 Thread e_baggg
:[EMAIL PROTECTED] On Behalf Of e_baggg Sent: Thursday, May 31, 2007 10:18 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] DataGrid HeaderRenderer Recreates every click I have a server-side sort on my DataGrid which means I had to implement my own headerRenderer to handle

[flexcoders] AS3 method exist returning the # of bytes a String is?

2007-06-08 Thread e_baggg
I am implementing a spell checker and am hitting some issues because for non-Ascii characters such as ò...this is actually two bytes where a normal character is 1 byte...which throws off the start and end index of the text in the textArea. Do any Flash/AS3 methods exist that return the number of

[flexcoders] Cannot multiple select rows after deleting row from a List

2007-09-27 Thread e_baggg
I was able to recreate this issue in a very simple example included below. If I select a row, delete it (which auto selects the next row)...if I then Shift-click another row...the highlighted row is not included in the selected group. Any future shift-clicks from this point work as expected. has

[flexcoders] Re: Cannot multiple select rows after deleting row from a List

2007-09-28 Thread e_baggg
the bug. Thanks. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of e_baggg Sent: Thursday, September 27, 2007 4:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Cannot multiple select rows after deleting row from a List

[flexcoders] Re: CairngormEvent Antipattern

2006-08-30 Thread e_baggg
Andi- Tom was referring to having a hierarchy of FrontControllers. He happens to have a class called CoreController which all of his Flex apps would use. Then, each Flex app will have it's own FrontController that extends CoreController...this way each developer has their own controller. This

[flexcoders] Re: Cairngorm / Hibernate Best Practices

2006-08-31 Thread e_baggg
/Hibernate setup, but haven't yet. Is it difficult to use Spring with Flex, and where would I go to begin? Also, 4 years of a going to a Liberal Arts school forces archaic words like 'hitherto' into your vocabulary, haha. --- In flexcoders@yahoogroups.com, e baggg e_baggg@ wrote

[flexcoders] How to load an Image dynamically as for icon (of type Class)??

2006-08-31 Thread e_baggg
I have an application that has a popup window that users will popup very rarely. This popup window has a mx:List with a dozen different icons for each row in the List. For this reason I do not want to embed the images, but rather, load them at runtime when the wndow is popped. I am having

[flexcoders] Re: How to load an Image dynamically as for icon (of type Class)??

2006-09-01 Thread e_baggg
Von: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von e_baggg Gesendet: Donnerstag, 31. August 2006 22:53 An: flexcoders@yahoogroups.com Betreff: [flexcoders] How to load an Image dynamically as for icon (of type Class

[flexcoders] Unable to pull up API in FlexBuilder with Ctrl + Spacebar

2006-10-11 Thread e_baggg
This has to be the most frustrating thing I've come across in a long time (more frustrating then when my computer got hosed trying to debug Flex 1.5 apps accidentally with the Flash 8.5 beta plugin). Anyway, I am no longer able to pull up the dynamic menu of class names and variable attributes

[flexcoders] Socket woes - something simple I'm sure

2006-10-19 Thread e_baggg
Hello. I have a XMLSocket class that I am able to send/receive data to no problem. I switched my implementation to use the flash.net.Socket class and now I cannot receive data back. I updated my sendMessage() to the following...this request should trigger a response from the server but it

[flexcoders] Re: Socket woes - something simple I'm sure

2006-10-19 Thread e_baggg
into a buffer to detect the null byte to denote a message received. Ted :-) From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of e_baggg Sent: Thursday, October 19, 2006 8:44 AM To: flexcoders@yahoogroups.com Subject: [flexcoders

[flexcoders] Re: Socket woes - something simple I'm sure

2006-10-19 Thread e_baggg
@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of e_baggg Sent: Thursday, October 19, 2006 8:44 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Socket woes - something simple I'm sure Hello. I have a XMLSocket class that I am able to send/receive data to no problem. I

[flexcoders] Re: Socket woes - something simple I'm sure

2006-10-19 Thread e_baggg
: this.writeByte( 0x00 ); this.flush(); -d e_baggg wrote: ## Try adding a null byte before flushing the flash.net.Socket. Ted- Thanks for your response but I am still unable to get it working. Partly b/c I can't find any help on how to add a null byte. I would think this (or '\0') would

[flexcoders] Re: Flex Tab order

2006-10-29 Thread e_baggg
In the last text box, add a function for the focusOut handler that manually sets the focus back to the first box (or button). --- In flexcoders@yahoogroups.com, gur_sukh [EMAIL PROTECTED] wrote: Hi, In flex i have vbox with 4 TextInputs. when we tab through them after the last input the

[flexcoders] Re: Convert time string to minutes

2006-10-31 Thread e_baggg
It shouldn't be too difficlut to write this code yourself. I haven't tested this but 'hours' is 0 based so that's why I added 1. var date : Date = new Date(); var totalMinutes : Number = (date.hours+1) * 60; totalMinutes += date.minutes; --- In flexcoders@yahoogroups.com, Wally Randall [EMAIL

[flexcoders] FileReference woes....

2008-02-22 Thread e_baggg
I am rather experienced with the FileReference class but have come across a major problem. Basically, the file uploading just stopped working. It works for me in IE (though I still receive the Error 203 File I/O Error which on the server is a 403 'not authenticated). It does not work at all in

[flexcoders] Re: FileReference woes....

2008-02-22 Thread e_baggg
. Not sure if I want to catch that as a solution so I'm going to test more but I am out of options. The bug mentioned below is 'https' which I am not on. --- In flexcoders@yahoogroups.com, Jon Bradley [EMAIL PROTECTED] wrote: On Feb 22, 2008, at 12:56 PM, e_baggg wrote: Using a packet sniffer, I

[flexcoders] Problem authenticating Flex to Tomcat with HTTPService

2008-03-05 Thread e_baggg
I'm trying to authenticate against a Java-based application server (Tomcat) from my Flex app. I'm unable to set the HTTP Authorization header to pass to the server to authenticate. I'm also not able to read the cookie header that the server sends back after successful authentication.

[flexcoders] Re: Problem authenticating Flex to Tomcat with HTTPService

2008-03-05 Thread e_baggg
to authenticate without a login page is to configure TomCat to use Basic Auth and you will get the standard browser user/pass popup whenever accessing the secure realm. --- In flexcoders@yahoogroups.com, e_baggg e_baggg@ wrote: I'm trying to authenticate against a Java-based application

[flexcoders] Unable to send HTTP parameters via Socket Digest Auhtorization

2008-04-03 Thread e_baggg
I am using flash.net.Socket to write HTTP requests and receive HTTP responses. I'm using Tomcat Digest Authorization and everything works fine for logging in and retrieving data. However, any request that requires parameters does not work. I am using Ethereal to sniff a valid requests and trying

[flexcoders] Re: Unable to send HTTP parameters via Socket Digest Auhtorization

2008-04-07 Thread e_baggg
is not properly closed when I receive the response? GET /app/myaction.action HTTP/1.1 Host: www.mydomain.com Authorization:Basic ZGV2MTpwYXNzd29yZA== --- In flexcoders@yahoogroups.com, Dave Cragg [EMAIL PROTECTED] wrote: On 3 Apr 2008, at 22:11, e_baggg wrote: anyone see anything wrong

[flexcoders] Parsing FLV meta data

2008-04-21 Thread e_baggg
Hello all. I am writing a Java library to parse out the metadata of a FLV. It is working OK for a specific .flv, but the problem is the meta data can be rather random of where it appears after the onMetaData header. The FLV usually has a onMetaData and 0-n onTransition headers. Usually there is a

[flexcoders] Socket HTTP/1.1 connection not closed even after Response is sent

2008-06-10 Thread e_baggg
This is baffling me. For authentication reasons, I am doing all my HTTP traffic via a custom flash.net.Socket where I create and parse the HTTP request/response myself (using Digest authorization). Everything works fine when I run the generated html/swf files locally, but once I deploy them to the

[flexcoders] Re: Socket HTTP/1.1 connection not closed even after Response is sent

2008-06-11 Thread e_baggg
AM, e_baggg [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: This is baffling me. For authentication reasons, I am doing all my HTTP traffic via a custom flash.net.Socket where I create and parse the HTTP request/response myself (using Digest authorization). Everything

[flexcoders] Re: Socket HTTP/1.1 connection not closed even after Response is sent

2008-06-11 Thread e_baggg
Actually, I stand corrected. Once I added in my port # to the cross-domain...it worked. Thanks again gang! Big help! cross-domain-policy allow-access-from domain=* to-ports=9080,8080/ /cross-domain-policy --- In flexcoders@yahoogroups.com, e_baggg [EMAIL PROTECTED] wrote: Thanks for your

[flexcoders] Re: Socket HTTP/1.1 connection not closed even after Response is sent

2008-06-11 Thread e_baggg
, e_baggg [EMAIL PROTECTED] wrote: Actually, I stand corrected. Once I added in my port # to the cross-domain...it worked. Thanks again gang! Big help! cross-domain-policy allow-access-from domain=* to-ports=9080,8080/ /cross-domain-policy --- In flexcoders@yahoogroups.com, e_baggg

[flexcoders] Re: Socket HTTP/1.1 connection not closed even after Response is sent

2008-06-11 Thread e_baggg
. -Josh On Thu, Jun 12, 2008 at 8:35 AM, e_baggg [EMAIL PROTECTED] wrote: I spoke too soon. The 3 second delay still exists and when I set up the Swf policy file debugger for Windows...the Flash player outputs this. My concern is that first warning. According to the docs, calling

[flexcoders] Re: Socket HTTP/1.1 connection not closed even after Response is sent

2008-06-12 Thread e_baggg
header info. -Josh On Thu, Jun 12, 2008 at 2:20 PM, e_baggg [EMAIL PROTECTED] wrote: I am doing hand-rolled GETs because Flex (HttpService) cannot pass headers (ie jessionid). Thus, I need to open my own flash.net.Socket and write/read the request/response manually. It works great

[flexcoders] Re: Socket HTTP/1.1 connection not closed even after Response is sent

2008-06-12 Thread e_baggg
, Jun 13, 2008 at 3:08 AM, e_baggg [EMAIL PROTECTED] wrote: After thoroughly reading the Adobe socket policy docs, it looks like I'm going to have to open up port 843 and serve the new crossdomain.xml that way. Even though I have it on my root and call Security.loadPolicy() on it (and I see

[flexcoders] Memory issues ... garbage collection only running in IE (not FF or Safari)

2008-10-28 Thread e_baggg
So I have an app in production which after 10 minutes of usage began to perform EXTREMELY slow, and users had to restart the app. (Flex 3) Windows and Mac...all browsers. I did some Profiling and did not get far. Whenever I take a Memory Snapshot, gc() is forced and all my objects are

[flexcoders] Re: Memory issues ... garbage collection only running in IE (not FF or Safari)

2008-10-28 Thread e_baggg
Sent: Tuesday, October 28, 2008 3:09 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Memory issues ... garbage collection only running in IE (not FF or Safari) e_baggg, You're not the only one. We're experiencing very similar problems. Our app just keeps gobbling memory

[flexcoders] Re: Memory issues ... garbage collection only running in IE (not FF or Safari)

2008-10-29 Thread e_baggg
:) --- In flexcoders@yahoogroups.com, e_baggg e_baggg@ wrote: So I have an app in production which after 10 minutes of usage began to perform EXTREMELY slow, and users had to restart the app. (Flex 3) Windows and Mac...all browsers. I did some Profiling and did not get far. Whenever I

[flexcoders] Is it possible to do a right-click ContextMenu for a TabNavigator tab?

2009-04-15 Thread e_baggg
I have a requirement where a user can right-click any one of the tabs and have options to delete, duplicate, disable, etc. The tabs (children) of the mx:TabNavigator are VBoxs, and the tab name is pulled from the label attribute of the VBox. I can't put the ContextMenu against the VBox

[flexcoders] Re: Is it possible to do a right-click ContextMenu for a TabNavigator tab?

2009-04-16 Thread e_baggg
and Viewstack, it is more flexible than TabNavigator. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of e_baggg Sent: Wednesday, April 15, 2009 2:43 PM To: flexcoders