[flexcoders] Re: Method variable scoping problem with Flex compiler

2008-08-15 Thread Tim Hoff
I can hear Gordon now; because AS3 adheres to the ECMA standard. Er, I mean, did... :-) -TH --- In flexcoders@yahoogroups.com, toofah_gm [EMAIL PROTECTED] wrote: It seems to me and my co-workers that the Flex compiler is broken when it comes to local variable scoping within methods. For

[flexcoders] Re: Method variable scoping problem with Flex compiler

2008-08-15 Thread Tim Hoff
LMAO --- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote: Not sometimes. Local vars are always hoisted from the block where they are declared to the scope of the entire function. As Ecmascript requires! : ) Gordon Smith Adobe Flex SDK Team

[flexcoders] Re: filtering a flex datagrid using a slider with two thumbs

2008-08-14 Thread Tim Hoff
Good deal. A lot of refreshing going on there though. :-) -TH --- In flexcoders@yahoogroups.com, stinasius [EMAIL PROTECTED] wrote: hi Tim, thanks your solution worked well. for anyone who is interested in filtering a datagrid with multiple criteria here is how i pieced up mine through

[flexcoders] Re: The end of ActionScript 3 as an EcmaScript 4 implementation

2008-08-14 Thread Tim Hoff
Strong and balanced. Very well stated position. -TH --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Hey folks, our public response is at http://blogs.adobe.com/open/2008/08/blog_entry_dated_81408_715_pm.html

[flexcoders] Re: Shutoff or de-init BrowserManager (IE7 issues)

2008-08-13 Thread Tim Hoff
If you want to turn it off completely, there is a compiler setting. Go to project -- properties -- Flex Compiler. Then uncheck the Enable integration with browser navigation option. This should disable the forward/back browser buttons from interacting with the swf. If you only want to turn it

[flexcoders] Re: datagridcolumn

2008-08-13 Thread Tim Hoff
-TH --- In flexcoders@yahoogroups.com, Michelle Davis [EMAIL PROTECTED] wrote: Hi Tim, Can I ask you another stupid question? I learned labelFunction from the web site, I don't understand the second parameter column:DataGridColumn. What is that for? Thanks, Michelle. - Original

[flexcoders] Re: datagridcolumn

2008-08-13 Thread Tim Hoff
Yup. Also, I'm not familiar with getNumberAt(). The collection API uses getItemAt(), or you can use bracket notation. -TH --- In flexcoders@yahoogroups.com, Michelle Davis [EMAIL PROTECTED] wrote: Hi Tim, Now I know why when I tried labelFunction and getNumberAt.  It didn't work

[flexcoders] Re: Datagrid editedItem

2008-08-13 Thread Tim Hoff
You could take a snapshot of the cell's listData on the itemEditBeginning event. Then, on the itemEditEnd event, compare the cell's listData to the snapshot; to determine if you really need to send the data. -TH --- In flexcoders@yahoogroups.com, rmarples [EMAIL PROTECTED] wrote: I'm also

[flexcoders] Re: Datagrid editedItem

2008-08-13 Thread Tim Hoff
fire off a command to go save the current record to the server and have that command just refer to my model's collection to get the new value. But as I say, the value hasn't been written back to the collection yet. --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: You could take

[flexcoders] Re: Datagrid editedItem

2008-08-13 Thread Tim Hoff
:[EMAIL PROTECTED] On Behalf Of Tim Hoff Sent: Wednesday, August 13, 2008 11:06 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Datagrid editedItem Ok, makes sense. You could manually update the collection inside the itemEditor itself: private function onChange():void

[flexcoders] Re: Globally setting useHandCursor true for Flex components, specifically button

