RE: [flexcoders] Watching a class full of bindable properties

2009-06-29 Thread Yves Riel
There are a few "glitches" with what you propose: First, you cannot create a watcher that monitors all of your properties at once. The binding chain contains a hierachy list of parents and children. The chain is there so that any change on the parents or children will trigger the binding. Your p

RE: [flexcoders] itemrenderer in popupMenuButton?

2009-06-05 Thread Yves Riel
ItemRenderers are used for list based controls. When you want to customize the look and feel of buttons, you must do it through their skins. You can use a programmatic skin to do it. However, from your text, I think that what you want to do is actually add an icon to each item in the list shown b

RE: [flexcoders] Dynamically referencing arbitrarily deep arrays?

2009-06-05 Thread Yves Riel
Not sure I understand why you're doing this but you could try to individually access each nested object until you get to the desired object; then you access its content. I rewrote the loop of your code to do this. http://www.adobe.com/2006/mxml"; layout="vertical">

RE: [flexcoders] Use ChangeWatcher with dynamic Object?

2009-06-04 Thread Yves Riel
Maybe you can use the ObjectProxy instead of Object. ObjectProxy implements a dispatcher mechanism and could be a good candidate for binding as it dispatches a PROPERTY_CHANGE event when a new property is added to the object. From: flexcoders@yahoogroups.com [mail

RE: [flexcoders] list itemrenderer

2009-05-25 Thread Yves Riel
You'll have to be a little bit more specific. What are you trying to achieve? You can listen to any drag event in any controls and do custom actions. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of thomas parquier Sent: Sunday,

RE: [flexcoders] BindingUtils question.

2009-05-25 Thread Yves Riel
You can actually bind to a variable by also using the BindingUtils.bindProperty() method. You just need to you the "this" keyword. So: BindingUtils.bindProperty(dogNameText, "text", this, "myString"); Don't forget to enclose your variable in double quotes since that last parameter must be a str

RE: [flexcoders] as3 interface syntax ?

2009-05-25 Thread Yves Riel
An interface is basically a contract between two classes. In the example below, the class containing the mentioned line doesn't care which class is passed to it from the _textFlow.interactionManager property, it just makes sure that it implements the interface (i.e. the contract). So, _textFlow.int

RE: [flexcoders] NEED more than 15 menu item in Context Menu ????

2009-05-22 Thread Yves Riel
What about intercepting the right-click at the browser level and displaying your own contextual menu? However, you might have some browser incompatibility to look at. http://blog.another-d-mention.ro/programming/right-click-and-custom-cont ext-menu-in-flash-flex/

RE: [flexcoders] Custom ItemRenderer in List control and highlight

2009-05-21 Thread Yves Riel
Could be easier to help you out if you post some code ... especially if it's a "really simple application". From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of fonqiemp Sent: Thursday, May 21, 2009 3:28 AM To: flexcoders@yahoogroups.c

RE: [flexcoders] Tree nodes sorting

2009-05-15 Thread Yves Riel
I believe that you will have to do it through your data provider. if your data provider is an ICollectionView (such as ArrayCollection), you can sort it using the sort property. Yves From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf

[flexcoders] Determining file read-only attribute in AIR

2009-05-14 Thread Yves Riel
Hi guys, Do any of you have a nice simple trick to determine and possibly toggle the read-only attribute of a file in AIR? Thanks!

RE: [flexcoders] Tree does not show scrollbar after inserting items

2009-05-13 Thread Yves Riel
Funny, the example doesn't work on the adobe server but if you copy the code and recompile it, it works and I get the scroll bar. Maybe it's an SDK issue; I'm using the official 3.2 SDK release. Also, if you are using an array collection as data provider, maybe you can force a refresh of the coll

RE: [flexcoders] Re: drag drop tree to tree onto node, not between nodes

2009-05-11 Thread Yves Riel
...@yahoogroups.com] On Behalf Of Alan Rother Sent: Sunday, May 10, 2009 9:40 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: drag drop tree to tree onto node, not between nodes [1 Attachment] [Attachment(s) from Alan Rother included below] Yves Riel (r...@cae.com) sent this file to me

