[flexcoders] Re: FlexBuilder 3 Beta 2 charting and license

2007-12-20 Thread johantrax
As previously stated in this discussion: It is expected behaviour, since beta3 is already configured for use with FB3 licenses, not the ones from FB2. Matt stated in another thread here that if you really are in a position where you absolutely need the watermark to be removed during this beta-peri

[flexcoders] Re: const?

2007-12-20 Thread johantrax
> unless you have a split personality. Well... it might be you just provided the answer there. When working on a project having the size of Flex, you work in a team. Most probably a short function is indeed written by one person. But what guarantees that nobody else will one day pass by and alter

[flexcoders] Re: const?

2007-12-20 Thread johantrax
Then it's out of my league, perhaps someone from Adobe could help us out? (subtile hint ;) --- In flexcoders@yahoogroups.com, "reflexactions" <[EMAIL PROTECTED]> wrote: > > Actually I wouldnt mind betting that code of yours would run without > any error at all, native types are passed by value n

[flexcoders] Re: const?

2007-12-20 Thread johantrax
I think you still pretty much get the concept of const. It means the value of yyy cannot be changed after initialisation. To actually see it used in methods like this.. I assume the example you gave is a bit 'stripped down' :p If I get it correctly, everything is ActionScript is passed by referenc

[flexcoders] Re: Flex <> JavaFX <> Sliverlight <> Flash

2007-12-19 Thread johantrax
> What is the difference between an RIA desktop application (e.g. in Flex) and > a standard desktop application (e.g. Swing based) ? A RIA is an application with as primary goal (well, second to primary: working should always be the first goal) the user-experience. RIA-development is all about maki

[flexcoders] Re: Flex <> JavaFX <> Sliverlight <> Flash

2007-12-18 Thread johantrax
It depends, languages and technologies are tools: use the right one for the right job. So starting at the beginning: Do you want to develop a web-app or a desktop application? Given your own suggestions I assume you are familiar with creating a Java-backend. First I'll start by ruling out Flash:

[flexcoders] Re: Force DataGrid item to update style

2007-12-17 Thread johantrax
--- In flexcoders@yahoogroups.com, "m.frigge" <[EMAIL PROTECTED]> wrote: > > Hey there, > > i found some nice examples for an itemRenderer here > tml> . > I tried to use one of them for an app i am developing. > In my cas

[flexcoders] Debug::warning: multiple describeType entries for ...

2007-12-17 Thread johantrax
Hi all, I'm creating a custom component in mxml, and discovered a warning while I was debugging (due to sth else). What followed was a stripped-down testcase to reproduce the warning, which seems to be successfull. But I can't get my head around how to get rid of this warning: warning: multip

[flexcoders] Flex Builder 3 public beta 3 on Labs

2007-12-13 Thread johantrax
http://labs.adobe.com/technologies/flex/flexbuilder3/ Be sure to uninstall beta2 before installing beta3! (and also, read the release notes ;) ) --Johan

[flexcoders] Re: RegExpValidator

2007-12-06 Thread johantrax
--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]> wrote: > > On Thursday 06 Dec 2007, johantrax wrote: > > ^[a-zA-Z\s]*$ > > will match alphanumeric (no special chars) and whitspace only > > No, just alpha ? > ^[a-zA-Z0-9\s]*$ > would be al

[flexcoders] Re: RegExpValidator

2007-12-06 Thread johantrax
Kill me, shoot me, whatever ;) Just found out the correct expression to use.. ^[a-zA-Z\s]*$ will match alphanumeric (no special chars) and whitspace only --Johan

[flexcoders] RegExpValidator

2007-12-06 Thread johantrax
Hi all, I'd like to validate some textfields to match on alphabetic input and whitespace only, which brought me to the RegExpValidator. (Rather long post, please bear with me) First of all: I'm no big hero in regular expressions. I mostly can read one when I see one, but that's about it. So I fig

[flexcoders] Re: Binding to a ViewStack Child Container Property

2007-12-06 Thread johantrax
--- In flexcoders@yahoogroups.com, "tedgies" <[EMAIL PROTECTED]> wrote: > > Jeez, what happened? I've never been cutoff when posting to a > newsgroup before! > Just seems like a misunderstanding both ways. Your first post only stated you were trying, not that it didn't work... And the 'And?' from