2008-08-12 Thread Tim Hoff
Yeah, unfortunately they aren't styles. As Alex says, if you want these global, you'll have to subclass button and set buttonMode and useHandCursor to true. Or, just set these properties manually on all controls. It would be nice if these properties could be set globally for buttons (and all

[flexcoders] Re: Datagrid selected item highlight behavior changes based on dataprovider object

2008-08-12 Thread Tim Hoff
Hmm, strongly typed objects or not, the DataGrid should behave the same; as long as you're not using selectable=false. Are you sure it's not something else? Are you doing something on the change event? -TH --- In flexcoders@yahoogroups.com, Andrew Longley [EMAIL PROTECTED] wrote: I

[flexcoders] Re: datagridcolumn

2008-08-12 Thread Tim Hoff
Hi Michelle, You're on the right track with the labelFunction. Give this a try: private function getLabelUnit1(item:Object, column:DataGridColumn) : Number { return item.CaServiceIds.getItemAt(0); } private function getLabelUnit2(item:Object, column:DataGridColumn) : Number {

[flexcoders] Re: filtering a flex datagrid using a slider with two thumbs

2008-08-11 Thread Tim Hoff
Ok, enough f%#king around, please try to isolate the slider filter function and behavior first. Below is the basic structure of what you need to do with the slider. Please give it a try and when you get this working, move on to combining it with the comboBoxes. -TH private var sliderFromValue

[flexcoders] Re: filtering a flex datagrid using a slider with two thumbs

2008-08-11 Thread Tim Hoff
Ok, enough messing around, please try to isolate the slider filter function and behavior first; before trying to add it to the comboBox filtes. Below is a basic sturcture of what you need to do. Please give it a try and when you get this working, move on to combining it with the comboBoxes.

[flexcoders] Re: Itemrender resize state not working

2008-08-10 Thread Tim Hoff
Try setting variableRowHeight=true, on the TileList. -TH --- In flexcoders@yahoogroups.com, Rodrigo Reyes C. [EMAIL PROTECTED] wrote: Hi all. Does anyone knows why this itemRender resize event is not working? The backgroundColor does work. ?xml version=1.0 encoding=utf-8? mx:VBox

[flexcoders] Re: filtering a flex datagrid using a slider with two thumbs

2008-08-10 Thread Tim Hoff
Still think that you need to take out values=[0,300]. This will lock the sliders to either of those values; with nothing in between. -TH --- In flexcoders@yahoogroups.com, stinasius [EMAIL PROTECTED] wrote: hi guy i appreciate that you are really trying to help. but so far i still have

[flexcoders] Re: filtering a flex datagrid using a slider with two thumbs

2008-08-08 Thread Tim Hoff
No worries, It looks like your filter function already uses the comboBox's selectedLabel to compare. You can initiate the filter like this: private function filterDataGrid():void { myArrayCollection.filterFunction = myFilterFunction; myArrayCollection.refresh(); } mx:ComboBox

[flexcoders] Re: Using Create App from DB - Saving decimal number 123.123??

2008-08-08 Thread Tim Hoff
and int of the php. Sorry, did you say to set it to Œlong¹? (or is that log?) I¹ll look up the options within php, but I¹m not familiar with this one. Cheers! Thanks for the assistance. -- Blair From: Tim Hoff [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com Date: Thu, 07

[flexcoders] Re: Using Create App from DB - Saving decimal number 123.123??

2008-08-08 Thread Tim Hoff
and storing it in the db, so I don¹t need to perform any calculations along the way. Cheers, -- Blair From: Tim Hoff [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com Date: Fri, 08 Aug 2008 15:37:49 - To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Using Create

[flexcoders] Re: Using Create App from DB - Saving decimal number 123.123??

2008-08-07 Thread Tim Hoff
No, you're stuck using just int for the rest of your programming existence. Ha, just kidding. :) Just change it to a long on the php side. And change it to a Number on the flex side. -TH --- In flexcoders@yahoogroups.com, cox.blair [EMAIL PROTECTED] wrote: I'm using the Create Application

[flexcoders] Re: Null reference after creationComplete()

2008-08-07 Thread Tim Hoff
Yes, but your dataGrid is in a child of a viewStack. It won't be instantiated until yu change to that selectedIndex. You can use the viewStack's creationPolicy=all. But, that's not usually best practice. Better to just use binding. Instead of: reportProjects.dataProvider = rptProjects; do

[flexcoders] Re: Null reference after creationComplete()

2008-08-07 Thread Tim Hoff
cool --- In flexcoders@yahoogroups.com, Steve Brownlee [EMAIL PROTECTED] wrote: Makes perfect sense. Thanks, Tim. --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: Yes, but your dataGrid is in a child of a viewStack. It won't be instantiated until yu change

[flexcoders] Re: filtering a flex datagrid using a slider with two thumbs

2008-08-06 Thread Tim Hoff
Yeah shoot, my bad. Take the values property out of the tag. Should have said set the min to 0 and the max to 3,000,000 (like you have it. The values will lock the thumbs to those two positions (values) only. -TH --- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote:

[flexcoders] Re: filtering a flex datagrid using a slider with two thumbs

2008-08-06 Thread Tim Hoff
; } priceSlider.values[300] doesn't exist. Then as Alex suggests, walk through the code with the debugger, or trace. -TH --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: Yeah shoot, my bad. Take the values property out of the tag. Should have said set the min to 0

RE: [flexcoders] CRC

2008-08-06 Thread Tim Rowe
with this same kind of checking? :) Tim Rowe Software Engineer carsales.com Ltd From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Scott Sent: Thursday, 7 August 2008 3:50 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] CRC

RE: [flexcoders] Flex with proxy server

2008-08-06 Thread Tim Rowe
Oh, this will be fun :/ Tried establishing your connection to the proxy server yet, not the destination endpoint? Tim Rowe Software Engineer carsales.com Ltd From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of walberleal Sent: Wednesday, 6

[flexcoders] Re: filtering a flex datagrid using a slider with two thumbs

2008-08-06 Thread Tim Hoff
=#ff labels=[$0k,$300M] liveDragging=true width=182 change=updateFilter()/ /mx:Application On Thu, Aug 7, 2008 at 2:39 AM, Tim Hoff [EMAIL PROTECTED] wrote: And go back to your original filterFunction: if ( (city_cb.selectedLabel == All || item.city == city_cb.selectedLabel

[flexcoders] Re: filtering a flex datagrid using a slider with two thumbs

2008-08-06 Thread Tim Hoff
AM, Josh McDonald [EMAIL PROTECTED] wrote: Coz it's a quick and nasty (but working) example, and I have zero knowledge about the finer details of the slider controls :) On Thu, Aug 7, 2008 at 9:28 AM, Tim Hoff [EMAIL PROTECTED] wrote: Hey Josh, What's up with: return

[flexcoders] Re: filtering a flex datagrid using a slider with two thumbs

2008-08-05 Thread Tim Hoff
Hi, Your code for the filter function looks fine. Must be a data or slider value issue. Make sure that you set the slider's values array to two values that would include all of the prices in the dataProvider. It's possible that the range of values for the slider is too low or high; thus

[flexcoders] Re: filtering a flex datagrid using a slider with two thumbs

2008-08-05 Thread Tim Hoff
mx:HSlider values=[0,30]/ --- In flexcoders@yahoogroups.com, stinasius [EMAIL PROTECTED] wrote: hi my price ranges are between 0 and 3,000,000 so should my max value be 3,000,000 or 1? thanks

[flexcoders] Re: how to swap two rows in a datagrid

2008-08-05 Thread Tim Hoff
Manipulate the dataGrid's dataProvider. Chances are that it is an ArrayCollection, so you can swap items by using getItemAt(), setItemAt and removeItemAt(). When you change the dataProvider, the dataGrid will automatically reflect the changes. -TH --- In flexcoders@yahoogroups.com, hworke

[flexcoders] Re: How to show the Hand Cursor on the Close Button?

2008-08-05 Thread Tim Hoff
Here's a way; without extending: var myTitleWindow : TitleWindow = new TitleWindow(); myTitleWindow.showCloseButton = true; PopUpManager.addPopUp( myTitleWindow, myCanvas, false ); PopUpManager.centerPopUp( myTitleWindow ); myTitleWindow.mx_internal::closeButton.buttonMode = true;

[flexcoders] Re: snapshots of TabNavigator tabs

2008-08-03 Thread Tim Hoff
Hi Danny, Not sure about the snapshots; without seeing some code. But, the children are disappearing because you're creating references (not copies) to the original display objects and then reparenting them with addChild(). You might try this instead; to make a copy: cloneBarChart =

[flexcoders] Re: Chart: pass info about series1 to series2 lineSegmentRenderer callback?

2008-07-31 Thread Tim Hoff
Unfortunately, the data property in a chart itemRenderer, only contains the xField and the yField; because it is a ChartItem. However, assuming that both series relate to each other by a common xValue, you could use that to iterate over the first series dataProvider to get the related item;

[flexcoders] Re: Adding parameters to a control's definition

2008-07-31 Thread Tim Hoff
Check out the Inspectable metadata tag. -TH --- In flexcoders@yahoogroups.com, whatabrain [EMAIL PROTECTED] wrote: If I extend a control, how do I allow new parameters in the instance's mxml definition? For example, how would I make this possible: my::MyCustomDataGrid

[flexcoders] Re: adding mouse events to annotation items in a chart

2008-07-30 Thread Tim Hoff
Just add an event listener to the label; before you push it to the array: var annotations:Array = new Array(); var lbl:Label = new Label(); lbl.text = annotation; lbl.addEventListener(MouseEvent.CLICK,onAnnotationClick); annotations.push(lbl); myChart.annotationElements = annotations; private

[flexcoders] Re: adding mouse events to annotation items in a chart

2008-07-30 Thread Tim Hoff
if it is clicking on something specific within the chart, or find another way to listen on an annotation item. --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: Just add an event listener to the label; before you push it to the array: var annotations:Array = new Array(); var

[flexcoders] Re: adding mouse events to annotation items in a chart

2008-07-30 Thread Tim Hoff
Sorry, meant to say the chart series's mousEnabled = false/true; -TH --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: hmm, worked for me. But, I wasn't using the chart's itemClick event. In theory, you could listen for mouse over on the label and set the chart's mouse

[flexcoders] Re: flex 2/3 charting questions

2008-07-29 Thread Tim Hoff
As a related note, if you're automating a flex3 build (mxmlc) with charts, using ant, you may want to to include the following files into the project. Otherwise, there will be compile errors; if the machine doesn't have the pro version installed. /libs/datavisualization.swc (add library path)

[flexcoders] Re: Free Flex Gauge Component

2008-07-29 Thread Tim Hoff
Very cool Tom, thanks. -TH --- In flexcoders@yahoogroups.com, twgonzalez [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, twgonzalez tgonzalez@ wrote: Update v.04 released New features: Alert Levels Log Scale BounceEffect on/off More accurate tick marks You can see it here

[flexcoders] Re: how to get the y position of item in list

2008-07-29 Thread Tim Hoff
Here's one way. If you're scrolling to the index and setting the currentItem, you an use this code with the change event: private function onItemClick(event:ListEvent):void { var pt:Point = new Point(event.itemRenderer.x, event.itemRenderer.y); pt =

[flexcoders] Re: how to get the y position of item in list

2008-07-29 Thread Tim Hoff
to click on the item. I'm not clicking, I just need to scroll then grab the position of the item. Thanks for the try, but this is not a viable solution. --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: Here's one way. If you're scrolling to the index and setting

[flexcoders] Re: Flex 2.01 date problem

2008-07-29 Thread Tim Hoff
Yes, but what Matt and Gordon are saying is if you're going to create a date like this (adjust, instead of construct all at once), you may run into a leap year issue. var dtTest:Date = new Date - dtTest.toDateString()=Tue Jul 29 2008 dtTest.fullYear = 1987 - dtTest.toDateString()=Wed Jul 29 1987

[flexcoders] Re: Flex 2.01 date problem

2008-07-29 Thread Tim Hoff
This would also happen if today was the 31st and you changed to a month that had 30 or 28 days. -TH --- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote: Your code leads to the same invalid value. When you don't pass any arguments to the Date constructor, you get a

[flexcoders] Re: Question about Charts

2008-07-29 Thread Tim Hoff
Hi, Since those are flash charts, you could probably use the swfLoader control in flex. Andy Trice has a gantt chart solution here http://www.cynergysystems.com/blogs/page/andrewtrice?entry=gantt_charts\ _in_flex_datagrids . -TH --- In flexcoders@yahoogroups.com, Cadu de Castro Alves [EMAIL

[flexcoders] Re: skinning and validation

2008-07-29 Thread Tim Hoff
Hi Toby, For drawing the error border, flex uses the Focus Manager. If you use a focusSkin, it lloks like it over-rides the focus rectangle drawn with the errorColor. Try taking that skin out, to see if it comes back. Don't know about the comboBox. Have you verified that the validation

[flexcoders] Re: Flex overlay over HTML

2008-07-27 Thread Tim Hoff
closer to helping you, Best Wishes. -TH --- In flexcoders@yahoogroups.com, Easow Jacob [EMAIL PROTECTED] wrote: Tim, It is not about rendering of HTML page. Here is my exact issue.. I have a PopupButton..When i click the popUpButton a TitleWindow is appearing.But here is my problem.I embeded

[flexcoders] Re: Centering Bar Chart labels vertically

2008-07-27 Thread Tim Hoff
. Cheers, -TH --- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: Hi Amy, I guess that everyone has their own perspective. Like you, I used to complain that the flex styles weren't as comprehensive as the .net

[flexcoders] Re: Centering Bar Chart labels vertically

2008-07-26 Thread Tim Hoff
); } } } --- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: Ok, so we're talking about a vertical axis. . * For a vertical axis, by default the labels are vertically aligned to the tick marks (center). For these, you can adjust

