[flexcoders] Re: Creating exceptions to an eventlistener

2009-04-01 Thread Tim Hoff
Hi, First, make sure, in the Canvas tag, that mouseChildren="true". You can also check in the drag event handler function if the currentTarget is a canvas or not: if ( !event.currentTarget is Canvas ) { event.stopImmediatePropagation; } There are probably better ways to do this, but this

[flexcoders] Re: Complex Charting in Flex

2009-04-01 Thread Tim Hoff
Hi, Take a look at "Using HighLowOpenClose charts" (HLOCChart); in the help docs. -TH --- In flexcoders@yahoogroups.com, kotha poornima wrote: > > Hi, > Can anyone suggest how can i draw a chart using this type of xml. > > > > >     Aug >     >     45..87 >     25.66 >     >    

RE: [flexcoders]Where does my SWF gain it's weight?

2009-03-31 Thread Tim Rowe
7.dll baked in... Oh? I see. Well, at least it's not the whole .NET Framework, right?... ... ... Oh. :) Tim Rowe Software Engineer carsales.com Ltd -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Anirudh Sasikumar Sent: We

[flexcoders] Re: AdvancedDatagrid

2009-03-30 Thread Tim Hoff
use > > AdvancedDataGrid(event.currentTarget).selectedIndex = event.rowIndex; > > > > But to give data of it, how do I do? > > > > --- In flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com, > > "Tim Hoff" wrote: > > > &

[flexcoders] Re: AdvancedDatagrid

2009-03-30 Thread Tim Hoff
Missed the return void. private function myEventHandler( event:ListEvent ):void { // do something } -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > > Just a syntax problem. Should be like this: > > var client:AdvancedDataGrid = new AdvancedDataGr

[flexcoders] Re: AdvancedDatagrid

2009-03-30 Thread Tim Hoff
Just a syntax problem. Should be like this: var client:AdvancedDataGrid = new AdvancedDataGrid; client.dataProvider = ArrayResults; client.addEventListener( ListEvent.ITEM_CLICK , myEventHandler ); private function myEventHandler( event:ListEvent ) { // do something } -TH Also, I'd sugge

RE: [flexcoders] Re: Flex Builder Compiler Performance Benchmarking

2009-03-26 Thread Tim Rowe
day, and you'll never have to worry about fragmentation and the associated speed issues. --Tim From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of arieljake Sent: Friday, 27 March 2009 4:20 AM To: flexcoders@yahoogroups.com Su

[flexcoders] Re: linkBar labelFunction

2009-03-26 Thread Tim Hoff
TO RECIPIENT: If you are not the intended recipient of this > e-mail, you are prohibited from sharing, copying, or otherwise using or > disclosing its contents. If you have received this e-mail in error, > please notify the sender immediately by reply e-mail and permanently > dele

[flexcoders] Re: linkBar labelFunction

2009-03-26 Thread Tim Hoff
Oops, my bad; didn't see labelFunction in LinkBar. Look at the examples in thd docs for List. -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > There's nothing built-in to do that for a LinkBar. Either extend LinkBar or > add transient fields to th

[flexcoders] Re: linkBar labelFunction

2009-03-26 Thread Tim Hoff
r, > please notify the sender immediately by reply e-mail and permanently > delete this e-mail and any attachments without reading, forwarding or > saving them. Thank you. > > > > > "Tim Hoff" > Sent by: flexcoders@yahoogroups.com > 03/26/2009 03

[flexcoders] Re: linkBar labelFunction

2009-03-26 Thread Tim Hoff
labelField="myFieldNameInTheArrayCollection" -TH --- In flexcoders@yahoogroups.com, "kpjj31" wrote: > > I have a linkBar that uses an arrayCollection as a dataProvider. How would I use the lableFunction if there is no viewStack containers. >

RE: [flexcoders] Flex Builder Compiler Performance Benchmarking

2009-03-25 Thread Tim Rowe
le the source from a CLI, if you haven't done so already. Hell, you could even execute it manually. Does mxmlc.exe take the same amount of time as the eclipse build? These are just a few small things I'd consider trying/looking at which might help identify the pr

[flexcoders] Re: Horizontal and Vertical gradients?

2009-03-23 Thread Tim Hoff
You can draw another gradiant on the graphics and rotate it 90 degrees. this will darken your colors, so you'll have to play with it. -TH --- In flexcoders@yahoogroups.com, "tchredeemed" wrote: > > Basically, I have an arrow that I draw graphically, it has a vertical gradient from the top to t

[flexcoders] Re: watching and triggering events

2009-03-23 Thread Tim Hoff
I agree with Tracy; using an MVC architecture handles this nicely. For a simpler approach, make the method in ListAndShow public; and call it from the parent; when the event is heard. -TH --- In flexcoders@yahoogroups.com, "Tracy Spratt" wrote: > > Have the parent re-dispatch the event and lis

[flexcoders] Re: Add components to custom folder

2009-03-20 Thread Tim Hoff
Probably should have asked that, as well, in the first place. Create a library project and link it to your project, with a source path. Add the component to the library project using Fotis's instructions. -TH --- In flexcoders@yahoogroups.com, "markgoldin_2000" wrote: > > But what if I want t

[flexcoders] Security sandbox violation error after upgrade to SDK 3.2

2009-03-17 Thread Tim Hoff
Hi all, I just updated the Flex SDK to version 3.2, and am now getting a Security sandbox violation error everytime that I launch an AIR application from Eclipse. I was wondering if anyone else has run into this and might know of a fix. The stack trace is listed below. Thanks, -TH Error #2044

[flexcoders] Re: How to tell when background image is clicked?

2009-03-17 Thread Tim Hoff
Ok, maybe just check it's type: if (evt.target is FlexLoader) -TH --- In flexcoders@yahoogroups.com, Ken Dunnington wrote: > > Hi Tim, unfortunately, that's exactly what happens :) > If you apply a backgroundImage, the target of the click event will be the > FlexLoader i

[flexcoders] Re: How to tell when background image is clicked?

2009-03-17 Thread Tim Hoff
Hi Ken, I'm pretty sure that the target will never be the background image itself; but rather the Canvas. One hack is to check the type: if (evt.target is Canvas) -TH --- In flexcoders@yahoogroups.com, Ken Dunnington wrote: > > I've got a custom component based on Canvas, and I'm programmati

[flexcoders] Re: Possible to add a textinput to a TabNavigator (next to the tabs)

2009-03-17 Thread Tim Hoff
Another way: -TH --- In flexcoders@yahoogroups.com, "gmoniey22" wrote: > > Thanks for the reply...I come from a Java background, so creating a custom component is not "scary" so to speak...I was just hoping there may be an easier way to do it directly to the TabNavigator instan

[flexcoders] Re: datagrid.selectedItem to vo?

2009-03-16 Thread Tim Hoff
.headline); and bam.. headline alerts. > but if I do currVO = event.target.selectedItem; > > and put a debug stopper afterwards this.currVO is null > On Mon, Mar 16, 2009 at 10:48 AM, Tim Hoff timh...@... wrote: > > > > What does your service tag code l