[flexcoders] Re: Probleme Upload File de flex vers PHP

2007-12-05 Thread johantrax
--- In flexcoders@yahoogroups.com, "exuperok" <[EMAIL PROTECTED]> wrote: > > Hello How should understand this trace when uploading file to php > application: > > what does eventPase = 2 means? same thing for bubbles=false? bubbles = false means the event doesn't 'bubble' eventPhase = 2 means the

[flexcoders] Re: Can VBoxes in an Accordion be of variable height?

2007-12-04 Thread johantrax
Setting resizeToContent="true" on the accordiontag might get you there. I do believe this means you have to set the width for each direct child of the accorion explicitly, otherwise the accordion will shrink/grow horizontally too. --Johan --- In flexcoders@yahoogroups.com, justSteve <[EMAIL PROTE

[flexcoders] Re: Flex Calendar...

2007-11-29 Thread johantrax
I don't see much of an 'attached image', but the things you mention can be achieved by extending/subclassing the standard datechooser. However I don't have the impression that what you want to achieve is something that will go easily, considering being new as a Flex-developper. If you're into cale

[flexcoders] Re: string to date, no support for european dates ?

2007-11-29 Thread johantrax
--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]> wrote: > > As soon as Flex 3 is open sourced, I'll be submitting the code for inclusion > myself, as a replacement for the current Date.parse() :-) > Just be sure to alter the endOfDay-function to this one: /** * Return the date

[flexcoders] Re: getElement from scope

2007-11-29 Thread johantrax
Hi Raf, item.modelns::name.text(); is a way of accessing the variable name.text() in another namespace (item.modelns). This is far more complicated than it needs to be. An example: ___ components/Example.mxml --- http://www.adobe.com/2006/mxml"; initiali

[flexcoders] Re: string to date, no support for european dates ?

2007-11-28 Thread johantrax
--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]> wrote: > > If you *must* allow users to type in the box, you want to parse the String > into a real Date (once the control loses focus) then assign that Date back to > the control, before calling your validation - assuming the s

[flexcoders] Re: string to date, no support for european dates ?

2007-11-28 Thread johantrax
--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]> wrote: > > DateField.*date* not DateField.*data* > Tom, would be nice to use *date*, only.. this isn't a property of the DateField... There is however the property selectedDate, but as stated in the docs: "Date as selected in

[flexcoders] Re: getElement from scope

2007-11-28 Thread johantrax
> Like if i create a to work with it on the > actionscript just use foo.text = 'bla' for example. > The reason you can access foo in your AS here is because when you define an mxml-tag, it basically becomes a public, bindable property of that class. So if you want the same in AS it's sth like:

[flexcoders] Re: string to date, no support for european dates ?

2007-11-27 Thread johantrax
--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]> wrote: > > > Why are you manipulating the String of a DateField, and not the Date ? > Hi Tom, This is because the call to super.doValidation(value) needs a string as parameter, using the date gives the following validationErro

[flexcoders] string to date, no support for european dates ?

2007-11-27 Thread johantrax
Hi, I'm writing a custom DateValidator (subclassing it in AS) which adds 2 properties to the existing one: minDate:Date and maxDate:Date What I'd like to do is compare the dates to see if the inputted date is within the correct range. However, I can't tell which inputFormat f.e. a DateField will

[flexcoders] adding children: best practices

2007-11-26 Thread johantrax
Hi all, I have some components that dynamically generate their children. However I'm wondering what would be the best practice for this, or which method you prefer and why. Currently I'm down to 2 methods: 1. creating/adding the childcomponents in an initialize handler, bindings get executed in a

[flexcoders] Re: Viewstack problems

2007-11-19 Thread johantrax
First lets explain the problem: A viewstack normally doesn't create all it's children, but only the visible ones. This has been done in an ateempt to minimize the startuptime of your application. Possible solution: 1. Ask yourself if you really need to write data on something that is not visible.

[flexcoders] Re: Context menu in flex

2007-11-17 Thread johantrax
A little examplecode: <> //creates a new entry in the contextMenu // which is handled by the (self-written) function doMyCommand(Event) var myCMI:ContextMenuItem; myCMI = new ContextMenuItem("myMenuCommand"); myCMI.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, doMyCommand); this.treeComponent

