Yeah, I understand.
The problem as you know is they use apply() so you need the real name of the
setter when flex compiles it. I thought they uses 'setSelectedChild', I
tried that and it was not defined.
Maybe keep generated as could show something.
Mike
On Fri, Oct 10, 2008 at 12:47 PM, Pan Troglodytes <[EMAIL PROTECTED]>wrote:
> Thanks Mike, but that's really what I was trying to avoid. That's the
> same as my example, only the function is anonymous instead. I thought maybe
> there was some way to get Flex to realize I wanted the setter function, not
> the "property."
>
> On Fri, Oct 10, 2008 at 11:30 AM, Michael Schmalle <
> [EMAIL PROTECTED]> wrote:
>
>> Hi,
>> This works, I tested it;
>>
>> callLater(function (stack:ViewStack, container:Container):void {
>> stack.selectedChild = container;
>> }, [viewStack, someBox]);
>>
>>
>> Mike
>>
>>
>> On Fri, Oct 10, 2008 at 12:10 PM, Pan Troglodytes <[EMAIL PROTECTED]
>> > wrote:
>>
>>> Is there some way to use callLater to set a property that has a
>>> setter? So far, all I can think of is to create a dummy function that does
>>> the setting and pass it in the callLater:
>>>
>>> private function setSelectedChild(viewStack:ViewStack,
>>> newChild:Container):void
>>> {
>>> viewStack.selectedChild = newChild;
>>> }
>>>
>>> ...
>>>
>>> callLater(setSelectedChild, [someBox]);
>>>
>>>
>>> Any better way to do it?
>>>
>>> --
>>> Jason
>>>
>>>
>>
>>
>> --
>> Teoti Graphix, LLC
>> http://www.teotigraphix.com
>>
>> Teoti Graphix Blog
>> http://www.blog.teotigraphix.com
>>
>> You can find more by solving the problem then by 'asking the question'.
>>
>
>
>
> --
> Jason
>
>
>
--
Teoti Graphix, LLC
http://www.teotigraphix.com
Teoti Graphix Blog
http://www.blog.teotigraphix.com
You can find more by solving the problem then by 'asking the question'.