[flexcoders] Setting fontWeight on a DataGrid Row

2005-08-24 Thread Tim Blair
Hello, Is there a nice easy way to set the font weight of each cell in a DataGrid *row* (not column)? I can set (e.g.) the backgroundColor by using something like: dg.setPropertiesAt(1, {backgroundColor:0xFF}) But setting fontWeight has no effect. I could loop through each cell individuall

[flexcoders] DataGrid Editable Header Renderer

2005-07-26 Thread Tim Blair
Hello, I'm attempting to create a custom headerRenderer for a DataGrid which will allow the user to edit the column name (headerText) in exactly the same way as the standard editable DataGrid cellRenderer. Before I spend any more time on it, does anyone have an example of such a thing hanging aro

RE: [flexcoders] Styling individual tabs in a TabNavigator

2005-06-07 Thread Tim Blair
Thanks Abdul, > But I can think of another way, which is not a good if you > have lots of tabs...However, it might give you some idea. I > am using TabBar with ViewStack, instead of TabNavigator. That > ways I can get the reference of individual tabs. I'd already thought about doing something

[flexcoders] Styling individual tabs in a TabNavigator

2005-06-07 Thread Tim Blair
Hello, Is it possible to style the colours of individual tabs in a tab navigator? For example, in the following code I'm attempting create a TabNavigator with three tabs, each of a different colour, but having no joy... I can style all tabs by using the Tab{} declaration, but I'm looking for a w

RE: [flexcoders] Auto-scroll on TileList

2005-06-07 Thread Tim Blair
> > How can I get [the TileList] to scroll to the position that > > the new item has been added? > > Set the 'vPosition' to the index to which you want to scroll > to (the one where you added the new item). Excellent, thanks Manish! I knew I had to be missing something simple... :) Tim. --

[flexcoders] Auto-scroll on TileList

2005-06-06 Thread Tim Blair
Hello, I have a TileList component which I add items to via a drag/drop operation; this is all working fine. The problem I'm having is that when the item has been dropped onto the TileList, it appears the resetScrollPositions() function is automatically called and the TileList automatically scro

[flexcoders] Resizing SWFs in mx:Loader

2005-05-27 Thread Tim Blair
Hello, I'm having trouble when loading SWFs in to a Flex app using . Basically, the SWF isn't being resized to the Loader, no matter what I do. Simple test case: http://www.macromedia.com/2003/mxml";> http://localhost/europe.swf"; id="preview" scaleContent="tr

RE: [flexcoders] Serious corruption in Flex-generated SWF

2005-05-18 Thread Tim Blair
> If this is not a compile-time problem but rather a runtime > problem, as it is for other people in the thread, then this > setting won't help and unfortunately I don't know the > solution. -Brian Thanks Brian, but unfortunately it's a runtime issue. The problem only seems to occur on compo

RE: [flexcoders] Disappearing images in custom cell renderer

2005-05-18 Thread Tim Blair
Manish, > What happens if you set 'source' directly instead of using > binding? Try it. Unfortunately, because of the way the data is fetched from the server, the data required (i.e. the thumbnail URL) may not be back before the component is initialised, hence the binding. But your suggestion

RE: [flexcoders] Image not being resized in mx:Image tag

2005-05-17 Thread Tim Blair
> See if this helps: > http://www.mail-archive.com/flexcoders@yahoogroups.com/msg06839.html Hmm, stragely that seems to have worked on the live server but not on my dev server... How strange? Anyway, thanks Manish, I shall dig deeper... Tim. --

RE: [flexcoders] Serious corruption in Flex-generated SWF

2005-05-17 Thread Tim Blair
> Are you using an event to redraw/reposition elements in the > containers of the Accordion? On some of the views that are effected I'm using events to clear out what's shown, but others are simply displayed. I'm also having the same problem with components in a TabNavigator component, so it's n

[flexcoders] Disappearing images in custom cell renderer

2005-05-17 Thread Tim Blair
What is it with me and images at the moment...? Anyway, I'm having trouble with displaying thumbnails in a custom cell renderer within a TileList component. The code for the cell renderer is displayed below (AssetThumbnail.mxml) and the line that defines the TileList is also shown (ThumbnailView.

[flexcoders] Image not being resized in mx:Image tag

2005-05-17 Thread Tim Blair
Hello, I'm having trouble with images not resizing to fit the tag specfied (and also with SWFs not resizing to fit the appropriate ). An example can be seen at the following URL, where the image (green boxes) *should* be contained within the grey box top right: http://kryten.rawnet.com/flex/fle

[flexcoders] Serious corruption in Flex-generated SWF

