[flexcoders] Re: Error 1189: Attempt to delete the fixed property.

2008-12-04 Thread Tim Hoff
Thanks Gordon --- In flexcoders@yahoogroups.com, Gordon Smith <[EMAIL PROTECTED]> wrote: > > In your doSomething() static function, 'arr' is a local variable and therefore ceases to exist when doSomething() returns. Therefore the Array object that it points to becomes eligible for garbage collect

[flexcoders] Re: Error 1189: Attempt to delete the fixed property.

2008-12-03 Thread Tim Hoff
Hi Deven, I'll take a stab at this, but I know that Gordon will correct me if I'm wrong. :) Just set the array to null or [] at the end of the function. It should get GC'd then, because of it's scope. If I remember correctly, delete shouldn't be used for Objects. -TH --- In flexcoders@yahoog

[flexcoders] Re: how can i get a columnIndex from an item in my TileList?

2008-12-03 Thread Tim Hoff
Yes, the x/y co-ords are probably best for this. But, if you use ListEvent.ITEM_ROLL_OVER, the event has columnIndex and rowIndex properties. -TH --- In flexcoders@yahoogroups.com, "blc187" <[EMAIL PROTECTED]> wrote: > > Thanks Alex, that's what I ended up doing. > I was hoping there was a quic

[flexcoders] Re: Unformatting currency values - best practice?

2008-12-02 Thread Tim Hoff
Here's what I use: var myNumericString:String = RegExUtil.strip(myInputBox.text, RegExUtil.NON_NUMERIC_CHARACTERS); package { public class RegExUtil { public static var NON_NUMERIC_CHARACTERS : String = "[^0-9]+"; public static function strip(source:String, p

[flexcoders] Re: Setting a specific row in the ADG to editable vs. the entire grid?

2008-12-02 Thread Tim Hoff
Hi Adrian, As far as I know, you can't allow editing of specific cells/rows by default. You can however add an event listener for the itemEditBeginning event. In the event handler function, if the cell/row meets you're editable criteria, allow the function to set the editedItemPosition property

[flexcoders] Re: Button label and keyboard shortcuts

2008-11-30 Thread Tim Hoff
Cool. -TH --- In flexcoders@yahoogroups.com, "Sefi Ninio" <[EMAIL PROTECTED]> wrote: > > Hmm... I swear I tried it before, did the same thing and it didn't work... > Donno what I did differently... > > Heck, it works now :) > > Thanks man! > > O

[flexcoders] Re: Get parent object in an array collection

2008-11-28 Thread Tim Gallagher
What is FBpro? Thanks Timgerr

[flexcoders] Re: Button label and keyboard shortcuts

2008-11-28 Thread Tim Hoff
Btw, this would show the htmlText as plain text, if you didn't use the component. -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote: > > > Works for me. Create a simple test application and copy in application > and component code t

[flexcoders] Re: Button label and keyboard shortcuts

2008-11-28 Thread Tim Hoff
Works for me. Create a simple test application and copy in application and component code that I posted. It probably doesn't matter, but are you using Flex3? -TH --- In flexcoders@yahoogroups.com, "Sefi Ninio" <[EMAIL PROTECTED]> wrote: > > Hi Tim, > > Thank

[flexcoders] Re: Button label and keyboard shortcuts

2008-11-27 Thread Tim Hoff
One caveat: since Button will measure the additional html characters, you might want to set the button's width explicitly. -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote: > > > Hi Sefi, > > Here's a way that you c

[flexcoders] Re: Button label and keyboard shortcuts

2008-11-27 Thread Tim Hoff
Hi Sefi, Here's a way that you can do that by extending Button: // AS --- package controls { import mx.controls.Button; public class HTMLButton extends Button { public function HTMLButton() { super(); }

[flexcoders] Re: Rotating text on button

2008-11-26 Thread Tim Hoff
For a "z" rotation, like the one I think that you're refering to on the site, you're probably better off just skinning the button with images created in PS or Fireworks. You could use PaperVision3D, but you'd still have to deal with the custom fonts. Or, just wait for Gumbo. :) -TH --- In fle

RE: [flexcoders] Best browser for debugging on Mac OSX?

2008-11-25 Thread Tim Rowe
things are slow ... or buy/demand a new machine. --Tim Rowe From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Bjorn Schultheiss Sent: Wednesday, 26 November 2008 11:12 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Best browser for d

[flexcoders] Re: Datgrid wordWrap="true" with variableRowHeight="true" issue

