[flexcoders] Re: TileList displaying wrong index

2009-08-11 Thread Tim Hoff
gt; > > --- In flexcoders@yahoogroups.com, "steve horvath" flexcoders@ > wrote: > > > > My apologies. I really didn't mean to come across as brash. I > realize you are trying to help and I do appreciate it. > > > > Let me put together a

[flexcoders] Re: TileList displaying wrong index

2009-08-10 Thread Tim Hoff
gt; > _includedAlbums is an ArrayCollection, so no .selectedItem property on > that. In any case, I am already happily setting the presentedAlbumIndex > by other means. It's the TileList selectedIndex that I need to update > properly. > > --- In flexcoders@yahoogroups.com, "Tim

[flexcoders] Re: TileList displaying wrong index

2009-08-10 Thread Tim Hoff
Not sure what to tell you without having a sample application to play with. But, you could try some brute force techniques, like: _includedAlbums.removeItemAt(1); presentations.currentPresentation.presentedAlbumIndex = _includedAlbums.getItemIndex(_includedAlbums.selectedItem); -TH --- In flex

[flexcoders] Re: Question about event.label

2009-08-09 Thread Tim Hoff
For Menu controls, if the data provider is an Array of Strings, Flex uses each String value as the label. When a menu item is clicked, the item's label is passed to the ItemClickEvent's label property. It would be necessary to use name-value pairs, in the dataProvider, if you used the Menu's lab

[flexcoders] Re: PopUp databinding - possible?

2009-08-07 Thread Tim Hoff
import mx.core.Application; -TH --- In flexcoders@yahoogroups.com, Dave Cates wrote: > > Hi Tracey, > > Thanks for your advice. > > The compiler is ing Œaccess of undefined property Application¹ > > Any ideas? > > Thanks, > Dave. > > From: Tracy Spratt tr...@... > Reply-To: flexcoders@yahoogroup

[flexcoders] Re: Stacked column chart with a twist

2009-08-04 Thread Tim Hoff
This might be the thread that you remembered Richard. The next to last post has a link to a great chart by Tom Gonzalez. http://www.mail-archive.com/flexcoders@yahoogroups.com/msg124244.html -TH 0--- In flexcoders@yahoogro

[flexcoders] Re: how to cleanly reduce the height of a TitleWindow's title bar

2009-07-28 Thread Tim Hoff
Hi Andrew, Have you tried the headerHeight Style in CSS? TitleWindow { header-height: 20; } -TH --- In flexcoders@yahoogroups.com, Andrew Ball wrote: > > I'm unhappy with how tall the title bars are by default for TitleWindows in > my application. We have some (possibly modified) Panels

[flexcoders] Re: What kind of data types should i use?

2009-07-24 Thread Tim Hoff
In AS, the Number and Date types should work fine. -TH --- In flexcoders@yahoogroups.com, "yonghan79" wrote: > > Hi all,i need help please..I got fields in mysql table which use decimal and datetime..I'm intending to use VO,what kind of data types should i use? I post the sql and the php class

[flexcoders] Re: Combobox emtpy inside of tabNavigator

2009-07-22 Thread Tim Hoff
If you cast your service call result to a [Bindable] collection, and bind the collection to the ComboBox's dataProvider, the ComboBox should display populated. With binding you don't have to worry about timing. When the ComboBox is instantiated it will pull the data; if it exists. If not, the d

[flexcoders] Re: String validators and turning off the red

2009-07-22 Thread Tim Hoff
Here's a simple way: http://www.adobe.com/2006/mxml"; layout="absolute"> -TH --- In flexcoders@yahoogroups.com, "timgerr" wrote: > > Hello all, I have a question for ya. > > I have a text input that I attach a string validator so the text input is required. So I put my mou

[flexcoders] Re: Synchronizing two ArrayCollections

2009-07-21 Thread Tim Hoff
rdExt.selectedItem.Ticker; > for (var i:int = 0; i < Array_Exits.length; i++) > { > if ( Exits(Array_Exits.getItemAt(i).Ticker ==c urTick) > { > dgExits.selectedIndex = i; > } > } > } > > > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@

[flexcoders] Re: Synchronizing two ArrayCollections

2009-07-20 Thread Tim Hoff
Going to have to loop: var curTick:String = dg1.selectedItem.Ticker; for (var i:int = 0; i < dg2.dataProvider.length; i++) { if ( Object(dg2.dataProvider.getItemAt(i)).Ticker == curTick ) { dg2.selectedIndex = i; } } Depending on your model, you could use for each inste

[flexcoders] Re: Screen resolution

