[flexcoders] Update to Flex SDK 3.5 Released

2010-02-02 Thread Deepa Subramaniam
table here: http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3. Thank you, Deepa Subramaniam Flex SDK Product Manager

RE: [flexcoders] Building components at runtime

2009-11-04 Thread Deepa Subramaniam
This is definitely possible, and is essentially what Flash Builder's Design View does (FB's Design View is just a large Flex application) under the hood. You will want to parse your XML and build up Flex objects at runtime (using the new operator), set properties on the objects based on the

RE: [flexcoders] Re: Does DataGroup support XML?

2009-10-23 Thread Deepa Subramaniam
dataProvider-aware controls. As part of this, we now don't auto-wrap raw data like Array or XML into ArrayCollections or XMLListCollections, which is why you need to do that manually. Cheers, Deepa Subramaniam Flex SDK Engineer From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com

RE: [flexcoders] Menubar Styling

2008-06-20 Thread Deepa Subramaniam
You can style the MenuBar by setting styles as attributes, or through ActionScript, on the MenuBar directly. To style the menus popped open by the MenuBar, you can loop through them in ActionScript and set styles on the Menu instances as appropriate. To loop through the MenuBar, you can use the

RE: [flexcoders] Styling of Invalid Inputs (Urgent)

2008-01-16 Thread Deepa Subramaniam
Check out the errorColor style on UIComponent. This controls the color of the highlight when validation fails on a user interface control. By default, its red. deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ethan Miller Sent: Wednesday,

RE: [flexcoders] PopUpButton issue

2008-01-16 Thread Deepa Subramaniam
This chunk of code was added on purpose, to avoid problematic memory leaks with popup components. In Jira you can see it was fixed to address SDK bug 13104. We were not correctly unregistering popup children when necessary. Your workaround is correct, so feel safe using it :)

RE: [flexcoders] Using Popup menu

2008-01-16 Thread Deepa Subramaniam
Check out the PopUpManager and examples in the documentation. This shows exactly how off a button click event you can create a popup component. deepa From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Preet Sent: Tuesday, January

RE: [flexcoders] Bolding a ContextMenuItem or NativeMenuItem

2008-01-16 Thread Deepa Subramaniam
Unfortunately this is not possible with the current ContextMenu API's. People have popped up Flex Menus upon right-click by the user (ie: simulating context menus) and the Flex menu control allows for rich styling. deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL

RE: [flexcoders] PopUpButton issue

2008-01-16 Thread Deepa Subramaniam
the reference. Is that not right? Scott Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com Deepa Subramaniam wrote: This chunk of code was added on purpose, to avoid problematic memory leaks with popup components. In Jira you can see it was fixed to address SDK bug 13104. We were

RE: [flexcoders] Styling of Invalid Inputs (Urgent)

2008-01-16 Thread Deepa Subramaniam
I'd suggest filing an ECR. You could also grab the error tooltip instance from the tooltip manager position it as you desire. The docs have a slightly similar example to this: http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhel

RE: [flexcoders] Flash player fullscreen and text inputs

2008-01-15 Thread Deepa Subramaniam
I just talked to a colleague about this. Apparently this is definitely possible in AIR, with FullScreenMode.FULL_SCREEN_INTERACTIVE. In the browser player, its not supported. People have had varying success with setting focus into an HTML textfield after the app goes fullscreen and then

RE: [flexcoders] Flash player fullscreen and text inputs

2008-01-15 Thread Deepa Subramaniam
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Deepa Subramaniam Sent: Tuesday, January 15, 2008 11:29 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flash player fullscreen and text inputs I just talked to a colleague about this. Apparently

RE: [flexcoders] Menu Seprator color

2008-01-10 Thread Deepa Subramaniam
You can specify a skin that the Menu uses as the separator. Check out the separatorSkin style. There are examples of how to create graphical skins (using Flash, Fireworks, etc) or programmatic skins (creating an ActionScript file that draws the skin via the Flash drawing API) in the Flex

RE: [flexcoders] which Flex componet is similar to HTML table?