2008-11-21 Thread Tim Hoff
If you're using a custom itemRenderer, try adding super.indalidateDisplayList(); in the set data method. -TH --- In flexcoders@yahoogroups.com, Alex Harui <[EMAIL PROTECTED]> wrote: > > I would imagine something like that would be possible if you had a custom renderer that wasn't hooked up to ha

[flexcoders] Re: dataGrid effciency

2008-11-18 Thread Tim Hoff
Hi, The biggest performance culprits with a DataGrid, or any of the ListBase components, is the itemRenderers and the size of the dataProvider. You can optimize the itemRenderers by using UIComponent; see Alex's blog. And depending on how many items are in the dataProvider, you could see perfor

[flexcoders] Re: Help: Datagrid first and last selection

2008-11-14 Thread Tim Hoff
Sure, just look at the DataGrid's selectedItems array. Then filter your chart dataProvider with the items in the array. -TH --- In flexcoders@yahoogroups.com, "cox.blair" <[EMAIL PROTECTED]> wrote: > > Hi, is it possible to output the first and last selection of a > datagrid if selecting multip

[flexcoders] Re: updating data in Actionscript

2008-11-13 Thread Tim Hoff
For AS only components, you might have better luck using a getter/setter for the dataProvider; instead of the binding utility. When the dataProvider is set, update the chart's dataProvider explicitly; usually done in commitProperties(). -TH --- In flexcoders@yahoogroups.com, john fisher <[EMAIL

[flexcoders] Re: Help: Datagrid first and last selection

2008-11-13 Thread Tim Hoff
Sure, just look at the DataGrid's selectedItems array. Then use those items to filter the chart's dataProvider. -TH --- In flexcoders@yahoogroups.com, "cox.blair" <[EMAIL PROTECTED]> wrote: > > Hi, is it possible to output the first and last selection of a > datagrid if selecting multiple items

[flexcoders] Re: ImageSnapshot not capturing labels with blendmode set to "layer"

2008-11-13 Thread Tim Hoff
Hi Amy, You might try using embedded fonts. -TH --- In flexcoders@yahoogroups.com, "Amy" <[EMAIL PROTECTED]> wrote: > > Hi, all; > > I am using a TileList with an extended TileListItemRenderer which sets > its labels to have a blendMode of "layer" so that the alpha of the > renderer can be mani

[flexcoders] Re: Traverse through a TabNavigator

2008-11-13 Thread Tim Hoff
necessarily represent those of > INPS or any of its affiliates. If you are not the intended recipient > please contact [EMAIL PROTECTED] > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of valdhor > Sent: 13 Nove

[flexcoders] Per wedge customizing callout strokes on a PieSeries