[flexcoders] Re: datagrid.selectedItem to vo?

2009-03-16 Thread Tim Hoff
Sorry, should be: currVO = event.target.selectedItem as headlineVO -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > > OR, currVO = headlineVO(event.target.selectedItem) as headlineVO; > > -TH > > --- In flexcoders@yahoogroups.com, "Tim Hoff&quo

[flexcoders] Re: datagrid.selectedItem to vo?

2009-03-16 Thread Tim Hoff
ion of a value with static type object to possible > > unrelated tye arrsy > > and > > interface method result in namespace mx.rpc.IResponder is implemented > > with an incompatible signature in class > > > > interface method result in namespace mx.rpc:Iresponder >

[flexcoders] Re: datagrid.selectedItem to vo?

2009-03-16 Thread Tim Hoff
Sorry, should be: currVO = event.target.selectedItem as headlineVO; -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > > OR, currVO = headlineVO(event.target.selectedItem) as headlineVO; > > -TH > > --- In flexcoders@yahoogroups.com, "Tim Hoff&quo

[flexcoders] Re: datagrid.selectedItem to vo?

2009-03-16 Thread Tim Hoff
OR, currVO = headlineVO(event.target.selectedItem) as headlineVO; -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > > The result from your cfc call isn't being cast correctly; it's nesting > the result inside an object. > > publi

[flexcoders] Re: datagrid.selectedItem to vo?

2009-03-16 Thread Tim Hoff
The result from your cfc call isn't being cast correctly; it's nesting the result inside an object. public function result(event:Object) : void { MyModel.getInstance().adminARCHeadlines = new ArrayCollection (event.result); } Either loop through the result object and addItem; one at a time

[flexcoders] Re: datagrid.selectedItem to vo?

