[flexcoders] constructors in extended components: can they take arguments?

2007-09-07 Thread barry.beattie
the docs seem to hint no because (in this case) it changes the signature from the base class ... but I just need to check. within a chart I'm using the itemRenderer for each series in a BarSet. I need some way to tell it that it's processing a different series than the one before so it'll use a

Re: [flexcoders] [Embed] path

2007-09-07 Thread Tom Chiverton
On Thursday 06 Sep 2007, [EMAIL PROTECTED] wrote: Do I need to move assets under src? That's what we do with the command line compiler. -- Tom Chiverton Helping to preemptively initiate interdependent portals on: http://thefalken.livejournal.com

[flexcoders] Satori Canton on Silverlight

2007-09-07 Thread Tom Chiverton
Are you here Satori ? 'cause it seems you've drunk too much of Microsoft's kool-aid over at http://www.actionscript.com/Article/tabid/54/ArticleID/Is-Silverlight-the-Flash-Killer-/Default.aspx Silverlight debugger actually allows you to insert break points and debug a web application running on

Re: [flexcoders] Phantom ComboBox warning

2007-09-07 Thread shaun
candysmate wrote: My application used to contain several comboBoxes until a redesign removed them. However, when compiling, I still get several The type selector 'ComboBox' was not processed, because the type was not used in the application' warnings. Anyone had this sort of phantom action?

Re: [flexcoders] Changing the Custom ContextMenu Look and Feel

2007-09-07 Thread Derek Vadneau
You can't stylize the ContextMenu because it isn't in Flash. The contextmenu is opened by the player and is a system-level control. It's similar to the contextmenu in the browser or in other applications. You also can't override the right-click. The Flash Player will always display the

[flexcoders] Changing the Custom ContextMenu Look and Feel

2007-09-07 Thread sk_acura
Hi All, I am trying to have a Custom Context Menu on the Items i have in my Canvas. I am able to get the ContextMenu and desired functionality by assigning the contextMenu when ever i add an Item to the Canvas .How ever the look and feel is same as the default one.. How can i change it

Re: [flexcoders] TitleWindow sozing help needed

2007-09-07 Thread Michael Schmalle
Hi, That is good ole mathematics. You need to calculate the popups new width and height, then use that to calc the x and y using the stage.screen dimensions. Peace, Mike On 9/7/07, Mark [EMAIL PROTECTED] wrote: I'm poping up a title window and would like the size to be a percentage of the

Re: [SPAM] RE: [flexcoders] Display item renderer in only some rows of a datagrid

2007-09-07 Thread Tom Chiverton
On Friday 07 Sep 2007, [EMAIL PROTECTED] wrote: I could do with some further advice on how to represent this data Flex 3's AdvancedDataGrid an option ? -- Tom Chiverton Helping to appropriately differentiate advanced action-items on: http://thefalken.livejournal.com

[flexcoders] LineSeries Stroke color

2007-09-07 Thread superabe superabe
This feels like a really simple thing, but I am new to using the charts so having trouble figuring this out (using Flex 3 beta) I have a LineChart with a few LineSeries in them. I want to change the weight of the stroke of the all the LineSeries to be thinner, yet I want to use the default colors

[flexcoders] TitleWindow sozing help needed

2007-09-07 Thread Mark
I'm poping up a title window and would like the size to be a percentage of the window size. I haven't been able to see how do to this, is it something I can do? What I'd like is for it to be centered at about 75 percent of the screen width and height. I really don't even know if that will

Re: [flexcoders] custom component as item renderer

2007-09-07 Thread Matthew Ganz
that did the trick, mark. thank you both. - Original Message - From: Mark Doberenz To: flexcoders@yahoogroups.com Sent: Thursday, September 06, 2007 5:53 PM Subject: Re: [flexcoders] custom component as item renderer what's the namespace that the custom component is in?

[flexcoders] Re: Phantom ComboBox warning

2007-09-07 Thread candysmate
--- In flexcoders@yahoogroups.com, shaun [EMAIL PROTECTED] wrote: candysmate wrote: My application used to contain several comboBoxes until a redesign removed them. However, when compiling, I still get several The type selector 'ComboBox' was not processed, because the type was not used

[flexcoders] Re: optimize swf generated by mxmlc module

