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

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

[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: Ribbon in FLEX

2009-04-01 Thread Tim Hoff
Ha, still laughing at autoschediastically. :) -TH --- In flexcoders@yahoogroups.com, Tom Chiverton wrote: > > On Wednesday 01 Apr 2009, Jeffry Houser wrote: > > It is most likely due to the massive interface change between 2003 and > > 2007. I understood that the "research" showed that this ap

[flexcoders] Re: cant get the hand cursor to show up on the titleBar of the Panel

2009-04-01 Thread Tim Hoff
Hi, the text field is on top of the titleBar. Try this: package controls { import mx.containers.Panel; public class MyPanel extends Panel { override protected function createChildren():void { super.createChildren(); titleBar.buttonMode = true; tit

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

2009-04-01 Thread Tim Hoff
gt; > If you have solved the problem Tim, or anyone else for the matter, please help me out. > > Thanks, > Nate > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote: > > > > > > Hi all, > > > > I just updated the Flex SDK to version

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

2009-04-01 Thread Tim Hoff
mm.cfg or is one being written there as you launch the app? > > Alex Harui > Flex SDK Developer > 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 Hof

[flexcoders] Re: Ribbon in FLEX

2009-04-01 Thread Tim Hoff
There's already two members on that list. I wonder if you can change the lauguage setting from English to MicroSpeak? :) -TH --- In flexcoders@yahoogroups.com, "Bjorn Schultheiss" wrote: > > Agreed.. > > Welcome flexcoders-scott-barnes > http://groups.yahoo.com/group/flexcoders-scott-barnes >

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

2009-04-01 Thread Tim Hoff
> > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tim Hoff > Sent: Wednesday, April 01, 2009 6:23 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: Security sandbox violation error after upgrade to SDK 3.2 > > > Actually, I

[flexcoders] Re: Complex Charting in Flex

2009-04-02 Thread Tim Hoff
ys.I hope you got what iam saying..Thanks.. > > Thanks in Advance, > Poornima > > > > > > From: Tim Hoff timh...@... > To: flexcoders@yahoogroups.com > Sent: Wednesday, April 1, 2009 11:48:34 PM > Subject: [flexcoders] Re: Complex Charti

[flexcoders] Re: TextArea Border?

2009-04-02 Thread Tim Hoff
editable="false" -TH --- In flexcoders@yahoogroups.com, "flexaustin" wrote: > > I am using the textArea and finally got the border to turn off, but when you click it, the theme color still shows? My background is white so I tried setting the theme and borderColor to white but that doesn't work e

[flexcoders] Re: database question

2009-04-03 Thread Tim Hoff
A trigger in MS SQL-Server is a stored procedure that is executed when a defined condition is met; ie a new record is inserted into a specific table. Access doesn't use stored procedures or triggers. -TH --- In flexcoders@yahoogroups.com, "johndoematrix" wrote: > > how can i perform this kin

[flexcoders] Re: TextArea Border?

2009-04-03 Thread Tim Hoff
Don't, this one stumped me for a few minutes a while back as well. :) -TH --- In flexcoders@yahoogroups.com, "flexaustin" wrote: > > I feel stupid. THX! > > flexaustin > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote: > >

[flexcoders] Re: Flex, SharePoint and SQLServer

2009-04-05 Thread Tim Hoff
Yes, you can get xml data from a SQL-Server database directly through xPath url queries. The risk here though is that it opens up the possibility of SQL injection and isn't that secure. Your options are to create your own .Net web services or look into using a middle tier solution like WebOrb; f

[flexcoders] Re: Trying to dynamically populate checkboxes via array binding

2009-04-05 Thread Tim Hoff
Hi Benoit, You're going to want to use an itemRenderer for the checkBox's. Tracey Spratt has an example here: http://www.cflex.net/showFileDetails.cfm?ObjectID=559 -TH --- In flexcoders@yahoogroups.com, Benoit Villière wrote: > > Hello

[flexcoders] Re: How can I call a function from a class?

2009-04-06 Thread Tim Hoff
Too funny Paul. Sorry mate. -TH --- In flexcoders@yahoogroups.com, "Paul Andrews" wrote: > > LOL Tim got there first! > > - Original Message - > From: "Paul Andrews" p...@... > To: flexcoders@yahoogroups.com > Sent: Monday, April 06, 2009 6:52 PM > Subject: Re: [flexcoders] How can I c

[flexcoders] Re: How can I call a function from a class?

2009-04-06 Thread Tim Hoff
There's a couple of ways. If your class and function are static, like a utility class that doesn't persist any data, just call Layout.traceTest(); Note: Classes should be capitalized, in order to differentiate them from variables. Another way is to instantiate the class as a variable: private

[flexcoders] Re: How can I call a function from a class?

2009-04-06 Thread Tim Hoff
:: waits for Paul :: :) -TH --- In flexcoders@yahoogroups.com, - - wrote: > > How about the other way around, how can I access a variable in my main mxml from my class package? > > Thanks! > > > > ________ > From: Tim Hoff timh...@... >

[flexcoders] Re: ListCollectionView w/ a filterFunction as a dataProvider - Flex 2

2009-04-06 Thread Tim Hoff
Hmm, ran your code and it worked fine. Clicked the add item button the first time and "1" showerd up. Maybe try adding filtered_stuff.refresh(); to the addItem function. -TH --- In flexcoders@yahoogroups.com, "bnjmnhggns" wrote: > > Hi all, I've been having weird problems involving Lists, dat

[flexcoders] Re: ListCollectionView w/ a filterFunction as a dataProvider - Flex 2

2009-04-06 Thread Tim Hoff
g: http://blogs.adobe.com/aharui > > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On > Behalf Of Tim Hoff > Sent: Monday, April 06, 2009 12:17 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: ListCollectionView w/ a filterFunction as a >

[flexcoders] Re: ListCollectionView w/ a filterFunction as a dataProvider - Flex 2

2009-04-06 Thread Tim Hoff
it with Flex 2? Sorry if I didn't make that clear. > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote: > > > > > > Hmm, ran your code and it worked fine. Clicked the add item button the > > first time and "1" showerd up. Ma

[flexcoders] Re: ListCollectionView w/ a filterFunction as a dataProvider - Flex 2

2009-04-06 Thread Tim Hoff
> --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: > > > > Tim, did you try that in Flex 2? I seem to recall it being a bug. > > > > Alex Harui > > Flex SDK Developer > > Adobe Systems Inc.<http://www.adobe.com/> > > Blog: http://blogs.adobe.com/a

[flexcoders] Re: How can I call a function from a class?

2009-04-06 Thread Tim Hoff
changed by the parent, and become re-usable; without depending on the parent. -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > > :: waits for Paul :: > > :) > > -TH > > --- In flexcoders@yahoogroups.com, - - sailorsea21@ wrote: > > > >

[flexcoders] Re: Get Variables from Popup

2009-04-07 Thread Tim Hoff
Hi Christophe, Using events to communicate, and pass data, from the popup to the application is regarded as the most loosly coupled method. If you choose not to add event listeners to the popup directly, you'll have to listen for the events by adding listeners to Application.application.systemMa

[flexcoders] Re: Adobe's stimulus package!!!! FREE FLEX BUILDER!!!!

2009-04-08 Thread Tim Hoff
Be vewy, vewy quite. I'm hunting wabbit. -TH --- In flexcoders@yahoogroups.com, Matt Chotin wrote: > > We have special software installed in our Nabaztags at work that inform us when someone is using Flex Builder in ways we don't like. We then have web crawlers that go out and find the offendi

[flexcoders] Re: override "commitSelectedIndex" for ViewStack component

2009-04-08 Thread Tim Hoff
Another option, instead of sub classing, would be to use states in place of a view stack. State changes allow you to implement transition effects (parallel or sequence), directly to the desired children. -TH --- In flexcoders@yahoogroups.com, "gwangdesign" wrote: > > Tracy, Thanks much for the

[flexcoders] Re: Bubble Effect

2009-04-09 Thread Tim Hoff
Fly bubble, fly. How about a little more info about what you want, and how you aren't able to acheive it yourself? Assuming that you are using the PopupManager, what snaggles are you running into? Do you need it to have wing?. That can be done. Please elaborate. -TH --- In flexcoders@yahoog

[flexcoders] Re: TileList | ItemRenderer | Allignment is not proper

2009-04-09 Thread Tim Hoff
Hi, You can adjust the alignment like this: Or, you can override updateDisplayList in the itemRenderer and position the checkBox's manually. -TH --- In flexcoders@yahoogroups.com, "ilikeflex" wrote: > > Hi > > I have tilelist which have checkboxs as itemrenderer. The tilelist has four > col

[flexcoders] Re: Alert popup without any button?

2009-04-09 Thread Tim Hoff
http://www.adobe.com/2006/mxml";> -TH --- In flexcoders@yahoogroups.com, "markflex2007" wrote: > > > Hi > > Do you think if it is possible for me to build a Alert popup with Alert.show and the popup doesn't have any button(like ok button) and only have text

[flexcoders] Re: Bubble Effect

2009-04-09 Thread Tim Hoff
, Shabir Gilkar wrote: > > Dear Tim Hoff, > > Thanks for your mail and hope you are fine there, As i am fresher in Flash and i am currently designing a Flash website for my company. > > I have separated my website in three parts that is Header, Content and footer. In this content area

[flexcoders] Re: Alert popup without any button?

2009-04-09 Thread Tim Hoff
You might find this of interest as well: http://blog.flexexamples.com/2009/04/08/creating-a-self-closing-alert-co\ ntrol-in-flex/ <http://blog.flexexamples.com/2009/04/08/creating-a-self-closing-alert-c\ ontrol-in-flex/> -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" wrot

[flexcoders] Re: TileList with page number

2009-04-10 Thread Tim Hoff
Hi Christophe, You can figure out how many tiles are in a page by multiplying the colomnCount by the RowCount. Take this number and divide the dataProvider's length by it, to determine the number of pages. You may have to adjust this number; based on the remainder (see mod). From these calcul

[flexcoders] Re: white box under backgroundImage for List component?

2009-04-13 Thread Tim Hoff
ne. > > Back to cave... > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote: > > > > > > Hi, > > > > A couple of things that you need to do to make this happen. First, > > remove as much of the padding, in the image png fi

[flexcoders] Re: white box under backgroundImage for List component?

2009-04-13 Thread Tim Hoff
Hi, A couple of things that you need to do to make this happen. First, remove as much of the padding, in the image png file, that you can. Otherwise, the list items will be positioned outside of the background image. Second, you can fool flex by adding these two lines to your css: background-

[flexcoders] Re: Mate and sharing data across files

2009-04-15 Thread Tim Hoff
Hi Seona, Let's start by taking a deep breath and don't freak out. Ok, wheeew! Mate is a little different than typical MVC; in that it seperates the model into managers and presentation models (a manager holds data and a presentation model holds an instance of the needed data and controls const

[flexcoders] Re: Mate and sharing data across files

2009-04-15 Thread Tim Hoff
How does class-caching differ from the Singleton pattern? -TH --- In flexcoders@yahoogroups.com, Romuald Quantin wrote: > > Mate is not using Singleton but "class-caching" if I understood well. > > Romu > > Tim Hoff wrote: > > > > > > > > H

[flexcoders] Re: Hook/Event when Item Renderers visible in List?

2009-04-15 Thread Tim Hoff
Hi, There aren't any non-visible itemRenderers in a list; except for maybe one extra at the bottom. ItemRenderers are recycled; meaning that they are reused with just the data changing. When a list is scrolled, you should be able to catch the data change in the set data method. -TH --- In fle

[flexcoders] Re: How Could I "not" map a property to lcds object ?

2009-04-15 Thread Tim Hoff
Yep, here's an example: private var _myProperty:String; [Transient] [Bindable( event="myPropertyChange" )] /** * myProperty. * @private */ public function get myProperty():String { return _myProperty; } /** @private */ public function set myProperty( value:String ):void { _myPro

[flexcoders] Re: How Could I "not" map a property to lcds object ?

2009-04-15 Thread Tim Hoff
nsient in Java will affect Hibernate, unless Blaze / LCDS have their own > @Transient I'm not aware of. There's also this blazeds annotations add-on: > http://is.gd/sETx > > SmartyPants-J will do this, but it's nowhere near escaping yet :) > > -Josh > > 2009/4/1

[flexcoders] Re: Mate and sharing data across files

2009-04-15 Thread Tim Hoff
> example, I can call on the data stored in the model to get the user's ID and > pass it to the service I'm calling. > > Is that right? If it is, I think I need some help making the linkages > between them all. I won't bother posting any code until I find out if I

[flexcoders] Re: Mate and sharing data across files

2009-04-15 Thread Tim Hoff
For a little more clarity, the CFC result handler in therMap would look something like this: Sorry, I don't use CF but you get the picture. -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > > ha, I

[flexcoders] Re: Namespaces/packages problem

2009-04-17 Thread Tim Hoff
Hi, Usually you would import the class: import com.someframework.ITestClass; and then implement like: public class TestClass implements ITestClass HTH -TH --- In flexcoders@yahoogroups.com, DannyT wrote: > > I'm trying to create a cairngorm version of my application, as such I've > used the

[flexcoders] Re: Custom List ItemRenderer / Recycling troubles (height incorrect)

2009-04-18 Thread Tim Hoff
Hi, Set the List's variableRowHeight="true" and use something like this in the itemRenderer: override protected function measure():void { var textLineMetrics:TextLineMetrics = comment.measureText( comment.text ); // should add paddingTop, paddingBottom and verticalGap to this too

[flexcoders] Re: Custom List ItemRenderer / Recycling troubles (height incorrect)

2009-04-18 Thread Tim Hoff
ected. The height issue appears to be tied to the component in some fashion (mx:Text in this case). I'd file a defect but I haven't seen much ROI in such reports. > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote: > > > > > > Hi, >

[flexcoders] Re: Custom List ItemRenderer / Recycling troubles (height incorrect)

2009-04-18 Thread Tim Hoff
ItemRenderer, it is a great starting point. It is pretty easy to > see where to add your special incantations. > > > > Tracy Spratt, > > Lariat Services, development services available > > _ > > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]

[flexcoders] Re: Tweaking the H-& V-Slider components

2009-04-20 Thread Tim Hoff
Yes, the easiest way is to just adjust the image size for the thumb; with some transparent padding. -TH --- In flexcoders@yahoogroups.com, "morten.wang" wrote: > > Hi FlexCoders > > I am working on a project in which I use the H-slider and V-slider as volume bar and progress bar and I have succ

[flexcoders] Re: Tweaking the H-& V-Slider components

2009-04-20 Thread Tim Hoff
Yes, the easiest way is to just adjust the image size for the thumb; with some transparent padding. -TH --- In flexcoders@yahoogroups.com, "morten.wang" wrote: > > Hi FlexCoders > > I am working on a project in which I use the H-slider and V-slider as volume bar and progress bar and I have succ

[flexcoders] Re: Red border for obligatory fields

2009-04-21 Thread Tim Hoff
Hi, Search the help docs for "Using validators". -TH --- In flexcoders@yahoogroups.com, "christophe_jacquelin" wrote: > > Hello, > > How to have a red border on a TextInput of an obligatory field in a form item. > Since required="true" is not an attribute of TextInput. > > Thank you, > Christo

[flexcoders] Re: This component won't populate with data

2009-04-21 Thread Tim Hoff
Hi, dataProvider="{modelPeople.person}" -TH --- In flexcoders@yahoogroups.com, "elevight" wrote: > > Here is just a sample combobox component I was testing, and it won't populate. Can anyone please tell me what I'm doing wrong? > > > http://www.adobe.com/2006/mxml"; > dataProvider="{modelPeop

[flexcoders] Re: RegEx string via cell ItemRenderer to colorize specific characters or a better method?

2009-04-22 Thread Tim Hoff
Hi Adrian, I came across this function recently, that may suit you needs: public static function StringReplaceAll( source:String, find:String, replacement:String ) : String { return source.split( find ).join( replacement ); } -TH --- In flexcoders@yahoogroups.com, Adrian Williams wrote:

[flexcoders] Re: How to get ellipsis on truncateToFit for htmlText

2009-04-22 Thread Tim Hoff
>From Label.as: // Plain text gets truncated with a "...". // HTML text simply gets clipped, because it is difficult // to skip over the markup and truncate only the non-markup. -TH --- In flexcoders@yahoogroups.com, "gmoniey22" wrote: > > If you have a label such as: > >

[flexcoders] Re: DataGrid combobox erasing items from it's list

2009-04-23 Thread Tim Hoff
Hi, Your code looks fine. But, I believe that you need to handle the itemEditEnd event, for the DataGrid: Something like this: private function onItemEditEnd(event:DataGridEvent):void { // Check the reason for the event. if (event.reason == DataGridEventReason.CANCELLED)

[flexcoders] Re: Dynamic Flex Stacked Column Chart

2009-04-23 Thread Tim Hoff
Hey Richard, I've found that charts don't like mxml as well as AS, when trying to update them dynmically. This works in AS: private function onTwoSeries(event:Event):void { var seriesA:ColumnSeries = new ColumnSeries(); var seriesB:ColumnSeries = new ColumnSeries(); seriesA.xF

[flexcoders] Re: Dynamic Flex Stacked Column Chart

2009-04-23 Thread Tim Hoff
And if you wanted to make it truly dynamic: private function createChartSeries(event:Event):void { var chartSeries:Array = new Array(); var i:int; for (i = 0; i < chartData.length; i++) { var series:ColumnSeries = new ColumnSeries(); series.x

[flexcoders] Re: Weblink to item in linkbar

2009-04-27 Thread Tim Hoff
Hi Paul, Well, you're really trying to mix apples and oranges. If you have a LinkBar that contols a ViewStack, the expected behavior is that when one of the LinkButtons in the LinkBar is clicked, the ViewStack's selectedIndex changes to the index of the clicked LinkButton on the LinkBar. If you

[flexcoders] Re: Weblink to item in linkbar

2009-04-27 Thread Tim Hoff
Needs this import too: import mx.events.ItemClickEvent; -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > > Hi Paul, > > Well, you're really trying to mix apples and oranges. If you have a > LinkBar that contols a ViewStack, the expected b

[flexcoders] Re: Extend Array

2009-04-28 Thread Tim Hoff
Have you tried something like this: this.addItem( new Array() ); -TH --- In flexcoders@yahoogroups.com, "smitade" wrote: > > I'm trying to extend an Array into a 2D matrix. Any suggestions? The following code fails but I don't understand why. > > public class MatRix extends Array > { > public

[flexcoders] Re: Extend Array

2009-04-28 Thread Tim Hoff
Sorry, i meant: this.push ( new Array() ); -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > > Have you tried something like this: > > this.addItem( new Array() ); > > -TH > > --- In flexcoders@yahoogroups.com, "smitade" smitade@ wrot

[flexcoders] Re: Extend Array

2009-04-28 Thread Tim Hoff
; > -TH > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote: > > > > > > Have you tried something like this: > > > > this.addItem( new Array() ); > > > > -TH > > > > --- In flexcoders@yahoogroups.com, "smit

[flexcoders] Re: Extend Array

2009-04-28 Thread Tim Hoff
Yep, thought that I could get away with not testing it. Doesn't look like you can extend Array, but you can extend ArrayCollection: package { import mx.collections.ArrayCollection; public class MatRix extends ArrayCollection { public function MatRix(numRows:int=0,nu

[flexcoders] Re: Extend Array

2009-04-28 Thread Tim Hoff
Care to elaborate with an example? -TH --- In flexcoders@yahoogroups.com, Richard Rodseth wrote: > > I wouldn't extend either of these. Favour delegation over inheritance. > > On Tue, Apr 28, 2009 at 3:23 PM, Tim Hoff timh...@... wrote: > > > > > > > Yep,

[flexcoders] Re: Extend Array

2009-04-28 Thread Tim Hoff
n fact, if you look at flash.geom.Matrix > you'll see it derives from Object. > > Googling "composition vs inheritance" or "delegation vs inheritance" should > yield lots of guidance on the general principle. > > HTH > > On Tue, Apr 28, 2009 at 3:39 PM,

[flexcoders] Re: Weblink to item in linkbar

2009-04-28 Thread Tim Hoff
Perfect -TH --- In flexcoders@yahoogroups.com, "Paul Tretter" wrote: > > Tim, > > Your instructions worked very well. I figured out that I only needed to change the weblink in the UrlRequest to be a string. Also, I modified navigateToUrl arguments as such: > > navigateToUrl(request, "_self"); >

[flexcoders] Re: Extend Array

2009-04-28 Thread Tim Hoff
Have you considered if the class approach has any benefit over creating a Multidimensional Array dynamically; based on the data. Except for having the option to create the matrix layout in a fixed manner, it might make sense to just use an Array var. You're going to have to iterate anyway, to s

[flexcoders] Re: best ftp client

2009-04-30 Thread Tim Hoff
Along these same lines, for Windows you can also just map a network drive to the ftp location and use Windows Explorer to drag and drop. -TH --- In flexcoders@yahoogroups.com, "Kevin F. Benz" wrote: > > Trying not to be the heretic in the group, Mac, Linux and PC have an > installed ftp client

[flexcoders] Re: Formatting a bound value within a Text object

2009-04-30 Thread Tim Hoff
Hi Tom, -TH --- In flexcoders@yahoogroups.com, Tom McNeer wrote: > > This seems so simple, yet I can't figure it out -- nor can I find guidance > from the docs or from Google. > > I want to format a date which is being returned from a RemoteObject call. > The object created from the servi

[flexcoders] Re: Trigger DateFormatter bindings

2009-05-03 Thread Tim Hoff
Hi Ben (MrB), Looks like you're going to have to do a little trickery. Binding the formatString doesn't seem to change the date formats. However, if you re-instantiate the DateFormatter it works: [Bindable] private var myDate:Date = new Date(); [Bindable] private var formatString:String = "YYY

[flexcoders] Re: Questions about Canvas and TitleWindow

2009-05-04 Thread Tim Hoff
Hi Jason, For the TitleWindow, the surrounding area is affected by the borderAlpha. For the canvas, you can set the backgroundColor (color is a style for the text). If you're setting these with AS, you need to use myCanvas.setStyle("backgroundColor", 0xff); -TH --- In flexcoders@yahoogrou

[flexcoders] Re: Newbie question: Custom Components and Custom Events

2009-05-04 Thread Tim Hoff
//File: UserEvents.as package events { import flash.events.Event; import vo.User; public class UserEvents extends Event { public static const USER_SUBMIT:String = "userSubmit"; public var user:User; public function UserEvents(type:String, bubbles:Boolean=false, cancelable:Boolean=false) { super(t

[flexcoders] Re: Newbie question: Custom Components and Custom Events

2009-05-04 Thread Tim Hoff
Yeah, as Tracy says, the constant only helps to avoid mis-spelling, by having the compiler help out. You could have done this as well: win.addEventListener("userSubmit", onSubmit); -TH --- In flexcoders@yahoogroups.com, Alan Rother wrote: > > A!!! > > Bingo, thanks everyone... Coming from

[flexcoders] Re: Simple sum operation issue

2009-05-04 Thread Tim Hoff
v = (Math.round (v*100))/100; -TH --- In flexcoders@yahoogroups.com, Marco Catunda wrote: > > I resolved the problem of Floating Point. > I hadn't find any round function at Flex library. But this is on > NumberFormatter class. > Sorry!! > > Here is a workaround of this issue. > > > http://www

[flexcoders] Re: Simple sum operation issue

2009-05-04 Thread Tim Hoff
Actually, that will have problems too. v = 1.5436; var vString:String = String(Math.round(v*100)); var vLength:int = vString.length; vString = vString.substr(0,vLength-2) + "." + vString.substr(sLength-2); Go with the number formatter. -TH --- In flexcoders@yahoogroups.com, "T

[flexcoders] Re: Help Needed

2009-05-04 Thread Tim Hoff
Take a look at Flash Media Server and Adobe Flash Collaboration Service . Also, check out NetStream and NetConnection in the docs. -TH --- In flexcoders@yahoogroups.com, Gopal Anne wrote: >

[flexcoders] Re: 100,000 buttons

2009-05-05 Thread Tim Hoff
I think that you're not trying to make enough of them. If you try 1,000,000, you'll have more choices. :) Seriously, this is like the client that asks, "Why is the application slow? We're only getting 50,000 nested objects back from the server." -TH --- In flexcoders@yahoogroups.com, "ew6014"

[flexcoders] Re: Sorting columns in a Datagrid don't sort with itemRenderer...

2009-05-05 Thread Tim Hoff
Unless the itemRenderer displays just a string or a number, the default sort logic may have problems. Look at the DataGrid's sortCompareFunction. -TH --- In flexcoders@yahoogroups.com, "sailorsea21" wrote: > > Hi everyone, I'm having a problem with sorting columns in a datagrid when using item

[flexcoders] Re: MXML Component and binding with a setter

2009-05-05 Thread Tim Hoff
Probably going to have to show us your getter/setter code; as well as the corresponding private var. If it's an ArrayCollection, it should work. -TH --- In flexcoders@yahoogroups.com, "biosmonkey" wrote: > > I have a custom MXML component that has a setter function, dataInput, that takes an ar

[flexcoders] Re: MXML Component and binding with a setter

2009-05-05 Thread Tim Hoff
datagrid, which > means it is detecting the change to the arraycollection as I would > expect. However, the setter in the custom comp does not fire. > > As a test, I also added a simple int, which IS being detected by a > different setter. > > > > > > > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote: > > > > > > Probably going to have to show us your getter/setter code; as well as > > the corresponding private var. If it's an ArrayCollection, it should > > work. > > > > -TH > > > > >

[flexcoders] Re: MXML Component and binding with a setter

2009-05-05 Thread Tim Hoff
new Event( "dataInputChange" ) ); } -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > > Try rolling with this, to see if it makes a difference: > > private var _dataInput:ArrayCollection; > > [Bindable( event="dataInputChange" )] > public

[flexcoders] Re: TileList dataprovider change bug?

2009-05-05 Thread Tim Hoff
Hmm, never had a problem like this with a TileList. You can try myOldArrayCollection.removeAll(), before setting to the new ArrayCollection. (Hack) Also, make sure that you reset any filterFunctions that you may be using. Perhaps there is something else that is not getting reset before you try

[flexcoders] Re: Data changed in xml file does not updated in

2009-05-06 Thread Tim Hoff
Hi Hery, You probably have the "Copy non-embedded files to output folder" compiler option selected. So, the xml file that your application is referencing is in the bin-debug folder. If you change that file directly, you should be able to get the new data without re-compiling the application. O

[flexcoders] Re: Data changed in xml file does not updated in

2009-05-06 Thread Tim Hoff
If not, you'll have to use URLLoader or HTTPService to load the xml. -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > > Hi Hery, > > You probably have the "Copy non-embedded files to output folder" > compiler option selected. So, the xml

[flexcoders] Re: Data changed in xml file does not updated in

2009-05-06 Thread Tim Hoff
not read at runtime. -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > > If not, you'll have to use URLLoader or HTTPService to load the xml. > > -TH > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote: > > > > > &

[flexcoders] Re: How to do a function/method in a Tree for the label

2009-05-06 Thread Tim Hoff
See labelFunction. -TH --- In flexcoders@yahoogroups.com, "timgerr" wrote: > > Hello all, I am having some troubles with the tree control and an array collection. I have this tree and the data provider is pointing to an array collection. This is working great, I now have to create a label funct

[flexcoders] Re: LinkButton themeColor

2009-05-07 Thread Tim Hoff
The text color and text decoration can be set in CSS. For buttonMode, you can extend LinkButton and use the custom component: package controls { import mx.controls.LinkButton; public class MyLinkButton extends LinkButton { public function MyLinkButton() {

[flexcoders] Re: Tracking a sprite's position

2009-05-07 Thread Tim Hoff
Using enterFrame is pretty expensive. I'd probably listen for SpriteC's move and resize events in the common canvas and position UIComponentB; based on the event.currentTarget.x and y coordinates. The events will have to be bubbled up from SpriteC to UIComponentA to the common canvas. Use localT

[flexcoders] Re: Tracking a sprite's position

2009-05-07 Thread Tim Hoff
x27;t think > Sprites dispatched move and size events and the documentation doesn't > show any such events either. I'll do some more research later, but > please correct me if you know something I don't. > > Thanks for the response. > > Aaron > > Tim Hoff w

[flexcoders] Re: link examples to sell Flex apps to small business clients

2009-05-07 Thread Tim Hoff
This is a very good comercial flex application: http://mediastore.verizonwireless.com/onlineContentStore/index.html # -TH --- In flexcoders@yahoogroups.com

[flexcoders] Re: Tracking a sprite's position

2009-05-07 Thread Tim Hoff
only provide a simple graphical > representation so converting them to uicomponents would probably be more > overkill than watching the sprite's position on each enter_frame. If > you come up with any other ideas, please let me know. > > Aaron > > Tim Hoff wrote: > >

[flexcoders] Re: Tracking a sprite's position

2009-05-07 Thread Tim Hoff
art of a graphical editor where dozens and dozens of > > sprites may be on the stage and they only provide a simple graphical > > representation so converting them to uicomponents would probably be > more > > overkill than watching the sprite's position on each enter_f

[flexcoders] Re: Tracking a sprite's position

2009-05-07 Thread Tim Hoff
> to trigger UIComponent B to update its position. Ugh. That's what I'm > trying to avoid. > > Keep 'em coming if you've got 'em. It's not a dire situation so I'll > save my dire need credits for later if needed. :) > > Aaron > > Tim Hoff

[flexcoders] Re: Tracking a sprite's position

2009-05-07 Thread Tim Hoff
. > > Alex Harui > Flex SDK Developer > 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: Thursday, May 07, 2009 9:32 PM > To: flex

[flexcoders] Re: custom title for panel

2009-05-08 Thread Tim Hoff
Hi Greg, You need to use setActualSize for firstWord and secondWord. Or, just set their width and height explicitly. -TH --- In flexcoders@yahoogroups.com, Greg Morphis wrote: > > I'm trying to write a custom title for a Panel and I thought something > like this would work but nothing's showi

[flexcoders] Re: Sending textinput id

2009-05-08 Thread Tim Hoff
Hi Gustavo, I'm not sure of your implementation, but many times it's easier to persist a working copy of the data in a value object (VO). Each property in the object, that is editable in the form, is bound to it's associated control. When a control changes, update the associated property in the

[flexcoders] Re: Add items to an array list as a child

2009-05-08 Thread Tim Hoff
Have you tried myCollection.addItemAt(obj,0);? -TH --- In flexcoders@yahoogroups.com, "timgerr" wrote: > > I want to add items to an arraycollection as a child > > > --- In flexcoders@yahoogroups.com, "timgerr" tgallagher@ wrote: > > > > Hello all, > > I have a question for you all. I was wonde

[flexcoders] Re: Add items to an array list as a child

2009-05-08 Thread Tim Hoff
w Object(); obj.first = 'lisa'; obj.last = 'griffen'; Object(myCollection[0]).obj = obj; -TH --- In flexcoders@yahoogroups.com, "timgerr" wrote: > > I want to add it as a child to the first item in the arraycollection (myCollection[0]). Can this be done??? >

[flexcoders] Re: Add items to an array list as a child

2009-05-08 Thread Tim Hoff
ate a tree: > > > dataProvider="{myCollection}" > > labelFunction="GetTreeLable" > > click="ItemClicked(event)"> > > > > I only see the first 2 names, Matt and Tom. How do I have the new > > object show as a child of the Matt? &

[flexcoders] Re: Add items to an array list as a child

2009-05-08 Thread Tim Hoff
When I say XML, I mean XMLListCollection. -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > > Honestly, if you're looking to create a hierarchical structure, for use > in a tree control, you would be better searved using XML. The way you > are settin

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