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:
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
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
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
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
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?
·
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
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
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
: 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
Hi all, a quick question
about view stack instantiation:
If I have a view stack,
creation policy auto, with two children:
ChildOne.mxml:
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
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
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()
: [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
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).
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]
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
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
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
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
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
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
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
A
Sd
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
var view1ViewHelper =
ViewLocator.getInstance().getViewHelper( "view1" );
var view2ViewHelper =
ViewLocator.getInstance().getViewHelper( "view2" );
view1ViewHelper.doSomethingInView1();
view2ViewHelper.doSomethingInView2();
}
Alex.
-Original Message-
From: 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
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
29 matches
Mail list logo