Thanks for all of the help guys! I have gotten things pretty much
working now: I just need to sort out some issues relating to working
with multidimensional data-sources, which I'm going to post in another
thread. In case it is helpful to anyone else though, here is the
near-completed class:
/
>
> [Bindable]
> public function set test(value:String):void
> {
> _test = value;
> Alert.show(_test);
> }
>
> So perhaps the constructor is simply called before the variable has been
> set?
You are correct! You should call the alert box after in
I'm testing the variable during the FilterManager constructor. I
actually don't have Flex Builder, so I've been using Alert and
ObjectUtil to output information about the variables at run-time, e.g.:
public function FilterManager():void {
super();
Alert.show(test
Glad to be of assistance.
--- In flexcoders@yahoogroups.com, "superbokbok" wrote:
>
> yup it should work...I did this & it worked fine :)
>
> /***\
>
> * Filter Manager
>
> *
yup it should work...I did this & it worked fine :)
/***\
* Filter Manager
\
**/
package custom {
import flash.events.Event;
impo
That should work.
When are you testing the variable test (ie. where is your breakpoint set) when
you get a null value.
--- In flexcoders@yahoogroups.com, "Keith Hughitt" wrote:
>
> test="Test String" width="100%" height="100%"/>
>
So how are you instantiating a FilterManager object?
--- In flexcoders@yahoogroups.com, "Keith Hughitt" wrote:
>
> Hi Steve,
>
> Thanks, that makes things pretty clear. I'm still having trouble passing in
> variables. For example, in the MXML example above I specify a "test" variable.
>
> Whe
Hi Steve,
Thanks, that makes things pretty clear. I'm still having trouble passing in
variables. For example, in the MXML example above I specify a "test" variable.
When I try to access it in the FilterManager constructor, however, the variable
is empty (both "test," and "_test").
I must be mi
MXML is just a nice easy way to create an instance of a class. Flex will
compile the MXML into ActionScript and then compile that into bytecode for the
Flash Player to run.
When you instantiate the object in MXML, the parameters will either be public
variables of the class or will be set via se
Hi Valdhor,
Thanks for the suggestion, that is a very good idea and something I hadn't
thought of. I'll certainly try that out, however, I'm still uncertain as to how
to pass in / accept data in custom AS classes. For instance, when I specify
things as MXML parameters, are they available in the
Why are you trying to bind a datagrid? That is a display object.
A far better way is to pass in the arraycollection the datagrid is based on.
Then just create the datagrid in your custom component.
--- In flexcoders@yahoogroups.com, "Keith Hughitt" wrote:
>
> Hi all,
>
> I have been working o
12 matches
Mail list logo