[flexcoders] Re: SWC compiled against Flex 2 SDK only usable in Flex 3 projects

2008-01-17 Thread ben.clinkinbeard
Hi Alex, No, I didn't because I had no idea I was supposed to. I don't see any info in the docs mentioning the need to create a global selector. I have now created one, but that causes a different error. No matter what I put in the selector I get an error in the createBorder() method of Container

[flexcoders] Re: Passing additional information into renderer

2008-01-17 Thread ben.clinkinbeard
Its generally more about giving your renderer enough info that it can retrieve the information it needs. This is my take on using ClassFactory with renderers. http://www.returnundefined.com/2006/11/creating-truly-reusable-renderers-with-classfactory HTH, Ben --- In flexcoders@yahoogroups.com,

[flexcoders] Re: DataGridColumn headerRenderer instance

2008-01-17 Thread ben.clinkinbeard
Can you get dimensions via dgColumn.width and dg.headerHieght? --- In flexcoders@yahoogroups.com, Mark Bradley [EMAIL PROTECTED] wrote: Thanks for the reply, but no. headerRenderer on DataGridColumn is a class factory object, and in cases where I am not specifically setting it, it is

[flexcoders] Re: Drawn objects acting as children to components?

2008-01-17 Thread ben.clinkinbeard
Where are you making your calls to the drawing API? It should be in updateDisplayList(), but that would require subclassing. If you don't want to subclass you could probably hook up a listener to networkBrowser's updateComplete event and clear and then redraw the graphics in the handler. HTH, Ben

[flexcoders] Re: SWC compiled against Flex 2 SDK only usable in Flex 3 projects

2008-01-17 Thread ben.clinkinbeard
bump --- In flexcoders@yahoogroups.com, ben.clinkinbeard [EMAIL PROTECTED] wrote: Hi Alex, No, I didn't because I had no idea I was supposed to. I don't see any info in the docs mentioning the need to create a global selector. I have now created one, but that causes a different error

[flexcoders] SWC compiled against Flex 2 SDK only usable in Flex 3 projects

2008-01-16 Thread ben.clinkinbeard
I have compiled my SWC against 2.0.1 HF 1 (from FB 3) with no errors. When trying to use this SWC in any Flex 2 project however, I receive a RTE as soon as the app starts. This happens for projects using 2.0.1 with Hotfix 1, 2 or 3. The error maps to the initProtoChainRoots() method of the

[flexcoders] Re: Generate XML Schema

2008-01-16 Thread ben.clinkinbeard
Huh? --- In flexcoders@yahoogroups.com, markgoldin_2000 [EMAIL PROTECTED] wrote: Is it possible to generate an XML Schema to send to the server alone with an XML data? Thanks

[flexcoders] Re: How can I add a toolTip to the titleIcon of a Panel?

2008-01-15 Thread ben.clinkinbeard
Did this in my Panel subclass just the other day: public function getTitleIconObject():DisplayObject { use namespace mx_internal; return titleIconObject as DisplayObject; } HTH, Ben --- In flexcoders@yahoogroups.com, adamacosta16 [EMAIL PROTECTED] wrote: I'm guessing

[flexcoders] Previous Flex SDKs available anywhere?

2008-01-15 Thread ben.clinkinbeard
Is Adobe making these available anywhere or do we have to piecemeal them together ourselves? I would like to test my library against all the flavors of Flex 2.0.1 (original and each HF) and then compile it for the lowest supported version but I would like to avoid spending an hour or two

[flexcoders] Problems compiling defaults.css into SWC - F3B3

2008-01-11 Thread ben.clinkinbeard
I am trying to include the default styles in my SWC but am getting errors when setting the compiler options. defaults.css is in the top level of my library project. If I use -include-stylesheet defaults.css defaults.css the error displayed is unknown configuration variable 'include-stylesheet'

[flexcoders] Re: How to use flexmdi framework in flex builder 2.0.1

2008-01-11 Thread ben.clinkinbeard
I have been pestering Brian Holmes to create a Flex 2 SWC for a while now since he was the one who screwed up and made the original Flex 3. :) Feel free to harass him until he does it: http://brianjoseph31.typepad.com/smashedapples/2007/09/moxie-killed-th.html As mentioned below, you can point to

[flexcoders] Re: Problems compiling defaults.css into SWC - F3B3

2008-01-11 Thread ben.clinkinbeard
. --- In flexcoders@yahoogroups.com, ben.clinkinbeard ben.clinkinbeard@ wrote: I am trying to include the default styles in my SWC but am getting errors when setting the compiler options. defaults.css is in the top level of my library project. If I use -include-stylesheet defaults.css

