You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by piotrz <pi...@gmail.com> on 2017/03/04 12:50:01 UTC

[FlexJS] backgroundAlpha doesn't work

Hi Guys,

I have found this old jira [1]. I just checked and backgroundAlpha is not
working on JS sight. It look like in CSS there is no background alpha rather
"opacity". - Maybe we should add "opacity" to the list of SimpleCSSStyles ?

I wanted to check also whether it is working on Flash sight but container
with following code [2] is not display at all. Can someone confirm this one
?

[1] https://issues.apache.org/jira/browse/FLEX-35000
[2] https://paste.apache.org/UdGY

Piotr



-----
Apache Flex PMC
piotrzarzycki21@gmail.com
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-backgroundAlpha-doesn-t-work-tp60069.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: [FlexJS] backgroundAlpha doesn't work

Posted by Justin Mclean <ju...@classsoftware.com>.
HI,

> If you have a backgroundImage on the JS you would probably want to set opacity on the background image, if you have a backgroundColour and  backgroundAlpha  on the JS side you will probably want to use an RGBA.

Forgot to add that backgroundAlpha on the AS side effects both background colour and background image so it seems reasonable to keep it the same on the JS side (as above)

If you remove background alpha and only use RGBA colours then there no way to set background alpha on images in AS/JS. So perhaps removing it isn’t a good idea?

Thanks,
Justin

Re: [FlexJS] backgroundAlpha doesn't work

Posted by Justin Mclean <ju...@classsoftware.com>.
Hi,

> Is this the right thread which Alex is talking about ? I saw some time ago
> some commits from you in this area - it was some fix ?

Yep I placed a couple of fixes in there so it that correctly parses RGBA values. There may be some bugs in other areas around RGBA values.

With that fix this will work:
<js:Container width="100" height="100">
<js:style>
    <js:SimpleCSSStyles backgroundColor="rgba(255,0,0,0.1)" />
</js:style>
</js:Container>

> I'm trying to understand what need to be done more apart of removing
> "backgroundAlpha " in order to resolve this jira: FLEX-35000

People form the flex SDK side are going to be used to backgroundAlpha so I’m not sure it's best to rename it? But not too fussed if it is.

If you have a backgroundImage on the JS you would probably want to set opacity on the background image, if you have a backgroundColour and  backgroundAlpha  on the JS side you will probably want to use an RGBA.

Thanks,
Justin

Re: [FlexJS] backgroundAlpha doesn't work

Posted by piotrz <pi...@gmail.com>.
Justin,

Is this the right thread which Alex is talking about ? I saw some time ago
some commits from you in this area - it was some fix ?

I'm trying to understand what need to be done more apart of removing
"backgroundAlpha " in order to resolve this jira: FLEX-35000

[1]
http://apache-flex-development.2333347.n4.nabble.com/FlexJS-SimpleCSSStyles-backgroundAlpha-not-working-on-JS-td59628.html#a59647

Thanks,
Piotr



-----
Apache Flex PMC
piotrzarzycki21@gmail.com
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-backgroundAlpha-doesn-t-work-tp60069p60570.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: [FlexJS] backgroundAlpha doesn't work

Posted by Alex Harui <ah...@adobe.com>.
I think Justin asked about this recently, and the answer is we need to
remove the backgroundAlpha style and support RGBA.  I think opacity is
like Sprite.alpha and affects more than the background.

-Alex

On 3/4/17, 4:50 AM, "piotrz" <pi...@gmail.com> wrote:

>Hi Guys,
>
>I have found this old jira [1]. I just checked and backgroundAlpha is not
>working on JS sight. It look like in CSS there is no background alpha
>rather
>"opacity". - Maybe we should add "opacity" to the list of SimpleCSSStyles
>?
>
>I wanted to check also whether it is working on Flash sight but container
>with following code [2] is not display at all. Can someone confirm this
>one
>?
>
>[1] https://issues.apache.org/jira/browse/FLEX-35000
>[2] https://paste.apache.org/UdGY
>
>Piotr
>
>
>
>-----
>Apache Flex PMC
>piotrzarzycki21@gmail.com
>--
>View this message in context:
>http://apache-flex-development.2333347.n4.nabble.com/FlexJS-backgroundAlph
>a-doesn-t-work-tp60069.html
>Sent from the Apache Flex Development mailing list archive at Nabble.com.