[flexcoders] Re: Flex overlay over HTML

2008-07-26 Thread Tim Hoff
Hi Easow, You could just use an IFrame. -TH --- In flexcoders@yahoogroups.com, Easow Jacob [EMAIL PROTECTED] wrote: Hi, I have a *HTML* page with a small *flex* app embedded into it. When you click on the *flex* app, I want an *overlay* to come *over* page showing my app. Just

[flexcoders] Re: Centering Bar Chart labels vertically

2008-07-25 Thread Tim Hoff
Are you talking about the axis renderer labels for a categoryField? If so, check-out labelGap? -TH --- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, Amy amyblankenship@ wrote: Hi, all; Is there any way to center a bar chart's labels

[flexcoders] Re: Centering Bar Chart labels vertically

2008-07-25 Thread Tim Hoff
--- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: Are you talking about the axis renderer labels for a categoryField? If so, check-out labelGap? No, I am talking about

[flexcoders] Re: Pick right color for the chart

2008-07-25 Thread Tim Hoff
Hi, Here's a good tool for selecting/creating color schemes: http://kuler.adobe.com/ http://kuler.adobe.com/ And, this is a good place for themes: http://www.scalenine.com/ http://www.scalenine.com/ -TH --- In flexcoders@yahoogroups.com, hworke [EMAIL PROTECTED] wrote: Hello all, I

