You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by Lee Burrows <su...@leeburrows.com> on 2013/12/13 02:25:08 UTC

Skinning help

Hi All,

I am trying to create an AS3 skin for a component. One of the skin parts 
is a SkinnablePopupContainer.

The problem is that this part does not trigger partAdded() in the host 
component (presumably something to do with it being a popup).

So how can i trigger partAdded? Could the skin dispatch an event? or 
call a method of the host component?

Thanks,

-- 
Lee Burrows
ActionScripter


Re: Skinning help

Posted by Lee Burrows <su...@leeburrows.com>.
How embarrassing! I had a typo in my code

Problem solved, but thanks for the help

On 13/12/2013 01:34, João Fernandes wrote:
> then it should fire partAdded, I think CalloutButton does work in a similar
> way, it's a button with a callout which extends skinnablePopupContainer.
>
>
> On 13 December 2013 01:31, Lee Burrows <su...@leeburrows.com> wrote:
>
>> Yes - it is defined as [SkinPart] in the host component.
>>
>>
>> On 13/12/2013 01:28, João Fernandes wrote:
>>
>>> you could define your popupcontainer as a skinPart, no?
>>>
>>>
>>> On 13 December 2013 01:25, Lee Burrows <su...@leeburrows.com>
>>> wrote:
>>>
>>>   Hi All,
>>>> I am trying to create an AS3 skin for a component. One of the skin parts
>>>> is a SkinnablePopupContainer.
>>>>
>>>> The problem is that this part does not trigger partAdded() in the host
>>>> component (presumably something to do with it being a popup).
>>>>
>>>> So how can i trigger partAdded? Could the skin dispatch an event? or call
>>>> a method of the host component?
>>>>
>>>> Thanks,
>>>>
>>>> --
>>>> Lee Burrows
>>>> ActionScripter
>>>>
>>>>
>>>>
>> --
>> Lee Burrows
>> ActionScripter
>>
>>
>


-- 
Lee Burrows
ActionScripter


Re: Skinning help

Posted by João Fernandes <jo...@gmail.com>.
then it should fire partAdded, I think CalloutButton does work in a similar
way, it's a button with a callout which extends skinnablePopupContainer.


On 13 December 2013 01:31, Lee Burrows <su...@leeburrows.com> wrote:

> Yes - it is defined as [SkinPart] in the host component.
>
>
> On 13/12/2013 01:28, João Fernandes wrote:
>
>> you could define your popupcontainer as a skinPart, no?
>>
>>
>> On 13 December 2013 01:25, Lee Burrows <su...@leeburrows.com>
>> wrote:
>>
>>  Hi All,
>>>
>>> I am trying to create an AS3 skin for a component. One of the skin parts
>>> is a SkinnablePopupContainer.
>>>
>>> The problem is that this part does not trigger partAdded() in the host
>>> component (presumably something to do with it being a popup).
>>>
>>> So how can i trigger partAdded? Could the skin dispatch an event? or call
>>> a method of the host component?
>>>
>>> Thanks,
>>>
>>> --
>>> Lee Burrows
>>> ActionScripter
>>>
>>>
>>>
>>
>
> --
> Lee Burrows
> ActionScripter
>
>


-- 

João Fernandes

Re: Skinning help

Posted by Lee Burrows <su...@leeburrows.com>.
Yes - it is defined as [SkinPart] in the host component.

On 13/12/2013 01:28, João Fernandes wrote:
> you could define your popupcontainer as a skinPart, no?
>
>
> On 13 December 2013 01:25, Lee Burrows <su...@leeburrows.com> wrote:
>
>> Hi All,
>>
>> I am trying to create an AS3 skin for a component. One of the skin parts
>> is a SkinnablePopupContainer.
>>
>> The problem is that this part does not trigger partAdded() in the host
>> component (presumably something to do with it being a popup).
>>
>> So how can i trigger partAdded? Could the skin dispatch an event? or call
>> a method of the host component?
>>
>> Thanks,
>>
>> --
>> Lee Burrows
>> ActionScripter
>>
>>
>


-- 
Lee Burrows
ActionScripter


Re: Skinning help

Posted by João Fernandes <jo...@gmail.com>.
you could define your popupcontainer as a skinPart, no?


On 13 December 2013 01:25, Lee Burrows <su...@leeburrows.com> wrote:

> Hi All,
>
> I am trying to create an AS3 skin for a component. One of the skin parts
> is a SkinnablePopupContainer.
>
> The problem is that this part does not trigger partAdded() in the host
> component (presumably something to do with it being a popup).
>
> So how can i trigger partAdded? Could the skin dispatch an event? or call
> a method of the host component?
>
> Thanks,
>
> --
> Lee Burrows
> ActionScripter
>
>


-- 

João Fernandes