[flexcoders] Re: Problems compiling defaults.css into SWC - F3B3

2008-01-11 Thread ben.clinkinbeard
/closeButton.png)'. I have made sure all the images are selected in the Assets tab of the library project but it doesn't seem to help. Do I really have to do include-file compiler args for every image I want compiled in? Thanks, Ben --- In flexcoders@yahoogroups.com, ben.clinkinbeard [EMAIL PROTECTED

[flexcoders] Re: Problems compiling defaults.css into SWC - F3B3 - SOLVED

2008-01-11 Thread ben.clinkinbeard
The leading slash is apparently a no-no. Changing from Embed('/flexmdi/assets/img/closeButton.png') to Embed('flexmdi/assets/img/closeButton.png') seems to have fixed it. Along with a nice project Clean of course. Ben --- In flexcoders@yahoogroups.com, ben.clinkinbeard [EMAIL PROTECTED] wrote

[flexcoders] Re: a checkbox in mx:DataGrid

2008-01-11 Thread ben.clinkinbeard
This has been discussed at length on this list and the internet. Do a search here and/or on Google. Ben --- In flexcoders@yahoogroups.com, coder3 [EMAIL PROTECTED] wrote: Hi All, i am using mx:DataGrid to display a list of results. but i would like to add a checkbox in front of each

[flexcoders] Re: Placing the label in a Panel

2008-01-06 Thread ben.clinkinbeard
If I remember correctly you have to get access to and move the titleTextField, which is private, so you'd have to do it from within SuperPanel (or your subclass of it). I should also mention that the FlexMDI project (http://code.google.com/p/flexmdi/) used Wietse's work as a starting point and

[flexcoders] Re: Close MDIWindow

2008-01-03 Thread ben.clinkinbeard
myWindow.close(); :) --- In flexcoders@yahoogroups.com, Bit [EMAIL PROTECTED] wrote: Hi people! How to do call event close of MDIWindow? thx Bit

[flexcoders] Changing skin alpha via CSS- possible?

2008-01-03 Thread ben.clinkinbeard
Pretty sure this cannot be done but wanted to confirm. This syntax doesn't work but is anything similar possible? .killerStyle { alpha: .5; upSkin: Embed('../img/menuArrow.png'); } Thanks, Ben

[flexcoders] Re: What event to catch

2007-12-31 Thread ben.clinkinbeard
-level view, such as a screen/page/form. HTH, Ben --- In flexcoders@yahoogroups.com, [EMAIL PROTECTED] wrote: On Sat, Dec 29, 2007 at 02:29:18PM -, ben.clinkinbeard wrote: An example of this approach can be seen here: http://www.returnundefined.com/files/CheckBoxRenderers/srcview

[flexcoders] Re: What event to catch

2007-12-29 Thread ben.clinkinbeard
Events that bubble don't need to be passed up. That is what bubbling is: an event that bubbles will move from the component that dispatches it to that component's parent, and then to that component's parent, and so on and so on all the way up to the root of your app. So you can listen for the

[flexcoders] Re: DataGrid question

2007-12-21 Thread ben.clinkinbeard
Subclass DataGrid and override selectItem, drawHighlightIndicator and drawSelectionIndicator so that they do nothing. --- In flexcoders@yahoogroups.com, djhatrick [EMAIL PROTECTED] wrote: I asked a while back and didn't see an example of how to override the method that selects an item in a

[flexcoders] Re: Accordion, the FlexEvent.SHOW isn't fired the first time a panel is shown

2007-12-21 Thread ben.clinkinbeard
I would listen for the change event of the parent component (TN has one, I assume Accordian is the same) and just track if its the first time a component has become active. You could also listen for the creationComplete event of each child, though I am not sure of the specifics off the top of my

[flexcoders] rawChildren's children not interacting with mouse- is this new?

2007-12-21 Thread ben.clinkinbeard
Something odd is going on with code that worked an hour ago. I have some buttons I am adding into a container and then am adding that to rawChildren. The buttons have buttonMode set to true. They are behaving as if mouseEnabled is set to false. If I add the buttons' parent via addChild() rather

[flexcoders] IGNORE - rawChildren's children not interacting with mouse- is this new?

2007-12-21 Thread ben.clinkinbeard
Sorry, disregard this. Depth issue with another item. --- In flexcoders@yahoogroups.com, ben.clinkinbeard [EMAIL PROTECTED] wrote: Something odd is going on with code that worked an hour ago. I have some buttons I am adding into a container and then am adding that to rawChildren