2008-11-12 Thread Tim Connor
I can customize all of the callouts on a pie chart by setting the 'calloutStroke' property, but that falls a bit short of the design I have been handed. I was wondering if anyone had any ideas about ways to customize each of the callouts to match the color I have given that wedge slice (via

[flexcoders] Re: Traverse through a TabNavigator

2008-11-12 Thread Tim Hoff
- In flexcoders@yahoogroups.com, "timgerr" <[EMAIL PROTECTED]> wrote: > > Thanks for the comment, if creationPolicy is bad, what do other people > do and why is it bad? > > Thanks, > timgerr > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrot

[flexcoders] Re: Traverse through a TabNavigator

2008-11-12 Thread Tim Hoff
Hi Tim, The problem is that only the first child of a TabNavigator is instantiated initially. Not best practice, but you can set creationPolicy="All" for the TabNavigator; in order to reference the other children on init. -TH --- In flexcoders@yahoogroups.com, "timgerr&quo

[flexcoders] Re: Canvas scrollbar appears, won't scroll content?

2008-11-12 Thread Tim Hoff
Perhaps you should be adding the cards in createChildren() and setting the x, y, and z in updateDisplayList(). -TH --- In flexcoders@yahoogroups.com, "bmilesp" <[EMAIL PROTECTED]> wrote: > > Hello, > I've tried posting this on actionscript.org with no luck. > I have a class that extends canvas a

[flexcoders] Re: Number of viewable rows in datagrid

2008-11-10 Thread Tim Hoff
Hi Orville, You might want to see if it works with the updateComplete or valueCommit events. Using he render event can be very expensive; as it fires everytime the display list is updated. -TH --- In flexcoders@yahoogroups.com, "creativepragmatic" <[EMAIL PROTECTED]> wrote: > > I figured it ou

[flexcoders] Re: Adding objects to arraycollections

2008-11-10 Thread Tim Hoff
I think that you could have got this one from the docs. arrycoll.addItem(obj1); -TH --- In flexcoders@yahoogroups.com, "timgerr" <[EMAIL PROTECTED]> wrote: > > Hello all, I was wondering how to add objects to arraycollections > arrycoll:ArrayCollection = new ArrayCollection(); > obj1:Object = n

[flexcoders] Re: Help on sorting an ArrayCollection then adding an item to the top

2008-11-10 Thread Tim Hoff
select it again as a default. And maybe "Select One" is the wrong > wording for what I'm doing here... "Select All" would be a better > choice of words. > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote: > > > > > >

[flexcoders] Re: Help on sorting an ArrayCollection then adding an item to the top

2008-11-09 Thread Tim Hoff
-TH --- In flexcoders@yahoogroups.com, "Mark" <[EMAIL PROTECTED]> wrote: > > Thanks for the quick reply Ralf, but I have no idea how to do either of what you > suggested. Would you know of any examples you can point me to? > > Thanks, > Mark > > --- In flexcoders@yahoogroups.com, "Ralf Bokelber

[flexcoders] Re: how can i use the hslider to show part of the image

2008-11-06 Thread Tim Hoff
Hi Ashly, How do you want to reveal the image: slide in, wipe..? Here's a very simple and hard-coded example for a slide-in from right to left. Just replace the Box with an Image You could also use a mask. http://www.adobe.com/2006/mxml"; width="400" height="400" horizontalAlign="cente

[flexcoders] Re: Get coordinates after using graphics.lineto()

2008-11-06 Thread Tim Hoff
Probably localToContent() is more appropriate here; to get the point in relation to the chart. var x:Number = 5; var y:Number = 10; myDisplayObject.graphics.moveTo(0,0); myDisplayObject.graphics.lineTo(x,y); var myPoint:Point = new Point(x, y); myPoint = myDisplayObject.localToContent(myPoint);

[flexcoders] Re: adding (none) option to comboboxes

2008-11-04 Thread Tim Hoff
; My blog has this post: http://blogs.adobe.com/aharui/2008/03/custom_ilists_combobox_prompts.htm\ l > > Most of my posts I hope are like pre-mixed dough. It gets you most or all of the way there, I think. > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tim Hoff

[flexcoders] Re: adding (none) option to comboboxes

2008-11-04 Thread Tim Hoff
ders@yahoogroups.com, Alex Harui <[EMAIL PROTECTED]> wrote: > > An example of such on my blog > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tim Hoff > Sent: Monday, November 03, 2008 2:08 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoder

[flexcoders] Re: adding (none) option to comboboxes

2008-11-03 Thread Tim Hoff
Hi Derrick, The ComboBox prompt will not solve your problem here. It only appears when the selectedIndex==-1; Unless you want to subclass ComboBox, you're going to have to add "none" to the dataProvider, and implement custom logic to account for it. Since you're using the same dataProvider els

[flexcoders] Re: finding out if a child is in view with the current scroll location of a Canvas

2008-11-01 Thread Tim Hoff
Of course, looking at y values would certainly make more sense for vertical scrolling. :( -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote: > > > In thinking about this more, you're going to have to find the > localToContent point x v

[flexcoders] Re: finding out if a child is in view with the current scroll location of a Canvas

2008-11-01 Thread Tim Hoff
flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote: > > > Something along these lines: > > var hiddenArea:int = myCanvasChild.height - (myCanvas.height - > myCanvasChild.x); > > if (hiddenArea > 0) myCanvas.veticalScrollPosition += hiddenArea; > &g

[flexcoders] Re: finding out if a child is in view with the current scroll location of a Canvas

2008-11-01 Thread Tim Hoff
s 100px > hidden, I need to scroll down 100px. How would I find the amount I need to > scroll by to get a child object in view? > Thanks for the help! > ~Aaron > > On Fri, Oct 31, 2008 at 10:02 AM, Tim Hoff [EMAIL PROTECTED] wrote: > > > Hi Aaron, > > > > If y

[flexcoders] Re: Delays in posts

2008-10-31 Thread Tim Hoff
16,500 unread messages. Slacker. :-) -TH --- In flexcoders@yahoogroups.com, "Doug McCune" <[EMAIL PROTECTED]> wrote: > > Subscribe to the email list and have it send you individual emails. Then set > up a filter in gmail to label all messages from the list and throw em into a > folder and autom

[flexcoders] Re: finding out if a child is in view with the current scroll location of a Canvas

2008-10-31 Thread Tim Hoff
Hi Aaron, If you kow the index of the canvas child that you want to scroll to, something like this will work: myCanvas.verticalScrollPosition = myCanvas.getChildAt(myChildIndex).y; -TH --- In flexcoders@yahoogroups.com, "Aaron Miller" <[EMAIL PROTECTED]> wrote: > > Is it to early to bump? I'm

[flexcoders] Re: New to ItemRenderers

2008-10-31 Thread Tim Hoff
On the list tag, variableRowHeight="true"; -TH --- In flexcoders@yahoogroups.com, "Tyler Kocheran" <[EMAIL PROTECTED]> wrote: > > I'm trying to create a simple List-based application to try and learn more > about ItemRenderers. How do I make my ItemRenderer automatically size to fit > whatever i

[flexcoders] Re: UI component, a set function & creationComplete

2008-10-30 Thread Tim Hoff
Anyone taking bets? -TH --- In flexcoders@yahoogroups.com, "Amy" <[EMAIL PROTECTED]> wrote: > > --- In flexcoders@yahoogroups.com, "Michael Schmalle" > teoti.graphix@ wrote: > > > > Amy, > > > These functions are in place for very good reasons, and if you > try to > > circumvent them you have a

[flexcoders] Re: sailorsea21 - Is it possible to use a value from a variable as a Timer value?

2008-10-27 Thread Tim Hoff
Well, take that back. Looks like you want the delay for a refresh rate. myTimer.delay = valuesMilliseconds; should work. -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote: > > > Hi David, > > Looks like you're constructing

[flexcoders] Re: sailorsea21 - Is it possible to use a value from a variable as a Timer value?

2008-10-27 Thread Tim Hoff
Hi David, Looks like you're constructing the Timer wth a delay: Timer (delay:Number , repeatCount:int

[flexcoders] Re: Help: filterFunction and Dates

2008-10-26 Thread Tim Hoff
7;s much easier if the dto is deserialized as a VO. In order to do this, you'll need to create an AS equivilent of the dto. I'm not a php guy, but there's plenty of info out there concerning the subject. -TH --- In flexcoders@yahoogroups.com, Blair Cox <[EMAIL PROTECTED]> w

[flexcoders] Re: Cairngorm: should pure view state changes go through the ModelLocator?

2008-10-26 Thread Tim Hoff
I can't say expert, but I've used it enough to comment. Preferably, the view would take care of itself'; concerning the state of the view (buttons). With the collection in the model. bound to the DataGrid's dataProvider, dispatch a ChangeFilterEvent (type:String). Assuming that you already have

[flexcoders] Re: Help: filterFunction and Dates

2008-10-24 Thread Tim Hoff
times less than the time it takes to hack the application into submission. :) Glad that you have a working solution. -TH --- In flexcoders@yahoogroups.com, Blair Cox <[EMAIL PROTECTED]> wrote: > > Many thanks Tim! I dropped the DateField component and tried a simple text > box, plus yo

