[flexcoders] automationName in Components

2007-09-11 Thread Michael Herron
Hi, I was wondering if it is possible to dynamically set the automationName property of a control at runtime? For example, if I have a component that contains a label: MyComponent.mxml And I want to include more than one instance of this component in a single application:

RE: [flexcoders] RemoteClass

2007-05-29 Thread Michael Herron
Have you strongly reference the com.beans.Sale class in your Application? Your RemoteClass meta-data looks fine, but if you've not got a hard reference to the class inside your flex app, it won't be compiled in to the SWF and won't be mapped correctly at runtime. You can get round this by just a

[flexcoders] createChild with dynamically loaded classes

2006-08-08 Thread Michael Herron
Hi all,   I’m having a very specific problem with createChild calls that I will try to sum-up as briefly as possible:   A.SWF loads B.SWF through a Loader component, both are originally flex applications. A invokes a particular method on B, passing down an instance of Panel. In this m

RE: [flexcoders] Re: Question about Enable / Disable Validator

2005-11-16 Thread Michael Herron
From a cairngorm View Helper you should usually use syntax like:   mx.validators.Validator.disable(view, "modelName.elementName");   There isn’t really a “current document” in flex, the first argument you need to provide is just a reference to the document that the you are validating

RE: [flexcoders] Accessing the root of a custom component

