[flexcoders] Re: What fonts do you embed?

2008-09-10 Thread Tim Hoff
Embedding a lot of Segoe UI, Myriad Pro and Arial Matt. English here. -TH --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Hey folks, We're working on our font embedding logic (and lookup logic) and would like to get a quick survey of the kinds of fonts people are

[flexcoders] Re: Is it possible to increase the heigth and width of scroll bars in any container?

2008-09-11 Thread Tim Hoff
Cheers Gregor. -TH --- In flexcoders@yahoogroups.com, Gregor Kiddie [EMAIL PROTECTED] wrote: In all seriousness... any scrollbar skinning has always been along the same lines as these posts. http://axel.cfwebtools.com/index.cfm/2007/3/27/Custom-Scroll-Bar- Using-C SS

[flexcoders] Re: Subclassing Components: Theoretical Question

2008-09-12 Thread Tim Hoff
Heretofore known as the blahBlahBlahButton. :) -TH --- In flexcoders@yahoogroups.com, Doug McCune [EMAIL PROTECTED] wrote: heh, that's almost the exact description of what I called the CanvasButton: http://dougmccune.com/blog/2007/06/01/new-component-canvasbutton- added-to-flexlib/ Doug

[flexcoders] Re: RadioButton Set selectedValue

2008-09-12 Thread Tim Hoff
Might just be a timing issue Doug. Have you tried callLater()? Otherwise, maybe set model.selectedValuation.valuationAdmin.valuation_status to the correct value, instead of setting the selectedValue directly; since it's bound. -TH --- In flexcoders@yahoogroups.com, Doug [EMAIL PROTECTED]

[flexcoders] Re: RadioButton Set selectedValue

2008-09-12 Thread Tim Hoff
the repeater itself? --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: Might just be a timing issue Doug. Have you tried callLater()? Otherwise, maybe set model.selectedValuation.valuationAdmin.valuation_status to the correct value, instead of setting the selectedValue directly

[flexcoders] Re: RadioButton Set selectedValue

2008-09-13 Thread Tim Hoff
={model.selectedValuation.valuation_administration.valua tion_status}/ mx:RadioButton id=open group={statusType} label=Open value=Open / mx:RadioButton id=closed group={statusType} label=Closed value=Closed / mx:RadioButton id=pending group={statusType} label=Pending value=Pending / --- In flexcoders@yahoogroups.com, Tim Hoff

[flexcoders] Re: When to use Cairngorm front controller ?

2008-09-15 Thread Tim Hoff
Hi Steve, Usually you would use Cairngorm events for application wide user gestures; like making a service call, or for gestures that require a lot of calculations or that navigate. However, to reduce the amount of custom events, you can certainly use local flex or flash events for user

[flexcoders] Re: DropShadow filter on VBox adds drop shadow to everything contained in VBox

2008-09-15 Thread Tim Hoff
I would think that the children would still inherit the dropShadow in this case. As a workaround, you could try setting the filters on the children as well: myTextInput.filters = []; -TH --- In flexcoders@yahoogroups.com, Haykel BEN JEMIA [EMAIL PROTECTED] wrote: did you try putting hte

[flexcoders] Re: Formatting number in dataGrid column

2008-09-17 Thread Tim Hoff
Hi Joshua, Not tested, but you can try this: private function basePriceLabel(item:Object):Number{ return Number(fBasePriceEntry.format(item.basePrice)); } -TH --- In flexcoders@yahoogroups.com, Joshua Partogi [EMAIL PROTECTED] wrote: Dear all, I want to format a number inside a dataGrid

[flexcoders] Re: Formatting number in dataGrid column

2008-09-17 Thread Tim Hoff
Shoot, strike that. You had it right; except for the second parameter for the labelFunction: private function basePriceLabel(item:Object, column:DataGridColumn):String { return fBasePriceEntry.format(item.basePrice); } -TH --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote

[flexcoders] Re: Trying to refine inline itemrenderer prompt to state based image loading

2008-09-18 Thread Tim Hoff
Hey, aren't you on sabbatical? :-) Have fun. -TH --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Read the itemrenderer posts on my blog (blogs.adobe.com/aharui). Renderers get recycled and only enough renderers to display the visible items are created, so using