2007-09-07 Thread danielvlopes
Even not using framework caching, is possible create image loader with minimal swf size, depends of what kind image load you want (loading from xml, db, webservice, etc) and no embeding images in swf, for test i made one of this and final swf had less than 90kb (i made teste using only image comp

Re: [flexcoders] Changing the Custom ContextMenu Look and Feel

2007-09-07 Thread Derek Vadneau
Honestly, I just assumed Adobe would let you do this for a desktop app, but I haven't tried it yet. If that's not the case that's kinda lousy. 3rd party tools do this. On 9/7/07, Daniel Cascais [EMAIL PROTECTED] wrote: On 9/7/07, Derek Vadneau [EMAIL PROTECTED] wrote: The only ways around

[flexcoders] Flex JS Variable Types

2007-09-07 Thread bloodylag
Hi, I'm building a flex charting application that receives variables from a Java applet through JavaScript. I have successfully connected the chart with the JS using FABridge and have most of the plotting working successfully. My question is about variable types when crossing the multiple

[flexcoders] How do I set Layout Constraints in ActionScript?

2007-09-07 Thread Troy Simpson
Within the following ActionScript Class, how would I set the layout constraint of the radio button to remain 10 pixels from the right? The MXML would look like this: mx:RadioButton id=rdo right=10 / public class CanvasItem extends Canvas { public function CanvasItem() { super(); }

Re: [flexcoders] Re: Creating Custom Events - I need help!

2007-09-07 Thread Mayank
The metadata tag is only to assist your compiler and does not translate in any runtime code. Since you are using actionscript to dispatch and catch the event you can skip this tag. The application will work just fine. On 9/7/07, robertdx.tw [EMAIL PROTECTED] wrote: Hi, I think that you

RE: [flexcoders] LineSeries Stroke color

2007-09-07 Thread Sunil Bannur
Do something like this in creationcomplete or applicationcomplete handler var istroke:IStroke = chart.getStyle(lineStroke); istroke.weight = 2; chart.setStyle(lineStroke,istroke); This would not create a new stroke and will retain the old color. Thanks -Sunil

[flexcoders] Re: Flex and SQL

2007-09-07 Thread Tom Chiverton
On Friday 07 Sep 2007, [EMAIL PROTECTED] wrote: Don't know where you heard that. Flex runs inside the Flash Player, which has no ability to load any java classes, certainly not JDBC drivers, because it's not Java. But you're HTML wrapper can certainly load Java, and you can talk across that

RE: [SPAM] RE: [flexcoders] Display item renderer in only some rows of a datagrid

2007-09-07 Thread Paul Steven
I could do with some further advice on how to represent this data http://www.mediakitchen.co.uk/marksheet.jpg It was suggested to use a repeater and datagrid or a repeater and a custom component. If I use a custom component, I am unsure how to deal with a dynamic number of rows of

[flexcoders] Editable DataGridColumn with itemRenderer

2007-09-07 Thread candysmate
I can make column 1 of my dataGrid non-editable with: dGrid.columns[1].editable = false; But if that column contains an itemRenderer (textInput in my case) and I use the same technique, the user can still click in the itemRenderer. How can I prevent this please?

Re: [flexcoders] Changing the Custom ContextMenu Look and Feel

2007-09-07 Thread Daniel Cascais
On 9/7/07, Derek Vadneau [EMAIL PROTECTED] wrote: The only ways around this are offline tools, such as AIR... Derek, could you please point me to any documentation where this procedure is explained? I did a search for customizing the context menu's look in AIR, but couldn't find anything.

[flexcoders] Unwanted scrollbars on my List itemRenderer--measure() help?

2007-09-07 Thread David Ham
I have a list with a custom renderer. Each item has a text field of different length. I have variableRowHeight set to true. When the list first loads, it renders correctly, but when I drag something out of it, all the items get vertical scrollbars. When I add an item back in, it seems that just

[flexcoders] Re: Referencing items in other states

2007-09-07 Thread d.legros
Hi, Just play with the creationPolicy property and set its value to all. Ex: mx:AddChild position=lastChild creationPolicy=all ... /mx:AddChild By default, the value is set to auto which means the item is only created when the view state becomes active/visible for the first time, you can

Re: [flexcoders] busy cursor not spinning?

2007-09-07 Thread Mayank
have u set the showBusyCursor attribute in the rpc tag? On 9/7/07, philza1985 [EMAIL PROTECTED] wrote: Hi, I was just wondering why my busy cursor wasn't spinning when i'm loading something from the server. Is there a setting I've missed? I've also got a style sheet and custom skin (but

[flexcoders] Flex Opp

2007-09-07 Thread Mike Shields
Hi, I'm not sure how this will be received but I'll start by saying I'm a finance/marketing guy rather than a designer/developer. And, I/we're building a patented Virtual Office at www.onlineoffice.com (and/or www.adobeoffice.com which we also own). When we showed Ted Patrick, Mike

[flexcoders] Scrollbar in popup gets shifted

2007-09-07 Thread gary_mangum
I have a custom skinned Scrollbar on a list in a popup. If I simply launch the popup at it's default position, the scrollbar looks great. If I launch the popup and then call move() to position it where I want it, the scrollbar looks like it is shifted funny and has left-over remnants or

[flexcoders] Flex Opportunity

2007-09-07 Thread mikeashields
Hi, I'm not sure how this will be received but I'll start by saying I'm a finance/marketing guy rather than a designer/developer. And, I/we're building a patented Virtual Office at www.onlineoffice.com (and/or www.adobeoffice.com which we also own). When we showed Ted Patrick, Mike Downey

[flexcoders] source for RemoteObject components

2007-09-07 Thread Derrick Anderson
hi, i'm having an issue calling CFC components from Flex using RemoteObject. I have 3 copies of my flex application on the server (1 for each client currently). the source for my remoteObject calls is a dynamic string { server.name}:{server.port} i think, picking up on a tip from the list for

[flexcoders] Re: font in comboBox and Title not the same

2007-09-07 Thread Jeff Schuenke
.zoomStyle{ right: 10; bottom: 10; padding-right: 10; fontFamily: myVerdanaFont; fontSize: 12; fontStyle: normal; kerning: true; } where myVerdanaFont is embedded as follows: [Embed(source='resources/verdana.ttf',

Re: [flexcoders] constructors in extended components: can they take arguments?

2007-09-07 Thread Michael Schmalle
Hi, responding to the first question; Why not use styles for that? We as developers need to understand there are 3 interfaces into a UIComponent. 1. Events 2. Styles 3. Class API With that said, dealing with your example class; public class LabeledRenderer2 extends UIComponent implements

Re: [flexcoders] source for RemoteObject components

2007-09-07 Thread Jeffry Houser
I'm unclear on your setup, or the specific problem. It sounds like you have three deployments of the same application. Is that correct? If so, why does it matter which set of (presumably identical) CFCs is called? Why keep multiple sets in the first place? Or are do you have three

[flexcoders] font in comboBox and Title not the same

2007-09-07 Thread Jeff Schuenke
I have set the font for a comboBox using a styleSheet. The font in the drop list changes but not the font displayed as a label. You can see this here http://www.miragevideo.com/sample.gif How can I set the font for the label as well? thanks, Jeff

RE: [flexcoders] Feature request -control shift v

2007-09-07 Thread Alex Harui
Can you explain further? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Patrick Lemiuex Sent: Thursday, September 06, 2007 11:06 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Feature request -control shift v It would be

RE: [flexcoders] font in comboBox and Title not the same

2007-09-07 Thread Alex Harui
What does the stylesheet look like? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Schuenke Sent: Friday, September 07, 2007 7:56 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] font in comboBox and Title not the same I

[flexcoders] Re: Scrollbar in popup gets shifted

2007-09-07 Thread gary_mangum
OK, after hours of fighting with this, I have a solution!!! The custom skins don't seem to support x/y placement that is not whole integers very well. In other words, I noticed that my calculated x/y position for my PopUp that contained my custom scrollbar was using decimal values. I also

RE: [flexcoders] Editable DataGridColumn with itemRenderer

2007-09-07 Thread Alex Harui
You can click in it, but the DG doesn't see that as an edit session. Most folks will set editable=false on the TextInput or use DataGridItemRenderer if it is never editable. Why do you want to have an editable field in a non editable renderer? From:

Re: [flexcoders] Referencing items in other states

2007-09-07 Thread Tom Chiverton
On Friday 07 Sep 2007, [EMAIL PROTECTED] wrote: I'm getting an error when pressing a button on one state that calls a function, that references an element on another state. The player only creates things as needed (by default). You can override this, but you don't want to. Why not have your

[flexcoders] Unable to resolve a class for factoryClass: Contacts_mx_core_FlexModuleFactory.

2007-09-07 Thread arieljake
Since i upgraded to the nightly build of Moxie on Sept 7, I have been periodically receiving this error: Unable to resolve a class for factoryClass: Contacts_mx_core_FlexModuleFactory. It goes away when I clean and rebuild. Does anyone understand what it means?

[flexcoders] TileList controls in AS

2007-09-07 Thread Jayson
Maybe I'm just blind, but I cant seem to find an itemClick property for a TileList in AS. myTileList.itemClick doesnt appear to be there.. so.. I tried this.. myTileList.setStyle (itemClick, doItemClick()); public function doItemClick():void{ Alert.show(myTileList.selectedIndex.toString()); }

[flexcoders] Re: @Embed directive in mx:source tag not working for swfs

2007-09-07 Thread polestar11
I have experienced something similar think it is to do with the different paths for design view vs runtime view. Runtime uses the assets in the bin folder while compilation design view use the assets relative to the project folder. Just check that assets are found in both. Alternatively you

[flexcoders] Phantom ComboBox warning

2007-09-07 Thread candysmate
My application used to contain several comboBoxes until a redesign removed them. However, when compiling, I still get several The type selector 'ComboBox' was not processed, because the type was not used in the application' warnings. Anyone had this sort of phantom action?

Re: [flexcoders] Re: Flex and SQL

2007-09-07 Thread Paul Andrews
- Original Message - From: Tom Chiverton [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, September 07, 2007 4:48 PM Subject: [flexcoders] Re: Flex and SQL On Friday 07 Sep 2007, [EMAIL PROTECTED] wrote: Don't know where you heard that. Flex runs inside the Flash

[flexcoders] Re: build.xml/Makefile question

2007-09-07 Thread tudury_david
Thanks Matt! My understanding was that the intermediate step happens anyway (.AS gets turned into byte code). I am trying to avoid it happening over and over again unnecessarily. I though by saving the byte code I wouldn't have to recreate it for .AS files that hadn't changed. I'll look into

RE: [flexcoders] constructors in extended components: can they take arguments?

2007-09-07 Thread Ely Greenfield
The answer is: Generally, yes, subclasses can add or modify arguments. But in scenarios where you are passing a class around to be instantiated by other code, your class constructor needs to conform to whatever contract is defined by that code. In this case, the contract defined by

RE: [flexcoders] Re: TileList controls in AS

2007-09-07 Thread Tracy Spratt
The docs show itemClick is an event for tileList. And since the handler was getting fired, you do not need to declare any additional listeners. (setStyle() is for styles, not listeners) You must be declaring a handler in the TileList tag, right? Post that code. Tracy

[flexcoders] Re: Editable DataGridColumn with itemRenderer

2007-09-07 Thread candysmate
--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: You can click in it, but the DG doesn't see that as an edit session. Most folks will set editable=false on the TextInput or use DataGridItemRenderer if it is never editable. Why do you want to have an editable field in a

RE: [flexcoders] TileList controls in AS

2007-09-07 Thread Ronald Kinion
itemClick is an event, not a property or style. you want to write something like this: myTileList.addEventListener(ListEvent.ITEM_CLICK, doItemClick); public function doItemClick(event:ListEvent):void { Alert.show(event.currentTarget.selectedIndex.toString()); } Note that when you

[flexcoders] Access inline itemrenderer from actionscript?

2007-09-07 Thread candysmate
I have an inline itemrenderer in a DataGridColumn thus: mx:DataGridColumn headerText=Column 2 dataField=col2 mx:itemRenderer mx:Component mx:TextInput /mx:TextInput /mx:Component /mx:itemRenderer /mx:DataGridColumn

Re: [flexcoders] source for RemoteObject components

2007-09-07 Thread Derrick Anderson
hi, i have 3 copies of the same application- each client is different and the apps are slightly modified for each is the reason that i am not using a single code-base. Each site is using the same instance of CF. The source name is dynamic like {server.name}:{server.port} (i think that's right-

[flexcoders] Re: TileList controls in AS

2007-09-07 Thread Jayson
Yeah I was just trying stuff out with the style (didnt know what to do). I eventually stumbled upon ItemClickEvent, but that was the wrong type of event. ListEvent did the trick for me. Thanks for the reply! Jayson --- In flexcoders@yahoogroups.com, Ronald Kinion [EMAIL PROTECTED] wrote:

RE: [flexcoders] Access inline itemrenderer from actionscript?

2007-09-07 Thread Tracy Spratt
You can't do that successfully. You must access data through the dataProvider. Remember, the renderer component is recycled. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of candysmate Sent: Friday, September 07, 2007 2:07 PM

RE: [flexcoders] Access inline itemrenderer from actionscript?

2007-09-07 Thread Alex Harui
Where are you trying to get at them? A script block inside mx:TextInput is in the context of the TextInput which is why no id is needed and 'this' is the TextInput. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of candysmate Sent: Friday,

RE: [flexcoders] Re: Compiling with compc: can't direct the output properly

2007-09-07 Thread Gordon Smith
I don't think the -include-file *.as ./src is kosher. The shell is presumably expanding the * before passing the command line to compc to produce -include-file file1.as file2.as file3.as ./src and this wouldn't be what -include-file expects. - Gordon

RE: [flexcoders] How to do a Scrolling Display?

2007-09-07 Thread Gordon Smith
Funny you should ask, since this was answered 4 hours earlier. Google flex stock ticker for some sample code. This functionality isn't available out of the box. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Amit Gupta Sent:

RE: [flexcoders] Re: Editable DataGridColumn with itemRenderer

2007-09-07 Thread Alex Harui
I would 'bind' the editable of the TextInput to the datagridcolumn's editable flag mx:Component mx:TextInput dataChange=editable = listData.column.editable From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of candysmate Sent: Friday,

RE: [flexcoders] Re: font in comboBox and Title not the same

2007-09-07 Thread Alex Harui
The CB label is usually in Bold isn't it? You have to embed a bold font as well. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Schuenke Sent: Friday, September 07, 2007 8:59 AM To: flexcoders@yahoogroups.com Subject: [flexcoders]

RE: [flexcoders] Unwanted scrollbars on my List itemRenderer--measure() help?

2007-09-07 Thread Alex Harui
It is likely that the mx;image tag is burning you. An image doesn't know how big it is until the image is loaded and thus your measurements may be off. If you know the size of the images, set them in the tag. I'm actually spending part of today seeing if we can make the framework smarter

RE: [flexcoders] How to play a sound in flex wihtout embeding it in class first?

2007-09-07 Thread Brian Holmes
Ozren, Not sure on this, but I happened to be looking at the SoundEffect and flash.media.Sound classes yesterday. On the Sound class is a url property and it looks like you could use it to point to an mp3 and download it. Also appears you can buffer it and start playing before it's completely

[flexcoders] Feature request -control shift v

2007-09-07 Thread Patrick Lemiuex
It would be pretty handy to add paste in place to flex. I always go for it and forget it's not there like in Flash. Thanks Patrick

[flexcoders] Re: Editable DataGridColumn with itemRenderer

2007-09-07 Thread candysmate
--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: I would 'bind' the editable of the TextInput to the datagridcolumn's editable flag mx:Component mx:TextInput dataChange=editable = listData.column.editable That's it! Many thanks Alex. I used: mx:TextInput

[flexcoders] Re: TileList controls in AS

2007-09-07 Thread Jayson
I also tried this.. import mx.events.ItemClickEvent; myTileList.addEventListener(ItemClickEvent.ITEM_CLICK, doItemClick()); public function doItemClick(event:ItemClickEvent):void{ Alert.show(event.index.toString()); } I even tried Alert.show(event.toString()); I thought for sure that would

[flexcoders] Referencing items in other states

2007-09-07 Thread smccran
Hi, Bit of a N00b question, I have a site with multiple viewstates, obviously there are individual elements within each view state. I'm getting an error when pressing a button on one state that calls a function, that references an element on another state. The error is saying that 'The

[flexcoders] Video and rtmp using Flex

2007-09-07 Thread Philip Carrington
I need a basic tutorial on setting up the video player to access an rtmp address. Does anyone out there know of any?

[flexcoders] Re: Unwanted scrollbars on my List itemRenderer--measure() help?

2007-09-07 Thread David Ham
Alex, Thanks for the response. I had thought about that and had commented out the image, and got the same result. Should I subclass ListItemRenderer instead of HBox? Is there something in the measure() or invalidation methods that I'm not doing? Also, I notice that when I scroll the list,

Re: [flexcoders] source for RemoteObject components

2007-09-07 Thread Jeffry Houser
That gives me a better understanding, yes. I haven't experienced such a problem yet. When I talk about the source of the RemoteObject, that is usually the path to the CFC, relative to the server root directory. I'd expect it to be something like: com.mysite.object based on the

RE: [SPAM] RE: [SPAM] RE: [flexcoders] Display item renderer in only some rows of a datagrid

2007-09-07 Thread Paul Steven
Thanks Tracy Yes I have got stuck into it and have managed to use a custom component with a datagrid inside it. And I am able to get all my data in it too. Unfortunately it doesn 't look too pretty as there are a few scroll bars - I guess this is the variable height problem!! Thanks

Re: [flexcoders] source for RemoteObject components

2007-09-07 Thread Derrick Anderson
hi, actually yes the source is as such com.mysite.mycomponent. that component lives in mysite/bin/com.mysite.mycomponent. where BIN is the root directory for the website. the endpoint i think is the attribute with the 'merge' fields {server.name}, and this is specified in code, not in the

[flexcoders] Re: constructors in extended components: can they take arguments?

2007-09-07 Thread barry.beattie
thanx guys. @Ely: I've seen reference to IFactory before and now it's starting to make sence. Thanks. That's why I thought you couldn't pass arguments - this difference in use by the charts @Mike: I'm a bit lost on how (and where) I set the three seperate styles: this is how the itemRenderer

RE: [flexcoders] Re: Unwanted scrollbars on my List itemRenderer--measure() help?

2007-09-07 Thread Tracy Spratt
David, I just wrestled with a variable height itemRenderer. I could not get any of the containers to behave correctly. Since the ListItemRenderer handled varialbe heights I cloned that for my renderer and it worked fine. For sure look at the code of ListItemRenderer, it is quite clear and

[flexcoders] Re: Unwanted scrollbars on my List itemRenderer--measure() help?

2007-09-07 Thread David Ham
Tracy, I tried creating an MXML component based on ListItemRenderer, and it said a strange thing: I got a compiler error that said it couldn't resolve mx:ListItemRenderer to a component implementation. Do I need to create a new AS class that extends ListItemRenderer, and implement its various

RE: [flexcoders] Re: Unwanted scrollbars on my List itemRenderer--measure() help?

2007-09-07 Thread Tracy Spratt
You can extend it, that is probably the simplest. You would probably just override set data() or createChildren(). In my case, I did not want the icon, but needed some other controls conditionally, so I just esentially copied the code I needed. I found that dynamically creating the controls

[flexcoders] Re: font in comboBox and Title not the same

2007-09-07 Thread Jeff Schuenke
I have a bold font embedded but how do I refer to it for the label? [Embed(source='resources/verdanab.ttf', fontWeight='bold', fontName='myVerdanaFont2', mimeType='application/x-font')] private var font2:Class; --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

[flexcoders] DataGrid data object: strong typing?

2007-09-07 Thread Tom Lee
Hi guys, I'd like to pass the entire data object from a DataGrid ItemRenderer to a method in my controller, when the row is clicked. The controller method requires an object of a specific type. I have filled the DataGrid dataprovider with strongly typed objects, but when I access them

Re: [flexcoders] source for RemoteObject components

2007-09-07 Thread Jeffry Houser
Does each swf have a different: com.mysite.mycomponent source for the RemoteObjects? You'd either need a separate code base, or a way to set the source dynamically. I'd look there for the problem. Derrick Anderson wrote: hi, actually yes the source is as such com.mysite.mycomponent.

Re: [flexcoders] DataGrid data object: strong typing?

2007-09-07 Thread Tom Lee
As often happens, the answer came to me the minute I posted. Turns out you can cast the data object to something else: but if you're using an inline component declaration in your item renderer, you have to include a script block and import the necessary classes. Like always. Like an

Re: [flexcoders] source for RemoteObject components

2007-09-07 Thread Derrick Anderson
yes, each swf is in a separate IIS site, in a separate folder. each client has their own components. there is a separate codebase, 1 codebase for each url clientA.mydomain.com clientB.mydomain.com in each clients root folder, there is a com folder. d. On 9/7/07, Jeffry Houser [EMAIL

[flexcoders] Re: font in comboBox and Title not the same

2007-09-07 Thread Jeff Schuenke
If I switch the main style to the bold font, then the label is rendered correctly, but the items in the list are now wrong! How can I set a style that works for both?? Jeff --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: The CB label is usually in Bold isn't it? You

[flexcoders] How to create dynamically Icon for a Tree

2007-09-07 Thread Claude Hussenet
I would like to be able to create the icon for folders or leefs at runtime based on some information that I am getting from the server. I can not figure out a way to use the iconFunction available on the Tree class for this purpose. Please let me know if it's possible. Thx-Claude public

RE: [flexcoders] How to create dynamically Icon for a Tree

2007-09-07 Thread Gordon Smith
The icon must be embedded in the application. However, you can have multiple icons embedded and choose one of them based on runtime data from the server. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Claude Hussenet Sent:

[flexcoders] Re: Unwanted scrollbars on my List itemRenderer--measure() help?

2007-09-07 Thread David Ham
Tracy, Thanks for the advice, but man! It's hard going. I tried overriding createChildren, but when I did, I ended up having to override all the other UIComponent methods too (measure, updateDisplayList, commitProperties) and it's all FUBAR. Where and how does listData get set? Seems like an

[flexcoders] BUG with HTTPSERVICE ?

2007-09-07 Thread Claude Hussenet
I am getting the following stacktrace when I am using the HTTPService for the following URL : http://myserver/mycontext/mypage?value=/ I don't have a problem if I copy the URL in IE.I do get an XML response from the server. If I use a different URL with the same domain name,the HTTPService

RE: [flexcoders] Re: build.xml/Makefile question

2007-09-07 Thread Matt Chotin
Yes, the intermediate step does happen but I'm not sure when/if the bytecode goes to disk in a way that you can leverage. Fcsh is meant to run on its own so it probably can't be run incrementally. Make sure to check out our Ant tasks though which are on Labs for 2.0.1 or part of Flex 3 as they

[flexcoders] What do this error mean? 1195

2007-09-07 Thread Troy Simpson
I am attempting to use ActionScript to create a RadioButtonGroup and assign RadioButtons to the Group, but when I try to add a radio button to a group I get an error. code: var rdoGroup:RadioButtonGroup = new RadioButtonGroup(): var rdo:RadioButton = new RadioButton(); rdo.group(rdoGroup);

[flexcoders] AdvancedDataGrid - summary behavior in GroupingCollection

2007-09-07 Thread Chris Luebcke
Hi all, not sure if anyone has a solution to this but any suggestions would be welcome. I'm receiving an XML dataset that represents hierarchical relationships through attributes, rather than structure, e.g. this sales region=Southwest actual=67999/ sales region=Southwest territory=Arizona

RE: [flexcoders] Re: font in comboBox and Title not the same

2007-09-07 Thread Alex Harui
I just noticed you set fontStyle in the declarations. In the original problem, did the CB's label show as normal or bold? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Schuenke Sent: Friday, September 07, 2007 12:41 PM To:

RE: [flexcoders] Re: Unwanted scrollbars on my List itemRenderer--measure() help?

2007-09-07 Thread Alex Harui
You also have a Text in there which also may not measure out correctly. ListItemRenderer will be much faster than HBox, but you'll have to do more in AS than MXML. Can you draw up a picture of what you want the renderer to look like? Are images of a known size?

RE: [flexcoders] How to create dynamically Icon for a Tree

2007-09-07 Thread Alex Harui
TreeItemRenderer assumes the images are embedded. You could write your own subclass that handles external icons. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith Sent: Friday, September 07, 2007 1:30 PM To:

Re: [flexcoders] What do this error mean? 1195

2007-09-07 Thread Paul Andrews
Try rdo.group = rdoGroup; Your syntax is a method call. Paul - Original Message - From: Troy Simpson To: flexcoders@yahoogroups.com Sent: Friday, September 07, 2007 7:09 PM Subject: [flexcoders] What do this error mean? 1195 I am attempting to use ActionScript to create

[flexcoders] Re: Unwanted scrollbars on my List itemRenderer--measure() help?

2007-09-07 Thread David Ham
Alex, You also have a Text in there which also may not measure out correctly. ListItemRenderer will be much faster than HBox, but you'll have to do more in AS than MXML. Can you draw up a picture of what you want the renderer to look like? Are images of a known size? If the image is

RE: [flexcoders] Re: Unwanted scrollbars on my List itemRenderer--measure() help?

2007-09-07 Thread Alex Harui
It should only be one level of hairy, not three... When your renderer's measure() method gets called, the List will have set its explicitWidth property to give you a clue as to how wide it is going to be. You should use that to help determine the height of the text. ListItemRenderer does that

RE: [flexcoders] BUG with HTTPSERVICE ?

2007-09-07 Thread Tracy Spratt
So it works if you do?: http://myserver/mycontext/mypage?value=XXX You might have to escape the special chars. Also, can you use POST instead of GET? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Claude Hussenet Sent:

[flexcoders] Re: Unwanted scrollbars on my List itemRenderer--measure() help?

2007-09-07 Thread David Ham
It should only be one level of hairy, not three... LOL. Sorry, I wax hyperbolic late in the day, when the caffeine has jacked me up and Flex has dragged me behind its car for a ways. I'll dig around in measure() and see what I can do. Do I need to worry about setting listData when I subclass

RE: [flexcoders] Re: Unwanted scrollbars on my List itemRenderer--measure() help?

2007-09-07 Thread Tracy Spratt
It's at least hairy squared... I think the magic in ListItemRenderer for setting the height is in these lines in the measure() method, specifically in the assignment of the measuredHeight property (description is my UITextField component): if (isNaN(explicitWidth)) { w +=

RE: [flexcoders] Re: Unwanted scrollbars on my List itemRenderer--measure() help?

2007-09-07 Thread Alex Harui
The rules are: listData is set for you and should never be modified by the renderer. listData is available when the dataChange event fires or commitProperties runs explicitWidth should be set so use that to your advantage. Is there any way you can know by the url of the image what its height

RE: [flexcoders] Re: Unwanted scrollbars on my List itemRenderer--measure() help?

2007-09-07 Thread Tracy Spratt
listData is available when ... commitProperties runs and commitProperties runs after set data(), yes? So if a renderer needs to use listData, it should do that work in commitProperties. Right? That clears up some questions I had about ListItemRenderer. That's 0.2 orders of magnitude less

RE: [flexcoders] Re: Unwanted scrollbars on my List itemRenderer--measure() help?

2007-09-07 Thread Alex Harui
Yes, you should deal with listData in commitProperties or later. That's why it is only one level of hairy. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Friday, September 07, 2007 3:08 PM To:

RE: [SPAM] RE: [flexcoders] Display item renderer in only some rows of a datagrid

2007-09-07 Thread Paul Steven
Unfortunately not Tom. This project is being developed in Flex Builder 2 and needs to be finished next week. Client wouldn't be keen on using a beta product unfortunately. So I am hoping it can be done in Flex 2:) -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL

RE: [SPAM] RE: [flexcoders] Display item renderer in only some rows of a datagrid

2007-09-07 Thread Alex Harui
Usually, the data is given to you in some representation. How do you currently have the data stored for the picture you showed us? It probably can be done, but is going to be significant work. Also knowing what the interaction rules are will help us guide you. For example, are the columns

RE: [flexcoders] Re: Unwanted scrollbars on my List itemRenderer--measure() help?

2007-09-07 Thread Alex Harui
So, I've completed my investigation into this issue. The problem is unsolvable in the sense that there is no general way for mx:Image to determine the size of the image until it has been loaded, which is too late for the way renderers work. Therefore, we will not be able to make any improvements

  1   2   >