RE: [flexcoders] Can SQLite work in non-AIR envirnoment ?

2008-07-23 Thread Tim Rowe
be something more like MySQL. Obviously it depends on the environment and how much control of this you have, amongst other design decisions. Without know what you're actually talking to and what your backend is, it's hard to really give advise as to what to use or how to go about it. --Tim Rowe

[flexcoders] Re: Bake XML File into ActionScript

2008-07-20 Thread Tim Hoff
Hi, Here's a way that you can embed an external xml file into your app: [Embed('/data/myStubData.xml')] private var myStubDataXML : Class; private function onInitialize() : void { var myXML : XML = new XML( myStubDataXML.data ); } -TH --- In flexcoders@yahoogroups.com, edlueze [EMAIL

[flexcoders] Re: Drawing on Canvas using Graphics API with backgroundColor

2008-07-19 Thread Tim Hoff
Hi Vijay, If you want to draw a line on top of the background of a canvas, you can draw it in a BorderSkin. Or, something like this works, usually by overriding createChildren(): var myComponent:UIComponent = new UIComponent(); var myShape:Shape = new Shape(); myShape.graphics.lineStyle(2);

RE: [flexcoders] Tristate checkboxes in Flex 3

2008-07-16 Thread Tim Rowe
be preferred. --Tim Rowe From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Wednesday, 16 July 2008 3:55 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Tristate checkboxes in Flex 3 Is the 3rd state disabled/enabled