[flexcoders] Re: Getting all XML child elements ...

2007-12-21 Thread ben.clinkinbeard
http://livedocs.adobe.com/labs/flex3/langref/XML.html#child() http://livedocs.adobe.com/labs/flex3/langref/XML.html#descendants() HTH, Ben --- In flexcoders@yahoogroups.com, dan_of_philly [EMAIL PROTECTED] wrote: Hey, I'm trying to get all the child nodes for an element in an XML tree

[flexcoders] Re: Binding - from Item renderer back to datasource

2007-12-21 Thread ben.clinkinbeard
http://www.returnundefined.com/2007/11/efficient-reusable-and-centered-checkbox-renderers-for-datagrids --- In flexcoders@yahoogroups.com, mark goldin [EMAIL PROTECTED] wrote: What exactly do I need to update in order to store new data from a custom item renderer editing DataGrid? Do I

[flexcoders] Re: Center an MDIWindow of FlexMDI

2007-12-20 Thread ben.clinkinbeard
Do you just mean center it in relation to its parent container? If so, you treat it just like any other component as its really just a subclassed Panel with some extra stuff added on. win.x = (win.parent.width - win.width) / 2; win.y = (win.parent.height - win.height) / 2; HTH, Ben --- In

[flexcoders] Re: FlexMDI How to get DRAG_END event to fire

2007-12-20 Thread ben.clinkinbeard
Hmmm, thats pretty odd. I don't have Beta 2 available to test with but that shouldn't be causing any issues because the code was written against Flex 2. Are you able to capture other events from MDIManager? What about events directly from the window? Ben

[flexcoders] Re: FlexMDI How to get DRAG_END event to fire

2007-12-20 Thread ben.clinkinbeard
What happens if you use the code found here? http://www.returnundefined.com/flexmdi/explorer/srcview/index.html Ben --- In flexcoders@yahoogroups.com, valdhor [EMAIL PROTECTED] wrote: Further testing...This time I tried it in IE6 (Have been using Firefox 2.0.0.11). This gives the following

[flexcoders] Re: FlexMDI How to get DRAG_END event to fire

2007-12-20 Thread ben.clinkinbeard
Just noticed that your code doesn't define any drag listeners on the window, so thats why you're not seeing those. I would also check to see what version of the player you have in each browser. Ben

[flexcoders] Re: FlexMDI How to get DRAG_END event to fire

2007-12-20 Thread ben.clinkinbeard
Strange indeed :) I know the code I pointed you to used a canvas, I just wanted to see if that made a difference. Maybe try converting that file to use the global instance and see if that works? Ben --- In flexcoders@yahoogroups.com, valdhor [EMAIL PROTECTED] wrote: Well, color me totally

[flexcoders] Re: DataGrid ItemRenderes HEADERS?

2007-12-19 Thread ben.clinkinbeard
http://www.returnundefined.com/2006/11/creating-truly-reusable-renderers-with-classfactory/ HTH, Ben --- In flexcoders@yahoogroups.com, Sajid Hussain [EMAIL PROTECTED] wrote: Thanks . Scot, actuly I m working on select all checkbox at header have u sn any example of tht ? right now I

[flexcoders] Re: FlexMDI How to get DRAG_END event to fire

2007-12-19 Thread ben.clinkinbeard
Hi Steve, I think something else must be interfering with your code. If you paste the following code (pretty identical to yours) into a Script block in a new Flex project you should see windowDragEnd traced out to the console. (init() is called in creationComplete) import

[flexcoders] Re: TitleWindow activation

2007-12-18 Thread ben.clinkinbeard
FlexMDI dispatches focus events like the ones you're describing. http://code.google.com/p/flexmdi/ HTH, Ben --- In flexcoders@yahoogroups.com, reflexactions [EMAIL PROTECTED] wrote: Thanks, thats exactly what we have done now. The slight downside/peformance is that having to capture focus

[flexcoders] Why are the Layout classes excluded/hidden?

2007-12-18 Thread ben.clinkinbeard
I would like to create a container class that provides layout flexibility like the Panel does, allowing the user to choose between BoxLayout and CanvasLayout behavior. In investigating I see that those two classes as well as the marker class of Layout are marked with [ExcludeClass] and for

[flexcoders] Re: Why are the Layout classes excluded/hidden?

2007-12-18 Thread ben.clinkinbeard
Seems extending LayoutContainer is the intended way to accomplish what I want. Still curious as to why the other classes are hidden though. Ben --- In flexcoders@yahoogroups.com, ben.clinkinbeard [EMAIL PROTECTED] wrote: I would like to create a container class that provides layout