[flexcoders] Re: how do I freeze the users actions while data is loading

2007-11-15 Thread johantrax
How about creating a little popup that shows 'Loading..' ? Then let it close by the resulthandler. --jeetee --- In flexcoders@yahoogroups.com, "Mark" <[EMAIL PROTECTED]> wrote: > > I have a web service that's getting data to fill comboBoxes then the "real" data. This takes a > few seconds. I'

[flexcoders] Re: PopUpManager.removePopUp Not Removing Modal Overlay

2007-11-15 Thread johantrax
Sounds like there could be an error|nullreference|illegal thing somewhere in the closeHandler of your TitleWindow.. It's a bit like using Alert.show(nullobject.property), which will lay over the modal part, but won't show the Alert. --jeetee --- In flexcoders@yahoogroups.com, "bryanpoopbartow" <

[flexcoders] Re: Code for preventing browser caching of SWF

2007-11-13 Thread johantrax
I used to be rather good in js, and I think i found your solution. In AC_OETags.js, the function AC_GetArgs, change the following (line 200): case "src": case "movie": args[i+1] = AC_AddExtension(args[i+1], ext); ret.embedAttrs["src"] = args[i+1]; ret.param

[flexcoders] Re: RightClick Event

2007-11-12 Thread johantrax
Well, if I recall correctly, the right-click-event doesn't exist in Flash. However you can alter the contextMenu.customItems (Array) of a component at any time, being even when it's not visible. And you can even use data-binding on it's items. Good luck, --jeetee --- In flexcoders@yahoogroups.c

[flexcoders] Re: Date(String) vs 'String as Date' | DateField

2007-11-12 Thread johantrax
--- In flexcoders@yahoogroups.com, "johantrax" <[EMAIL PROTECTED]> wrote: > > Hi all, > > Currently I'm working with a custom DateField, being a canvas with 2 > states: "text" and "insert", and a public bindable property value:Date

[flexcoders] Date(String) vs 'String as Date' | DateField

2007-11-12 Thread johantrax
Hi all, Currently I'm working with a custom DateField, being a canvas with 2 states: "text" and "insert", and a public bindable property value:Date the component: http://www.adobe.com/2006/mxml"; currentState="text" creationComplete="init()" > .vet { font-weight: bold;

[flexcoders] Re: Progress Bar Item Renderer

2007-11-12 Thread johantrax
Seems to me that Flex doesn't like scripts anywhere but in the root of a document. I do not have any experience with item-renderers, nor do I have with loaders, but this is my guess: If you create the ItemRenderer as a custom mxml-component, then you should be able to set a script-block in this fi

[flexcoders] Re: Progress Bar Item Renderer

2007-11-12 Thread johantrax
The source-property is bindable, though as stated in the docs: "Refers to the control that the ProgressBar is measuring the progress of. Use this property only in event and polled mode. A typical usage is to set this property to a Loader control." Since you set your mode to manual, the source-prop

[flexcoders] Re: Hold execution untill result from database

2007-11-01 Thread johantrax
I think this is rather what I was doing, The canvas raises the creationComplete-event and contains info about what children should be instantiated. Then this canvas requests that instance by calling getUIComponent(). This static method is part of a class called UIComponentFactory, a part of my lib

[flexcoders] Re: Hold execution untill result from database

2007-11-01 Thread johantrax
I doubt this to work correctly. This most propably will work if I only have to make 1 request to a db, however if the canvas makes 3 calls to the getUIComponent-method (for instantiating 3 children), how will I know which call will take the longest ? --Johan --- In flexcoders@yahoogroups.com, "Tr

[flexcoders] Re: Hold execution untill result from database

2007-11-01 Thread johantrax
any printout. > > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of johantrax > Sent: Wednesday, October 31, 2007 12:25 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Hold execution untill result

[flexcoders] Hold execution untill result from database