2009-03-13 Thread Tim Hoff
Hey Greg, Have you tried using change instead of click. Everything else looks fine; assuming that currentVO is a HeadlineVO. -TH --- In flexcoders@yahoogroups.com, Greg Morphis wrote: > > I have a vo headlineVO that has the following variables > headline_id:Number > headline:String > effdate:

[flexcoders] Re: Checkbox Itemrenderer centering mystery...

2009-03-12 Thread Tim Hoff
All of your answers can be found here: http://blogs.adobe.com/aharui/item_renderers/ -TH --- In flexcoders@yahoogroups.com, "aceoohay" wrote: > > I have an itemrenderer that is a checkbox. I define textAlign="center" in the datagriColumn. It does

[flexcoders] Re: binding not updating for ArrayCollection when item changes?

2009-03-10 Thread Tim Hoff
Lariat Services, development services available > > _ > > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On > Behalf Of Tim Hoff > Sent: Tuesday, March 10, 2009 4:28 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: binding not updati

[flexcoders] Re: binding not updating for ArrayCollection when item changes?

2009-03-10 Thread Tim Hoff
Hi John, I seem to remember that XMLList, like Array, isn't Bindable and doesn't dispatch a propertyChange event. You might try changing the public var to a getter/setter and manually dispatching the event, or change the XMLList to Object; to see if it makes a difference. This is just a shot in

[flexcoders] Re: How to stop null on delayed execution.

2009-03-10 Thread Tim Hoff
n gmail I autoarchive flex coders emails. Does anyone know of a > way to not auto archive treads that I've been involved with? > > Regards, > > Wesley Acheson > > On Tue, Mar 10, 2009 at 5:40 PM, Tim Hoff timh...@... wrote: > > > > > Override createChildre

[flexcoders] Re: How to stop null on delayed execution.

2009-03-10 Thread Tim Hoff
Override createChildren() and add the child there; instead of trying to re-invent the component lifecycle by using INITIALIZE . And yes, commitProperties() would be a good place to set the child's text; from the text property. -TH --- In flexcoders@yahoogroups.com, Wesley Acheson wrote: > > Hi

[flexcoders] Re: dataGrid not receiving user input (intermitently) in bottom righ

2009-03-10 Thread Tim Hoff
>2. Assuming that the item renderer only needs to manipulate the text of the renderer, is example 1 - extending DataItemGrid - (below) a good way to do it? (I've never written one before, so I'm just checking) >No, for text only, use a labelFunction; instead of a custom itemRenderer. Thanks! Did t

[flexcoders] Re: Architecture / Design question...

2009-03-09 Thread Tim Hoff
If you want to keep all of the options in one component/class, consider using view states for the various versions. This can get messy really quick though; if you have many different states. As the number of states increases, it often becomes benefitial to use seperate view components, in a view

[flexcoders] Re: dataGrid not receiving user input (intermitently) in bottom right - itemRenderer problem..

2009-03-09 Thread Tim Hoff
gt; override public function set data(value:Object):void > { > super.data = value; > if(value!= null && value.length != null) { > this.invalidateDisplayList(); > } > } > > override protected function > updateDisplayList(unscaledWidth:Number,unscaledHeight:Number):v

[flexcoders] Re: dataGrid not receiving user input (intermitently) in bottom right

2009-03-08 Thread Tim Hoff
Adobe Systems Inc.<http://www.adobe.com/> > Blog: http://blogs.adobe.com/aharui > > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tim Hoff > Sent: Saturday, March 07, 2009 5:59 PM > To: flexcoders@yahoogroups.com > Subject: [flexcod

[flexcoders] Re: drag&drop inside itemEditor in dataGrid...a tricky question

2009-03-07 Thread Tim Hoff
Don't forget about listData.rowIndex as well. -TH --- In flexcoders@yahoogroups.com, "Tracy Spratt" wrote: > > Yes, leave off renderIseditor="true". > > > > Your renderer will know which item it is currently associated with, since > that reference gets passed into the renderer any time the unde

[flexcoders] Re: dataGrid not receiving user input (intermitently) in bottom right

2009-03-07 Thread Tim Hoff
Has to be another object on top of the DataGrid. The redraw region is the clue. Look at the other objects in the same class as the DataGrid. -TH --- In flexcoders@yahoogroups.com, "Tracy Spratt" wrote: > > If you are pretty sure there is not something invisible covering that area, > try clean

[flexcoders] Re: hiding an applicationcontrolbar button

2009-03-06 Thread Tim Hoff
Hi Greg, Have you tried removeChild()? -TH --- In flexcoders@yahoogroups.com, Greg Morphis wrote: > > I tried that in the creationComplete function and the show function. > Neither hid the tab/button > > On Fri, Mar 6, 2009 at 9:16 AM, Adrian Williams > adri...@... wrote: > > Hi Greg, > > > >