2009-07-19 Thread Tim Hoff
1024 x 768 is usually the minimum resolution required for commercial apps. Although you also need to account for the browser header as well. While you can never anticipate every user's browser configuration, this is a good baseline for most. -TH --- In flexcoders@yahoogroups.com, "christophe_

[flexcoders] Re: multiple axis question.

2009-07-16 Thread Tim Hoff
Use a secondVerticalAxis and secondVerticalAxisRenderer (placement="right"). -TH --- In flexcoders@yahoogroups.com, "shaded" wrote: > > I'm have a chart with 3 sets of line graph data, id like to have 2 of > those set to have the same y axis, and the third to have its own. The > docs don't real

[flexcoders] Re: Possible to create a chart with clustered & overlaid columns? (picture inside)

2009-07-15 Thread Tim Hoff
Very nice! -TH --- In flexcoders@yahoogroups.com, "sa3376" wrote: > > --- In flexcoders@yahoogroups.com, "gmoniey22" gmoniey22@ wrote: > > > > I haven't been able to find an example of this, or any indication in the docs of how to do this, but I would imagine it is possible. > > > > I want to c

[flexcoders] Re: TileList Item Spacing

2009-07-15 Thread Tim Hoff
There isn't a horizontaGap or verticalGap between the tiles in a TileList. So, you'd have to use an itemRenderer to fake it. Add a transparent container to the itemRenderer, that contains the itemRenderer content; centered within the transparent container. You can then adjust the perceived gap

[flexcoders] Re: Possible to create a chart with clustered & overlaid columns? (picture inside)

2009-07-14 Thread Tim Hoff
Here's another way. You would have some challenges with data tips, but nothing that can't be handled. Hope that this gives you some ideas: Multi-Clustered Column Chart Sample -TH --- I

[flexcoders] Re: setStyle not valid

2009-07-10 Thread Tim Hoff
I try change cause no work and me no Google. --- In flexcoders@yahoogroups.com, "ag_rcuren" wrote: > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote: > > > > > > styleLabel.setStyle("fontSize", 72); > > -TH

[flexcoders] Re: Possible to change the Fill Color for ColumnSeries on itemRollOver?

2009-07-09 Thread Tim Hoff
ticularly because it works). > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote: > > > > > > Here's a slightly different approach: > > > > Chart Labeled Renderer Roll-Over Sample > > <http://www.timothyhoff.com/projects/ChartLab

[flexcoders] Re: Image Loader COMPLETE event wont fire for some images

2009-07-09 Thread Tim Hoff
s.com, "toofah_gm" wrote: > > I tried this as well...I think that the original file is actually a PNG and not a JPG...unfortunately, this does not make a difference either. > > Gary > > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote: > >

[flexcoders] Re: Image Loader COMPLETE event wont fire for some images

2009-07-09 Thread Tim Hoff
w.mangumfamily.org/bar3.jpg"; work? It has the same dimensions, just no transparency. > > Gary > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote: > > > > > > Hi Gary, > > > > There is a 2880 pixel limit for images. Your image is

[flexcoders] Re: Image Loader COMPLETE event wont fire for some images

2009-07-09 Thread Tim Hoff
Hi Gary, There is a 2880 pixel limit for images. Your image is too wide. -TH --- In flexcoders@yahoogroups.com, "toofah_gm" wrote: > > I am seeing cases when the image loader COMPLETE event will not fire. Does anyone know why this is the case? I wonder if there is something wrong with some of

[flexcoders] Re: Possible to change the Fill Color for ColumnSeries on itemRollOver?

2009-07-09 Thread Tim Hoff
Here's a slightly different approach: Chart Labeled Renderer Roll-Over Sample -TH --- In flexcoders@yahoogroups.com, "gmoniey22" wrote: > > Is it possible to change the fill color of 1 column whe

[flexcoders] Re: setStyle not valid

2009-07-08 Thread Tim Hoff
styleLabel.setStyle("fontSize", 72); -TH --- In flexcoders@yahoogroups.com, j2me_soul wrote: > > I try to change the style at runtime > > > > > private function butClickHandler(event:MouseEvent):void > { > /* it doesn't work */ > styleLabel.setStyle("font-size", 72); > } >

[flexcoders] Re: Continuous Multi-colored Line Chart

2009-07-06 Thread Tim Hoff
That one is a little tricky. But, here's one way that you can do it: http://www.timothyhoff.com/projects/LineRendererSample/LineRendererSampl\ e.html (right click to view source) -TH --- In flexcoders@yahoogroup