RE: [flexcoders] RE: NativeDragManager and nested components

2009-05-07 Thread Yves Riel
gular DMI. There's a technote or documentation on how to do it. Alex Harui Flex SDK Developer Adobe Systems Inc. <http://www.adobe.com/> Blog: http://blogs.adobe.com/aharui <http://blogs.adobe.com/aharui> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]

[flexcoders] NativeDragManager and nested components

2009-05-06 Thread Yves Riel
The DragManagerImpl and NativeDragManagerImpl behaviours are so different that it drives me nut! I have a Flex component that is embedded in a Flex and AIR app. So, I used the IDragManager interface to access the methods and used the standard events. Unfortunately, I can't get a consistent beha

RE: [flexcoders] Access Tree's current item renderer

2009-04-29 Thread Yves Riel
The ListEvent return from the itemClick event contains a property called itemRenderer. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of markgoldin_2000 Sent: Wednesday, April 29, 2009 10:15 AM To: flexcoders@yahoogroups.com Subject

RE: [flexcoders] Re: Tree custom renderer

2009-04-29 Thread Yves Riel
left. Second, when I open and close it, my special item renderer gets messed up. Any idea? Thanks --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , "markgoldin_2000" wrote: > > Yep, that was it, thanks! > --- In flexcoders@yahoogroups.com <mailto:fl

RE: [flexcoders] Re: Tree custom renderer

2009-04-29 Thread Yves Riel
In your treeRendererFilter class, override the updateDisplayList method. In there, set the position of your customerReportingFilter based on the "label" property. Be careful since the "label" property, in the base class, is made to be the entire lenght of the item renderer minus the icons. So, you

RE: re: [flexcoders] Problem drag and drop

2009-04-13 Thread Yves Riel
I tried to do it while modifying your code as little as possible. Copying is a lot more complex than moving and it can become a nightmare if you have children embedded inside your Title Window. I think that you may also have to clean up the BitmapData used as a drag proxy image to avoid memory leak

RE: [flexcoders] Re: Framework Caching Affecting Security Settings?

2009-03-13 Thread Yves Riel
Don't know if I'm the only one but I cannot access that page!? From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Alex Harui Sent: Friday, March 13, 2009 1:03 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Framework

RE: [flexcoders] Question from a C developper

2009-03-12 Thread Yves Riel
Salut Christophe, Other will definitely pitch in but here are some answers: > Is it possible to define a variable as a long ? The data type is "Number". It's a IEEE-754 double-precision floating-point number. > How to program the overloading of an operator like the equal between 2 objects o

RE: [flexcoders] Question about binding and circular reference

2009-03-11 Thread Yves Riel
The problem you are experiencing is caused by the fact that when the player executes the line [ mf.foo = "bar" ], your text input is not even created in your form yet. So, the foo->myText binding does nothing and when the text input is finally created, the myText->foo binding executes and thus over

RE: [flexcoders] Flex 3 Tree - Moving Nodes

2009-03-11 Thread Yves Riel
You're welcome Romu. It's not the first time people are looking for a better tree component. Maybe it would be worth while to create a new tree component in FlexLib. We could start with the basic functionality that I added. Yves

RE: [flexcoders] Flex 3 Tree - Moving Nodes

2009-03-10 Thread Yves Riel
I have done something similar lately except for the spring loaded opening mechanism. The problem that I saw with Alex Harui's approach was that you had to turn a leaf into a branch before being able to drop a node on it. That impacts the icons that represent the nodes and I still wanted a leaf node

RE: [flexcoders] TitleWindow and CloseButton

2009-02-25 Thread Yves Riel
The button of a title window is located in the Panel component. You can directly access it thought the mx_internal::closeButton variable. Just make sure to i