2005-05-17 Thread Tim Blair
Morning all, We're having severe issues with components within a Flex-generated SWF being displayed corrupt. The problem is that this doesn't happen all the time, and I can't seem to find a reproducable method of "forcing" the corruption. Examples of the sort of thing we're seeing can be seen he

RE: [flexcoders] Flex Server Specification

2005-05-13 Thread Tim Blair
Thanks Dave, > Even if there will be other apps/instances, I'd keep it at 1 > GB and simply add more RAM to the box (it's so cheap > nowadays, it's a no-brainer). We're actually going for 2Gb -- we will be adding separate instances in the near future and it makes sense to go for this straight a

RE: [flexcoders] Flex Server Specification

2005-05-13 Thread Tim Blair
> Could anyone advise on the required (or recommended) server > specs for running Flex? There'll be nothing else running on > the box and we're looking at a Linux server. I get the > feeling that the info here[1] is over-simplifying things a bit... > > [1] http://www.macromedia.com/software/

[flexcoders] Flex Server Specification

2005-05-13 Thread Tim Blair
Morning all, Could anyone advise on the required (or recommended) server specs for running Flex? There'll be nothing else running on the box and we're looking at a Linux server. I get the feeling that the info here[1] is over-simplifying things a bit... Cheers, Tim. [1] http://www.macromedia

RE: [flexcoders] Dynamically poplulating an editable DataGrid

2005-05-10 Thread Tim Blair
Jim, > Your approach for adding a new row to the grid is slightly incorrect: > you're pushing the new object onto the data provider of the grid. > Instead, you should use the addItem method of the grid / dataProvider. ... > I forgot to address the editing / not showing up issue. > Try using undefi

[flexcoders] Pre-selecting Tree nodes

2005-05-09 Thread Tim Blair
Hello, Does anyone have an example of pre-selecting nodes in a Tree component based on the data item associated with that node? I'm tearing my hair out here... Example: I have the following files (tree.xml and tree.mxml) -- on initialisation (or button click etc) I would like the nodes with the

RE: [flexcoders] Dynamically poplulating an editable DataGrid

2005-05-09 Thread Tim Blair
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tim Blair Sent: Sunday, May 08, 2005 6:28 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Dynamically poplulating an editable DataGrid

RE: [flexcoders] Dynamically poplulating an editable DataGrid

2005-05-08 Thread Tim Blair
Matt/Manish, Matt wrote: > When you add a new object to the dataProvider any chance you > can add it with empty fields for the columns that do exist? > I'd imagine that it not having any values whatsoever could > cause something like this. Manish wrote: > I don't know why this might be happening,

[flexcoders] Dynamically poplulating an editable DataGrid

2005-05-07 Thread Tim Blair
Evening all, I'm having some issues with an editable data grid. Basically it starts of as an empty grid and the user can populate it by adding columns and rows, but it doesn't appear to be working as I expect it to. I can add columns using dg.addColumn() absolutely fine, and they are displayed a

RE: [flexcoders] Handling "status" event types with Remoting/CFCs

2005-04-28 Thread Tim Blair
Dirk, > that's strange - "SERVER.PROCESSING" messages should > definitely trigger your fault handler. Basically, they are > just Exceptions caught by the Remoting gateway. That's what I thought. Anyway, I've worked out what was wrong -- sport the deliberate (?!) mistake: MXML: AS: call.faul

RE: [flexcoders] Disappearing struct from CFC using RemoteObject

2005-04-28 Thread Tim Blair
Pete, > I believe ColdFusion structs are seen by Flash Remoting as > java.util.Map instances, so that means they're going to the > client as ECMA Arrays, not Objects. Thankfully (for now) you > can use the following ActionScript syntax to get named keys > from arrays as well as object properties:

[flexcoders] Handling "status" event types with Remoting/CFCs

2005-04-28 Thread Tim Blair
Afternoon, I have a number of CFCs which I'm accessing through RemoteObject calls. I've noticed that if CodlFusion throws an error (built-in or custom) then the reponse comes back with an event type of "Status", which isn't handled by either the result or fault handlers specified for the callback.

RE: [flexcoders] Disappearing struct from CFC using RemoteObject

2005-04-26 Thread Tim Blair
David, > out of curiosity what version of CF are you using? I'm still on MX6.1. > I had a similar mind-loosing experience recently, though the > structs were disappearing only when I was trying to retrieve > an array of structs. I seem to get the same issue when I'm grabbing arrays of struc

[flexcoders] Disappearing struct from CFC using RemoteObject

2005-04-26 Thread Tim Blair
Hello, I'm slowly going crazy here. I'm trying to make a simple RemoteObject call to a ColdFusion CFC using Flash Remoting. Nothing exciting -- pass a couple of vars, get a structure containing user data back. Whenever I try and return a type of struct (and only struct, as far as I can see) fr