[flexcoders] Re: getting the xml data from a dispatched event

2009-07-05 Thread Tim Hoff
tem. /src Main.mxml line 105 1246801954900 468962 > > > > > > > > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote: > > > > > > Wow, I've got to say; "What a mess." However, you can get it to work > > with the fol

[flexcoders] Re: getting the xml data from a dispatched event

2009-07-04 Thread Tim Hoff
Wow, I've got to say; "What a mess." However, you can get it to work with the following changes: [Bindable] private var customMeals:XMLListCollection = new XMLListCollection(); // addToMeal event Handler private function addToMealHandler(event:Event):void { customMeals.addItem((event.t

[flexcoders] Re: getting the xml data from a dispatched event

2009-07-03 Thread Tim Hoff
The zip file doesn't contain any code in the src folder. Kind of hard to see what's happening without it. -TH --- In flexcoders@yahoogroups.com, "Jason B" wrote: > > > any Idea? > > > > --- In flexcoders@yahoogroups.com, "Jason B" nospam@ wrote: > > > > yes heres the results > > "Main0.vsMain.

[flexcoders] Re: htmlText truncation when changing from embedded to device font

2009-07-02 Thread Tim Hoff
oders@yahoogroups.com, "Tim Hoff" wrote: > > > That's all that I have Toby. Maybe someone else would like to jump in. > > -TH > > --- In flexcoders@yahoogroups.com, "tphipps" toby.phipps@ wrote: > > > > Tim, > > > > Thanks for th

[flexcoders] Re: htmlText truncation when changing from embedded to device font

2009-07-02 Thread Tim Hoff
t; Thanks again, > Toby > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote: > > > > > > I'll let the engineers let you know why this is happening. But, you can > > get it to work with the following steps (hack): > > > >

[flexcoders] Re: ListEvent itemRenderer field null when parent is out of view

2009-07-01 Thread Tim Hoff
> > Thanks, Tim! > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote: > > > > > > Here's another work-around Brian: > > > > public function handleTreeItemChange(event:ListEvent):void > > { > > callLater(getItemRendere

[flexcoders] Re: itemrenderer in datagrid does not refresh

2009-06-30 Thread Tim Hoff
Sorry if this comes through twice. Instead of using the creationComplete and dataChange events, add this to the itemRenderer's script: override public function set data(value:Object):void { super.data = value; if ( value != null ) checkEmail(); } -TH --- In flexcoders@yahoogroups.

[flexcoders] Re: ListEvent itemRenderer field null when parent is out of view

2009-06-30 Thread Tim Hoff
pwards from the selectedItem and calculate the depth manually in the > "bug" case. > > Thanks again, Tim! > -Brian > > > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote: > > > > > > Hi Brian, > > > > Nice p

[flexcoders] Re: ListEvent itemRenderer field null when parent is out of view