[flexcoders] Re: How to copy display objects?

2007-12-17 Thread ben.clinkinbeard
99% sure its not possible to duplicate display objects --- In flexcoders@yahoogroups.com, aceoohay [EMAIL PROTECTED] wrote: I have a couple of display objects such as a panel and an HBox which have a number of children. I would like to make a copy of them into another container such as a

[flexcoders] Re: Force DataGrid item to update style

2007-12-17 Thread ben.clinkinbeard
Its because you're calling your compute function from the change event. Try calling it from itemFocusIn or itemClick or something. HTH, Ben --- In flexcoders@yahoogroups.com, m.frigge [EMAIL PROTECTED] wrote: Hey there, i found some nice examples for an itemRenderer here

[flexcoders] Re: How to use mx.modules.Module class in ActionScript Project

2007-12-15 Thread ben.clinkinbeard
He just means that you can manually set a ref to the parent app. So when you load a module do something like this: newModule.parentApp = this; --- In flexcoders@yahoogroups.com, cksachdev [EMAIL PROTECTED] wrote: Hi Alex, Please describe it more clearly. So that all ActionScript Projects

[flexcoders] Re: Playing Audio on Showing a Differenct Canvas Within A TabNavigator

2007-12-13 Thread ben.clinkinbeard
Listen for the change event of your TN. --- In flexcoders@yahoogroups.com, John [EMAIL PROTECTED] wrote: Hi there, I am wanting to play a different audio event on entry into each of my Tabs within a Viewstack. Has anyone got any good pointers to assist with this? Thanks In Advance

[flexcoders] Re: How to send Arrays in WebService request???

2007-12-13 Thread ben.clinkinbeard
Use e4x as your resultFormat and create a factory and/or constructors that accept xml and populate themselves. HTH, Ben --- In flexcoders@yahoogroups.com, Peter Connolly [EMAIL PROTECTED] wrote: I just discovered what looks like another, related bug. A web service response containing

[flexcoders] Re: DataTipFunction doesn't seem to make sense?

2007-12-13 Thread ben.clinkinbeard
Not the same but related: https://bugs.adobe.com/jira/browse/SDK-11290 --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Dang, I never noticed that before. Please file a bug. It probably won't get in Flex 3 though. From:

[flexcoders] How do I turn off the funky occurrence highlighting in FB3 Beta 3?

2007-12-13 Thread ben.clinkinbeard
So in Beta 3 it seems to highlight all occurrences of whatever type/method/var your cursor is in. How do I turn that off? Its quite distracting. Thanks, Ben

[flexcoders] Re: How do I turn off the funky occurrence highlighting in FB3 Beta 3?

2007-12-13 Thread ben.clinkinbeard
:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Thursday, December 13, 2007 11:16 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How do I turn off the funky occurrence highlighting in FB3 Beta 3? So in Beta 3 it seems to highlight all occurrences of whatever type/method

[flexcoders] Re: Event meta data in Interfaces

2007-12-12 Thread ben.clinkinbeard
Hey Tom, Don't have any solutions for you (sorry) but wanted to let you know I feel your pain. I've been struggling with the same thing lately as I wanted to create an interface, but want any implementors to also be containers. There is really no good way to enforce that because creating a base

[flexcoders] Re: Auto-sizing a Container that lives in rawChildren - how?

2007-12-11 Thread ben.clinkinbeard
and layout yourself, which you should do in updateDisplayList. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Thursday, December 06, 2007 11:30 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Auto

[flexcoders] Re: Reading XML attributes using Cairngorm framework.

2007-12-10 Thread ben.clinkinbeard
Not that its affected by Cairngorm in any way but to access attribute values you need to use the @ symbol. [EMAIL PROTECTED] HTH, Ben --- In flexcoders@yahoogroups.com, bhaskar [EMAIL PROTECTED] wrote: Hello, I am new to flex world. I am trying to read xml attributes in Cairngorm

[flexcoders] Re: DataGridColumn bound to ArrayCollection, how to make it update?

2007-12-10 Thread ben.clinkinbeard
Try adding people[0].transferList.refresh() after you add the name. You need send out some sort of notification so that the DG knows to re-render, since the inner AC isn't bound. HTH, Ben --- In flexcoders@yahoogroups.com, sam_apa [EMAIL PROTECTED] wrote: Hi, I'm trying to get a DataGrid to

[flexcoders] Re: Using DateField as itemEditor for DataGrid column

