This type of issue used to get me all the time with the classic Flex SDK.
I'd have some subclass of Panel or something, but I'd have some kind of
selectedItem property on it that dispatched Event.CHANGE. If I had a child
that was a Slider or something, the slider's Event.CHANGE would bubble, and
I think we can use setParentTarget to get bubbling to work reliably with
custom events, but as Peter said, I don't think we want to set up
parentTarget's just-in-case. Bubbling custom events is not a recommended
practice as was mentioned in some other thread recently.
Imagine if you had a Panel
I needed events to bubble for the drag and drop work. While that was fine
for the Flash Player, the FlexJS/Google/Browser event mix didn't work.
Alex suggested I used setParentTarget on the event to work up the tree and
then the event would be dispatched at each level, thus mimicking bubbling.
I
Bubbling does not work very well in FlexJS in general.
When you can rely on native browser event bubbling, it usually works okay, but
custom events don’t bubble.
> On Jul 21, 2017, at 1:49 AM, Justin Mclean wrote:
>
> Hi,
>
>> The issue was that the TitleBar was
Hi,
> The issue was that the TitleBar was dispatching "close" with bubbles=true.
> This works fine on SWF but not on the HTML platform without some extra
> work. So I just had PanelView intercept the event and dispatch one from
> its strand.
Out of interest is this because of a missing
t; <[hidden email]
>>>> <http:///user/SendEmail.jtp?type=node=63395=0>> wrote:
>>>>
>>>> >Even if the Application instance isn’t an IPopUpHost the method will
>>>> just
>>>> >return null, so the effect is the same as jus
?type=node=63395=0>> wrote:
>>>
>>> >Even if the Application instance isn’t an IPopUpHost the method will
>>> just
>>> >return null, so the effect is the same as just doing (appInstance as
>>> >IPopUpHost). I suspect the method is being mi
the method will
>> just
>> >return null, so the effect is the same as just doing (appInstance as
>> >IPopUpHost). I suspect the method is being misused rather than there
>> >being a problem with the method.
>> >
>> >From: Alex Harui<mailto:[hidden email]
>
e as
> >IPopUpHost). I suspect the method is being misused rather than there
> >being a problem with the method.
> >
> >From: Alex Harui<mailto:[hidden email]
> <http:///user/SendEmail.jtp?type=node=63395=1>>
> >Sent: Tuesday, July 18, 2017 8:33 AM
> &g
ct is the same as just doing (appInstance as
>IPopUpHost). I suspect the method is being misused rather than there
>being a problem with the method.
>
>From: Alex Harui<mailto:aha...@adobe.com.INVALID>
>Sent: Tuesday, July 18, 2017 8:33 AM
>To: dev@flex.apache.org<
LID>
Sent: Tuesday, July 18, 2017 8:33 AM
To: dev@flex.apache.org<mailto:dev@flex.apache.org>
Subject: Re: [FlexJS] findPopupHost issue
FWIW, it may not be safe to assume that Application will always be an
IPopUpHost, hence the utility function.
Thanks,
-Alex
On 7/17/17, 9:59
FWIW, it may not be safe to assume that Application will always be an
IPopUpHost, hence the utility function.
Thanks,
-Alex
On 7/17/17, 9:59 PM, "piotrz" wrote:
>Hi Yishay,
>
>That's a good point - Application is itself an IPopupHost. I've asked him
>what is the use
Hi Yishay,
That's a good point - Application is itself an IPopupHost. I've asked him
what is the use case for his host popup search.
Thanks,
Piotr
-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context:
I think there’s confusion over what a popup host is. A popup host is where you
would add an IPopUp. UIUtils.findPopUpHost(myComp as IUIBase) finds the closest
ancestor for myComp to which a popup can be added. These lines from
ComboBoxView demonstrate the usage:
var
14 matches
Mail list logo