[flexcoders] AIR: Security sandbox violation: PNG trying to access .swf?

2009-05-20 Thread Ken Dunnington
Hi all, I'm getting some bizarre security errors in an AIR app, and I can't for the life of me make any sense of them. The most reproducible error looks like this: *** Security Sandbox Violation *** SecurityDomain

Re: [flexcoders] Binding not executed

2009-03-26 Thread Ken Dunnington
Bindings do a lot of checking to try and prevent getting stuck in infinite loops, perhaps that's causing your issue? You might instead try using a property on the parent component that your sub components bind to, i.e. [Bindable] private var someProperty:String; mx:Text id=componentA

[flexcoders] ShaderFilter drawing outside bounds

2009-03-25 Thread Ken Dunnington
I'm applying some pixel bender shaders to photos in an app I'm building, and I'd like to keep them constrained to the original shape of my photo. However, when I rotate the photo, the filter draws outside the bounds. I've tried applying a mask, but the filter ignores it. Is there any way to keep

Re: [flexcoders] Custom Classes and Custom Events

2009-03-24 Thread Ken Dunnington
Take a look at some of the classes in the mx.events.* package. Generally, your custom events will have static constants to enumerate the possible values for 'type', i.e. public static const ADD_RECORD:String = addRecordEvent; public static const DELETE_RECORD:String = deleteRecordEvent; To attach

[flexcoders] ItemRenderer unscaledHeight = NaN?

2009-03-23 Thread Ken Dunnington
I've got a fairly simple custom itemRenderer inside a TileList that's giving me problems. The renderer is simply an HBox with an Image and a few Label controls. The problem is the renderers all show up squished at the top of the list, piled on top of each other. I've overridden updateDisplayList()

[flexcoders] NativeDragEvents require MouseEvent listener?

2009-03-20 Thread Ken Dunnington
I've just come across a really strange bug (at least I hope it's a bug, as it seems like bad behavior to me.) - Subclass a Canvas in an ActionScript component - Add listeners for NativeDragEvent.NATIVE_DRAG_ENTER and NATIVE_DRAG_DROP (make the listeners simply trace a confirmation message) -

Re: [flexcoders] Re: How to tell when background image is clicked?

2009-03-18 Thread Ken Dunnington
Hoff timh...@aol.com wrote: Ok, maybe just check it's type: if (evt.target is FlexLoader) -TH --- In flexcoders@yahoogroups.com, Ken Dunnington ken.dunning...@... wrote: Hi Tim, unfortunately, that's exactly what happens :) If you apply a backgroundImage, the target of the click

[flexcoders] How to tell when background image is clicked?

2009-03-17 Thread Ken Dunnington
I've got a custom component based on Canvas, and I'm programmatically setting its background-image style to a loaded SWF. I need to be able to differentiate between a click on the background, and a click on any of the other children. WIth no background set, I was using this code: private function

Re: [flexcoders] Re: How to tell when background image is clicked?

2009-03-17 Thread Ken Dunnington
On Tue, Mar 17, 2009 at 2:36 PM, Tim Hoff timh...@aol.com wrote: Hi Ken, I'm pretty sure that the target will never be the background image itself; but rather the Canvas. One hack is to check the type: if (evt.target is Canvas) -TH --- In flexcoders@yahoogroups.com, Ken Dunnington

[flexcoders] Nested ADG height/scroll question

2008-12-16 Thread Ken Dunnington
I'm building an app which utilizes nested ADGs to provide a drill down interface to my data. It works great in concept, but the problem I'm up against is trying to size the datagrids so they display all their rows, forcing any rows below them to move down (without creating any unnecessary space.)

[flexcoders] Binding Model to selectedItem property not updating

2008-05-16 Thread Ken Dunnington
I'm currently refactoring a small application to be more MVC and am running into a few binding issues. In my Model, I store all my dataProviders, which are Arrays (because they will not change) and I also have a typed object that stores my form state as individual objects. In my View, which is

Re: [flexcoders] Binding Model to selectedItem property not updating

2008-05-16 Thread Ken Dunnington
not change, no change event will be fired, and if quotingFormState doesn't dispatch change events for changes to the age property binding won't work then either. -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Ken Dunnington *Sent