2009-06-29 Thread Tim Hoff
Hi Brian, Nice post. Yeah, that is wierd; looks like a bug. You can get around it for now, by looking at the data instead: public function handleTreeItemChange(event:ListEvent):void { debugTextArea.text = "ListEvent's selectedItem: " + testtree.selectedit...@label

[flexcoders] Re: Problem using in htmlText

2009-06-29 Thread Tim Hoff
Since you are not closing the tags, it looks like the closing tag is not getting recognized. Just add and it works fine: -TH --- In flexcoders@yahoogroups.com, "greenfishinwater" wrote: > > I am using Flex 3 and have a Text compnent using htmlText. I am using the tags and , what I have n

[flexcoders] Re: Time Difference between two columns in DataGrid using itemrenderer

2009-06-28 Thread Tim Hoff
Hi Don, The itemRenderer's "data" Object contains BOTH fields for that row in the dataProvider. You can start by trying to pass the date strings into a DataFormatter and cast as Date, or try DateField.stringToDate(). If the format of the date string isn't compatible, and you can't change what t

[flexcoders] Re: text input that only accepts numbers

2009-06-26 Thread Tim Hoff
Look at the "restrict" property, lest we revert to the stone-ages. -TH --- In flexcoders@yahoogroups.com, "kshah0...@..." wrote: > > What type of Flex validator component can I use so a Text Input component can only accept numbers? > > I've tried the NumberValidator but it does not have charact

[flexcoders] Re: Charting: Drilling down into a legend label

2009-06-25 Thread Tim Hoff
Not out of the box. But, you could extend Legend and assign a custom LegendItem to legendItemClass. LegendItem is a UIComponent, so it would be easy to extend and add mouse event listeners/handlers. In the custom LegendItem, you could use the legendData and/or element vars, to drive the drill-d

[flexcoders] Re: tilelist rowCount not working...

2009-06-24 Thread Tim Hoff
>From the docs: rowCount Number of rows to be displayed. If the height of the component has been explicitly set, this property might not have any effect. -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > > Assuming that the direction="horizontal", th

[flexcoders] Re: tilelist rowCount not working...

2009-06-24 Thread Tim Hoff
Assuming that the direction="horizontal", the rowCount should work; unless you are setting an explicit width and the number of items will spill into an additional row. They have to go somewhere, right? What happens if you remove the width property? -TH --- In flexcoders@yahoogroups.com, grimmw

[flexcoders] Re: Mate CacheSetter

2009-06-24 Thread Tim Hoff
Just a stab Richard, but do the binding brackets make any difference? -TH --- In flexcoders@yahoogroups.com, Richard Rodseth wrote: > > Any Mate users here? The forums are down again. > > I'm trying to use the newish CacheSetter tag, as follows: > > > > Elsewhere: > > > > This gives the err

[flexcoders] Re: Extending Custom Panel with RadioButtons - Help

2009-06-24 Thread Tim Hoff
' that this panel is on. I need to control the elements that are inside the panel: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > From: "Tim Hoff" timh...@... > Sent: We

[flexcoders] Re: Extending Custom Panel with RadioButtons - Help

2009-06-24 Thread Tim Hoff
> > Is there something I am missing? > > If you need a visual reference you can see the concept site at http://www.med.umich.edu/prmc/landing/helipad > > > > From: "Tim Hoff" timh...@... > Sent: Wednesday, June 24, 2009 8:04

[flexcoders] Re: Extending Custom Panel with RadioButtons - Help

2009-06-24 Thread Tim Hoff
Hi Wally, Pretty close, just a few minor tweaks needed: // add the event parameter public function changeStartType( event:Event ):void // change to group addressRB.group = startLocation; airportRB.group = startLocation; protected override function updateDisplayList(unscaledWidth:Number, unscal

[flexcoders] Re: Flex Browse File

2009-06-23 Thread Tim Hoff
Not sure if this available for flex, but for air: var file:File = new File(); file.addEventListener(Event.SELECT, dirSelected); file.browseForDirectory("Select a directory"); function dirSelected(e:Event):void { trace(file.nativePath); } -TH --- In flexcoders@yahoogroups.com, "reversible_82" w

[flexcoders] Re: MenuBar ItemRenderers on Sub-Menus

2009-06-23 Thread Tim Hoff
An easy way would be to extend MenuBar: package { import mx.controls.Menu; import mx.controls.MenuBar; import mx.core.ClassFactory; public class MyMenuBar extends MenuBar { public function MyMenuBar() { super(); }

[flexcoders] Re: htmlText truncation when changing from embedded to device font

2009-06-22 Thread Tim Hoff
I'll let the engineers let you know why this is happening. But, you can get it to work with the following steps (hack): 1) Remove height="200" from the test Text control. 2) Add this function: private function updateTextSize():void { test.invalidateSize(); } 3) On the ComboBox change e

[flexcoders] Re: Creating a new ListEvent - how to specify ItemRenderer?

2009-06-19 Thread Tim Hoff
Nice! -TH --- In flexcoders@yahoogroups.com, "flexcoder2008" wrote: > > Thanks Tim, > > That's not quite the behavior I was looking for though - my List can not be in edit mode. > > I figured out exactly what I needed - I had to use the indexToItemRenderer method of the List - hopefully this wi

[flexcoders] Re: multiple filters on XMLListCollection how?

2009-06-19 Thread Tim Hoff
ean { var includeItem:Boolean = true; includeItem = (sizeFilter.selectedItem == "All sizes" || item.sizes == sizeFilter.selectedItem); return includeItem; } -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > > Looks like you have a little problem in th

[flexcoders] Re: multiple filters on XMLListCollection how?

2009-06-19 Thread Tim Hoff
Looks like you have a little problem in the logic. It will either include all of the items or those that meet the two selected criteria. But it won't include all of one and a selected criteria of the other. A suggestion is to break up the individual criteria into seperate sub filterFunctions.

[flexcoders] Re: Accurate way of measuring a datagrid

2009-06-19 Thread Tim Hoff
If you can't get it to work, you could always use a Repeater instead. In this case, since you want to display all of the items, this would probably work out better. -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > > Yeah, maybe not. Good luck; this is a co

[flexcoders] Re: Accurate way of measuring a datagrid

2009-06-18 Thread Tim Hoff
: > > idSGrid.measureHeightOfItems 612 > Measuring each row height> 560 > idSGrid.measureHeightOfItems 612 > Measuring each row height> 560 > > > It's off by 72 pixels... that's quite a difference. > > Patrick > > > > --- In flexcod

[flexcoders] Re: Binding two elements in a single datagrid column

2009-06-18 Thread Tim Hoff
Actually, its ILayoutManagerClient that supports validateProperties(), validateSize() and validateDisplayList(). I'll get it right one of these days. :) -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > > Yep, should have said, those that don&#

[flexcoders] Re: Accurate way of measuring a datagrid

2009-06-18 Thread Tim Hoff
Hi Patrick, private function resizeDataGrid():void { myDataGrid.height = myDataGrid.measureHeightOfItems(0, myDataGrid.dataProvider.length) + myDataGrid.headerHeight + 2; } -TH --- In flexcoders@yahoogroups.com, "djhatrick" wrote: > > My datagrid won't measure correctly, i have variabl

[flexcoders] Re: Creating a new ListEvent - how to specify ItemRenderer?

2009-06-18 Thread Tim Hoff
The list has to editable in order to use that event though. -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > Look at the itemFocusIn ListEvent. > > -TH > > --- In flexcoders@yahoogroups.com, "flexcoder2008" djohnson29@ wrote: > > > &

[flexcoders] Re: Binding two elements in a single datagrid column

2009-06-18 Thread Tim Hoff
Yep, should have said, those that don't implement IDataRenderer, IListItemRenderer and/or IDropInListItemRenderer manually. Nice snype. -TH --- In flexcoders@yahoogroups.com, "Amy" wrote: > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote: > >

[flexcoders] Re: Creating a new ListEvent - how to specify ItemRenderer?

2009-06-18 Thread Tim Hoff
Look at the itemFocusIn ListEvent. -TH --- In flexcoders@yahoogroups.com, "flexcoder2008" wrote: > > I have a List that handles a Click event - the ClickEvent takes a ListEvent, > and inside that handler I have access to the ListEvent's itemRenderer > property. > > This allows me to align a b

[flexcoders] Re: Binding two elements in a single datagrid column

2009-06-18 Thread Tim Hoff
x27;ve learned from it; as well as others following along. On this specific issue though, I stand by my assertions completely. Anyway, nice discussing this with you Steve. No hard feelings. -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > > Very well, you go with that.

[flexcoders] Re: Binding two elements in a single datagrid column

2009-06-18 Thread Tim Hoff
rers (And other components) to be more efficient. > > From a new users perspective, if I had seen your item renderer when I first started using Flex, I would have been totally intimidated and probably tried very hard never to need an item renderer. > > > --- In flexcoders@yahoogroups.co

[flexcoders] Re: Binding two elements in a single datagrid column

2009-06-17 Thread Tim Hoff
bly not fair to spread bad habits like this to others; that are just learning. -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > > Ok, here's how I would do it; with efficiency and best-practice in mind: > > http://www.timothyhoff.com/projects/AgeItemRendererSa

[flexcoders] Re: Binding two elements in a single datagrid column

2009-06-17 Thread Tim Hoff
he example using createChildren ? > > > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote: > > > > > > Yes, createChildren will only execute once; while set data will execute > > many times. Perhaps it's not a problem if the same child gets

[flexcoders] Re: Binding two elements in a single datagrid column

2009-06-16 Thread Tim Hoff
spacers in between controls. :) > > Regards, > Angelo > > > > > > From: Tim Hoff timh...@... > To: flexcoders@yahoogroups.com > Sent: Tuesday, 16 June, 2009 23:18:09 > Subject: [flexcoders] Re: Binding two elements in a single datag

[flexcoders] Re: how can I get a popupButton's popUp to resize while popped up?

2009-06-16 Thread Tim Hoff
r that old post. Can't believe it was "years ago"! > Where does the time go? > > Oh, that's right, the bugs in my program eat most of it! > > > On Tue, Jun 16, 2009 at 11:08 AM, Tim Hoff timh...@... wrote: > > > > > > > > > Ha, wha

[flexcoders] Re: Binding two elements in a single datagrid column

2009-06-16 Thread Tim Hoff
or" wrote: > > I use addChild in the set data function only because I always have. > > I have built hundreds of renderers this way and none of them have given me a problem. If there's a good reason why I shouldn't do it this way, I'm all ears. > > > --- In fl

[flexcoders] [Bindable] public var - getter/setter hybrid

2009-06-16 Thread Tim Hoff
Consider these two options for creating an accessor in Flex: Public Var: [Bindable] public var searchResults:ArrayCollection; Getter/Settter: [Event( name="searchStringChange", type="flash.events.Event" )] private var _searchResults:ArrayCollection; [Bindable( event="searchResultsChange" )

[flexcoders] Re: how can I get a popupButton's popUp to resize while popped up?

2009-06-16 Thread Tim Hoff
an the > window its in, then you're screwed! You'd have to implement your own "don't > grow when bigger than this and turn on scrollbars instead" logic. Luckily I > don't need that right now. > > On Tue, Jun 16, 2009 at 10:20 AM, Tim Hoff timh...@... wr

[flexcoders] Re: how can I get a popupButton's popUp to resize while popped up?

2009-06-16 Thread Tim Hoff
t; grid.height + gr.measuredHeight + (isNaN(verticalGap) ? 0 : > verticalGap)); > > This seems more "right", though if you add some big numbers to height and > width it will always auto-calc them. But I found if you add numbers that > are too small, you wind up with it cho

[flexcoders] Re: Binding two elements in a single datagrid column

2009-06-16 Thread Tim Hoff
I'm with you Steve; about using AS for an itemRenderer. I do wonder why you would use addChild in the set data function though; rather than in createChildren . For mxml, this should work Angelo: For the HBox, notice the use of

[flexcoders] Re: how can I get a popupButton's popUp to resize while popped up?

2009-06-15 Thread Tim Hoff
Hi Jason, Put this at the end of addCategory(): myPopupButton.popUp.scrollRect = new Rectangle(0, 0, myPopupButton.popUp.width, myPopupButton.popUp.height + 30); Add an id: This will trick the popup into redrawing. -TH --- In flexcoders@yahoogroups.com, Pan Troglodytes wrote: > > Okay, so

[flexcoders] Re: ambiguous reference error

2009-06-14 Thread Tim Hoff
flexcoders@yahoogroups.com ups.com] On > Behalf Of [p e r c e p t i c o n] > Sent: Saturday, June 13, 2009 4:06 PM > To: flexcod...@yahoogro <mailto:flexcoders@yahoogroups.com ups.com > Subject: Re: [flexcoders] Re: ambiguous reference error > > > > > > > > oh yes,

[flexcoders] Re: ambiguous reference error

2009-06-13 Thread Tim Hoff
My advice is to add the -keep compiler argument, build the project, and look at Line: 349 in the generated class MediaProfile-generated.as. -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > > I think that the error is pointing to mediaupload. Is that a variabl

[flexcoders] Re: ambiguous reference error

2009-06-13 Thread Tim Hoff
alled MediaProfile.as that has a bindable public var > called isValid > shouldn't this be accessible? > > > > On Sat, Jun 13, 2009 at 10:28 AM, Tim Hoff timh...@... wrote: > > > > > > > > @Timno all methods and vars have to be public in order to

[flexcoders] Re: ambiguous reference error

2009-06-13 Thread Tim Hoff
; Ambiguous reference to MediaProfile. [Generated code (use -keep to save): > Path: com\media\views\MediaProfile-generated.as, Line: 349, Column: 14] > mediaupload Unknown 1244912081333 16143 > > > thanks > > On Fri, Jun 12, 2009 at 3:16 PM, Tim Hoff timh...@... wrote: > >

[flexcoders] Re: ambiguous reference error

2009-06-13 Thread Tim Hoff
d > Ambiguous reference to MediaProfile. [Generated code (use -keep to save): > Path: com\media\views\MediaProfile-generated.as, Line: 349, Column: 14] > mediaupload Unknown 1244912081333 16143 > > > thanks > > On Fri, Jun 12, 2009 at 3:16 PM, Tim Hoff timh...@... wrote: > &

[flexcoders] Re: ambiguous reference error

2009-06-12 Thread Tim Hoff
Are you by any chance using a getter/setter for the isValid var? If so, you may need to change the setter to public. -TH --- In flexcoders@yahoogroups.com, "[p e r c e p t i c o n]" wrote: > > Hi Tracy,that was a mistake, actually i called it 'isValid' like this > > label="Continue"click="S

[flexcoders] Re: Dispatch Event Issue on BreadCrumb Trail Click

2009-06-12 Thread Tim Hoff
rumclicked for contentpane. > > Thanks > > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote: > > > > > > Hi, > > > > If you're not using an MVC framework, an easy way is to create a public > > method in contentpane.mxml, that will set the tree selection. On > > breadcrumb click, pass the event: contentpane.myPublicSelectionMethod( > > event ). > > > > -TH > > >

[flexcoders] Re: Dispatch Event Issue on BreadCrumb Trail Click

2009-06-11 Thread Tim Hoff
Hi, If you're not using an MVC framework, an easy way is to create a public method in contentpane.mxml, that will set the tree selection. On breadcrumb click, pass the event: contentpane.myPublicSelectionMethod( event ). -TH --- In flexcoders@yahoogroups.com, "n_manjunatha" wrote: > > Hi, > I

[flexcoders] Re: LinkBar without viewstack

2009-06-10 Thread Tim Hoff
Yeah, the control is specific for what I needed in GoogleMate (See FavoritesNavigation). It works for me, but your changes look fine. I suspect that you ran into a problem if the selectedIndex was -1. I should have accounted for that. -TH --- In flexcoders@yahoogroups.com, Richard Rodseth wr

[flexcoders] Re: LinkBar without viewstack

2009-06-10 Thread Tim Hoff
Cool, here's the implementation: -TH --- In flexcoders@yahoogroups.com, Richard Rodseth wrote: > > Thanks, Tim. I'll take a look. > > On Wed, Jun 10, 2009 at 12:12 PM, Tim hofftimh...@... wrote: > > > > > > Hi Richard, > > > > Here's a ToggleLinkBar control that might suit your needs. Just

[flexcoders] Re: Trying to find slide/flip/rotate component

2009-06-10 Thread Tim Hoff
Hi Nate, http://www.efflex.org/ -TH --- In flexcoders@yahoogroups.com, "Nate Pearson" wrote: > > I bookmarked a component a while ago that did some cool slid, flip, rotate stuff on forms. It was a box that kinda moved around. I think there was an option for a TV transi

[flexcoders] Re: LinkBar without viewstack

2009-06-10 Thread Tim Hoff
Hi Richard, Here's a ToggleLinkBar control that might suit your needs. Just set the selectedIndex of the control and you're good to go. I used an underline for the non-selected items, but you can take that out if you want. http://www.timothyhoff.com/misc/GMToggleLinkBar.as.html

[flexcoders] Re: how to fix poor performance in this example (AdvancedDataGrid and Binding)

2009-06-09 Thread Tim Hoff
Nice Paul, So, extend ADG and add a highlightedItem:MyItemVO property that uses a Bindable "highlightedChange" event; with the same getter/setter structure as below. Not sure, in MyADG, if you'd set the highlightedItem on itemRollover or initialte from the itemRenderer, with an Event though; jus

[flexcoders] Re: how to fix poor performance in this example (AdvancedDataGrid and Binding)

2009-06-09 Thread Tim Hoff
Just a thought, but what if you call drawHighlightIndicator manually; after you set the variable? Maybe even callLater. -TH --- In flexcoders@yahoogroups.com, Pan Troglodytes wrote: > > 1) Yes, this works fine, for the display portion only. It doesn't address > the actual problem of needing to