2008-01-09 Thread Deepa Subramaniam
Check out the Grid layout container, or using ConstraintColumn/ConstraintRow objects to create a table-like layout in any of the absolute positioning layout containers (Canvas, Panel, Application, etc). -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On

RE: [flexcoders] Set menuBar dataProvider per AS

2008-01-09 Thread Deepa Subramaniam
Try calling your setUpMenuBar() method on the MenuBar's creationComplete event and add menuBarRef.validateNow() after setting the dataProvider property. validateNow() forces the menuBar to do an invalidation pass, which calls the MenuBar's commitProperties method which is necessary to get the data

RE: [flexcoders] adding backgroundColor to Canvas retains images after removeAllChildren()?

2007-12-17 Thread Deepa Subramaniam
I can't reproduce this but I just tried a simple case. Can you share some code highlighting the problem (and/or file a bug at bugs.adobe.com)? Thanks, deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brian Sent: Monday, December 17, 2007

RE: [flexcoders] Problem with Horizontal grid lines matching data in a datagrid

2007-12-17 Thread Deepa Subramaniam
I see this issue in Flex 2 but it doesn't seem to occur in the latest beta of Flex 3. Can you upgrade to Flex 3 (beta 3)? -deepa From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of victor chan Sent: Friday, December 14, 2007 4:02 PM

RE: [flexcoders] How to close dorp-down list in ComboBox components

2007-12-13 Thread Deepa Subramaniam
Refer to the ComboBox by its id and invoke close() on it, a la: mx:Button click=cb.open(); / mx:Button click=cb.close(); / mx:ComboBox id=cb dataProvider={['a', 'b', 'c']} / -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of flexawesome Sent:

RE: [flexcoders] Spacer in MenuBar

2007-12-11 Thread Deepa Subramaniam
Check out the code below. You can pre-set the width of the MenuBar item you want to act as a spacer (just be sure to disable it otherwise it will respond to mouse activity). Individual MenuBar items are accessible off the main MenuBar control via the 'menuBarItems' property. Unfortunately,

RE: [flexcoders] Why is mouseOut being called?

2007-11-02 Thread Deepa Subramaniam
Mouse events bubble. Tou're seeing mouseOver/mouseOut events from the HBoxes, VBoxes, UITextFields, etc that are children of the Canvas. You can determine if the Canvas is the display object processing the event by querying the currentTarget property on the event object. -Original

RE: [flexcoders] moving a LinkBar