[flexcoders] Re: Help: filterFunction and Dates

2008-10-24 Thread Tim Hoff
t a couple of resources I could refer to? Thanks. > > -- > Blair > > > > > > From: Tim Hoff [EMAIL PROTECTED] > Reply-To: flexcoders@yahoogroups.com > Date: Thu, 23 Oct 2008 19:30:02 - > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: Help: filter

RE: [flexcoders] Do you use a Mac?

2008-10-23 Thread Tim Rowe
t my next replacement notebook will be an XPS rather than a MacBook (a large factor was also Apples recent .au price increases), though I'll likely keep using a Mac for a number of tasks. --Tim Rowe From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]

[flexcoders] Re: Help: filterFunction and Dates

2008-10-23 Thread Tim Hoff
OK, so what you're saying is that item.Date_Collected is a string (2008-10-01) and not a date. This goes back to the original suggestion, use a Date() type for that variable in the VO. If you do, then the last sample should work; using selectedDate. -TH --- In flexcoders@yahoogroups.com, Blair

[flexcoders] Re: Help: filterFunction and Dates

2008-10-23 Thread Tim Hoff
Something like this: private function processFilter(item:Object):Boolean { return (item.Date_Collected) == wholeDate.selectedDate; } -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote: > > > So, you're converting a String to a Numbe

[flexcoders] Re: Help: filterFunction and Dates

2008-10-23 Thread Tim Hoff
AIL PROTECTED]> wrote: > > Hmm, okay, now I¹m confused. > > So this is the working end of my code, totally borrowed from > http://blog.flexexamples.com. > > private function processFilter(item:Object):Boolean { return > (item.Date_Collected) == Number(wholeDate.text); } >

[flexcoders] Re: Help: filterFunction and Dates