2007-12-09 Thread ben.clinkinbeard
Flex 3 Beta 2 and Flex 2.0.1 HotFix2 (which are the only versions you should be using) Why is that? We're still using HF1 at work because we've not had time to do regression testing on all of our WebService operations. I suppose its a good thing too, considering all the changes in Flex 3 would

[flexcoders] Re: Change textInput text colour when value negative in AS3?

2007-12-07 Thread ben.clinkinbeard
stkFirmLevel.setStyle(color, #ff); --- In flexcoders@yahoogroups.com, candysmate [EMAIL PROTECTED] wrote: How can I access the text color of a textInput with AS3? I want to make the text colour red for negative number display. I tried: if(int(stkFirmLevel.text) 0) {

[flexcoders] Re: TitleWindow and Open/Close Effect

2007-12-07 Thread ben.clinkinbeard
What are you doing to the TitleWindow when you refer to open and close? showEffect/hideEffect correspond to FlexEvent.SHOW and FlexEvent.HIDE, which are triggered by a change in the visible property. So calling someTitleWindow.visible = false should trigger the hideEffect assuming you've assigned

[flexcoders] Re: TitleWindow and Open/Close Effect

2007-12-07 Thread ben.clinkinbeard
. I assumed that when I did addPopup and the window appeared it would fire a show and that when I removed it it would fire the hide before it was destroyed. tks --- In flexcoders@yahoogroups.com, ben.clinkinbeard ben.clinkinbeard@ wrote: What are you doing to the TitleWindow when you

[flexcoders] Auto-sizing a Container that lives in rawChildren - how?

2007-12-06 Thread ben.clinkinbeard
It seems that Containers that are added to rawChildren do not get measured and laid out automatically like they normally would. For instance, if I don't give my HBox an explicit width and height it will not show up when I call someCanvas.rawChildren.addChild(myHBox), no matter how many children I

[flexcoders] Re: How to do releaseOutside event in Flex2?

2007-12-04 Thread ben.clinkinbeard
Hi Jonathan, This is how I've done it/seen it done: systemManager.addEventListener(MouseEvent.MOUSE_UP, onTitleBarRelease); You add the mouseUp handler to the systemManager, but you don't add it until the drag begins. When the drag ends you clear the listener from systemManager. HTH, Ben ---

[flexcoders] Re: Flex 2.0.1: How to detect internet connectivity in Flex?

2007-12-03 Thread ben.clinkinbeard
Easiest way is probably to just use HTTPService to try loading a URL. Something fast and minimal like google.com would probably be ideal. If your fault handler executes you can reasonably assume you have no connectivity, if your result handler executes you do. HTH, Ben --- In

[flexcoders] Re: Actionscript: Copy an Object or Dictionary

2007-11-30 Thread ben.clinkinbeard
it only copies over object values, not exact values. Huh? --- In flexcoders@yahoogroups.com, polestar11 [EMAIL PROTECTED] wrote: Hi there Does anyone know how to iterate through an Object / Dictionary copy child items. I've tried ObjectUtil, but it only copies over object values, not

[flexcoders] Am I the only one who wishes EventDispatcher exposed its listeners?

2007-11-28 Thread ben.clinkinbeard
Sometimes it would be really nice be able to access a list of currently attached listeners by doing something like myButton.listeners. Having that return a collection of objects that expose the event type and handler method would be nice and it doesn't seem like it would be that hard to implement

[flexcoders] Re: Am I the only one who wishes EventDispatcher exposed its listeners?

2007-11-28 Thread ben.clinkinbeard
garbage collection? Doug On 11/28/07, ben.clinkinbeard [EMAIL PROTECTED] wrote: Sometimes it would be really nice be able to access a list of currently attached listeners by doing something like myButton.listeners. Having that return a collection of objects that expose the event

[flexcoders] Re: Am I the only one who wishes EventDispatcher exposed its listeners?

2007-11-28 Thread ben.clinkinbeard
I suppose we could monkey-patch a listeners collection... dare me? :) Ugh, I guess we can't since the source isn't available.

[flexcoders] Re: Am I the only one who wishes EventDispatcher exposed its listeners?

2007-11-28 Thread ben.clinkinbeard
] On Behalf Of ben.clinkinbeard Sent: Wednesday, November 28, 2007 6:04 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Am I the only one who wishes EventDispatcher exposed its listeners? Sometimes it would be really nice be able to access a list of currently attached listeners

[flexcoders] Re: Am I the only one who wishes EventDispatcher exposed its listeners?

2007-11-28 Thread ben.clinkinbeard
@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Wednesday, November 28, 2007 6:04 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Am I the only one who wishes EventDispatcher exposed its listeners? Sometimes it would be really nice be able to access