2005-10-10 Thread Michael Herron
You don’t need an ID as the properties from the super class are within the “this” scope of the custom component..so if you extended the TextInput and wanted to set the text property:         public function setDefault(){     //Sets the text property to a

RE: [flexcoders] Cairgorn Bug?

2005-09-16 Thread Michael Herron
There are only so many things it can be:   · Have you registered the event correctly with the controller? · Has the controller been instantiated? · Has the controller been instantiated BEFORE the event is broadcast? o    When is the event broadcast? ·   

RE: [flexcoders] Re: Dynamic Tree and VO's

2005-08-05 Thread Michael Herron
How about   event.selectedItem.attributes.postcode?   I guess label works as its kind of native to the tree..   Mike. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bhaq1972 Sent: 05 August 2005 13:09 To: flexcoders@yahoogroups.com Subject: [flexco

RE: [flexcoders] date.getUTCMonth / date.getUTCDate with a leading zero

2005-08-01 Thread Michael Herron
Look up the dateFormatter class (mx.formatters.DateFormatter). In your format function, create an instance of it and supply it with the format string “DD\MM\” and that should give you what you want.   Ta.     From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups

RE: [flexcoders] Creation events and view stack children

2005-06-30 Thread Michael Herron
only after the children of a component have been created?   Cheers Mike From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Michael Herron Sent: 30 June 2005 12:55 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Creation events and view stack

RE: [flexcoders] Creation events and view stack children

2005-06-30 Thread Michael Herron
: Michael Herron To: flexcoders@yahoogroups.com Sent: Thursday, June 30, 2005 6:43 AM Subject: [flexcoders] Creation events and view stack children   Hi all, a quick question about view stack instantiation:   If I have a view stack, creation policy auto, with two children

[flexcoders] Creation events and view stack children

2005-06-30 Thread Michael Herron
Hi all, a quick question about view stack instantiation:   If I have a view stack, creation policy auto, with two children:                       ChildOne.mxml:  

RE: [flexcoders] Event Listeners

2005-05-19 Thread Michael Herron
ed in respect of any viruses transmitted by the e-mail. Please ensure your own checks are carried out before any attachments are opened.       From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael Herron Sent: 19 May 2005 12:18 To: flexcoders@yah

[flexcoders] Event Listeners

2005-05-19 Thread Michael Herron
All,   I am having a problem with removing event listeners on a panel.   I am adding the event listener like so:       pane.addEventListener("contentCreated", Delegate.create(this, handleEvent) );   But trying to remove the event listener using removeEventListener does not

RE: [flexcoders] Using FlexUnit with Cairngorm

2005-04-11 Thread Michael Herron
Its an interesting problem Allen, and one that ive been trying to tackle for a while. The easiest way to do this is to: Var view:Object; Function setup(){ View.myLabel = new Label() viewHelper = new myViewHelper()

RE: [flexcoders] Help with a custom component

2005-03-11 Thread Michael Herron
: [flexcoders] Help with a custom component   On Fri, 11 Mar 2005 09:54:39 -, Michael Herron <[EMAIL PROTECTED]> wrote: > · Or, is there an easier, more elegant way to provide an editable > date field? (The docs indicate "editable" property  inherited from ComboBase &g

Help with a custom component

2005-03-11 Thread Michael Herron
Hi all. I'm looking for some help with custom components. Basically, I have done a bit of a hack and managed to get something that appears to the user as an editable date field, by placing a TextInput over top of a DateField control and capturing the required events (see attached for the code).

RE: [flexcoders] Cairngorm view helpers and dynamic loading of content

2005-03-08 Thread Michael Herron
Hi Jimmy,   I wasn’t actually aware of the unregisterView method on the view helper! After adding this, the problem seems to be solved (cheers Steven). From: Dimitrios Gianninas [mailto:[EMAIL PROTECTED] Sent: 07 March 2005 13:55 To: [EMAIL PROTECTED] Subject: RE: [flexcoders]

Cairngorm view helpers and dynamic loading of content

2005-03-07 Thread Michael Herron
Hi all   Currently, I have a framework where separate “modules” are loaded in to a central panel using the createChild method. The reason for using this method as opposed to a view stack for example is the amount of these “modules” that I could potentially have is huge and it seems easier

RE: [flexcoders] newbie

2005-03-03 Thread Michael Herron
Hi,   This is an issue that I have also had to deal with recently.   I had limited success using code similar to that which you have outlined below. The major problem is that pressing CTRL + the majority of keys causes the browser to intercept these key presses and perform its own actio

DateField Through Action script

2005-02-28 Thread Michael Herron
Hi all, just a quick one:   For the purposes of unit testing cairngorm view helpers, I create a “mock” view object as such:       view.labelOne = new Label();     view.textBoxOne = new TextBox();   Then assign this as the view object in the view helper. This usually w

RE: [flexcoders] Cairngorm and deferred instantiation

2005-02-18 Thread Michael Herron
Steven,   Take your point, just wanted to see if there was anybody else that had come across this or found any different solutions.   Not wanting to get the view helper on demand was just a small point of style, it just made sense to get the view helper in the constructor. Like you

RE: [flexcoders] Cairngorm and deferred instantiation

2005-02-18 Thread Michael Herron
Steven,   The problem is that the front controller for the entire application will still be instantiating all the required command classes at start up. The command classes in turn will use the view locator in their constructors to get the view helpers they need.  So even though the com

RE: [flexcoders] Cairngorm and deferred instantiation

2005-02-17 Thread Michael Herron
That’s certainly a workable strategy, but from a design point of view the separate “tabs” (in reality a view stack but works on same principles) are really applications within their own right and I would like to be able include them just by passing their root mxml name. Also, children will

Cairngorm and deferred instantiation

2005-02-17 Thread Michael Herron
Hi All   Apologies for the blank post.    My problem is this:  When using a tab navigator/view stack or any other component that uses deferred instantiation, the required view helpers are not created at start up. That is, they are children of tab navigator and not loaded until required

[no subject]

2005-02-17 Thread Michael Herron
A Sd

RE: [flexcoders] Cairngorm Event to Command

2005-02-04 Thread Michael Herron
r = ViewLocator.getInstance().getViewHelper( "view2" ); view1ViewHelper.doSomethingInView1(); view2ViewHelper.doSomethingInView2(); } Alex. -Original Message- From: Michael Herron [mailto:[EMAIL PROTECTED] Sent: Friday, February 04, 2005 3:39 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Cairn

RE: [flexcoders] Cairngorm Event to Command

2005-02-04 Thread Michael Herron
var view1ViewHelper = ViewLocator.getInstance().getViewHelper( "view1" ); var view2ViewHelper = ViewLocator.getInstance().getViewHelper( "view2" ); view1ViewHelper.doSomethingInView1(); view2ViewHelper.doSomethingInView2(); } Alex. -Original Message- From: Michael Herron

RE: [flexcoders] Cairngorm Event to Command

2005-02-04 Thread Michael Herron
singleton within one command. Regards, Alex. -Original Message- From: Michael Herron [mailto:[EMAIL PROTECTED] Sent: Friday, February 04, 2005 2:48 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Cairngorm Event to Command Hi all Just a quick question about using cairngorm: In

Cairngorm Event to Command

2005-02-04 Thread Michael Herron
Hi all Just a quick question about using cairngorm: In my application when a product has been added, I wish to broadcast a "product added" event and have it picked up by two separate command classes that will update two separate views. Unfortunately, when the event is broadcast, it only seems to