2008-10-23 Thread Tim Hoff
Hey Blair, For dates, it's important that you use the Date() data type. Some use strings instead. Since you're using AMF, using strongly typed date objects for the VO's is the cleanest way. The reason that I say to use Date(), is because that the Date.time property is stored as the number of m

[flexcoders] Re: viewStack is slow opening the first time

2008-10-22 Thread Tim Hoff
Hi Mark, This may be one case where you would want to use creationPolicy="all", for the ViewStack. It will add more time to startup, but the user experience may be better; once the application is loaded. -TH --- In flexcoders@yahoogroups.com, "Mark" <[EMAIL PROTECTED]> wrote: > > I'm building

[flexcoders] Re: DataGrid Selection and Overing.

2008-10-22 Thread Tim Hoff
Hi Parjan, You can give the illusion that the DataGrid is not selectable by extending DataGrid and overriding the drawSelectionIndicator function (selectable="true"). package com.controls { import mx.controls.DataGrid; import flash.display.Sprite; import mx.controls.listClasses.IListItemRenderer

[flexcoders] Re: First POST - XML and Datagrid - XML parent issues

2008-10-21 Thread Tim Hoff
Sounds like a job for labelFunction. -TH --- In flexcoders@yahoogroups.com, "Bill" <[EMAIL PROTECTED]> wrote: > > Here is my XML > http://fantasy4sports.com/xml/players.xml > > my source XMLCollection call > > source="{tempXML['team-sport-content']['league-content']['season-content\ ']['team-co

[flexcoders] Re: How can I make an ItemRenderer on a Datagrid react to a row selection?

2008-10-20 Thread Tim Hoff
Shoot, don't even worry about the rowIndex, just attach the data object to the event. -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote: > > > Yeah, you would be hosed if a different type of list was used. If > you're using CHANGE

[flexcoders] Re: How can I make an ItemRenderer on a Datagrid react to a row selection?

2008-10-20 Thread Tim Hoff
Yeah, you would be hosed if a different type of list was used. If you're using CHANGE, which is generic for list base, have the parent class dispatch a custom event, on change, with the row index. The parent class will always know what kind of list is being used. Then in the itemRenderer listen

[flexcoders] Re: Crazy DataGrid display of XMLListCollection

2008-10-18 Thread Tim Hoff
Hi, If the dataProvider is [Bindable], the DataGrid should reflect the changes to the dataProvider; when the dataProvider is changed. For the itemRenderer question, here's one way to update the display list: override public function set data(value:Object):void { if (value != null) {

[flexcoders] Re: datagrid scrolling problem

2008-10-17 Thread Tim Hoff
Jeez, got to slow down. Should be LT. myDG.verticalScrollPosition = (myDataProvider.length - array[i]) < (myDataProvider.length - myDG.rowCount) ? (myDataProvider.length - myDG.rowCount) : array[i]; -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wro

[flexcoders] Re: datagrid scrolling problem

2008-10-17 Thread Tim Hoff
Sorry for the typo, also not tested; obviously. :) myDG.verticalScrollPosition = (myDataProvider.length - array[i]) > (myDataProvider.length - myDG.rowCount) ? (myDataProvider.length - myDG.rowCount) : array[i]; -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL P

[flexcoders] Re: datagrid scrolling problem

2008-10-17 Thread Tim Hoff
Hi Mark, You can come probably up with a more elegant way to handle each possibility, but here's an idea. myDG.verticalScrollPosition = (myDataProvider - array[i]) > (myDataProvider.length - myDG.rowCount) ? (myDataProvider.length - myDG.rowCount) : array[i]; -TH --- In flexcoders@yahoogroups.

[flexcoders] Re: how to add internal padding in canvas?

2008-10-17 Thread Tim Hoff
> > but I get error for > > canvas.top = 10; > canvas.left = 10; > > I wonder how to do this with actionscript. > > Thanks > > mk > > --- In flexcoders@yahoogroups.com, "Paul Andrews" paul@ wrote: > > > > Yes, I'm just old school th

[flexcoders] Re: how to add internal padding in canvas?

2008-10-17 Thread Tim Hoff
AIL PROTECTED]> wrote: > > The irony to all this over analyzation is; > We never heard the OP say WHY he even wanted to do this (padding in Canvas) > let alone if he even needed a canvas to do what he needed to do! > > I just need to stay out of these application questions. ;-)

[flexcoders] Re: how to add internal padding in canvas?

2008-10-17 Thread Tim Hoff
D]> wrote: > > Yes, I'm just old school this time round! > ----- Original Message - > From: Tim Hoff > To: flexcoders@yahoogroups.com > Sent: Friday, October 17, 2008 7:58 PM > Subject: [flexcoders] Re: how to add internal padding in canvas? > > > Just