[flexcoders] Re: Retrieving Sorted Data from DataGrid

2008-09-19 Thread Tim Hoff
Hi, You're better off wrapping the XMLList in an XMLListCollection and use that as the dataProvider for the DataGrid. XMLListCollection is a ListCollectionView for the underlying source and will retain the sort order when you click on a DataGrid header. Using an XMLListCollection also gives

[flexcoders] Re: FOCUS_OUT, MOUSE_OUT ...

2008-09-19 Thread Tim Hoff
Hi, These situations are a bit tricky sometimes. The mouseDownOutside event is usually what I use for this. Where it gets tricky is when there are interactive children involved. If the children aren't interactive, you can simply set the children's mouseEnabled property to false and you're

[flexcoders] Re: Refresh a Form / Views

2008-09-19 Thread Tim Hoff
Hi Eugene, In the state tag, you can set properties. This will happen when you change to the state: Something like this: mx:states mx:State name=myFormState mx:SetProperty target={myFirstFormField} name=text value=/ mx:SetProperty target={mySecondFormField} name=text

[flexcoders] Re: Wipe Effect

2008-09-19 Thread Tim Hoff
private function effectEndHandler():void { callLater(showBox); } private function showBox():void{ mainImgBox.visible = true; } -TH --- In flexcoders@yahoogroups.com, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have this box which I want to wipe left to hide and then wipe right

[flexcoders] Re: Wipe Effect

2008-09-19 Thread Tim Hoff
for programming at the framework level. callLater() is evil... ;-) Mike On Fri, Sep 19, 2008 at 1:06 PM, Tim Hoff [EMAIL PROTECTED] wrote: * private * *function* effectEndHandler():*void* { callLater(showBox); } *private* *function* showBox():*void

[flexcoders] Re: Wipe Effect

2008-09-19 Thread Tim Hoff
. Mike On Fri, Sep 19, 2008 at 1:20 PM, Tim Hoff [EMAIL PROTECTED] wrote: Ha, totally agree. But, it works for now. :-) - . -- Teoti Graphix, LLC http://www.teotigraphix.com Teoti Graphix Blog http://www.blog.teotigraphix.com You can find more by solving the problem

[flexcoders] Re: Wipe Effect

2008-09-19 Thread Tim Hoff
::UIComponent/set visible()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UICompo\ nent.as:1870] at Main/changeState()[K:\flex3\jbh\fdjbh\Main.mxml:173] at Main/__button1_mouseUp()[K:\flex3\jbh\fdjbh\Main.mxml:302] Tim Hoff wrote: * * *private* *function* effectEndHandler

[flexcoders] Re: layout datagrid headerText to vertically

2008-09-20 Thread Tim Hoff
Do you mean that you want the lable rotated? If so, create a custom headerRenderer and use the rotation property. For this to work, you'll have to use embedded fonts. -TH --- In flexcoders@yahoogroups.com, paulbohnenkamp [EMAIL PROTECTED] wrote: I would like for a datagrid column's

[flexcoders] Re: PopupButton Background Color

2008-09-23 Thread Tim Hoff
Hi Danny, Not sure if you figured this out yet, but this CSS works for me: PopUpButton { color: #ff; iconColor: #ff; rollOverColor: #cc; borderColor: #00; fillAlphas: 1, 1, 1, 1; fillColors: #00, #00, #00, #00; highlightAlphas:

[flexcoders] Re: Gradient that is vertical and horizontal!

2008-09-23 Thread Tim Hoff
You're probably better off just creating an image and using that as the skin for a container. Might be a bit tricky getting this to work with a programmatic skin. -TH --- In flexcoders@yahoogroups.com, tchredeemed [EMAIL PROTECTED] wrote: Heres the problem, I need to draw a gradient that

[flexcoders] Re: Gradient that is vertical and horizontal!

2008-09-23 Thread Tim Hoff
that! :) --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: You're probably better off just creating an image and using that as the skin for a container. Might be a bit tricky getting this to work with a programmatic skin. -TH --- In flexcoders@yahoogroups.com, tchredeemed

[flexcoders] Re: Gradient that is vertical and horizontal!

