[Xerte] Using stylesheet in Xerte3

Peter Huppertz peter.huppertz at baselgovernance.org
Tue Jun 29 10:05:09 BST 2010


It creates fine. I also tried to do it manually, it gives no error and writes a styles.swf (28kb).


On 29.06.2010, at 10:58, Julian Tenney wrote:

> Do you have the Flex4 SDK in the flexSDK folder? Are you actually creating a styles.swf?
>  
> From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Peter Huppertz
> Sent: 29 June 2010 09:56
> To: Xerte discussion list
> Subject: Re: [Xerte] Using stylesheet in Xerte3
>  
> I tried the below stylesheet, compiled it and included it in my piece. Now the piece just does not compile any more. The Output just shows load time ... and stops there. As soon as I delete the stylesheet property from the application icon everything works fine.  I also tried with my simple test file  - same result.
>  
>  
> On 29.06.2010, at 10:39, Julian Tenney wrote:
> 
> 
> Try this: you need the namespaces in there, I think then you should be able to try a .test style, but get this working first
>  
> @namespace s "MailScanner has detected a possible fraud attempt from "x-msg:" claiming to be library://ns.adobe.com/flex/spark";
> @namespace mx "MailScanner has detected a possible fraud attempt from "x-msg:" claiming to be library://ns.adobe.com/flex/mx";
>  
> mx|global
> {
>   chrome-color:#224466;
> }
>  
> mx|Button
> {
>                 color:#FFFF00;
> }
>  
> From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Peter Huppertz
> Sent: 29 June 2010 09:30
> To: Xerte discussion list
> Subject: Fwd: [Xerte] Using stylesheet in Xerte3
>  
> So this is the last status: As soon as I include a stylesheet my module does not load any more ... (see below).
>  
> Begin forwarded message:
> 
> 
> 
> From: Peter Huppertz <peter.huppertz at baselgovernance.org>
> Date: 24. Juni 2010 16:46:19 MESZ
> To: Peter Huppertz <peter.huppertz at baselgovernance.org>
> Subject: Re: [Xerte] Using stylesheet in Xerte3
>  
> I tried with just a simple 
>  
> .test {
>    color: #ff0000;
> }
>  
> this also prevents my piece from compiling ... so it's not the font-face thing.
>  
> Peter
>  
> On 24.06.2010, at 16:34, Peter Huppertz wrote:
> 
> 
> 
> So I tried again to work on the Stylesheet issue with Xerte3. This time I tried to embed an external font which should work like that:
>  
> styles.css:
>  
> @font-face {
>             src: url("media/myfont.ttf");
>             fontFamily: myFont;
>        cff: false;
> }
>  
> As soon as I include the generated swf as stylesheet in my Application Icon the application does not compile any more ...
>  
> Peter
>  
>  
>  
> On 09.06.2010, at 16:49, Peter Huppertz wrote:
> 
> 
> 
> Any news on how to create/apply styles correctly? I'm very willing to try!
>  
> Peter
>  
>  
> On 01.06.2010, at 16:13, Peter Huppertz wrote:
> 
> 
> 
> I tried different versions. With custom namespace and without. If you use the .xxxx as class style it seems to be OK for Flex, it doesn't warn you about missing namespaces. If you try to style tags / custom tags like p, h1, my_tag it creates a warning, that you need a namespace for that tag.
>  
>  
> On 01.06.2010, at 14:45, Julian Tenney wrote:
> 
> 
> 
> .test {
>    color: #ff0000;
> }
>  
> does you css have the namespaces a tthe top?
>  
> From: xerte-bounces at lists.nottingham.ac.uk on behalf of Peter Huppertz
> Sent: Tue 01/06/2010 13:16
> To: Xerte discussion list
> Subject: Re: [Xerte] Using stylesheet in Xerte3
> 
> Tried
> 
> test {
>    color: #ff0000;
> }
> 
> which throws a warning "'test' must be qualified with a namespace". Nevertheless a styles.swf is created. But Text with <test>My Text</test> does not change ...
> 
> Peter
> 
> On 01.06.2010, at 14:06, Dave Burnett wrote:
> 
> >
> > Will the . in the sheet screw it up?
> >
> >
> >
> > ________________________________
> >> Subject: RE: [Xerte] Using stylesheet in Xerte3
> >> Date: Tue, 1 Jun 2010 12:47:14 +0100
> >> From: Julian.Tenney at nottingham.ac.uk
> >> To: xerte at lists.nottingham.ac.uk
> >>
> >>
> >>
> >> does this work
> >>
> >> ________________________________
> >> From: xerte-bounces at lists.nottingham.ac.uk on behalf of Peter Huppertz
> >> Sent: Tue 01/06/2010 09:51
> >> To: Xerte discussion list
> >> Subject: Re: [Xerte] Using stylesheet in Xerte3
> >>
> >> I created a simple stylesheet:
> >>
> >> .test {
> >> font-size: 32;
> >> color: #ff0000;
> >> }
> >>
> >> and compiled it using Xerte. In a TextField I now tried
> >>
> >> This is my text
> >>
> >> The text is neither red nor big. I also tried
> >
> >>
> >> Peter
> >>
> >>
> >>
> >> On 21.05.2010, at 16:39, Julian Tenney wrote:
> >>
> >> 1 - yes
> >> 2 - create it anywhere you like
> >> 3 - yes, it will create styles.swf and set up the property on the application icon
> >> 4 - see above
> >> 5 - yes
> >>
> >> Don't know about fonts - I've not tried that yet, so let me know what you find out,
> >>
> >> J
> >>
> >>
> >> ________________________________
> >> From: xerte-bounces at lists.nottingham.ac.uk on behalf of Peter Huppertz
> >> Sent: Thu 20/05/2010 17:25
> >> To: Xerte discussion list
> >> Subject: [Xerte] Using stylesheet in Xerte3
> >>
> >>
> >> Sorry for asking so many questions regarding Xerte3 ... I guess it's mainly you, Julian, who is the one who can answer them.
> >> I already wrote regarding the use of stylesheets in Xerte3 and had a look at the example file. But I'm not 100% sure about the process to embed the stylesheet. I guess it should be something like this:
> >>
> >> 1) Extract Flex4 SDK to Xerte3Editor/bin/flex4sdk
> >> 2) Create a stylesheet style.css in /myproject/styles/
> >> 3) Open this file using Compile Style Sheet from the Xerte3 menu (will this generate the .swf?)
> >> 4) Load generated Stylesheet as property "styleSheet" in the XerteApplication icon
> >> 5) Apply styles using the property styleName on icons (is it also possible to use Text in Text?)
> >>
> >> Questions:
> >> - is the above mentioned way the way it should work?
> >> - Does this also embed the used fonts? If not: how can I embed fonts?
> >>
> >> Thanks for your help,
> >>
> >> Peter
> >>
> >> ==================================
> >> Peter Huppertz
> >> E-learning and IT Specialist
> >> International Centre for Asset Recovery
> >> Basel Institute on Governance
> >> Phone: +41 61 205 55 18
> >> Fax: +41 61 267 55 19
> >>
> >> _______________________________________________
> >> Xerte mailing list
> >> Xerte at lists.nottingham.ac.uk
> >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
> >>
> >> _______________________________________________
> >> Xerte mailing list
> >> Xerte at lists.nottingham.ac.uk
> >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
> >>
> >> ==================================
> >> Peter Huppertz
> >> E-learning and IT Specialist
> >> International Centre for Asset Recovery
> >> Basel Institute on Governance
> >> Phone: +41 61 205 55 18
> >> Fax: +41 61 267 55 19
> >>
> >                                        
> > _________________________________________________________________
> > Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
> > http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1_______________________________________________
> > Xerte mailing list
> > Xerte at lists.nottingham.ac.uk
> > http://lists.nottingham.ac.uk/mailman/listinfo/xerte
> 
> ==================================
> Peter Huppertz
> E-learning and IT Specialist
> International Centre for Asset Recovery
> Basel Institute on Governance
> Phone: +41 61 205 55 18
> Fax: +41 61 267 55 19
> 
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
> 
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>  
> ==================================
> Peter Huppertz
> E-learning and IT Specialist
> International Centre for Asset Recovery
> Basel Institute on Governance
> Phone: +41 61 205 55 18
> Fax: +41 61 267 55 19
>  
>  
> ==================================
> Peter Huppertz
> E-learning and IT Specialist
> International Centre for Asset Recovery
> Basel Institute on Governance
> Phone: +41 61 205 55 18
> Fax: +41 61 267 55 19
>  
>  
> ==================================
> Peter Huppertz
> E-learning and IT Specialist
> International Centre for Asset Recovery
> Basel Institute on Governance
> Phone: +41 61 205 55 18
> Fax: +41 61 267 55 19
>  
>  
> ==================================
> Peter Huppertz
> E-learning and IT Specialist
> International Centre for Asset Recovery
> Basel Institute on Governance
> Phone: +41 61 205 55 18
> Fax: +41 61 267 55 19
>  
>  
> ==================================
> Peter Huppertz
> E-learning and IT Specialist
> International Centre for Asset Recovery
> Basel Institute on Governance
> Phone: +41 61 205 55 18
> Fax: +41 61 267 55 19
>  
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>  
> ==================================
> Peter Huppertz
> E-learning and IT Specialist
> International Centre for Asset Recovery
> Basel Institute on Governance
> Phone: +41 61 205 55 18
> Fax: +41 61 267 55 19
>  
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte

==================================
Peter Huppertz
E-learning and IT Specialist
International Centre for Asset Recovery
Basel Institute on Governance
Phone: +41 61 205 55 18
Fax: +41 61 267 55 19

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20100629/f76bfe61/attachment.html


More information about the Xerte mailing list