Re: [flexcoders] Binding Model to selectedItem property not updating

2008-05-16 Thread Ken Dunnington
, 2008 at 3:11 PM, Pedro Sena [EMAIL PROTECTED] wrote: Hi Ken, Do you know the Cairngorm framework ? It does what you want, and in this link you will find some intersting tutorials: http://www.davidtucker.net/category/cairngorm/ C ya On Fri, May 16, 2008 at 3:54 PM, Ken Dunnington

Re: [flexcoders] IViewCursor.findAny on a typed object?

2008-03-11 Thread Ken Dunnington
. -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Ken Dunnington *Sent:* Monday, March 10, 2008 7:27 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] IViewCursor.findAny on a typed object? Sure thing: TypeError

Re: [flexcoders] IViewCursor.findAny on a typed object?

2008-03-11 Thread Ken Dunnington
it difficult to debug my original issue. Any ideas how I can reconnect the framework source to Flex Builder? On Tue, Mar 11, 2008 at 10:21 AM, Ken Dunnington [EMAIL PROTECTED] wrote: Considering I had to look that up, probably not. :) The docs say -optimize is true by default, or are you talking about

Re: [flexcoders] Datagrid ItemEditor - multiple data edits?

2007-12-06 Thread Ken Dunnington
I'm doing exactly that, and it is pretty easy. Here's the LiveDoc link: http://livedocs.adobe.com/flex/201/html/celleditor_073_15.html#247667 and you also might want to read over this bit on making your custom editor respond to keyboard events (enter and escape, for example)

[flexcoders] Double click tree item editing

2007-12-06 Thread Ken Dunnington
I needed my Tree control to only bring up the item editor when double clicked. I was going to post this as a question, but instead dug into it a bit more and came up with a solution, so I thought I'd share in case anyone else needs the same functionality (or has a better solution.) Basically, I'm

Re: [flexcoders] Custom ItemEditor too big for container

2007-12-06 Thread Ken Dunnington
, Alex Harui [EMAIL PROTECTED] wrote: variableRowHeight? -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Ken Dunnington *Sent:* Wednesday, December 05, 2007 11:47 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders

Re: [flexcoders] Custom ItemEditor too big for container

2007-12-06 Thread Ken Dunnington
position :) On Dec 6, 2007 1:03 PM, Alex Harui [EMAIL PROTECTED] wrote: variableRowHeight? -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Ken Dunnington *Sent:* Wednesday, December 05, 2007 11:47 AM *To:* flexcoders

[flexcoders] Custom ItemEditor too big for container

2007-12-05 Thread Ken Dunnington
I've built a custom Tree ItemEditor that consists of a VBox with a Form in it. It works just fine (besides the CheckBox which is too picky about true vs. true in the XML data...) except when I try to edit an item near the bottom of the container, the editor gets cut off. Because I wanted it to

Re: [flexcoders] Strange multiple select bug in List

2007-12-03 Thread Ken Dunnington
:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Ken Dunnington *Sent:* Thursday, November 29, 2007 10:10 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Strange multiple select bug in List I'm having a problem getting allowMultipleSelection to work properly. I have

Re: [flexcoders] Re: Subversion clients

2007-12-03 Thread Ken Dunnington
SCPlugin is a contextual menu plugin for the Mac. Not as fancy as Tortoise, but I've had good luck with it. Otherwise, it's Subclipse and of course the command line tools. On Dec 1, 2007 11:52 AM, Kurt Wiersma [EMAIL PROTECTED] wrote: I use SmartSVN on both my Mac and my Windows box. It works

[flexcoders] Strange multiple select bug in List

2007-11-30 Thread Ken Dunnington
I'm having a problem getting allowMultipleSelection to work properly. I have a form with a List control that's populated by an ArrayCollection. I cannot seem to get multiple selection or dataTips to work. The code for the list is: mx:ArrayCollection id=pages mx:Object name=Home pageID=1

[flexcoders] Handling results from multiple RemoteObject operations

2007-03-26 Thread Ken Dunnington
Hi all, I've been wanting to learn Flex since 1.5 and finally got the chance to really dive in this weekend. I'm putting together an application that gets information from a ColdFusion application and was wondering if I'm handling the results properly. I want to bind the data from one of the