[flexcoders] Re: How do I Change Event on a CheckBox

2009-06-09 Thread Tim Hoff
Hi Mark, import mx.events.FlexEvent; calendarCheckbox.addEventListener(FlexEvent.VALUE_COMMIT, changeCBF); Notice that this is a FlexEvent; rather than a regular Event. So: private function changeCBF( event:FlexEvent ):void -TH --- In flexcoders@yahoogroups.com, "Mark" wrote: > > I'd like

[flexcoders] Re: Flex and Reporting

2009-06-09 Thread Tim Hoff
Crystal Reports is great for generating data driven .Net reports. But, if you wanted to generate a wysiwyg type of report, that mirrors what the user sees in the flex app, you're going to run into a lot of problems. AlivePDF is good for simple client-side pdf report generation. However, IMHO, i

[flexcoders] Re: ArrayCollection to Delimited String

2009-06-09 Thread Tim Hoff
umns2, Columns3. When I send the array collection to the .NET WebService, the first item in the ArrayList does not necessarily correspond to the first column and so forth. > > Thanks for the pointers. Good to learn a lot lot more. > > > > > ____ &

[flexcoders] Re: Grab the Current State of a Button

2009-06-08 Thread Tim Hoff
For a ToggleButton, look at the selected property: if ( myButton.selected ) { // my state is down } -TH --- In flexcoders@yahoogroups.com, "ericmaslowski" wrote: > > Hello, > I have been trying to do something very simple here with Flex but have hit a wall. I have several toggle buttons

[flexcoders] Re: ArrayCollection to Delimited String

2009-06-08 Thread Tim Hoff
for the tip(s). Was able to make this thing work out. > > > > Regards, > > > > Angelo > > > > -- > > *From:* Tim Hoff timh...@... > > *To:* flexcoders@yahoogroups.com > > *Sent:* Friday, 5 June, 2009 14:05:46

[flexcoders] Re: Resource Reference

2009-06-07 Thread Tim Hoff
oops, didn't read the top all the way. This should work: .bgCanvas { background-image: Embed(source='/localAssets/img/icon128.png'); } -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > > Hi, > > In CSS, you usually use ClassReference f

[flexcoders] Re: Wrapping components

2009-06-07 Thread Tim Hoff
Hi Mke, This might be what you're looking for: http://www.munkiihouse.com/?p=60 -TH --- In flexcoders@yahoogroups.com, Mike Chang wrote: > > Hi, > I have a newbie question on layout.I'm looking for a container component > that would "wrap" the components ins

[flexcoders] Re: Resource Reference

2009-06-07 Thread Tim Hoff
Hi, In CSS, you usually use ClassReference for a programatic skin. For a Graphical skin use: .bgCanvas { background-image: Embed(source='/localAssets/localIMAGES.IMAGE_ICON128'); } Notice that CSS uses "/" instead of a dot. Does the image file have an extension (.png, .jpg) ? -TH ---

[flexcoders] Re: Question about ArrayCollections

2009-06-05 Thread Tim Hoff
for each ( var item:Object in socketsToMonitor ) { trace(item.ip); } -TH --- In flexcoders@yahoogroups.com, Raymond Brown wrote: > > Here is some code of what I am using today: > > private function startAliveDeadCheck():void { > startMonitor("127.0.0.1", 80); > } > > private function star

[flexcoders] Re: how to fix poor performance in this example (AdvancedDataGrid and Binding)

2009-06-05 Thread Tim Hoff
Hi Jason, Have you tried it from within the itemRenderer? Something like: private var adg : AdvancedDataGrid; override public function set data(value:Object):void { super.data = value; adg = owner as AdvancedDataGrid; } override protected function updateDisplayList( w:Number, h:N

[flexcoders] Re: GoogleMaté Sample Application

2009-06-05 Thread Tim Hoff
Thanks Richard, I appreciate it. Most of my good stuff is behind coporate firewalls, so I wanted to put something out there that might help others in the community. Thanks again, -TH --- In flexcoders@yahoogroups.com, Richard Rodseth wrote: > > Looks very clean, Tim! > > I've been itching to c

[flexcoders] Re: ArrayCollection to Delimited String

2009-06-04 Thread Tim Hoff
yString); } -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > > Assuming that you don't want the trailing pipes: > > private function parseArrayCollection():void { > > > > var myString:String = ""; > > > > for

