You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Fréderic Cox <co...@gmail.com> on 2016/10/27 18:55:15 UTC

Setting source to external CSS does not work

I am creating my first projects in Flex 0.7.0 tonight.

I must say the installation guidelines from the WIKI are very clear and I
was set-up very quickly.

I encountered a first "issue", is it the right place to report/ask about it
here? Or should I use something like stackoverflow for my questions?

Anyway I created a simple view:

<js:View>

<js:beads>

<js:VerticalLayout />

</js:beads>

<js:Container>

<js:beads>

<js:HorizontalLayout />

</js:beads>

<js:Label text="First name" className="labelStyles" width="120" />

<js:TextInput>

<js:beads>

<js:TextPromptBead prompt="Please enter your name here.." />

</js:beads>

</js:TextInput>

</js:Container>

</js:View>

and I would now like to style it using our company's main website (replaced
it with {companyDomain}.com for this thread). I tried:

<fx:Style source="https://www.static.
{companyDomain}.com/styles/master-v2.2-99371.css" />

but then I get the following error:

/Users/frederic/Desktop/Personal/Flex/FlexJSTest/src/FlexJSTest.mxml:14

Can't find 'source' file
"/Users/frederic/Desktop/Personal/Flex/FlexJSTest/src/https:/www.static.{companyDomain}.com/styles/master-v2.2-99371.css".

<fx:Style source="https://www.static.{companyDomain}.com/styles/master-v2.2-99371.css"
/>

          ^

Is it not supposed to work like this? It would be nice if this worked

Re: Setting source to external CSS does not work

Posted by Carlos Rovira <ca...@codeoscopic.com>.
Hi Frederic,

I think is better to go with actual 0.8.0-snapshot since there's some
things from 0.7.0 state.
What I do is use sourceTree to update the 3 repositories and build with
maven (since is a breeze)
Then develop, build , test, ..
As more more is done, I synchronize again rebuild, etc...
Maybe as we reach a 1.0 could be not necessary work in this mode, but we
are still in a point where many things are set up, but not all.
Imagine you need a component still not in place, you could develop it and
contribute as you are going your own way...




2016-10-27 21:18 GMT+02:00 Alex Harui <ah...@adobe.com>:

>
>
> On 10/27/16, 11:55 AM, "Fréderic Cox" <co...@gmail.com> wrote:
>
> >
> >and I would now like to style it using our company's main website
> >(replaced
> >it with {companyDomain}.com for this thread). I tried:
> >
> ><fx:Style source="https://www.static.
> >{companyDomain}.com/styles/master-v2.2-99371.css" />
> >
> >but then I get the following error:
> >
> >/Users/frederic/Desktop/Personal/Flex/FlexJSTest/src/FlexJSTest.mxml:14
> >
> >Can't find 'source' file
> >"/Users/frederic/Desktop/Personal/Flex/FlexJSTest/src/
> https:/www.static.{c
> >ompanyDomain}.com/styles/master-v2.2-99371.css".
> >
> ><fx:Style
> >source="https://www.static.{companyDomain}.com/styles/
> master-v2.2-99371.cs
> >s"
> >/>
> >
> >          ^
> >
> >Is it not supposed to work like this? It would be nice if this worked
>
> The compiler isn't set up make get css over the network right now.  It
> might be possible.  Feel free to file a feature request.
>
> If you make a local copy of it, it should work.
>
> Also, you can grab the nightly build and try the -html-template option.
> Get the template from templates/js-index-template.html and add your
> <style> tag.
>
> Hopefully that will work too.
> -Alex
>
>


-- 

Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es


Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.

De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.

Re: Setting source to external CSS does not work

Posted by Alex Harui <ah...@adobe.com>.

On 10/27/16, 11:55 AM, "Fréderic Cox" <co...@gmail.com> wrote:

>
>and I would now like to style it using our company's main website
>(replaced
>it with {companyDomain}.com for this thread). I tried:
>
><fx:Style source="https://www.static.
>{companyDomain}.com/styles/master-v2.2-99371.css" />
>
>but then I get the following error:
>
>/Users/frederic/Desktop/Personal/Flex/FlexJSTest/src/FlexJSTest.mxml:14
>
>Can't find 'source' file
>"/Users/frederic/Desktop/Personal/Flex/FlexJSTest/src/https:/www.static.{c
>ompanyDomain}.com/styles/master-v2.2-99371.css".
>
><fx:Style 
>source="https://www.static.{companyDomain}.com/styles/master-v2.2-99371.cs
>s"
>/>
>
>          ^
>
>Is it not supposed to work like this? It would be nice if this worked

The compiler isn't set up make get css over the network right now.  It
might be possible.  Feel free to file a feature request.

If you make a local copy of it, it should work.

Also, you can grab the nightly build and try the -html-template option.
Get the template from templates/js-index-template.html and add your
<style> tag.

Hopefully that will work too.
-Alex