2008-09-23 Thread Tim Hoff
Btw, either way that you do it, you're probably going to have to layer a gradient rectangle over another gradient rectangle; with the proper opacity. The trick will be getting the colors to be what you want. -TH --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: Hey

[flexcoders] Re: scale9Grid: What am I missing?

2008-09-23 Thread Tim Hoff
Hi Amy, Using the example in that you linked, I noticed that only the top and left sides scaled as expected (quotes used). Could be a bug in the Image class. However, by using the image as a borderSkin and CSS, I was able to get it to scale properly. A possible workaround: CSS: .test {

[flexcoders] Re: Listen itemClick on MenuBar

2008-09-24 Thread Tim Hoff
Hi Andres, The MenuBar uses the click event for the top level. The children use itemClick. Usually, you have to listen for both. -TH --- In flexcoders@yahoogroups.com, Andres Serral [EMAIL PROTECTED] wrote: Hello. The MenuBar control doesn't dispatch the itemClick event on items that has

[flexcoders] Re: ToolTip (with Icon/Image, with grid/datagrid etc..)

2008-09-24 Thread Tim Hoff
Hi Manu, You can go with a third party control, use the popupManager to roll your own, or create a borderSkin for the toolTip. I've done the last one with success, but it wasn't easy. Here's a third party solution: http://www.afcomponents.com/components/tooltip_flex/

[flexcoders] Re: horizontal axis chart label size when chart has minimal height

2008-09-24 Thread Tim Hoff
Hey Maciek, Setting an explicit gutter value fixed a similar problem that had once with the labels on a chart. If I remember correctly, the label's font will become illegible when the labelSizeLimt is met, or the label dimensions force the font to be below the fontSize; because the label's

[flexcoders] Re: horizontal axis chart label size when chart has minimal height

2008-09-25 Thread Tim Hoff
Sorry Maciek, got a late start today. Amy's CSS is correct. You can also set the gutter dimensions on the ColumnChart tag in mxml. Try using a big number first; like 200. I don't think that 20 is going to be enough to solve the problem. -TH --- In flexcoders@yahoogroups.com, Amy [EMAIL

[flexcoders] Re: scroll to make a child all visible

2008-09-25 Thread Tim Hoff
Hi Jonathan, This should do it: myHBox.horizontalScrollPosition = myHBox.getChildAt(myChildIndex).x; -TH --- In flexcoders@yahoogroups.com, Jonathan Lee [EMAIL PROTECTED] wrote: Hello: I have a HBox which list different some thumbnails. And I know the index of the child that needs to be

[flexcoders] Re: Listen itemClick Event on MenuBar

2008-09-25 Thread Tim Hoff
Interesting how related questions seem to come up on the same day. The MenuBar items (top level) respond to the click event. The menu items (children) respond to the itemClick event: import mx.events.MenuEvent; import flash.events.MouseEvent; import mx.controls.Alert; private function

[flexcoders] Re: Listen itemClick Event on MenuBar

2008-09-25 Thread Tim Hoff
The MXML: mx:MenuBar id=myMenuBar labelField=@label click=clickHandler(event) itemClick=itemClickHandler(event) -TH --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: Interesting how related questions seem to come up on the same day. The MenuBar items (top

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

2008-09-25 Thread Tim Hoff
Are you setting explicit width values for the columns that you want to remain fixed? Thie following code should keep the first two columns at a fixed width and the third column should take up the rest of the variable width: mx:DataGrid width=100% mx:columns mx:DataGridColumn

[flexcoders] Re: horizontal axis chart label size when chart has minimal height

2008-09-25 Thread Tim Hoff
Ha. Want to thank Ely for passing on this solution to me. -TH --- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: Sorry Maciek, got a late start today. Amy's CSS is correct. You can also set the gutter dimensions

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

2008-09-25 Thread Tim Hoff
Sounds suspiciously like a callLater() solution. Have you tested whether the creationComplete event is actually firing, before you click tab2, for all of the child components? Sometimes not setting the data, in a timely fashion, can also make a view appear blank. -TH --- In

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

2008-09-26 Thread Tim Hoff
of 100. I haven't been able to find anything in the flex documentation to mention the possibility of a variable width column. --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: Are you setting explicit width values for the columns that you want to remain fixed? Thie following

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

2008-09-26 Thread Tim Hoff
Sorry, this line should be: mx:DataGrid width=100% 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 only thing that I

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

2008-09-26 Thread Tim Hoff
. --- 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 click tab2, for all of the child components? Sometimes not setting the data, in a timely fashion

[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 would be if you are manually setting the selectedIndex of the TabNavigator anywhere

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

2008-09-26 Thread Tim Hoff
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 does it switch back to the first tab? If it stays on the 2nd tab, are you still seeing the content

[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 Tracy Spratt

[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 would solve this. Just guessing, though. Tracy

[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 textarea, clear

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

2008-10-01 Thread Tim Hoff
it if it exists? Thanks Ram Tim Hoff wrote: Those are the escape characters for the carraige return Ram. -TH --- In flexcoders@yahoogroups.com, rviswanathan v_ramakrishnan@ wrote: Hi All I have a textarea where I enter some information and submit. These are the following

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

2008-10-01 Thread Tim Hoff
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, Tim Hoff TimHoff@ wrote: For validating, you'll want to look at the text

[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

[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

[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: Can

[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);

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

2008-10-02 Thread Tim Hoff
On Thu, Oct 2, 2008 at 4:47 PM, Josh McDonald [EMAIL PROTECTED] wrote: Aw jeeze, I'm getting tired of fixing that! What browser are you on? I thought it worked on ie 6... On Fri, Oct 3, 2008 at 4:17 AM, Tim Hoff [EMAIL PROTECTED] wrote: Hey FO Smartypants. Totally kidding Josh. Good

[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: 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: Custom header renderer and headerText

2008-10-06 Thread Tim Hoff
Mark, Do something like this for the HeaderRenderer: ?xml version=1.0 encoding=utf-8? mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; horizontalAlign=center mx:Label text={ this.data.headerText } / /mx:VBox -TH --- In flexcoders@yahoogroups.com, markgoldin_2000 [EMAIL PROTECTED] wrote:

[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 adding this Greg: override public function set data( value

[flexcoders] Re: datagrid itemRenderer help

2008-10-06 Thread Tim Hoff
? The collection shows in the dataGrid just fine, it's the custom itemRenderer that isn't working? Is there something else I can provide to check this? Thanks On Mon, Oct 6, 2008 at 4:20 PM, Tim Hoff [EMAIL PROTECTED] wrote: Correct. Perhaps the collection isn't bound to the dataProvider

[flexcoders] Re: datagrid itemRenderer help

2008-10-06 Thread Tim Hoff
! Thanks! On Mon, Oct 6, 2008 at 4:39 PM, Tim Hoff [EMAIL PROTECTED] wrote: data is probably null the first time that updateDisplayList is called. You can either put your conditional logic in the commitProperties() or set data() methods. Override public function set data( value : Object

[flexcoders] Re: Custom header renderer and headerText

2008-10-06 Thread Tim Hoff
@yahoogroups.com, Tim Hoff TimHoff@ wrote: Mark, Do something like this for the HeaderRenderer: ?xml version=1.0 encoding=utf-8? mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; horizontalAlign=center mx:Label text={ this.data.headerText } / /mx:VBox -TH

[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 =

[flexcoders] Re: handling data within a datagrid

2008-10-07 Thread Tim Hoff
().SelectedBudgetVO.amount.toString()} but when I changed the changeHandler to just MyModel.getInstance().SelectedBudgetVO = event.target.selectedItem as BudgetVO; They stopped populating On Tue, Oct 7, 2008 at 10:17 AM, Tim Hoff [EMAIL PROTECTED] wrote: I have no idea why it wont work

[flexcoders] Re: handling data within a datagrid

2008-10-07 Thread Tim Hoff
! On Tue, Oct 7, 2008 at 10:43 AM, Tim Hoff [EMAIL PROTECTED] wrote: Well, it's better practice to update the model with an event/command anyway. No idea why the selectedItem isn't working through the event. Another approach would be: MyModel.getInstance().SelectedBudgetVO

[flexcoders] Re: handling data within a datagrid

2008-10-07 Thread Tim Hoff
(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 AM, Tim Hoff [EMAIL PROTECTED] wrote: Hey, no worries Greg. Just passing it on. Once

[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

[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 working

[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: 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: 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: Variable scope

2008-10-10 Thread Tim Hoff
http://www.amazon.com/Essential-ActionScript-3-0/dp/0596526946 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: Variable scope

2008-10-10 Thread Tim Hoff
] 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 also search Google for oop AS3 variable scope Yes, it should be public; otherwise

[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: mx:PopUpButton id=myPopupButton creationComplete=initMyPopupButtonMenu() click={ myPopupButton.open() }/ The change event is the one that you use when a menu item is selected:

[flexcoders] Re: PopUpMenuButton.itemClick event

2008-10-13 Thread Tim Hoff
Dispatched when a user selects an item from the pop-up menu; this is exactly what I want--or rather would be, if it did what is documented), but this will do. Thanks, -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Tim Hoff [EMAIL PROTECTED] Reply

[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 Canvas and

[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: myComponent effectEnd=onEffectEnd()/ -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

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

2008-10-17 Thread Tim Hoff
Just preference, but I'd rather see: mx:Canvas id=outer mx:Canvas id=inner top=10 bottom=10 left=10 right=10 // my content /mx:Canvas /mx:Canvas -TH --- In flexcoders@yahoogroups.com, Paul Andrews [EMAIL PROTECTED] wrote: - Original Message - From: Paul Andrews

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

2008-10-17 Thread Tim Hoff
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 preference, but I'd rather see: mx:Canvas id=outer mx:Canvas id=inner top=10

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

2008-10-17 Thread Tim Hoff
encourage using things that deal with styles since the framework is going to tip that way soon anyway. This is in reference to using constraints. I see loading style sheets as modules sooner than later. :) Mike On Fri, Oct 17, 2008 at 3:19 PM, Tim Hoff [EMAIL PROTECTED] wrote: I hear ya

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

2008-10-17 Thread Tim Hoff
; I wonder how to do this with actionscript. Thanks mk --- In flexcoders@yahoogroups.com, Paul Andrews paul@ 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: 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] 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 PROTECTED] wrote: Hi Mark

[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] wrote: Sorry for the typo

[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: 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

[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, which is generic for list base, have

[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 mx:XMLListCollection id=cuePointXMLList

[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: 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 an app

[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

[flexcoders] Re: Help: filterFunction and Dates

2008-10-23 Thread Tim Hoff
] 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); } ?? -- Blair From: Tim Hoff [EMAIL

[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; } mx:DateField id=wholeDate formatString=-MM-DD/ -TH --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: So, you're converting

[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,

[flexcoders] Re: Help: filterFunction and Dates

2008-10-24 Thread Tim Hoff
. -- 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: filterFunction and Dates OK, so what you're saying is that item.Date_Collected is a string (2008-10-01

[flexcoders] Re: Help: filterFunction and Dates

2008-10-24 Thread Tim Hoff
on this? -- Blair From: Tim Hoff [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com Date: Fri, 24 Oct 2008 17:58:19 - To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Help: filterFunction and Dates Ideally, in the result function, the dto would be cast to an associated AS class

[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

[flexcoders] Re: Help: filterFunction and Dates

2008-10-26 Thread Tim Hoff
match the string in the db, it won¹t work, correct? Any hints on this? -- Blair From: Tim Hoff [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com Date: Fri, 24 Oct 2008 17:58:19 - To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Help: filterFunction and Dates

[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 http://127.0.0.1:52378/help/topic/com.adobe.flexbuilder.help/langref/fl\ ash/utils/Timer.html#Timer() (delay:Number http://127.0.0.1:52378/help/topic/com.adobe.flexbuilder.help/langref/Nu\ mber.html , repeatCount:int

[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 the Timer wth a delay: Timer http://127.0.0.1:52378

[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 really good

[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 is inside

[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 sure

[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

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

2008-11-01 Thread Tim Hoff
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 you kow the index of the canvas child that you want to scroll to, something like this will work

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

2008-11-01 Thread Tim Hoff
@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; -TH --- In flexcoders@yahoogroups.com, Aaron Miller amiller@ wrote

<    5   6   7   8   9   10   11   12   13   14   >