[flexcoders] Re: how to add internal padding in canvas?

2008-10-17 Thread Tim Hoff
Just preference, but I'd rather see: // my content -TH --- In flexcoders@yahoogroups.com, "Paul Andrews" <[EMAIL PROTECTED]> wrote: > > - Original Message - > From: "Paul Andrews" [EMAIL PROTECTED] > To: flexcoders@yahoogroups.com > Sent: Friday, October 17, 2008

[flexcoders] Re: Listen to transition complete?

2008-10-17 Thread Tim Hoff
Hi Chris, For the component that has a transition or effect, listen for the effectEnd event: -TH --- In flexcoders@yahoogroups.com, "Christoph Leva" <[EMAIL PROTECTED]> wrote: > > Hi all, > > is it possible to add an eventListener, that listens for the end of a > transition between two states

[flexcoders] Re: how to add internal padding in canvas?

2008-10-17 Thread Tim Hoff
Another alternative, if you have to use a Canvas and don't want to subclass, is to use constraints (top, bottom, left, right) on the children. -TH --- In flexcoders@yahoogroups.com, "markflex2007" <[EMAIL PROTECTED]> wrote: > > Hi,Mike > > Please let me know this in detail. > > I can extends Can

[flexcoders] Re: PopUpMenuButton.itemClick event

2008-10-13 Thread Tim Hoff
Actually itemClick should work for a PopupMenuButton. I misread your question as PopupButton. -TH --- In flexcoders@yahoogroups.com, Maciek Sakrejda <[EMAIL PROTECTED]> wrote: > > Thanks, Tim. I was hoping for something more straightforward (the > PopUpMenuButton.itemClick d

[flexcoders] Re: PopUpMenuButton.itemClick event

2008-10-13 Thread Tim Hoff
Hi Maciek, The click event pertains to the popup button itself. You can use that to open the menu: The change event is the one that you use when a menu item is selected: private function initMyPopupButtonMenu():void { myMenu = new List(); var myMenuItemRenderer:ClassFactory = new C

[flexcoders] Re: Variable scope

2008-10-10 Thread Tim Hoff
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tim Hoff > Sent: Friday, October 10, 2008 1:08 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: Variable scope > > > http://www.amazon.com/Essential-ActionScript-3-0/dp/0596526946 > > You can a

[flexcoders] Re: Variable scope

2008-10-10 Thread Tim Hoff
http://www.amazon.com/Essential-ActionScript-3-0/dp/0596526946 You can also search Google for "oop AS3 variable scope" Yes, it should be public; otherwise it is only exposed to that class. -TH --- In flexcoders@yahoogroups.com, "

[flexcoders] Re: Trouble shooting internal build errors

2008-10-09 Thread Tim Hoff
Have you tried Project -> Clean...? -TH --- In flexcoders@yahoogroups.com, Cordova Aaron <[EMAIL PROTECTED]> wrote: > > I made a small change in a project and now FlexBuilder will not export a release build. It fails with "An internal build error has occured" and says I can right click for more

[flexcoders] Re: How to make a Docking Window Framework/component like Eclipse/InfoDock/JDocking

2008-10-08 Thread Tim Hoff
If it's anything like your components and/or framework Mike, it's going to rock! I've found them to be very useful. -TH --- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote: > > Mike, I'm very interested in this. Will it be for-pay, or OSS? If it's OSS, > need any help?

[flexcoders] Re: Access of undefined property of type URLLoader

2008-10-08 Thread Tim Hoff
No import statement? -TH --- In flexcoders@yahoogroups.com, "anuj181" <[EMAIL PROTECTED]> wrote: > > Hi > I am simply trying to load external XML file but the builder is not > recognizing one of my variable named urlLoader of type URLLoader. it > is saying "Access of undefined property urlLoader

[flexcoders] Re: External Item Renderer Question

2008-10-08 Thread Tim Hoff
Cool. Probably parentDocument or Application.application.blah.blah.blah would have fixed that. But, you're better off going with the event approach (loose coupling). -TH --- In flexcoders@yahoogroups.com, "jmfillman" <[EMAIL PROTECTED]> wrote: > > I just went with dispatchEvent, and it's worki

[flexcoders] Re: External Item Renderer Question

2008-10-07 Thread Tim Hoff
Hey JF, By external, do you mean custom itemRenderer; like in the DataGridColumn tag itemRenderer="myItemRenderer"? If so, the same logic should work. Just make sure that buyList is a public variable. However, it's probably better to dispatch an event, from the itemRenderer, that trigers the r

[flexcoders] Re: handling data within a datagrid

2008-10-07 Thread Tim Hoff
); > CairngormEventDispatcher.getInstance().dispatchEvent(evt); > > (added the wrapper BudgetVO around the dg) and got this error message > TypeError: Error #1034: Type Coercion failed: cannot convert > [EMAIL PROTECTED] to com.vo.BudgetVO > > > > On Tue, Oct 7, 2008 at 11:47

[flexcoders] Re: handling data within a datagrid

2008-10-07 Thread Tim Hoff
TAILS); CairngormEventDispatcher.getInstance().dispatchEvent(evt); -TH --- In flexcoders@yahoogroups.com, "Greg Morphis" <[EMAIL PROTECTED]> wrote: > > Thanks Tim, I appreciate the help. I want to learn but yeah I want to > learn the right way to do things. > Again, I apprecia