[flexcoders] Re: Am I the only one who wishes EventDispatcher exposed its listeners?

2007-11-28 Thread ben.clinkinbeard
. The Flex team can lobby the Player team for new features, but we don't get everything we ask for. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Wednesday, November 28, 2007

[flexcoders] Re: Simple String.Replace() function

2007-11-28 Thread ben.clinkinbeard
I know there are newer proper ways to do this in AS3 (StringUtils class or something) but the old AS2 way still works as well. myString = myString.split(strToMatch).join(strToReplace); HTH, Ben --- In flexcoders@yahoogroups.com, marty.pitt [EMAIL PROTECTED] wrote: Admission of guilt: I

[flexcoders] Re: interesting error:one event listerner can receive different event?

2007-11-27 Thread ben.clinkinbeard
Please do not double post, if someone can help you they will answer. The reason you're seeing that behavior is because event listeners are solely based on the string that your event type evaluates to. So the following 3 lines are equivalent:

[flexcoders] Re: Dynamically Changing Easing Function Again

2007-11-26 Thread ben.clinkinbeard
FYI, in case you haven't seen this one: http://www.madeinflex.com/img/entries/2007/05/customeasingexplorer.html --- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote: I am trying to create an easing function explorer to be able to compare the existing easing functions. However, I

[flexcoders] Re: Setting multiple custom styles

2007-11-24 Thread ben.clinkinbeard
Here is the item I opened: https://bugs.adobe.com/jira/browse/FLEXDOCS-149 --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: So the answer is pretty much what I expected. You can't assume when your class will be initialized. It appears in this case that binding and

[flexcoders] Re: radioButton label colour via AS3?

2007-11-22 Thread ben.clinkinbeard
Color is actually a style so its idname.setStyle(color, 0xFF); HTH, Ben --- In flexcoders@yahoogroups.com, candysmate [EMAIL PROTECTED] wrote: I can set the colour of a radioButton's label with color = #ff in mxml, but when I try to use the idname.color = #ff; in AS3 Flex 2.01

[flexcoders] Re: DataGrid.itemToItemRenderer()- what about columns besides the first?

2007-11-21 Thread ben.clinkinbeard
@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Tuesday, November 20, 2007 8:19 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] DataGrid.itemToItemRenderer()- what about columns besides the first? Title pretty much sums it up, but what if I wanted

[flexcoders] Re: DataGrid.itemToItemRenderer()- what about columns besides the first?

2007-11-21 Thread ben.clinkinbeard
with using it, but doesn't generalize well to datagrid because we don't have function overloading. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Wednesday, November 21, 2007 6:43 AM To: flexcoders

[flexcoders] Re: DataGrid.itemToItemRenderer()- what about columns besides the first?

2007-11-21 Thread ben.clinkinbeard
renderers when they are recycled from a scroll, resize, sort, etc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Wednesday, November 21, 2007 12:07 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re

[flexcoders] Re: Real world usage of Flex

2007-11-20 Thread ben.clinkinbeard
http://flex.org/showcase/ --- In flexcoders@yahoogroups.com, real_yoni [EMAIL PROTECTED] wrote: Hi All, I'm looking for real world usage of Flex (other than maps.yahoo.com and harley-davidson)? can publish links? Thanks, p.s. I'm not entirely sure that this is the right group to

[flexcoders] Re: How to dynamically create the Object attribute names at run time?

2007-11-20 Thread ben.clinkinbeard
o[field1] = abc; --- In flexcoders@yahoogroups.com, joseph_freemaker [EMAIL PROTECTED] wrote: Want to create a new Object() and dynamically define the object attribute names at run time. This can be done statically using something such as the following: var o : Object = new Object();

[flexcoders] DataGrid.itemToItemRenderer()- what about columns besides the first?

2007-11-20 Thread ben.clinkinbeard
Title pretty much sums it up, but what if I wanted to access an itemRenderer that is not in the first column? Is there any way to do that starting with nothing but the corresponding data item? Thanks, Ben

[flexcoders] Re: Check if class implements interface at runtime

2007-11-18 Thread ben.clinkinbeard
Pretty sure this has been answered before so search the archives to confirm, but I think you have to use describeType(). HTH, Ben --- In flexcoders@yahoogroups.com, Hrundik [EMAIL PROTECTED] wrote: Hello! There is a way to check if object is an instance of some class and implements the

[flexcoders] Re: Drag by panel header [DragPanel, createPopUp(), addPopUp() ]