RE: [flexcoders] Wicked Memory Leaks and Massive Loitering Objects

2009-02-20 Thread Yves Riel
I like your humour Adrian! The loitering objects can be caused by many things. During my track down on leaks, I found out that most of the time, it was forgetting to set a property to null, not removing listeners as I expected, etc. Without seeing code, it's difficult to help you out properly. Ho

RE: [flexcoders] I'm just not seeing it guys/gals... (events/scopes)

2009-02-11 Thread Yves Riel
Your e-mail is not very clear. There are many ways to get the array collection to update. Anyway, if you are using a drop-in item renderer, I suggest that you access the listData property of the itemRenderer. listData has a property called "owner". So you could have your item renderer dispatch an e

[flexcoders] And survey says: private VS protected VS namespace

2009-02-10 Thread Yves Riel
I'm sure that a lot of us have tried over the years to extend some Flex controls. We all have soon realized that a lot of important methods are private and that if we want to tweak something, we have to copy these private functions into our derived class. Fortunately, there is the mx_internal names

RE: [flexcoders] Can PopUpMenuButton have scrollbars??

2009-02-03 Thread Yves Riel
FlexLib contains a scrollable popup menu and popup menu button. Take a look. However, there are some issues that we had to correct to get it working the way we wanted. Maybe it will work out-of-the-box for you.

RE: [flexcoders] Re: Tree Control Drag and Drop Help

2009-02-03 Thread Yves Riel
Glad I could help! I had to to change the tree a few days ago so it could allow droping nodes onto a branch. I spent a few hours figuring it out so if I was able to save you time then great. If you dig deep into the Flex Components code, you'll see that they often use mx_internal. Also, just as a s

RE: [flexcoders] Tree Control Drag and Drop Help

2009-02-02 Thread Yves Riel
When a drag & drop operation occurs on a tree, the drag & drop handlers call the public calculateDropIndex() function. This function stores all the properties that you want in an mx_internal variable called _dropData of Object data type. So, make sure that your class import and use the mx_interna

RE: [flexcoders] BindingUtils and ResourceManager Question

2009-01-28 Thread Yves Riel
What we have done is to separate ourselves from the resource manager a bit. We have created a new class that basically has a bindable property called "value". This class is passed the name of the string that is localized in the resource manager and hooks to the resource manager. It monitor for chan

RE: [flexcoders] configuring trace

2009-01-21 Thread Yves Riel
You mean in the sense that you want to change the level for a production release without recompiling the swf? We use a configuration file. If the trace level is not in the config file or if the config file is not there altogether, the level defaults to 8.

RE: [flexcoders] Flash Detection

2009-01-21 Thread Yves Riel
Maybe you could, through InstallShield, look at the ShockwaveFlash.ShockwaveFlash key under the HKEY_CLASSES_ROOT in the registry. The CurVer sub-key will give you the current version of the Flash Plugin. You can then decide to force the upgrade before you install your app. I have done that once bu

RE: [flexcoders] Re-parenting Tree nodes using drag & drop

2009-01-21 Thread Yves Riel
ent bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Yves Riel Sent: Wednesday, January 21, 2009 11:59 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re-parenting Tree nodes using drag & drop I looked in the archive

RE: [flexcoders] Re: Big issue with keyboard mapping on Windows

2009-01-21 Thread Yves Riel
I have a French Canadian keyboard mapping on my Windows machine and I can type all of the accentuated characters in any TextArea or TextInput. The only thing that I have witnessed is that I need to toggle on my French Canadian keyboard every time after the browser opens. It seems that Flash does

[flexcoders] Re-parenting Tree nodes using drag & drop

2009-01-21 Thread Yves Riel
I looked in the archive but didn't find any useful information for this. So, here it is: I have a Flex Tree component in which I want to re-parent a node using drag & drop. Basically, I want to be able to take a node, drag it on top of another node and that the dragged node be added as a child. The