[flexcoders] Re: handling data within a datagrid

2008-10-07 Thread Tim Hoff
del SelectedVO.. > > When I chose a row a form I had started populating using this: > > {MyModel.getInstance().SelectedBudgetVO.amount.toString()} > > > > but when I changed the changeHandler to just > > MyModel.getInstance().SelectedBudgetVO = event.target.selectedItem as

[flexcoders] Re: handling data within a datagrid

2008-10-07 Thread Tim Hoff
"I have no idea why it wont work with an ArrayCollection" Because your ArrayCollection is a collection of VO's, not a collection of ArrayCollections; although there may be ArrayCollections as properties of the VO. Can you not just do this? MyModel.getInstance().SelectedBudgetVO = event.target.s

[flexcoders] Re: Custom header renderer and headerText

2008-10-06 Thread Tim Hoff
].headerText ? > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote: > > > > > > Mark, > > > > Do something like this for the HeaderRenderer: > > > > > > http://www.adobe.com/2006/mxml"; > > horizontalAlign=&qu

[flexcoders] Re: datagrid itemRenderer help

2008-10-06 Thread Tim Hoff
Ha, well we wouldn't want the inmates running the asylum. Props to Amy too. -TH --- In flexcoders@yahoogroups.com, "Greg Morphis" <[EMAIL PROTECTED]> wrote: > > Tim, you nailed it.. > so set data keeps running until datagrid is full? > I have to read up o

[flexcoders] Re: datagrid itemRenderer help

2008-10-06 Thread Tim Hoff
> Any other ideas? I'm out of them > > > On Mon, Oct 6, 2008 at 4:23 PM, Greg Morphis [EMAIL PROTECTED] wrote: > > What do you mean? > > The collection shows in the dataGrid just fine, it's the custom > > itemRenderer that isn't working? > > Is th

[flexcoders] Re: datagrid itemRenderer help

2008-10-06 Thread Tim Hoff
Correct. Perhaps the collection isn't bound to the dataProvider correctly. -TH --- In flexcoders@yahoogroups.com, "Amy" <[EMAIL PROTECTED]> wrote: > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote: > > > > > > You might try

[flexcoders] Re: Custom header renderer and headerText

2008-10-06 Thread Tim Hoff
Mark, Do something like this for the HeaderRenderer: http://www.adobe.com/2006/mxml"; horizontalAlign="center"> -TH --- In flexcoders@yahoogroups.com, "markgoldin_2000" <[EMAIL PROTECTED]> wrote: > > Anybody please help, I am really stuck with it. > > --- In flexcoders@yahoogroups.com,

[flexcoders] Re: datagrid itemRenderer help