[flexcoders] Re: Removing ArrayCollection item from within ItemRenderer

2008-07-16 Thread Tim Hoff
Hi Barry, Sorry to laugh a little, but parent.removeChild(this), is actually removing the itemRenderer display object; and leaving a hole in the TileList. There are a few ways to remove list items; from within an itemRenderer. But, most of them involve referencing the list's dataProvider

[flexcoders] Re: Extra space appearing between my mx:Text elements

2008-07-15 Thread Tim Hoff
mx:HBox horizontalGap=0 mx:Text condenseWhite=true text=hi/ mx:Text condenseWhite=true text=there/ /mx:HBox -TH --- In flexcoders@yahoogroups.com, whatabrain [EMAIL PROTECTED] wrote: I create the following objects inside an mx:TitleWindow: mx:HBox mx:Text condenseWhite=true

[flexcoders] Tristate checkboxes in Flex 3

2008-07-15 Thread Tim Rowe
correct, and if not, is there any missing information in the language reference regarding any tristate options? If the control is still not available, has anyone else developed one or come across one that's available? Tim Rowe Software Engineer carsales.com Ltd Level 1, 109 Burwood Road Locked Bag

[flexcoders] Re: Comparing numbers with a tolerance

2008-07-14 Thread Tim Hoff
Hi fumeng, You could work this out using Math.round(). Although this method rounds to the nearest integer (doesn't use a precision parameter), with a little work this could help you compare apples to apples. -TH --- In flexcoders@yahoogroups.com, fumeng5 [EMAIL PROTECTED] wrote: Hi, I'm

[flexcoders] Re: Comparing numbers with a tolerance

2008-07-14 Thread Tim Hoff
( numberFormatter.format( myOldNum ) ); This will give you the old number formatted to 2 decimal places (or however many you need). From here you could use your tolerance to compare the 2 numbers. --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: Hi fumeng, You could work this out using

RE: [flexcoders] When not to use weak references?

2008-07-14 Thread Tim Rowe
and there. --Tim Rowe From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Boon Chew Sent: Tuesday, 15 July 2008 2:08 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] When not to use weak references? Hi all, I have read posts