2007-11-02 Thread Deepa Subramaniam
Use a boolean flag to track whether the LinkBar has already received its first click (in which case play the move effect) or not. private var clickedOnce:Boolean = false; private function handleClick(event:ItemClickEvent):void { if (!clickedOnce) {

RE: [flexcoders] Re: Joining two (or more) ArrayCollections

2007-10-22 Thread Deepa Subramaniam
How timely! I just spoke about this at my MAX talk - the code example and supporting slides are on my blog: http://iamdeepa.com/blog/?p=7 Look for the code example and slides called Merged Collections. Basically what you want to do is write a custom collection that does the merging of your

RE: [flexcoders] nested layout containers - file size or other concerns

2007-06-06 Thread Deepa Subramaniam
nesting. Check out the tips and tricks here: http://www.adobe.com/devnet/flex/articles/client_perf_04.html Deepa Subramaniam Adobe, Flex -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dnk Sent: Wednesday, June 06, 2007 1:54 PM To: flexcoders

RE: [flexcoders] Selecting datagrid row on rollover...

2007-01-29 Thread Deepa Subramaniam
DataGrid dispatches itemRollOver and itemRollOut events where the event type is mx.events.ListEvent. A ListEvent event object has the rowIndex property which indicates the index of the row that contains the item that was rolled over/out of. -deepa -Original Message- From:

RE: [flexcoders] Fade from one color to another

2006-12-06 Thread Deepa Subramaniam
='blackState'}/ /mx:Application On 12/4/06, Deepa Subramaniam [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Ah - that is because AnimateProperty is just cycling through all the RGB values between your fromValue color and your endValue color. What you may want to do is add an event handler

RE: [flexcoders] Multi-select not happening! - bug?

2006-12-06 Thread Deepa Subramaniam
Hank, you are correct. Multiple selection was disabled in the Tree for the Flex 2 release. We have re-enabled it in the next version of Flex which should be out soon. -deepa From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of hank

RE: [flexcoders] Re: ListBase.as getting called after Drop to Datagrid--Preventing the Drop???

2006-12-05 Thread Deepa Subramaniam
A few things: first, you'll have to call preventDefault() on your DragEvent object to cancel the default behavior so that only your custom event handler runs. Second, you'll have to add a custom dragOver event handler so that the DataGrid shows the correct feedback allowing items to be dropped

RE: [flexcoders] Re: ListBase.as getting called after Drop to Datagrid--Preventing the Drop???

2006-12-05 Thread Deepa Subramaniam
to add your own event handlers to override the default behavior. -Deepa Subramaniam From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Lachlan Cotter Sent: Tuesday, December 05, 2006 4:13 PM To: flexcoders@yahoogroups.com Subject: Re

RE: [flexcoders] XMLList/XMLListCollection: sort on attributes

2006-12-04 Thread Deepa Subramaniam
Assuming the XMLListCollection created from the myData XML object looks like this: public var col:XMLListCollection = new XMLListCollection(myData.children()); Then you would sort on the category name like so: private function applyMySort():void { var s:Sort = new

RE: [flexcoders] Fade from one color to another

2006-12-04 Thread Deepa Subramaniam
Set the the isStyle property to true in your AnimateProperty tag. -deepa From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dorkie dork from dorktown Sent: Monday, December 04, 2006 5:25 AM To: flexcoders@yahoogroups.com Subject:

RE: [flexcoders] Fade from one color to another

2006-12-04 Thread Deepa Subramaniam
state but that feels like a hack. dorkie best practices dork from dorktown On 12/4/06, Deepa Subramaniam [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Set the the isStyle property to true in your AnimateProperty tag. -deepa From: flexcoders

RE: [flexcoders] Message to Deepa (or others) Re: have there any rightClick mouseEvent in Flex2?

2006-11-16 Thread Deepa Subramaniam
anyone repost it ? Thanks a lot in anticipation P-H --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Deepa Subramaniam [EMAIL PROTECTED] wrote: Yes - you can add a ContextMenu that pops open when you right click in a Flex application. You can use the flash.ui.ContextMenu

RE: [flexcoders] Re: RangeError: Error #2006 using menu !

2006-11-07 Thread Deepa Subramaniam
Hello We fixed a few bugs where this was happening in Menu and MenuBar. We were not correctly adding and removing the child menu instances to the SystemManager and eventually the indices would get out of sync and youd RTE. These have been fixed since the Flex 2 build went out

RE: [flexcoders] where to drop on tree

2006-11-07 Thread Deepa Subramaniam
The calculateDropIndex method in Tree will tell you the index of the dropped node and then you can lookup the id of the node at that location to update your database. If you  need more information then that (ie: the parent node of the drop, whether youre dropping into an empty

RE: [flexcoders] help moving elements in a tree

2006-11-06 Thread Deepa Subramaniam
Tree formats its drag and drop items as treeItems instead of items which is what the other list-based controls use. So try: private function doDragDrop(event:DragEvent):void { var dropTarget:Tree=Tree(event.currentTarget); doDragExit(event); var items:Array

RE: [flexcoders] showRoot not working on mx:Tree ?

2006-11-06 Thread Deepa Subramaniam
In Flex 2, we did not take rootedness into account for XMLLists and ArrayLists. This is something that we fixed in the updated 2.1 build which will be coming out soon. As a workaround, you can pass the children of the topics node directly to the Tree

RE: [flexcoders] Re: Changing color in datagrid URL

2006-11-01 Thread Deepa Subramaniam
@yahoogroups.com Subject: [flexcoders] Re: Changing color in datagrid URL That's what I tried first. The color is still black. --- In flexcoders@yahoogroups.com, Deepa Subramaniam [EMAIL PROTECTED] wrote: You can set styles on the LinkButton to control its appearance. So in your case, you would add

RE: [flexcoders] Changing color in datagrid URL

2006-11-01 Thread Deepa Subramaniam
You can set styles on the LinkButton to control its appearance. So in your case, you would add a color (and perhaps an underline) style to the mx:LinkButton tag. mx:LinkButton label={data.strUserEmail} color=#ff click=navigateToURL(new URLRequest('mailto:'+data.strUserEmail),

RE: [flexcoders] Problem with setFocus()

2006-10-30 Thread Deepa Subramaniam
Hi Rick setFocus() is the correct method to use to put focus on the TextInput, including the cursor blinking within the TI. But are you using Firefox? Your issue is a fact of life in the Firefox world. Youll notice that in Firefox, calling setFocus() off any of the

RE: [flexcoders] How can I block a TabNavigator ?

2006-09-18 Thread Deepa Subramaniam
What you can do is iterate through the TabNavigator's tabs and disable each of them. By disabling them, the change event will not get emitted. Use TabNavigator.getTabAt() and set the enabled property to false for each Tab. Now, when you disable a Tab, the Tab will assume the look of its disabled

RE: [flexcoders] How can I block a TabNavigator ?

2006-09-18 Thread Deepa Subramaniam
@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Paul Andrews Sent: Monday, September 18, 2006 12:45 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How can I block a TabNavigator ? - Original Message - From: Deepa Subramaniam [EMAIL PROTECTED]com

RE: [flexcoders] How to display XML object in DataGrid

2006-09-15 Thread Deepa Subramaniam
Your DataGridColumns need to specify a dataField property to determine which field in the XML object to display as the text for that cell. If you need to customize the text beyond just pulling out a field from the XML, you can use a labelFunction to do so. I believe the ASDoc example

RE: [flexcoders] have there any rightClick mouseEvent in Flex2?

2006-09-14 Thread Deepa Subramaniam
Yes - you can add a ContextMenu that pops open when you right click in a Flex application. You can use the flash.ui.ContextMenu class to add custom menu items to your ContextMenu and then use event handling to invoke the desired behavior. Attached is a simple example that shows how you can right

RE: [flexcoders] Tree Component expandItem Animation true problem.

2006-09-05 Thread Deepa Subramaniam
This is because of the way the depthColors are drawn. They are only drawn in drawRowBackgrounds() which gets called in updateDisplayList() so the row background colors are not tweened during the animation. Ive added an enhancement request to allow for tweening of background row colors

RE: [flexcoders] Getting contents of ArrayCollection (flex newbie)

2006-09-01 Thread Deepa Subramaniam
You can iterate through your collection by using the IList methods like getItemAt(), which returns an Object. Something like: for (var i:int = 0; i myCollection.length; i++) { var data:Object = myCollection.getItemAt(i); //do something with data } Alternatively, you can

RE: [flexcoders] Unable to get trace to work...

2006-08-31 Thread Deepa Subramaniam
Do you have an mm.cfg file that enables tracing and sets the trace output file name and location? Here's a technote about how to get mm.cfg set up correctly: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_19323 One that is all set up, your trace statements will be outputted to

RE: [flexcoders] Problem with Sorting

2006-08-31 Thread Deepa Subramaniam
The SortField objects take the name of the field in the object to be sorted as a String so your dot _expression_ will not work. What you can do is write a custom compareFunction for your Sort object. A compareFunction takes two objects and returns -1, 0, or 1 depending on which

RE: [flexcoders] Re: Unable to get trace to work...

2006-08-31 Thread Deepa Subramaniam
Hi Kyle Check out the first line in step #2 in the technote: Make sure you have copied the mm.cfg file from your flex_install_dir/bin directory to the client machine's home directory. Alternatively, you can create a file, name it mm.cfg, drop it in your home directory and add

RE: [flexcoders] buttonMode and useHandCursor on a Label doesn't work...

2006-08-31 Thread Deepa Subramaniam
Set the mouseChildren property to false on the Label. mx:Label id=myLabel text=blabla click=myClickHandler() buttonMode=true useHandCursor=true mouseChildren=false/ -deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent:

RE: [flexcoders] Re: Object oriented / design pattern / application design books?

2006-08-31 Thread Deepa Subramaniam
+1 for Head First Design Patterns. The methodology with which the descriptions and examples are laid out really drill each pattern into your memory. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Thursday, August 31, 2006 2:02

RE: [flexcoders] Re: Disabling a nested menu item in a menu bar?

2006-08-23 Thread Deepa Subramaniam
Hi Jeff MenuBar.getMenuAt() returns a reference to a Menu. getMenuAt() is a method on MenuBar and menuItems is a property on MenuBar, which is why you encounter the errors below when you try to use those APIs on a Menu. Since Menus are dynamically created as needed, there is a

RE: [flexcoders] Select Multiple Dates

2006-08-14 Thread Deepa Subramaniam
Set the allowMultipleSelection property to true. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of pateyog Sent: Monday, August 14, 2006 3:09 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Select Multiple Dates Does

RE: [flexcoders] datagrid.selectedItem.image (don't work)

2006-07-06 Thread Deepa Subramaniam
If your DataGrid is consuming e4x XML as its dataProvider, then the selectedItem value will be an e4x XML node. Is imagen an attribute of the selected node or a child? If its an attribute then youll need to do: source=[EMAIL PROTECTED] in your Image tag. If imagen is a child node, you

RE: [flexcoders] Menu - handle sub-menu clicks

2006-07-06 Thread Deepa Subramaniam
What build of Flex are you using? I see MenuEvent.ITEM_CLICK being dispatched for sub-menu selections as well as root menu selections. If you could post a bit of code that reproduces your issue, that would help too. -deepa From: flexcoders@yahoogroups.com

RE: [flexcoders] Contextual Menu

2006-06-30 Thread Deepa Subramaniam
Currently the player's ContextMenu class does not support sub-menus. Also, you cannot catch the mouse right click and pop open your own menu in place of any ContextMenu, so there's no workaround that I am aware of. I'd be interested to hear if others do have one. -deepa -Original

RE: [flexcoders] Select a Tree item on Right click

2006-06-30 Thread Deepa Subramaniam
so Ill definitely add your usecase to the bug to give it some momentum. HTH Deepa Subramaniam Flex SDK From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Pottavathini, Sathish Sent: Friday, June 30, 2006 3:50 PM To: flexcoders@yahoogroups.com

RE: [flexcoders] submenu items on a ComboBox?

2006-06-29 Thread Deepa Subramaniam
Take a look at the PopUpMenuButton control; the example in the ASDoc shows pretty much what you're asking for. -deepa From: flexcoders@yahoogroups.com on behalf of djbrown_rotonews Sent: Thu 6/29/2006 12:19 PM To: flexcoders@yahoogroups.com Subject:

RE: [flexcoders] Re: Keeping DataGrid from scrolling to top on update to dataProvider

2006-06-28 Thread Deepa Subramaniam
); } and the trace info does give me the value of the currentScroll, but the grid still goes back to the top after the data is populated. is refresh() still being called after this guy? --- In [EMAIL PROTECTED]ups.com, Deepa Subramaniam [EMAIL PROTECTED]. wrote: When the actual data comes in, the DataGrid

RE: [flexcoders] Chart Data Tip Function

2006-06-28 Thread Deepa Subramaniam
Hey There - Looks like in beta3 dataTipFunction took an Object as its parameter. That has since changed; now, dataTipFunction takes a HitData object that describes the data point. -deepa From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of

RE: [flexcoders] Icons in menu - not working

2006-06-28 Thread Deepa Subramaniam
Hmmm well our Embed expert says that you can make the variable for the embedded asset static, but that seems to be your problem. Ill file a bug on your behalf, but for now, dont make exitOn static and the icon should show up. Let me know if it doesnt Deepa Flex SDK

RE: [flexcoders] Icons in menu - not working

2006-06-28 Thread Deepa Subramaniam
Yup, you are correct. I just talked to Roger about this. What is happening is that MenuBar checks to see if an iconField is set. In your case it is, and the MenuBar looks to see if a Class, exitOn, exists with that name in the application or a property on the document with that same

RE: [flexcoders] Icons in menu - not working

2006-06-28 Thread Deepa Subramaniam
to not be a static variable. Other cases without this indirection, like a Button icon, will work correctly. -deepa From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Deepa Subramaniam Sent: Wednesday, June 28, 2006 4:59 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders

RE: [flexcoders] Keeping DataGrid from scrolling to top on update to dataProvider

2006-06-27 Thread Deepa Subramaniam
Hi Jordan You can keep track of the verticalScrollPosition property in your DataGrid and upon receving UPDATES, re-set the verticalScrollPosition to the previous value and the DataGrid will jump to the last scroll position and show the correct content. -deepa From:

RE: [flexcoders] expanding Tree Nodes

2006-06-27 Thread Deepa Subramaniam
You now want to use Tree.expandItem() to open or close a branch node. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mike Wertheim Sent: Tuesday, June 27, 2006 1:02 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] expanding Tree Nodes

RE: [flexcoders] Re: Keeping DataGrid from scrolling to top on update to dataProvider

2006-06-27 Thread Deepa Subramaniam
the jsp (it takes about 3 seconds to update the grid with the new data). any ideas on where the scroll position is being reset? --- In flexcoders@yahoogroups.com, Deepa Subramaniam [EMAIL PROTECTED] wrote: Hi Jordan - You can keep track of the verticalScrollPosition property in your

RE: [flexcoders] Tabbing through items in a container

2006-06-20 Thread Deepa Subramaniam
Currently in the framework, you cannot tab through components like Label, Text and Image. They will not respond with a focus highlight which other controls, like a Button, do. Try your same test case with a Button and you'll see that the controls respond to tabbing in the order specified by

RE: [flexcoders] ContextMenu and DataGrid question

2006-06-14 Thread Deepa Subramaniam
Hi So the mouseTarget property is a reference to the DataGridItemRenderer which the context menu opened upon. You can access the listData property off of a DataGridItemRenderer to then access rowIndex and columnIndex and whatever other goodies youd like. Check out my example below.

RE: [flexcoders] MenuItem with icon

2006-05-10 Thread Deepa Subramaniam
You need to be sure your assets are embedded in your swf, then all you have to do is specify an iconField on your Menu (ie: myMenu.iconField = @icon). Here's a simple working example: mx:Script ![CDATA[ [Embed(source=sendBack.jpg)] public var _sendBack:Class; import mx.controls.Menu;

RE: [flexcoders] ComboBox Fields

2006-05-09 Thread Deepa Subramaniam
There is the labelField property, which you can use to specify which field in the objects of the dataProvider should be used to display the label for each item. If you require further formatting, you can set a labelFunction which is a function that is run on each item to determine the

RE: [flexcoders] Flex 2.0 b2: XML

2006-05-08 Thread Deepa Subramaniam
You can delete any portion of an XML document by using the 'delete' operator in e4x. -deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of tyombria Sent: Saturday, May 06, 2006 12:52 AM To: flexcoders@yahoogroups.com Subject: [flexcoders]

RE: [flexcoders] Validation framework and changing the way tooltips get triggered (F2B2)

2006-05-08 Thread Deepa Subramaniam
If you're using Flex 2, check out triggerEvent in the Validator class. That allows you to specify which event triggers the validation. I believe by default this happens when you remove focus from the component, but you can use triggerEvent to customize the behavior. -deepa -Original

RE: [flexcoders] Flex 2 beta 3 available

2006-05-08 Thread Deepa Subramaniam
Title: Flex 2 beta 3 available You need to re-build your swfs to be compliant with the Beta 3 source code and be sure to use the player that is packaged with the Beta 3 build. There should be documentation on the labs site that call out code changes in the Flex framework and in the

RE: [flexcoders] DadtaGrid Distress

2006-05-04 Thread Deepa Subramaniam
What format is your data in? I'm guessing you need to set dataFields on your DataGridColumns to instruct the DataGridColumn which field or property in the dataset to associate with itself. Try tracing out your data and read up on dataField and labelFunction (labelFunction helps format your

RE: [flexcoders] Two Flex 2 Components Questions

2006-05-02 Thread Deepa Subramaniam
rowHeight is a property on List-based components. MenuBar does not derive from ListBase so you cannot set rowHeight on the MenuBar. You need to set it on the individual menus the MenuBar pops up. You can use the getMenuAt() method to grab each individual menu from the MenuBar and set

RE: [flexcoders] How to set the Color of a Slider Thumb?

2006-04-25 Thread Deepa Subramaniam
Well in Flex 2 you'd set the fillColors style to color the slider thumb. You would pass in the same color for both values for the thumb to have a flat color, or you can achieve a color gradient by varying the colors for both the values. I think the same might be true in Flex 1.5, but I

RE: [flexcoders] Adobe Bridges Flash, Flex with AJAX

2006-03-08 Thread Deepa Subramaniam
to this list, has a great blog entry about the bridge and what it allows developers to do: http://www.quietlyscheming.com/blog/2006/03/06/flex-and-ajax Just an FYI Deepa Subramaniam Flex Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Renaun Erickson Sent

RE: [flexcoders] Flex2 bug report: TabBar selectedIndex

2006-03-01 Thread Deepa Subramaniam
These TabBar issues have all been fixed in our internal builds so keep an eye out for the next public drop to resolve this for you. -deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manish Jethani Sent: Wednesday, March 01, 2006 5:54 AM

RE: [flexcoders] Programatically move Tree Component Scrollbar

2006-02-21 Thread Deepa Subramaniam
You should be able to use the vPosition and hPosition properties on Tree to move its vertical or horizontal scrollbar. To get the scrollbar to scroll to the selectedItem you can set vPosition/hPosition to the selectedIndex. -Original Message- From: flexcoders@yahoogroups.com

RE: [flexcoders] LINK PROBLEM

2006-02-16 Thread Deepa Subramaniam
Are you sure you're setting the label property on Link? mx:Link [EMAIL PROTECTED] click=navigateToURL(new URLRequest(...))/ -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of motareal Sent: Thursday, February 16, 2006 5:40 AM To:

RE: [flexcoders]Combobox feature?

2006-02-16 Thread Deepa Subramaniam
This is a feature. The List-based components, of which ComboBox is one, allow de-selection by Ctrl+click on a selected item. There are a few ways to workaround this (subclass the component, perhaps). One that comes to mind is to capture keyboard event and cross-track that with the selectedItem

RE: [flexcoders] BUG :: List while using the mouseWheel/scroll

2006-02-16 Thread Deepa Subramaniam
Hi - What build are you using? I can't seem to reproduce this bug on our current internal build. I know we tackled a lot of mousing/scrolling RTE's in the List-based components but I don't want to dismiss this before I know what build you're using. Thanks, deepa -Original Message-

RE: [flexcoders] Datagrid sort Arrows

2006-02-14 Thread Deepa Subramaniam
What Matt means is that there needs to be a Sort object that is assigned to the collections sort property. You dont need to actually trigger the sort (by calling refresh() on the collection) but there needs to be a Sort assigned. For example: localCol = new

RE: [flexcoders] How to deselect all items in a list?

2006-02-14 Thread Deepa Subramaniam
You can always set the selectedItems or selectedIndices properties on the list-based components to an empty array to programmatically force de-selection. The component's UI will respond accordingly. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On

RE: [flexcoders] how to display ruler in mx:Grid

2006-02-13 Thread Deepa Subramaniam
We also provide the HRule and VRule components which you can use to create a dividing line in a container. You can drop those two components into a container just like any other control (ie: as a child of your Grid container). deepa -Original Message- From: flexcoders@yahoogroups.com

[flexcoders] RE: Paint cell of dataGrid in different color

2006-02-13 Thread Deepa Subramaniam
Hi - This question has come up many times on this list. Below is the cut paste from a previous email. Should get you on the right track. -deepa Changing the background color of a Datagrid Row in Flex I have heard this question many times and I don't think it is documented.

RE: [flexcoders] DateField selectedDate toggle

2006-02-03 Thread Deepa Subramaniam
I've filed a bug and its being looked at internally. deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin Sent: Thursday, February 02, 2006 10:07 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] DateField selectedDate

RE: [flexcoders] Get the selected column of a dataGrid

2006-02-02 Thread Deepa Subramaniam
Try using the cellPress event instead of the change event on DataGrid. Something like this should be what you want: mx:DataGrid dataProvider={col} cellPress=trace(event.columnIndex + event.columnName) / -deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]

RE: [flexcoders] flex 1.5 - mx:List selectedIndex question

2006-02-02 Thread Deepa Subramaniam
Yes, you'll want to use the vPosition property, which is available on all the List components, to scroll your List accordingly. vPosition can take a value like the row number you want to scroll too. So when you set the selectedIndex on your List in the 3rd tab, set the vPosition of that List

RE: [flexcoders] TabNavigator and Flex2 Beta

2006-02-02 Thread Deepa Subramaniam
Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Deepa Subramaniam Sent: Wednesday, February 01, 2006 1:04 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders

RE: [flexcoders] TabNavigator and Flex2 Beta

2006-02-01 Thread Deepa Subramaniam
Hi Jonathan I cant seem to reproduce your case. I cant size my TabNavigator such that the label for a tab is not truncated when not selected, and then truncated when selected. Could you send me some code that reproduces that case? Thanks, deepa -Original Message- From:

RE: [flexcoders] TabNavigator and Flex2 Beta

2006-02-01 Thread Deepa Subramaniam
Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Deepa Subramaniam Sent: Wednesday, February 01, 2006 12:03 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders

RE: [flexcoders] DataGrid Bug?

2006-02-01 Thread Deepa Subramaniam
Title: Message Hi - This is a bug in DataGrid that is already logged in our bugbase. Thanks for the heads up. deepa -Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sreejith UnnikrishnanSent: Wednesday, February 01, 2006 12:34 PMTo:

RE: [flexcoders] Transparent Tilelist

2006-01-30 Thread Deepa Subramaniam
Hi - backgroundAlpha will only work if a backgroundColor or backgroundImage is specified. Try adding one of those and then setting backgroundAlpha and you should achieve transparency. Deepa Subramaniam -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL

RE: [flexcoders] Unable to detect changes to variable

2006-01-30 Thread Deepa Subramaniam
Just to add some context, by marking your page and perPage variables with the Bindable metadata, Flex will monitor those properties for changes and generate events for when something in that property chain changes. This is a new mechanism added in Flex 2.

RE: [flexcoders] Return of the Menu Depth Monster!

2006-01-27 Thread Deepa Subramaniam
Have you tried parenting the Menu to the Application or some higher-level container (ie: pass a container instead of null as the first argument in createMenu())? __ Find Me: 2701 - 601 Townsend 415.832.7668 [EMAIL PROTECTED] -Original Message-

RE: [flexcoders] Stand-alone scrollbar possible?

2006-01-25 Thread Deepa Subramaniam
Hi - We provide the HScrollBar and VScrollBar components for you to instantiate as standalone scrollbars. Here's an example of a vertical scrollbar that controls the scrolling in a horizontal scroll bar. mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml; mx:VScrollBar id=v

RE: [flexcoders] Stand-alone scrollbar possible?

2006-01-25 Thread Deepa Subramaniam
? Sree - Original Message - From: Deepa Subramaniam To: flexcoders@yahoogroups.com Sent: Thursday, January 26, 2006 12:43 AM Subject: RE: [flexcoders] Stand-alone scrollbar possible? Hi - We provide the HScrollBar and VScrollBar components

RE: [flexcoders] Bugs with Flex2

2006-01-24 Thread Deepa Subramaniam
You could try programmatically removing the column and then adding it back in when you needed it using the removeColumnAt()/addColumnAt() methods? Just keep a reference to the removed column for when you need to add it back in later. -deepa -Original Message- From:

RE: [flexcoders] Clear DateField

2006-01-24 Thread Deepa Subramaniam
Well there's many ways to do this - it depends on what workflow you want your end user to go through. Like you said, you could add a clear button. You could have the DateField clear its selected date when it is opened (hook into the open event and set selectedDate to null). You could have the

RE: [flexcoders] Sourcing an image using a variable in URL (Flex 2)

2006-01-20 Thread Deepa Subramaniam
Hi - You can use databinding to plug in your photoID dynamically. mx:Script var photoID:Number = 1234; /mx:Script mx:Image id=myImage source=http://www.mySite.com/pictures/{String(photoID)}.jpg / -deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On

  1   2   >