2007-11-18 Thread ben.clinkinbeard
Maybe this could meet your needs? http://www.returnundefined.com/2007/09/announcing-flexmdi-robust-extensible-mdi-framework-for-adobe-flex/ HTH, Ben --- In flexcoders@yahoogroups.com, keszeli [EMAIL PROTECTED] wrote: Hey ya all! [:D] First of all check out

[flexcoders] Re: List Filter Problem driving me crazy!

2007-11-16 Thread ben.clinkinbeard
Maybe call invalidateList() when the filter changes? Just a guess. --- In flexcoders@yahoogroups.com, Rick Root [EMAIL PROTECTED] wrote: So I'm building an application which contains lists of items that I want users to be able to filter, select some items, filter again, select some more

[flexcoders] Re: Accessing dataField from within a Custom Item Renderer

2007-11-14 Thread ben.clinkinbeard
Yes, you'll want to look into the listData property. Flex automatically populates it for drop-in editors and renderers, so if your renderer implements IDropInListItemRenderer or inherits from a class that does (Button, Label, ComboBox, plus 11 more) then you will be able to access listData. When

[flexcoders] Re: DataGrid not populating from XMLListCollection - namespace issue?

2007-11-13 Thread ben.clinkinbeard
dataProvider? I'm confused because on one hand we're talking about handling XML/namespace data, but then you talk about leaving it as an Object. Do you still use a result Handler to parse your Object data into a different model? --- In flexcoders@yahoogroups.com, ben.clinkinbeard ben.clinkinbeard

[flexcoders] Re: excetion bubbling to application level?

2007-11-13 Thread ben.clinkinbeard
Nope. --- In flexcoders@yahoogroups.com, aaron smith [EMAIL PROTECTED] wrote: Is there a way to get all exceptions to bubble to the Application level so I can catch all for logging? thanks yo.

[flexcoders] Re: DataGrid not populating from XMLListCollection - namespace issue?

2007-11-12 Thread ben.clinkinbeard
This might help, hope it does. http://www.returnundefined.com/2006/07/datagrid-labelfunction-and-namespaces/ --- In flexcoders@yahoogroups.com, Brian [EMAIL PROTECTED] wrote: I've been trying to get a DataGrid populated from a WebService and having much trouble. I'm wondering if the issue

[flexcoders] Re: Custom DataGrid