2008-10-06 Thread Tim Hoff
You might try adding this Greg: override public function set data( value : Object ) : void { if (value != null) super.data = value; } The data property will be null until the service call has returned and populated the collection. -TH --- In flexcoders@yahoogroups.com, "Greg Morphis" <[

[flexcoders] Re: Base component Sprite vs. UIComponent.

2008-10-03 Thread Tim Hoff
Another thing to keep in mind, regardless if it's a UIComponent or Sprite, is that reflection (especially when there is video involved) is very expensive. Filters as well, but not as much. -TH --- In flexcoders@yahoogroups.com, "Michael Schmalle" <[EMAIL PROTECTED]> wrote: > > > reflections and

[flexcoders] Re: [ANN] Announcing Smartypants IOC, a dependency-injection library for Flex.

2008-10-02 Thread Tim Hoff
Too funny Mike. Works in FF, but not IE7 Josh. -TH --- In flexcoders@yahoogroups.com, "Michael Schmalle" <[EMAIL PROTECTED]> wrote: > > > Hey FO Smartypants > I'm reporting you to YAHOO POLICE Tim! This is un exceptable list protocol! > > Expect a sum

[flexcoders] Re: Re-Center Pop-Up on Resize

2008-10-02 Thread Tim Hoff
The way that I do it, is to dispatch an event when the application resize event is fired. Of course this is easy when you use an MVC framework; like Cairngorm. In the popup, I then use an event listener that executes a method: mx.managers.PopUpManager.centerPopUp(this as IFlexDisplayObject); T

[flexcoders] Re: decrementing the x axis on a chart

2008-10-02 Thread Tim Hoff
HI, You're goung to have to massage the data to get your desired result. Youcan also use a second dataProvider and layer it on top of the first dataProvider (alpha = 0), if you want to keep the labels intact. -TH --- In flexcoders@yahoogroups.com, "flexie_eric" <[EMAIL PROTECTED]> wrote: > > C

[flexcoders] Re: [ANN] Announcing Smartypants IOC, a dependency-injection library for Flex.

2008-10-02 Thread Tim Hoff
Hey FO Smartypants. Totally kidding Josh. Good on you mate. But, I'm getting a blank page for the blog post. Just a heads up. Cheers, -TH --- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote: > > Hey guys, > > Just wanted to let you know I've publicly released my depe

[flexcoders] Re: Refreshing datagrid with itemRenderer and variableRowHeight

2008-10-01 Thread Tim Hoff
Hi Howard, Since itemRenderers are recycled, the items that are scrolled to are not getting resized. To get this to happen, the display list has to be updated after the data for the itemRenderer is set. In the itemRenderer, override the set data function. After the data has been set call inval

[flexcoders] Re: TextArea Issue - adds an extra "\r"

2008-10-01 Thread Tim Hoff
, is it possible that hitting enter adds both > these characters, and then hitting backspace only removes the last > character, leaving the \r? > > I would have thought the built-in TextArea component would handle > stuff like that, though... > > --- In flexcoders@yahoogroups.com,

[flexcoders] Re: TextArea Issue - adds an extra "\r"

2008-10-01 Thread Tim Hoff
athan <[EMAIL PROTECTED]> wrote: > > > Thanks Tim. I agree that these are escape chars. But when I do a backspace, > do I not nullify the effect of the carriage return? Why would it still hold > a \r? > > If I am validating the content of this textarea, then do I have to look fo

[flexcoders] Re: TextArea Issue - adds an extra "\r"

2008-10-01 Thread Tim Hoff
Those are the escape characters for the carraige return Ram. -TH --- In flexcoders@yahoogroups.com, rviswanathan <[EMAIL PROTECTED]> wrote: > > > Hi All > > I have a textarea where I enter some information and submit. These are the > following steps > > 1. Run the attached swf > 2. In the textar

[flexcoders] Re: Listen itemClick Event on MenuBar

2008-09-26 Thread Tim Hoff
Perhaps a tree menu instead. -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote: > > > :-) > > -TH > > --- In flexcoders@yahoogroups.com, "Tracy Spratt" tspratt@ wrote: > > > > Maybe a custom MenuBarItemRenderer

[flexcoders] Re: Listen itemClick Event on MenuBar

2008-09-26 Thread Tim Hoff
:-) -TH --- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote: > > Maybe a custom MenuBarItemRenderer would solve this. Just guessing, > though. > > Tracy > > > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of

[flexcoders] Re: TabNavigator - have to click twice on tab to display page

2008-09-26 Thread Tim Hoff
on the first tab). I hit it again and he > contents of the 2nd tab are displayed > > Thanks > > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote: > > > > > > So, when you click the 2nd tab, does the 2nd tab remain selected, or > > do

[flexcoders] Re: TabNavigator - have to click twice on tab to display page

2008-09-26 Thread Tim Hoff
, "donald_d_hook" <[EMAIL PROTECTED]> wrote: > > TH - > > No, I m not doing that, thats what I thought it was originally. > > Thanks > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote: > > > > > > Cool, one other thing to check

[flexcoders] Re: TabNavigator - have to click twice on tab to display page

2008-09-26 Thread Tim Hoff
- I will give it a shot and see. > > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote: > > > > > > Sounds suspiciously like a callLater() solution. Have you tested > > whether the creationComplete event is actually firing, before you >

[flexcoders] Re: Variable width column to fill a variable width datagrid?

2008-09-26 Thread Tim Hoff
Sorry, this line should be: I'm an idiot. :) -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote: > > > Hmm, not sure what to tell you. The example below works for me; the > third column takes up the rest of the available space. The

<    1   2   3   4   5   6   7   8   9   10   >