RE: [flexcoders] Navigational Design Patterns?

2009-01-21 Thread Yves Riel
Someone in this list once pointed to this framework (http://code.google.com/p/flex-slide/). I have not looked at it but it seems very interesting. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of nwebb Sent: Wednesday, January 21

RE: [flexcoders] Re: Roles Based UI

2009-01-21 Thread Yves Riel
sense the way you have implemented. Then you need to store the mapping between the permissions and role. correct and what do you do when a new role is added. Thanks ilikeflex --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , "Yves Riel" wrote: > >

RE: [flexcoders] internationalization

2009-01-21 Thread Yves Riel
xcoders@yahoogroups.com> ] On Behalf Of Yves Riel Sent: Tuesday, January 20, 2009 4:16 AM To: flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> Subject: RE: [flexcoders] internationalization Haykel, out of curiosity, when you load t

RE: [flexcoders] FB debug constantly logs to console

2009-01-21 Thread Yves Riel
You say it was a bug in your code. Did you find a way to remove the traces from the console? We do load a lot of images in our project and those unwanted trace statements really annoy me! I never looked into it but if you found a way to suppress these traces, do you mind sharing it? ___

RE: [flexcoders] Re: Roles Based UI

2009-01-20 Thread Yves Riel
In our case, we use a similar scheme except that we have roles and permissions. It is the permission that defines the access to the component. If the user, in his role, has the permission set to true, then the user gain access to the component. It is very flexible as you can create many roles wi

RE: [flexcoders] internationalization

2009-01-20 Thread Yves Riel
Haykel, out of curiosity, when you load them dynamically at run-time, do you pass them to the resource bundle manager? That's what we did but I'm curious to see what other did and if there are a open source libraries that do just that. We didn't find any at the time so we had to do it all ourselves

RE: [flexcoders] disclosureOpenIcon/disclosureClosedIcon + Tree + change position

2009-01-16 Thread Yves Riel
I believe that the position of these icons is done in the TreeItemRenderer. They are calculated so the icons come first, then the label. You'll have to derive this class, make the adjustments and then use it as the new item renderer for your tree. From: flexcoders

RE: [flexcoders] Source Control in Flex Builder

2009-01-08 Thread Yves Riel
rsday, January 08, 2009 10:23 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Source Control in Flex Builder On Thursday 08 Jan 2009, Yves Riel wrote: > Yes there is a command line tool but this is the approach I would like > to avoid. I could build an Ant Task that would get

RE: [flexcoders] Source Control in Flex Builder

2009-01-08 Thread Yves Riel
[flexcoders] Source Control in Flex Builder On Wednesday 07 Jan 2009, Yves Riel wrote: > plugin for Eclipse. My problem is that I'm tired to manually refresh all > the projects. Every morning, I have to highlight the project, > right-click and select the Team -> Refresh sub-menu. I

[flexcoders] Source Control in Flex Builder

2009-01-07 Thread Yves Riel
Just throwing a line here to see if someone did this as I'm sure someone did at some point. I have a few projects in Flex Builder and all of them are under source control using the Visual SourceSafe Team Provider plugin for Eclipse. My problem is that I'm tired to manually refresh all the projects.

RE: [flexcoders] Dragging to Super Tab Navigator

2009-01-06 Thread Yves Riel
It's not clear where you want the dragged image to appear. Is it on the tab itself or on the container contained in the SuperTabNavigator? If it's on the container, then just implement drag and drop operations for your container and that should do the trick. If you are looking to drag the image on

RE: [flexcoders] Re: objects bound to datagrid not gc'd when dataprovider set to null

2008-12-02 Thread Yves Riel
I had a similar problem with lists. I found out that the itemRenderer does not release its reference to the data member. While digging into the code, I've found out that Adobe has access to the list through the mx_internal namespace. So, I cooked up a small helper function to release the itemRender