2007-11-12 Thread ben.clinkinbeard
I don't get why you've created 2 grids to begin with- the headers don't scroll with the content and the resizing of columns keeps the headers and content aligned as well. What are you trying to do that DataGrid doesn't do out of the box? Ben --- In flexcoders@yahoogroups.com, Matt [EMAIL

[flexcoders] Re: Casting in flex

2007-11-10 Thread ben.clinkinbeard
is a function call that returns an object of that type From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of ben.clinkinbeard Sent: Friday, November 09, 2007 6:03 PM

[flexcoders] Re: Why is drawHighlightIndicator() called multiple times?

2007-11-09 Thread ben.clinkinbeard
bump --- In flexcoders@yahoogroups.com, ben.clinkinbeard [EMAIL PROTECTED] wrote: 2.0.1 HF1 --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: Which version? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED

[flexcoders] Re: Casting in flex

2007-11-09 Thread ben.clinkinbeard
after we get them out of the ArrayCollection? How would this be done exactly? Adam --- In flexcoders@yahoogroups.com, ben.clinkinbeard ben.clinkinbeard@ wrote: I assume your dataProvider is a collection of Position objects? Is it an ArrayCollection? Try changing this line

[flexcoders] Re: Casting in flex

2007-11-09 Thread ben.clinkinbeard
not an expert in that area, but RegisterClassAlias should be part of the solution. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Friday, November 09, 2007 12:29 PM To: flexcoders@yahoogroups.com

[flexcoders] Re: Cairngorm getInstance()

2007-11-09 Thread ben.clinkinbeard
Hi Adolfo, ModelLocator is an example of the Singleton pattern http://en.wikipedia.org/wiki/Singleton_pattern Singleton is a pattern used in programming to ensure there is only one copy of an object, which is definitely what you want when dealing with your model. Note that its just your model as

[flexcoders] Why is drawHighlightIndicator() called multiple times?

2007-11-08 Thread ben.clinkinbeard
When rolling over a DataGrid, drawHighlightIndicator() seems to get called several times (6 or 7 usually) if the mouse is over any column but the first. This is a problem when trying to animate the highlight. Any explanation of why this happens and/or workarounds would be appreciated. Thanks, Ben

[flexcoders] Re: Why is drawHighlightIndicator() called multiple times?

2007-11-08 Thread ben.clinkinbeard
2.0.1 HF1 --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Which version? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Thursday, November 08, 2007 7:40 AM To: flexcoders

[flexcoders] Re: Casting in flex

2007-11-08 Thread ben.clinkinbeard
I assume your dataProvider is a collection of Position objects? Is it an ArrayCollection? Try changing this line selectedItem = event.currentTarget.dataProvider[selectedRow]; to this selectedItem = event.currentTarget.dataProvider.getItemAt(selectedRow); HTH, Ben --- In

[flexcoders] Re: using itemrenderer?

2007-11-06 Thread ben.clinkinbeard
Use can use labelFunction to format values. http://livedocs.adobe.com/flex/201/langref/mx/controls/dataGridClasses/DataGridColumn.html#labelFunction HTH, Ben --- In flexcoders@yahoogroups.com, captnjay_mobile [EMAIL PROTECTED] wrote: I'm still rather new to flex.. so forgive me if I'm not

[flexcoders] Re: Setting multiple custom styles

2007-11-06 Thread ben.clinkinbeard
Hi Tom, I've not thoroughly examined your code but a few things you might want to investigate. I went around in circles for a long time getting style hierarchies to work correctly in flexmdi. The first thing is that rather than using newStyleDeclaration.setStyle() to set defaults, I would

[flexcoders] Re: filtering datagrid with out filterfunction

2007-11-05 Thread ben.clinkinbeard
Why don't you want to use filterFunction? --- In flexcoders@yahoogroups.com, suresh17_kakumanu [EMAIL PROTECTED] wrote: how can we filter the data grid with out using filter function is there any other way to filter the data.

[flexcoders] Re: Item Renderer Question ...

2007-11-05 Thread ben.clinkinbeard
IDataRenderer defines the data property, which is nothing more than the piece of data the control is representing. Most often this is an element from a collection/data provider. So it might be an instance of a Person class, for instance. IDropInListItemRenderer defines the listData property,

[flexcoders] Re: application/container scrolling

2007-11-05 Thread ben.clinkinbeard
Set minHeight=0 on your VBox. More info: http://tech.groups.yahoo.com/group/flexcoders/message/77204?threaded=1p=1 HTH, Ben --- In flexcoders@yahoogroups.com, arieljake [EMAIL PROTECTED] wrote: When i compile this app, I get no scrollbars. I expect the Form container to add scrollbars, not

[flexcoders] Re: Aha... did someone say C/C++ to AS3???

2007-11-02 Thread ben.clinkinbeard
http://blog.digitalbackcountry.com/?p=1095

[flexcoders] Re: Why can't I dispatch a different event from an event handler?

2007-11-01 Thread ben.clinkinbeard
Does UploadDialogEvent.SELECT_FILES evaluate to a string that has a MouseEvent listener assigned to it? Ben --- In flexcoders@yahoogroups.com, Mark Ingram [EMAIL PROTECTED] wrote: I have the following code: private function browseButton_clickHandler(event:MouseEvent):void {

[flexcoders] Re: Using custom checkBox in datagrid

2007-10-31 Thread ben.clinkinbeard
You don't need a custom event as MouseEvent.CLICK already bubbles. Simply listen for that event and then check if(event.target is CenteredCheckBox). HTH, Ben --- In flexcoders@yahoogroups.com, candysmate [EMAIL PROTECTED] wrote: I'm using a custom itemRenderer (centered checkBox), based upon

[flexcoders] Re: SequenceCommand

2007-10-31 Thread ben.clinkinbeard
Without thoroughly digesting your issue description, SequenceCommand has proven buggy in the past. Just FYI. Ben --- In flexcoders@yahoogroups.com, Giles Roadnight [EMAIL PROTECTED] wrote: Actually, I stand corrected. Each call is sent from a different Command object, the results are all

[flexcoders] Re: Deep binding with Cairngorm question

2007-10-29 Thread ben.clinkinbeard
on it? Thanks, Dale --- In flexcoders@yahoogroups.com, shaun shaun@ wrote: Hi, ben.clinkinbeard wrote: Glad you got it working. Yea, its unfortunate (but unavoidable) that reinitializing a var kills the listeners. (Actually, I think reassigning like that could cause a memory leak

[flexcoders] Re: transient properties of an object using RemoteClass

2007-10-29 Thread ben.clinkinbeard
a reference to this in Flex 2, is it a new feature of 3? --- In flexcoders@yahoogroups.com, ben.clinkinbeard ben.clinkinbeard@ wrote: http://livedocs.adobe.com/labs/flex/3/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=metadata_066_15.html

<    1   2   3   4   5   6   7   >