RE: [flexcoders] When not to use weak references?

2008-07-14 Thread Tim Rowe
to correct me on anything here. Personally I'd be happy to just do away with garbage collection altogether - that would 'solve' the problem ;) I must admit I'm finding a lot of anti-patterns and bad implementations/ideas in the Flex world so far. --Tim Rowe

[flexcoders] Re: States

2008-07-11 Thread Tim Hoff
Yes Scott, any Flex component can have multiple states. Very cool, if you ask me; especially because of the effects and transitions that can be applied to state changes. Just search the help docs for view states and/or viewStack and you'll get a ton of info. -TH --- In

[flexcoders] Re: Trick button into rendering mouseover/mouseout states

2008-07-11 Thread Tim Hoff
%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ups.com mailto:flexcoders%40yahoogroups.com [mailto:[EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Tim Hoff Sent: Monday, July 07

[flexcoders] Re: DataGrid

2008-07-09 Thread Tim Hoff
on a chart; but a dataGrid? -TH --- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: Damn Niraj, this is an old thread. :-) Rob said the right things. To do what you want, will take more than just over-riding

[flexcoders] Re: Container for a from

2008-07-09 Thread Tim Hoff
Search for Using constraints to control component layout in the help docs. -TH --- In flexcoders@yahoogroups.com, markgoldin_2000 [EMAIL PROTECTED] wrote: I am trying to come up with a container to hold a form in. I want to use as much space of the container as possible. So, I dont want to

RE: [flexcoders] Your Opinion: Best way to Load Data to your components?

2008-07-08 Thread Tim Rowe
. --Tim Rowe From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh McDonald Sent: Tuesday, 8 July 2008 3:16 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Your Opinion: Best way to Load Data to your components? It really depends

[flexcoders] Re: DataGrid

2008-07-08 Thread Tim Hoff
Damn Niraj, this is an old thread. :-) Rob said the right things. To do what you want, will take more than just over-riding a method or two. This is more in the area of flexcomponents http://tech.groups.yahoo.com/group/flexcomponents/ . Not for the faint of heart, but if you really want to

[flexcoders] Re: Caringorm Event

2008-07-07 Thread Tim Hoff
Too funny. --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: I knew you were going to say that :-) What, you've foresaken ESP? :)) -TH --- In flexcoders@yahoogroups.com, Tom Chiverton tom.chiverton@ wrote: On Wednesday 02 Jul 2008, parjan@ wrote: hi

[flexcoders] Re: Item renderers cause processor to max out

2008-07-07 Thread Tim Hoff
Hi Tom, What are you doing with this event in set data? dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE)); It's a loop. -TH --- In flexcoders@yahoogroups.com, Tom McNeer [EMAIL PROTECTED] wrote: Hi, I began asking about this problem last week and Alex Harui tried to help me. But I did

[flexcoders] Re: Item renderers cause processor to max out

2008-07-07 Thread Tim Hoff
Ok, that makes sense. One other thing that might be contributing is: updateComplete=setGridHeight(event) You might want to try: valueCommit=setGridHeight(event) instead. Good luck Tom, -TH --- In flexcoders@yahoogroups.com, Tom McNeer [EMAIL PROTECTED] wrote: Hi Tim, Thanks

[flexcoders] Re: Trick button into rendering mouseover/mouseout states