[flexcoders] Re: ArrayCollection to Delimited String

2009-06-04 Thread Tim Hoff
Assuming that you don't want the trailing pipes: private function parseArrayCollection():void { var myString:String = ""; for each ( var myObject:Object in myAC ) { myString += myObject.label + "|" + myObject.data; if ( myAC.getItemIndex( myObject )

[flexcoders] Re: GoogleMat� Sample Application

2009-06-04 Thread Tim Hoff
Coming, but the only thing that will be different will be the view code. :) -TH --- In flexcoders@yahoogroups.com, "Bjorn Schultheiss" wrote: > > Would be nice with flex 4 and catalyst : ) > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote: > &

[flexcoders] GoogleMaté Sample Application

2009-06-04 Thread Tim Hoff
Hi all, For any of you interested in learning more about the Maté framework, I've created a sample that's publically available. It's a simple AIR application, but hopefully those that want to learn more about MVC, will get some benefit out of it; especially those

[flexcoders] Re: Creating Link inisde a Data Grid Collumn

2009-06-04 Thread Tim Hoff
If you're creating the column in AS, you'll need to use ClassFactory for the itemRenderer: var urlItemRenderer:ClassFactory = new ClassFactory(com.myPath.urlRenderer); urlItemRenderer.properties = { myItemRendererPublicProperty: myProperty }; myColumnID.itemRenderer = urlItemRenderer; -TH ---

[flexcoders] Re: Performance Question

2009-06-03 Thread Tim Hoff
Using the 80-20 rule, loading all of the individuals up-front would be the way to go (even 1000 records is reasonable). It's going to much better handling the search on the client with a filter; instead of making a call for each key-stroke. If the user types fast, it can get very expensive. You

  1   2   3   4   5   6   7   8   9   10   >