[flexcoders] Re: curly braces and functions in mxml

2009-03-06 Thread Tim Hoff
Hi Rick, Both will work, but you don't need the binding (curly) braces for events (click). This is a common mistake; one that I've made myself. In essence, when you use the curly braces to bind, you are creating an event listener; usually to a variable. When the variable changes (except for ar

[flexcoders] Re: Different filtered dataProviders for the same data ?

2009-03-05 Thread Tim Hoff
See ICollectionView. -TH --- In flexcoders@yahoogroups.com, "Richard C Haven" wrote: > > I have several lookup tables, some of which refer to or are relationships between others. > > For instance, I have `membership type included inventory` which has Membership ID and Inventory Type ID and is t

[flexcoders] Re: addEventListener in itemRenderer of DataGrid

2009-03-04 Thread Tim Hoff
yup, for mxml itemRenderers, that'll work fine as well. -TH --- In flexcoders@yahoogroups.com, "oneworld95" wrote: > > Thanks, Tim. I'm using a VBox control to wrap the items in the itemRenderer > so it can go in the creationComplete handler for that. > &

[flexcoders] Re: addEventListener in itemRenderer of DataGrid

2009-03-04 Thread Tim Hoff
It really depends on what you are listening to, what you are listening for, and what type of itemRenderer you are using. Typically though, eventListeners are added either in the constructor or the createChildren() function. -TH --- In flexcoders@yahoogroups.com, "oneworld95" wrote: > > Where's

[flexcoders] Re: try, catch, finally ...

2009-03-04 Thread Tim Hoff
Hi Kevin, Try-Catch blocks are an absolute necessity as without them, you are putting the operation of your software into the hands of user input errors, http errors, unintended consequences as well as the myriad of things that exist outside the "Happy Path". I respectfully disagree. IMHO, try-

[flexcoders] Re: Selected item/index in ComboBox

2009-03-04 Thread Tim Hoff
Hi Todd, Sounds like a timing issue. The popup is instantiated first, then the ComboBox's dataProvider is being set. 1) Best practice would be to use a getter/setter for the ComboBox's dataProvider. In the setter, invalidateProperties(). Then in commitProperties(), run the code that sets the

[flexcoders] Re: show and createComplate event?

2009-02-27 Thread Tim Hoff
Me too, same as less. Why no show when creation is complete? I guess it because verbs don't like verbs. -TH --- In flexcoders@yahoogroups.com, "markflex2007" wrote: > > My question is why the "show" event never be fired. > > Thanks >

[flexcoders] Re: Resize effect when I expand a Panel

2009-02-26 Thread Tim Hoff
Since you're using view states, consider using transitions instead of effects. -TH --- In flexcoders@yahoogroups.com, "faserone" wrote: > > I can't find any way to apply a resize effect when I expand a Panel > inside a DividedBox. > I tried using transition and applying a resize effect directly

[flexcoders] Re: Can't Change Custom Border Custom Styles - Please Help !!!

2009-02-26 Thread Tim Hoff
You're also going to want to change this: .tightDashBorder { dashlen: 2; dashgap: 2; } To this: .tightDashBorder { dashlen: 2; gaplen: 2; } -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > > Hi Greg, > > If you change the top half of your bord

[flexcoders] Re: Can't Change Custom Border Custom Styles - Please Help !!!

2009-02-26 Thread Tim Hoff
Hi Greg, If you change the top half of your borderSkin class to the code below, you can use a class selector style as a styleName for a VBox (styleName="tightDashBorder"). To use a type selector style, you're probably going to have to turn the borderSkin into a full-fledged component; with the s

[flexcoders] Re: Stopping a Line Series on a Line Graph

2009-02-24 Thread Tim Hoff
Hi Chris, You might try using a custom LineRenderer. In the updateDisplayList method, look at GraphicsUtilities.drawPolyLine(). It might be a little tricky, but you could manipulate the _lineSegment.items and _lineSegment.end parameters; to truncate the line at the desired position. -TH --- I

[flexcoders] Re: Graph suggestion wanted

2009-02-24 Thread Tim Hoff
Hi Vic, Since the variance over time doesn't change significantly, a time-based line chart doesn't appear to be that useful. It seems that you are really just displaying the relationship between products A, B and C. For something like this a simple bar chart works well. To make the chart more

[flexcoders] Re: Does anyone know how to get an accordion to occupy a specified relative height (

2009-02-24 Thread Tim Hoff
Unless you specify the height of the accordion, it will grow; based on the size of the first child. -TH --- In flexcoders@yahoogroups.com, "Keith Hughitt" wrote: > > Does anyone know how to get an accordion to occupy a specified relative > height (e.g. 25% of the application)

[flexcoders] Re: ToolTip stay until closed

2009-02-18 Thread Tim Hoff
Yes, you can reposition the popup (move (x,y)), by capturing the MouseMove event (may need to use localToGlobal). -TH --- In flexcoders@yahoogroups.com, "flexaustin" wrote: > > Thx Alex. > > I thought about that , but I need it look and function like Google > Maps when you click a marker (like

[flexcoders] Re: Is there any way to use predefined functions for a sortCompareFunction?

2009-02-17 Thread Tim Hoff
Some people have extended DataGridColumn to handle nested objects and sorting. but, You might find this helpful: http://natescodevault.com/?p=61 -TH --- In flexcoders@yahoogroups.com, "Keith Hughitt" wrote: > > When working with DataGrid ItemRenderers, you ca

[flexcoders] Re: filter arraycollection with checkbox acting wired

2009-02-17 Thread Tim Hoff
This is asolutely comical. -TH --- In flexcoders@yahoogroups.com, "johndoematrix" wrote: > > hi Ben when i tried the solution you gave, it worked very very well. > but this is when am using a single criteria. when i try to add it to a > filter function that filter's based on more than one crite

[flexcoders] Re: Datagrid not displaying selected item or rollover color any more.

2009-02-16 Thread Tim Hoff
Perhaps your DataGrids are inheriting some styles from the new containers. Since the header is showing a rollover, it's probably not an enabled issue. Try setting the styles directly on the DataGrid tag; to see if it is an inheritance issue and/or to isolate the problem. You want to make sure t

[flexcoders] Re: filter arraycollection with checkbox acting wired

2009-02-16 Thread Tim Hoff
Hi, There's a few problems with your original code. First, pizzaSelected will never change after the first click of the CheckBox; because you're only setting it if the CheckBox is selected. Also not sure why you don't just use pizzaSelected = pizza_ckb.selected; instead of pizza_ckb.data, or wh

[flexcoders] Disabling copy with dragDrop/dragEnabled

2009-02-15 Thread Tim Rowe
till be a 'copy' cursor, usually with a +), so doesn't really meet the requirements. 3. Ideally I'd like to just disable the copy function - but I can't find a way of doing this. Can anyone suggest how this can be done? Would this need to be done manually with a m

[flexcoders] Re: preventing flex List rollover indicator to draw on selected item.

2009-02-11 Thread Tim Hoff
Was extending DataGrid instead of List and that was the code in DataGridBase. I noticed that too after I posted. Glad that you figured out a solution. -TH --- In flexcoders@yahoogroups.com, Thibaud Van Vreckem wrote: > > Thanks for the answer, that was great :) > Tim is code look

[flexcoders] Re: preventing flex List rollover indicator to draw on selected item.

2009-02-11 Thread Tim Hoff
, y, unscaledWidth - viewMetrics.left - viewMetrics.right, height, color, itemRenderer); } } -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > > So, with Alex's suggestion, this is a lot cleaner: > > override protected function drawHighlightIndicato