2007-10-31 Thread johantrax
Hi all (again... I'm having a productive day ;) ) I'm trying to lift the creation of components to a new level (at least, for me) What I have: (if it is possible...) 1. I have an .AS-class which describes a person. To keep it simple, the person only has a name(String) and a photo(String - the URI)

[flexcoders] Re: switching states and binding

2007-10-31 Thread johantrax
No difference using data. I solved it by explicitly setting the property in the revertState()-function: this.imgURL = this.editImage.text; I assume the edit-view could hold it's altered value because, when altering it's value, only the text/data-value for the textfield is changed, and due

[flexcoders] Re: parseFloat vs Number

2007-10-31 Thread johantrax
sy to write a test and then find out later there is some > situation you overlooked that then invalidates your original small > test. > > > --- In flexcoders@yahoogroups.com, "johantrax" johan.temmerman@ > wrote: > > > > Well, sometimes to discover you ought

[flexcoders] Re: parseFloat vs Number

2007-10-31 Thread johantrax
Well, sometimes to discover you ought to try ;) I built you a little sample-application showing the results of parseFloat and Number() (and 'as Number', which gives, lets say 'predictable', results when used on a String) http://www.adobe.com/2006/mxml"; creationComplete="showNumbers()" >

[flexcoders] switching states and binding

2007-10-31 Thread johantrax
Hi All, I'm currently creating my own imagecomponent, which has 4 states: * image : display the image * text : display the uri * edit : display uri in an inputfield * both : display image+uri The idea is that when a non-edit-state is double-clicked, the editstate gets activated and my

[flexcoders] Re: addChild & creationCompleteEffect

2007-10-25 Thread johantrax
What I have done is setting a breakpoint on the line of the move-effect-tag in which both width and height are 0. So Now I have added some 'debugging-alerts' (1) one in the creationcomplete-event of the popupwindowcomponent, before the inner form is added (2) one in the creationcomplete-event of

[flexcoders] Re: addChild & creationCompleteEffect

2007-10-22 Thread johantrax
Desperate bump. Still getting nowhere, and to popup a window of 600*400 on a 800*600 screen, without being able to center it is not really appealing... Thank, Johan --- In flexcoders@yahoogroups.com, "johantrax" <[EMAIL PROTECTED]> wrote: > > Hi all, > > I c

[flexcoders] Re: TabNavigator and includeInlayout

2007-10-22 Thread johantrax
Apologies for the late reply, I have been busy with some other project. I'll check out the superTabNavigator as suggested, will post subsequent data on failure. --Johan --- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote: > > includeInLayout is a flag on UIComponent and the

[flexcoders] TabNavigator and includeInlayout

2007-10-19 Thread johantrax
I'm having some trouble understanding the 'why' of the restriction on the includeInLayout-property As Stated in the livedocs, includeInLayout only applies to: * Box, or any of its subclasses: HBox, VBox, DividedBox, HDividedBox, VdividedBox, Grid, GridItem, GridRow, ControlBar, and Application

[flexcoders] Re: addChild & creationCompleteEffect

2007-10-18 Thread johantrax
Thanks for the input, however with little success. Adding the effect to showEffect gives nothing. If I recall correctly showeffect is triggered by clicking the object when it's inside a viewstack. However listening to the childAdd brought me to the following idea. At the end of me creationComplete

[flexcoders] Re: addChild & creationCompleteEffect

2007-10-18 Thread johantrax
Nobody with any tips? :( --Johan --- In flexcoders@yahoogroups.com, "johantrax" <[EMAIL PROTECTED]> wrote: > > Hi all, > > I create a TitleWindow with the PopupManager. The titlewindow should > dynamically contain a canvas. > So how did I do that. I gave

[flexcoders] Re: change click of button with state

2007-10-15 Thread johantrax
nvm, just discovered --Johan --- In flexcoders@yahoogroups.com, "johantrax" <[EMAIL PROTECTED]> wrote: > > Hi again, > > Seems I'm not having my day today. > The problem I'm now facing is: I have a button in a state called > 'insert'. I ha

[flexcoders] change click of button with state

2007-10-15 Thread johantrax
Hi again, Seems I'm not having my day today. The problem I'm now facing is: I have a button in a state called 'insert'. I have a state 'update' which is based on the insert-state. The button should have a different clickhandler in the updatestate. However using: The debugger gives: Refer

[flexcoders] addChild & creationCompleteEffect

2007-10-15 Thread johantrax
Hi all, I create a TitleWindow with the PopupManager. The titlewindow should dynamically contain a canvas. So how did I do that. I gave the titlewindow a property called 'contentForm' which contains a canvas. Then in the creationComplete-event of the titlewindow, addChild(contentForm) is called fo