2008-07-07 Thread Tim Hoff
Doesn't work if you want to keep the button icons visible. Wouldn't this also affect embedded fonts? -TH --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Skin the way you normally do, but set the alpha=0 From:

[flexcoders] Re: Trick button into rendering mouseover/mouseout states

2008-07-07 Thread Tim Hoff
what he wants or what you tried. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tim Hoff Sent: Monday, July 07, 2008 10:02 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Trick button into rendering mouseover/mouseout

[flexcoders] Re: Trick button into rendering mouseover/mouseout states

2008-07-06 Thread Tim Hoff
Using a transparent image as the skin is cleanest and easiest. The skins array in Button.as is private, so you'd have to subclass; in order to get to those display objects. You can partially trick the button with myButton.mx_internal::currentSkin.alpha = 0, but that's a real hack; not to

RE: [flexcoders] blazeds-turnkey doen't work?

2008-07-04 Thread Tim Rowe
This shouldn't be a problem if you encapsulate the path inside quotes. --Tim Rowe From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of shaun Sent: Friday, 4 July 2008 4:44 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] blazeds

[flexcoders] Re: Setting Focus to the First control

2008-07-04 Thread Tim Hoff
This has been a long-standing problem with FF. No workaround currently exists. -TH --- In flexcoders@yahoogroups.com, akila_ksri [EMAIL PROTECTED] wrote: Hi, I am using the following line of code in the html page to set focus to the first control (TextInput) without any mouse-clicks/tab

[flexcoders] Re: How to access properties of symbols in loaded SWF?

2008-07-04 Thread Tim Hoff
Hi Sherm, Since you're using Flash CS3, I'd recommend that you use the Flex Component Kit for Flash CS3. This will allow you to export a Flash movie as a SWC, and interact with it as if it was a Flex Component. Here's a couple of links that might be helpful:

[flexcoders] Re: AdvancedDataGrid scrolling

2008-07-03 Thread Tim Hoff
Hi, The only way to get smooth scrolling, with any of the list based components, is to place them in a container (like canvas) and set the list's height explicitly; to render all of the items (valueCommit=myList.height = myList.measureHeightOfItems). This will give you a performance hit, but

[flexcoders] Re: Caringorm Event

2008-07-03 Thread Tim Hoff
What, you've foresaken ESP? :)) -TH --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Wednesday 02 Jul 2008, [EMAIL PROTECTED] wrote: hi every i facing problem while re-dispatching Caringorm event. i have ... problem here is code for my event class.. You

[flexcoders] Re: Caringorm Event

2008-07-02 Thread Tim Hoff
Hi, Looks like serviceValidator should be srvValdErr; in your clone method: override public function clone():Event { return new VerifyModelNameEvent( srvValdErr ); } -TH --- In flexcoders@yahoogroups.com, [EMAIL PROTECTED] wrote: hi every i facing problem while re-dispatching Caringorm

[flexcoders] Re: List displaying wrong information

2008-07-02 Thread Tim Hoff
Interested to see what your itemRenderer looks like. Are you over-riding any methods? -TH --- In flexcoders@yahoogroups.com, nathanpdaniel [EMAIL PROTECTED] wrote: BTW - If I don't use an itemRenderer, it works fine and displays how it should. --- In flexcoders@yahoogroups.com,

[flexcoders] Re: List displaying wrong information - RESOLVED

2008-07-02 Thread Tim Hoff
@ wrote: Yeah, that's as far as I can get without seeing any code On Wed, Jul 2, 2008 at 12:01 PM, Tim Hoff TimHoff@ wrote: Interested to see what your itemRenderer looks like. Are you over-riding any methods? -TH --- In flexcoders@yahoogroups.com mailto:flexcoders

RE: [flexcoders] THIS IS ABSOLUTELY NUTS

2008-07-02 Thread Tim Rowe
most common compilers, Flex does incremental building and linking. --Tim Rowe Software Engineer carsales.com.au From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dan Pride Sent: Wednesday, 2 July 2008 4:06 AM To: flexcoders@yahoogroups.com

RE: [flexcoders]

2008-07-02 Thread Tim Rowe
I could be mistaken, but it was my understanding that the Flex Builder plug-in was not yet compatible with Ganymede (3.4), only Europa (3.3). --Tim Rowe Software Engineer carsales.com.au From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf

[flexcoders] Re: Cancelling a checkbox.selected

2008-07-01 Thread Tim Hoff
Hi, to display it again when the application is relaunched This implies that you are saving and loading the pref settings data. If the user clicks the cancel button, you could reload the settings data that is already saved. For CRUD, it sometimes makes sense to edit a copy of the persisted

[flexcoders] ToolTip TextField TextColor

2008-07-01 Thread Tim Hoff
Hi all, I've run into a problem with globally skinning ToolTips. I am to skin the border and background by using a programmatic borderSkin. However, the textField in ToolTip.as is protected and I'm not sure how to change it's style globally (tried TextField CSS). I'm just looking for a way

[flexcoders] Re: legend setstyle not working properly

2008-07-01 Thread Tim Hoff
Looks like direction is a property; not a style. Try genericLegend.direction = horizontal; -TH --- In flexcoders@yahoogroups.com, netdeep [EMAIL PROTECTED] wrote: I am trying to change the formatting for a Legend in Actionscript: genericLegend.setStyle(direction, horizontal); But this

[flexcoders] Re: Cancelling a checkbox.selected

2008-07-01 Thread Tim Hoff
Depends on what you're using in the client. For ArrayCollections you can use mx.utils.ObjectUtil to make a deep copy; instead of a reference. myCopyAC = ObjectUtil.copy(mySourceAC) ; -TH --- In flexcoders@yahoogroups.com, quantum_ohm [EMAIL PROTECTED] wrote: Hi Tim, what an idea ! so

[flexcoders] Re: ToolTip TextField TextColor

2008-07-01 Thread Tim Hoff
@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tim Hoff Sent: Tuesday, July 01, 2008 2:08 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] ToolTip TextField TextColor Hi all, I've run into a problem with globally skinning ToolTips. I am to skin the border and background

[flexcoders] Re: ToolTip TextField TextColor

2008-07-01 Thread Tim Hoff
with gradiant fills, the border, and any filters that might be desired. Thanks again., -TH --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: Yep, color changed the text color, when I tried it in a new project. It's not working in my other application though. So, I'm thinking

[flexcoders] Re: currentstate in custom component

2008-06-27 Thread Tim Hoff
Hi Kobe, If you're asking how to change the current state of main.mxml from inside a custom component, here are a few ways: * The simplest way, is to use parentDocument.currentState = myBaseStateName. For more deeply nested components, you can also chain these like:

[flexcoders] Re: Which event is dispatched when the view is shown by a stage change?

2008-06-27 Thread Tim Hoff
Hi João, This is kind of a hack, but you could try: mx:State name=editing onEnter=localeEditor.myTextBox.setFocus() If you used this, you would want to execute the setFocus code on creationComplete of the editor; for the first time that the editor is shown. Instead of useing states for

[flexcoders] Re: Which event is dispatched when the view is shown by a stage change?

2008-06-27 Thread Tim Hoff
Yep, my bad. As Jonathan points out, this should be enterState instead of onEnter (grr). mx:State name=editing enterState=localeEditor.myTextBox.setFocus() -TH --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: Hi João, This is kind of a hack, but you could try

[flexcoders] Re: Unique values on the CategoryAxis

2008-06-26 Thread Tim Hoff
Hi Vijay, This will get rid of your duplicate Apple. mx:CategoryAxis dataProvider={uniqueArr}/ Although you have the uniqueArr hardcoded, you can derive that from the data. -TH --- In flexcoders@yahoogroups.com, Vijay Anand Mareddy [EMAIL PROTECTED] wrote: How do i make the CategoryAxis

[flexcoders] Re: Unique values on the CategoryAxis

2008-06-26 Thread Tim Hoff
: Thanks Tim, the hardcoded uniqueArr as dataprovider works but it doesnt work when i try to use it as a derived function as follows. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.controls.Alert; import

[flexcoders] Re: ViewStack sizing problem

2008-06-24 Thread Tim Hoff
Hi Amy, Try setting resizeToContent=true on the ViewStack tag. -TH --- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote: I have a ViewStack that contains a TileList and some other components that have a variable number of children and thus a variable height. It seems that the

[flexcoders] Re: ViewStack sizing problem

2008-06-24 Thread Tim Hoff
No worries, had to learn that one myself as well. If you don't set that property, the container will remain the size of the first child; regardless. Cheers, -TH --- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote

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