[flexcoders] Re: preventing flex List rollover indicator to draw on selected item.

2009-02-11 Thread Tim Hoff
eturn; } super.drawHighlightIndicator(indicator, x, y, unscaledWidth - viewMetrics.left - viewMetrics.right, height, color, itemRenderer); } -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > > Yeah, that makes sense; since it also considers highlighting with

[flexcoders] Re: preventing flex List rollover indicator to draw on selected item.

2009-02-11 Thread Tim Hoff
w.adobe.com/> > Blog: http://blogs.adobe.com/aharui > > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tim Hoff > Sent: Wednesday, February 11, 2009 1:17 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: preventing flex List rollover indicator to

[flexcoders] Re: preventing flex List rollover indicator to draw on selected item.

2009-02-11 Thread Tim Hoff
Here's an easy way: Extend List override protected function mouseOverHandler(event:MouseEvent):void { var item:IListItemRenderer = mouseEventToItemRenderer(event); super.mouseOverHandler(event); if (highlightIndicator && item && isItemSelected(item.data)) {

[flexcoders] Re: ACCORDION - How can I switch my cursor to a pointer?

2009-02-06 Thread Tim Hoff
Kind of a hack, but this works on creationComplete: private function onCreationComplete():void { for ( var i:int = 0; i < myAccordion.numChildren; i++ ) { Button(myAccordion.getHeaderAt(i)).buttonMode = true; Button(myAccordion.getHeaderAt(i)).useHandCursor = tru

[flexcoders] Re: Hand Cursor and datagrid

2009-02-05 Thread Tim Hoff
Hi Alex, The only problems with setting it on the renderers, is the vertical gap between the renderer and the row. The cursor will flicker back and forth between the hand and pointer as you move it up and down the list. Perhaps the highlight indicator is a possible place to try. -TH --- In fl

[flexcoders] Re: Prevent ItemRenderer click from selecting row?

2009-02-05 Thread Tim Hoff
Yes, you'd have to extend DataGrid and override the mouseDownHandler and mouseUpHandler functions. if ( event.target is Button ) return; -TH --- In flexcoders@yahoogroups.com, Dennis Falling wrote: > > That's what I was trying- stopping propagation and preventing default. > Apparently the data

[flexcoders] Re: FileReference.upload

2009-01-30 Thread Tim Hoff
Oh wait. maybe it's because the example is for AIR. Maybe not available for Flex apps. -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > > Hmm, not sure what to tell you. Flex3? > > -TH > > --- In flexcoders@yahoogroups.com, "tchredee

[flexcoders] Re: FileReference.upload

2009-01-30 Thread Tim Hoff
Hmm, not sure what to tell you. Flex3? -TH --- In flexcoders@yahoogroups.com, "tchredeemed" wrote: > > I don't have flash.filesystem > > when I do import flash.fi the only thing is filters.. > > hmm!! :) >

[flexcoders] Re: FileReference.upload

2009-01-30 Thread Tim Hoff
What, you want everything. :) import flash.filesystem.*; import flash.net.FileFilter; import flash.utils.ByteArray; -TH --- In flexcoders@yahoogroups.com, "tchredeemed" wrote: > > Type was not found: File. > > Hmm!? > > --- In flexcoders@yahoogroups.co

[flexcoders] Re: FileReference.upload

2009-01-30 Thread Tim Hoff
Hi, One way is to use File instead of FileReference. You can get the ByteArray that way and pass that to your service. the only caveat is that you won't be able to track the upload progress; unless you do something custom with your service. private var fileToUpload:File; private var pptFiles:F

[flexcoders] Re: DataGrid selection w/ filtered contents

2009-01-15 Thread Tim Hoff
One way is to bind a variable to the selectedIndex of the DataGrid: [Bindable] private var selectedIndex:int = -1; Then when you filter the collection: myCollection.filterFunction = myFilterFunction; myCollection.refresh(); selectedIndex = (myCollection.length > 0 ? 0 : -1); -TH --- In fle

RE: [flexcoders] Re: AIR and SQLLite

2009-01-13 Thread Tim Rowe
u increase the data stored by about a factor of 4. Just some ideas to think about. --Tim From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Kevin Benz Sent: Wednesday, 14 January 2009 2:24 PM To: flexcoders@yahoogroups.com Subject

RE: [flexcoders] Re: Expanding size of panel, and its contained objects.

2009-01-12 Thread Tim Rowe
to:flexcod...@yahoogroups.com] On Behalf Of aceoohay Sent: Tuesday, 13 January 2009 9:08 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Expanding size of panel, and its contained objects. Tim: I am not sure I understand? What I need is the ability to expand a panel, and all of its contain

