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

2008-10-01 Thread wesley.petrowski
I'm not sure if this is applicable, but since a newline on a windows system is \r\n (CR + LF), is it possible that hitting enter adds both these characters, and then hitting backspace only removes the last character, leaving the \r? I would have thought the built-in TextArea component would

[flexcoders] Re: Template Engine for Flash?

2008-09-30 Thread wesley.petrowski
StringUtil.substitute might help with the token replacement. --- In flexcoders@yahoogroups.com, Weyert de Boer [EMAIL PROTECTED] wrote: Hello! Does anyone know some simple text-based template engine for Flash? I would like to generate some text files based on code snippets/templates in

[flexcoders] Re: passing complex objects through LocalConnection

2008-09-26 Thread wesley.petrowski
--- In flexcoders@yahoogroups.com, Jonathon Stierman [EMAIL PROTECTED] wrote: Has anyone been able to make this work? I have a sample up and running (and receiving the callbacks), but my arguments come back only as Object class instances. Using an args[0] is MyComplexObject returns false

[flexcoders] Re: passing complex objects through LocalConnection

2008-09-26 Thread wesley.petrowski
Sorry about the empty post - meant to say: Take a look at registerClassAlias - http://livedocs.adobe.com/flex/3/langref/flash/net/package.html#reg\ isterClassAlias() --- In flexcoders@yahoogroups.com, Jonathon Stierman [EMAIL PROTECTED] wrote: Has anyone been able to make this work? I have a

[flexcoders] Re: passing complex objects through LocalConnection

2008-09-26 Thread wesley.petrowski
--- In flexcoders@yahoogroups.com, Jonathon Stierman [EMAIL PROTECTED] wrote: Ahh, thank you! That does retain the class definition. But it doesn't seem to have included all the nested complex objects - I have a three layer deep model (Library Bookshelf Book, for example), and while

[flexcoders] Re: passing complex objects through LocalConnection

2008-09-26 Thread wesley.petrowski
*sigh* Another blank message. Rich Text Editor doesn't like me today, it seems. What I had written was: Are you making a registerClassAlias call for each complex object? That's the only thing I can think of. I've got a similar situation with nested complex objects, and while I'm using

[flexcoders] Is adding children in updateDisplayList() wrong?

2008-09-25 Thread wesley.petrowski
Hey list, I'm trying to dynamically create a HSlider and add it as a child in the updateDisplayList method of a Canvas subclass. When I do this, I get a run-time exception because the slider's updateDisplayList runs before the slider's commitPropertes (and commitProperties seems to set up

[flexcoders] Re: Sharing xml data across components

2008-09-25 Thread wesley.petrowski
Maybe I'm just missing some complexity of the problem, but any reason why something like this wouldn't work? (assuming the scrolling ticker can accept XML in its dataProvider) private function resultHandler(evt:ResultEvent):void { var result:XML = evt.result; datagrid.dataProvider =

[flexcoders] Re: Possible to add some data to load to the default preloader?

2008-06-10 Thread wesley.petrowski
I've done something like this before where I leave the default preloader UI up until additional loading has been completed. If you decide to go down that road, the steps I used were something like this: - Subclass DownloadProgressBar and override the setter for the preloader property. -

[flexcoders] Re: OOP and Work for Hire

2008-06-10 Thread wesley.petrowski
I imagine this is the norm, unless there is something different with Flex-specific shops. I think the general idea is they don't want to pay people to write code, only to have them quit and take the stuff they wrote to a competitor. You can still reuse your code, as long as you do it for the

[flexcoders] Re: flex2 change sdk?

2008-05-20 Thread wesley.petrowski
As far as I know, that was a new feature introduced in Flex 3. --- In flexcoders@yahoogroups.com, Dennis Falling [EMAIL PROTECTED] wrote: How do you select which SDK to use in flex builder 2? In 3 you can specify a default for all projects and set one for each project.

[flexcoders] Re: Show tooltip on click - possible?

2008-05-15 Thread wesley.petrowski
It's possible, but ugly. I did a similar thing in a project I'm working on where I wanted errorTips to show on focusIn/focusOut. I created a subclass of ToolTipManagerImpl and overrode the registerErrorTip method - you'd want to override registerToolTip instead. The current implementation adds

[flexcoders] Re: Flash Player 10 Beta

2008-05-15 Thread wesley.petrowski
Even if you don't install it permanently, you could always try it out for a day or two, make sure your apps work with the new player. --- In flexcoders@yahoogroups.com, Nick Collins [EMAIL PROTECTED] wrote: You should be fine. The new APIs (IK, 3D transformations, etc.) aren't available in

[flexcoders] Re: Programmatically setting default styles that can be overriden with a stylesheet?

2008-05-12 Thread wesley.petrowski
You can try something like this (seemed to work for me): ?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.Label; override protected function createChildren():void {

[flexcoders] Re: Newbie question: Removing text from textarea/disabling a character

2008-04-24 Thread wesley.petrowski
For #1, you can use the restrict property of TextArea. It should do exactly what you need. http://livedocs.adobe.com/flex/3/langref/mx/controls/TextArea.html#res trict --- In flexcoders@yahoogroups.com, valdhor [EMAIL PROTECTED] wrote: For 1 you would probably have to add an event listener

[flexcoders] Re: RPC Fault (rss feeds)

2008-03-25 Thread wesley.petrowski
If you don't have permissions to put files at the root of the server, you can use Security.loadPolicyFile() to load a crossdomain.xml from a custom location. --- In flexcoders@yahoogroups.com, bornaeon [EMAIL PROTECTED] wrote: Hi all. I am working in my full flex site, and in one part of

[flexcoders] Re: Capturing TabClick in mx:TabNavigator

2008-01-08 Thread wesley.petrowski
This should work: public function onCreationComplete():void { tabNav.addEventListener(IndexChangedEvent.CHANGE, tabsChanged); } private function tabsChanged(event:IndexChangedEvent):void { //do validation } --- In flexcoders@yahoogroups.com, Dharmendran A [EMAIL PROTECTED] wrote: Hi,

[flexcoders] Validators messing with runtime styles

2008-01-03 Thread wesley.petrowski
Hello, I'm having a problem where input fields that fail validation don't pick up a borderColor style from a runtime stylesheet. I've got a small test case below with a NumberValidator hooked up to a TextInput and two buttons that load/unload some styles. If you type a number in the field

[flexcoders] Namespaced XML as a dataProvider for ColumnSeries

2007-12-20 Thread wesley.petrowski
Hello, I'm having a problem with using XML that contains namespaces as a data provider for a ColumnChart. When setting the yField property of the ColumnSeries, nothing shows up in the chart if I just use the local name portion, and there seems to be no way to specify a namespace. There is a