RE: [flexcoders] Re: Expanding size of panel, and its contained objects.

2009-01-12 Thread Tim Rowe
It won't run in 40 column mode? I feel evil suggesting this when 1280x1024 is the norm these days. --Tim From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of aceoohay Sent: Tuesday, 13 January 2009 8:59 AM To: flexc

RE: [flexcoders] GPS in Flex

2009-01-08 Thread Tim Rowe
your design is even going to work for real-world existing designs and products. --Tim From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Ben Cessa Sent: Friday, 9 January 2009 11:10 AM To: flexcoders@yahoogroups.com Subject: [fle

[flexcoders] Re: Font for tab navigator heading not working

2009-01-06 Thread Tim Hoff
Wow, this only took 2 days to post. See Doug's post for the solution. -TH [Moderator note: Things run slower over Xmas when we're all on holiday ;-)] --- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > > The only other thing that I can suggest that you try i

[flexcoders] Re: components in modules

2009-01-05 Thread Tim Hoff
A common approach is to create a library project for common components (you'll need to add source paths). That way you only have to make changes in one place. Also, if an application or module doesn't use a component, it will not be compiled into the swf; so you don't have to worry about increas

[flexcoders] Re: Font for tab navigator heading not working

2009-01-05 Thread Tim Hoff
The only other thing that I can suggest that you try is: .myTabs { fontFamily: "AvenirLTStdMedium"; } -TH --- In flexcoders@yahoogroups.com, "Nate Pearson" wrote: > > Doug, no I'm not doing that. > > Tim, The button css thing didn't work either

[flexcoders] Re: Font for tab navigator heading not working

2009-01-05 Thread Tim Hoff
apearso...@... wrote: > > > DOUG MCCUNE YOU ARE A GENIUS! > > > > Props to Tim too for mentioning the Button css. > > > > This is what it took: > > > > Button{ > > font-family: AvenirLTStdMedium; > > font-weight: normal; > > > > } > &g

[flexcoders] Re: Font for tab navigator heading not working

2009-01-05 Thread Tim Hoff
d fontWeight, or change your tab style to make the > fontWeight normal. > > Doug > > On Wed, Dec 31, 2008 at 4:43 PM, Nate Pearson napearso...@... wrote: > > > Doug, no I'm not doing that. > > > > Tim, The button css thing didn't work either :(.

[flexcoders] Re: Cairngorm proper usage

2009-01-04 Thread Tim Hoff
This could be handled in a more elegant fashion, if you used a presentation model and injection. But, a simple way to solve this is to create a selectedRooms ArrayCollection in the model. This collection would hold references to the roomVO's that are in the rooms collection; that is bound to the

[flexcoders] Re: Font for tab navigator heading not working

2008-12-31 Thread Tim Hoff
hmm, they are buttons. So, you could try using the font in Button{} CSS. Kind of a bad hack though. -TH --- In flexcoders@yahoogroups.com, "Nate Pearson" wrote: > > Yup, no change. The other styles do work but not the font-family. > > --- In flexcoders@yahoogroups.c

[flexcoders] Re: Canvas with MouseEvent and Button with MouseEvent

2008-12-31 Thread Tim Hoff
import mx.containers.Canvas; private function onCanvasClick(event:MouseEvent):void { if (event.target is Canvas) { // do canvas click stuff } } private function onButtonClick():void { // do button click stuff } -TH --- In flexcoders@yahoogroups.com, "rocko

[flexcoders] Re: Font for tab navigator heading not working

2008-12-31 Thread Tim Hoff
Hi Nate, Have you tried it without the quotes? tabStyleName: myTabs; -TH --- In flexcoders@yahoogroups.com, "Nate Pearson" wrote: > > I'm trying to get a custom font in the tabs of my tab navigator and I > can't get it to work. My code is below. I can get the font to work in > other stuff but

[flexcoders] Re: 2 Datagrid issue

2008-12-29 Thread Tim Hoff
> You could consider letting the datagrid bear the burden of keeping > track of the selection like in this TileList example > http://blog.flexmonkeypatches.com/2007/09/10/flex-tilelist-with- > togglebuttons/ Good example, but I'm not convinced that a child should know, or control, a parent. The

[flexcoders] Re: 2 Datagrid issue

2008-12-29 Thread Tim Hoff
lexcoders] Re: 2 Datagrid issue > > > > > > > > Ok I am a numbnut! Rsolved through 2 seperate arrays, into two > > seperate arraycollections! > > > > > > > > I must add that if the 2 Array sources are different I then result > > in the issue

[flexcoders] Re: 2 Datagrid issue

2008-12-29 Thread Tim Hoff
Are the 2 ArrayCollections using the same source array by any chance? -TH --- In flexcoders@yahoogroups.com, "Tracy Spratt" wrote: > > Probably, but we'll need to see a bit of the relevant code. Start with > the DataGrid declaration mxml and the change handler function. > > > > Tracy > > > > __

[flexcoders] Re: Runaway series effect on line chart

2008-12-22 Thread Tim Hoff
wo vertical axes and three line series, so it's more > complex than the category chart I tweaked. > > On Thu, Dec 18, 2008 at 3:24 PM, Tim Hoff timh...@... wrote: > > > > > What's going on when you set the data; a loop perhaps? > > > > -TH > > >

[flexcoders] Re: How can i make possible to keep user back in the same TAB..

2008-12-19 Thread Tim Hoff
Nevermind, I see what you're talking about. Aaron's, link or the link lower in the page for the TabNavigator, sounds like it will work for you. -TH p.s. good stuff Aaron --- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > > Honestly, now I'm a little

[flexcoders] Re: How can i make possible to keep user back in the same TAB..

2008-12-18 Thread Tim Hoff
- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > > You could just disable the other tabs; until the user has saved the > data. > > -TH > > --- In flexcoders@yahoogroups.com, "b.kotireddy" koti_reddy972@ > wrote: > > > > Hi, > > > >

[flexcoders] Re: Runaway series effect on line chart

2008-12-18 Thread Tim Hoff
What's going on when you set the data; a loop perhaps? -TH --- In flexcoders@yahoogroups.com, "Richard Rodseth" wrote: > > I added a SeriesInterpolate effect to a column chart. Spiffy! > > However, when I added showData/hideData effects to one series of a line > chart, they run constantly like

[flexcoders] Re: Search Function within a Flex App -- Not Filter

2008-12-18 Thread Tim Hoff
Same principle as a filter (loop through a collection and compare), except instead keep track of the postions that meet the criteria. -TH --- In flexcoders@yahoogroups.com, Adrian Williams wrote: > > Hi All, > > I have another wild one...has anyone seen or figured out how to > embed a search fu

[flexcoders] Re: How can i make possible to keep user back in the same TAB..

2008-12-18 Thread Tim Hoff
You could just disable the other tabs; until the user has saved the data. -TH --- In flexcoders@yahoogroups.com, "b.kotireddy" wrote: > > Hi, > > The below code is my one of the TAB from 4 tabs. Before leaving this > tab i need to evaluate the page, if user forgot to save his filled > data i ne

[flexcoders] Re: Help trying to create a slightly complex border.

2008-12-18 Thread Tim Hoff
Hi Dave, In order to get a stroke around all of the shapes, you'll need to draw them as one composition. You were on the right track with using curveTo(), but that's going to be a lot of trial and error work. I would suggest you go back to using degrafa for this (see GeometryComposition). The t

[flexcoders] Re: Textarea, why the blue border?

2008-12-15 Thread Tim Hoff
selectable="false" -TH --- In flexcoders@yahoogroups.com, "cox.blair" wrote: > > Everyone, > > Why is there a blue border shown when using a textarea and it has been > clicked on? To show it is in focus? Great, but why? > > How can this be removed? No, switching to Gumbo is not an option. > > H

[flexcoders] Re: Multi-dimensional arrays in a DataGrid

2008-12-15 Thread Tim Hoff
gt; Hi Tim, > > In a nut shell I have rows of prices and timeslots like a timetable? > Each timeslot is represented by a checkbox which is either hidden or > shown. > > Keep on hitting brick walls on this one! > > Cheers, > > Simon > > On 15 Dec 2008

[flexcoders] Re: Multi-dimensional arrays in a DataGrid

2008-12-14 Thread Tim Hoff
Hi Simon. Depends on what you want to do with the data. If you're de-normalizing it, a DataGrid's labelFunction can give you access to child arrays (better if they are ArrayCollections or XML). If you want to represent the data in a hierarchical manner, you can use the AdvancedDataGrid; instead

[flexcoders] Re: Combobox text does not render on some

2008-12-11 Thread Tim Hoff
Something's not done correctly. Post some code. -TH --- In flexcoders@yahoogroups.com, "darylgmyers" <[EMAIL PROTECTED]> wrote: > > I have form window with about 20 combobox fields. Each one is bound to > a unique arraycollection which is bindable. When the window is first > displayed there ar

[flexcoders] Re: Accessing Stage from Class

2008-12-05 Thread Tim Hoff
If your class is a component, you may have to listen for the ADDED_TO_STAGE event, before you can reference the stage and add things like keyboard event listeners: public function MyComponentClass() { super(); addEventListener( Event.ADDED_TO_STAGE, onAddedToStage ); } -TH --- In

[flexcoders] Re: Canvas label and keyboard shortcuts

2008-12-05 Thread Tim Hoff
m/group/flexcoders/message/131350. > > I have successfully implemented Tim's HTMLButton - Thanks for that > tip, Tim! - but am having difficulties transferring this example to a > Canvas. My application has a number of Canvases in a TabNavigator, and > I need the label (displaye

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

2008-12-04 Thread Tim Hoff
Just change the pattern: public static var NON_NUMERIC_CHARACTERS_WITH_DECIMAL : String = "[^0-9|^.]+"; For the locales that require a comma, use replace(). -TH --- In flexcoders@yahoogroups.com, "flexcoder2008" <[EMAIL PROTECTED]> wrote: > > Thanks very much for those suggestions. The RegExUt

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