You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@royale.apache.org by Carlos Rovira <ca...@apache.org> on 2018/03/06 15:40:36 UTC
How to inject html with a theme class
Hi
I want the theme define the typography to use, to get this I'm using the
inject_html tag in the constructor
The only class I have in the theme is the following
package
{
/**
* @private
* This class is used to link additional classes into JewelTheme.swc
* beyond those that are found by dependecy analysis starting
* from the classes specified in manifest.xml.
*/
internal class JewelThemeClasses
{
/**
* constructor.
*
* <inject_html>
* <link href="https://fonts.googleapis.com/css?family=Lato"
rel="stylesheet">
* </inject_html>
*
* @langversion 3.0
* @playerversion Flash 10.2
* @playerversion AIR 2.6
* @productversion Royale 0.9.2
*/
public function JewelThemeClasses()
{
super();
}
}
}
But this is not working since I don't get anything injected in the html
anyone knows what could be the problem?
thanks
--
Carlos Rovira
http://about.me/carlosrovira
Re: How to inject html with a theme class
Posted by Carlos Rovira <ca...@apache.org>.
btw, I attach the swfdump
2018-03-11 23:12 GMT+01:00 Carlos Rovira <ca...@apache.org>:
> Hi Alex,
>
> I was looking at this problem and finaly get library.swf to be 6k and with
> info about JewelThemeFontInject
> but JewelExample fails the same way:
>
> [-load-config=/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/
> royale/JewelExample/target/compile-app-config.xml, -js-output=/Users/
> carlosrovira/Dev/Royale/Source/royale-asjs/examples/
> royale/JewelExample/target/javascript, -compiler.targets=JSRoyale,SWF,
> /Users/carlosrovira/Dev/Royale/Source/royale-asjs/
> examples/royale/JewelExample/src/main/royale/App.mxml]
> /Users/carlosrovira/Dev/Royale/Source/royale-asjs/
> examples/royale/JewelExample/JewelTheme-0.9.3-SNAPSHOT.swc:royale-jewel-blue.css(24):
> col: 11 Error: org.apache.royale.jewel.JewelThemeFontInject is not
> defined.
>
>
> /Users/carlosrovira/Dev/Royale/Source/royale-asjs/
> examples/royale/JewelExample/JewelTheme-0.9.3-SNAPSHOT.swc:royale-jewel-blue.css(24):
> col: 11 Error: org.apache.royale.jewel.JewelThemeFontInject is not
> defined.
>
>
> /Users/carlosrovira/Dev/Royale/Source/royale-asjs/
> examples/royale/JewelExample/JewelTheme-0.9.3-SNAPSHOT.swc:royale-jewel-blue.css(24):
> col: 11 Error: org.apache.royale.jewel.JewelThemeFontInject is not
> defined.
>
> some thoughts about why now that class seems to be available in SWC the
> error remains?
>
> thanks
>
>
> 2018-03-07 17:44 GMT+01:00 Alex Harui <ah...@adobe.com.invalid>:
>
>> When you say the files are empty, does that mean it is truly 0 bytes or
>> just doesn’t contain the classes you want?
>>
>>
>> If no classes are specified to be compiled due to COMPILE::SWF and
>> COMPILE::JS blocks then the library.swf will not contain those classes.
>> The library compile succeeds because it thinks it is doing what you told
>> it to (not what you wanted it to) and so the failure point is in the
>> application compile when that class is finally needed to link the output
>> SWF. The library compiler does not check ClassReferences in the CSS files
>> in the SWC. The CSS files are not parsed by the library compiler, they
>> are just included.
>>
>> If the file is truly empty, then check the script output. Maybe it
>> couldn't find the jar it launches because you are using Maven.
>>
>> -Alex
>>
>> On 3/7/18, 6:59 AM, "carlos.rovira@gmail.com on behalf of Carlos Rovira"
>> <carlos.rovira@gmail.com on behalf of carlosrovira@apache.org> wrote:
>>
>> >Hi Alex,
>> >
>> >I did it :
>> >
>> >../royale-compiler/compiler/src/assembly/scripts/swfdump -abc
>> library.swf
>> >>
>> >mysqc.txt
>> >
>> >
>> >(for both -swf.swc and -js.swc), and both files (mysqc.txt) are empty
>> >
>> >
>> >so what could be happen? why there's nothing in library.swf but there's
>> >.js
>> >generated?
>> >
>> >
>> >thanks
>> >
>> >
>> >
>> >
>> >2018-03-06 23:18 GMT+01:00 Alex Harui <ah...@adobe.com.invalid>:
>> >
>> >> SWCs contained compiled AS, not the .as file itself. And Royale SWCs
>> >>also
>> >> contain .js files. So the proof is really in SWFDump-ing the
>> >>library.swf
>> >> in the SWC. We need to verify that JewelThemeFontInject is in the
>> >> library.swf.
>> >>
>> >> So:
>> >>
>> >> -unzip the SWC.
>> >> -Run bin/swfdump -abc library.swf >MySWC.txt
>> >> -Look in MySWC.txt for JewelThemeFontInject.
>> >>
>> >> Then we'll worry about the app compile.
>> >>
>> >> -Alex
>> >>
>> >> On 3/6/18, 1:30 PM, "carlos.rovira@gmail.com on behalf of Carlos
>> Rovira"
>> >> <carlos.rovira@gmail.com on behalf of carlosrovira@apache.org> wrote:
>> >>
>> >> >Hi Alex,
>> >> >
>> >> >2018-03-06 22:04 GMT+01:00 Alex Harui <ah...@adobe.com.invalid>:
>> >> >
>> >> >> Hi Carlos,
>> >> >>
>> >> >> I don't think there is per-platform CSS, so
>> >> >> org.apache.royale.jewel.JewelThemeFontInject needs to be in the SWC
>> >>for
>> >> >> both the SWF and JS compile.
>> >> >
>> >> >
>> >> >right, I checked both SWF and JS SWC files and both have the same, and
>> >>one
>> >> >of the files is
>> >> >org.apache.royale.jewel.JewelThemeFontInject.js in his folder
>> structure
>> >> (I
>> >> >expect to find the .as in SWC file for SWF, is that right?)
>> >> >
>> >> >
>> >> >> I couldn't quite tell from the commit
>> >> >> message, but it looked like JewelThemeFontInject might have been set
>> >>up
>> >> >>to
>> >> >> be JSOnly.
>> >> >>
>> >> >
>> >> >mmm...I though SWC files where agnostic, and the compilation is valid
>> >>for
>> >> >both JS and SWF targets. If not, don't know how to do that
>> >> >in JewelExample I have in the pom <targets>JSRoyale,SWF</targets>
>> >> >And tried to remove SWF but the result is the same error
>> >> >If I remove JSRoyale, the compilation succed, but the error is still
>> >>there
>> >> >and since for SWF there are other problems like linear-gradients,
>> >>there's
>> >> >no SWF generation at the moment.
>> >> >
>> >> >
>> >> >> Also, it shouldn't matter, but I would not bother to put
>> >> >> org.apache.royale.jewel.JewelThemeFontInject in the manifest.
>> Nobody
>> >> >> should be using it in MXML.
>> >> >>
>> >> >
>> >> >Right I'll remove it
>> >> >
>> >> >
>> >> >>
>> >> >> Check the SWC. You can unzip it and SWFDump the library.swf and it
>> >> >>should
>> >> >> have org.apache.royale.jewel.JewelThemeFontInject in it, and
>> >> >>anequivalent
>> >> >> .js file.
>> >> >>
>> >> >
>> >> >There's only one .js file, that's what I think it's not right, there
>> >> >should
>> >> >be a .as and a .js? (I think a .as for swc swf file, and a .js for swc
>> >>js
>> >> >file)
>> >> >
>> >> >thanks
>> >> >
>> >> >Carlos
>> >> >
>> >> >
>> >> >> HTH,
>> >> >> -Alex
>> >> >>
>> >> >> On 3/6/18, 12:56 PM, "carlos.rovira@gmail.com on behalf of Carlos
>> >> >>Rovira"
>> >> >> <carlos.rovira@gmail.com on behalf of carlosrovira@apache.org>
>> wrote:
>> >> >>
>> >> >> >Hi Alex,
>> >> >> >
>> >> >> >more near, but still fails. I put the quotes failed, then I figured
>> >> >>that I
>> >> >> >put in jewel package similar to lib, so I changed to :
>> >> >> >
>> >> >> >fonts:
>> >>ClassReference("org.apache.royale.jewel.JewelThemeFontInject");
>> >> >> >
>> >> >> >this failed in similar way:
>> >> >> >
>> >> >> >[INFO] Executing MXMLC in tool group Royale with args:
>> >> >> >[-load-config=/Users/carlosrovira/Dev/Royale/
>> >> >> Source/royale-asjs/examples/r
>> >> >> >oyale/JewelExample/target/compile-app-
>> >> >> >config.xml,
>> >> >>
>> >>>-js-output=/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/
>> >> >> roya
>> >> >> >le/JewelExample/target/javascript,
>> >> >> >-compiler.targets=JSRoyale,SWF,
>> >> >> >/Users/carlosrovira/Dev/Royale/Source/royale-asjs/
>> >> >> examples/royale/JewelExa
>> >> >> >mple/src/main/royale/
>> >> >> >App.mxml]
>> >> >> >/Users/carlosrovira/Dev/Royale/Source/royale-asjs/
>> >> >> examples/royale/JewelExa
>> >> >> >mple/JewelTheme-
>> >> >> >0.9.2-SNAPSHOT.swc:defaults.css(29): col: 10 Error:
>> >> >> >org.apache.royale.jewel.JewelThemeFontInject is not defined.
>> >> >> >
>> >> >> >I recheck all files but can see what's could be wrong
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >2018-03-06 19:51 GMT+01:00 Alex Harui <ah...@adobe.com.invalid>:
>> >> >> >
>> >> >> >> I missed that ClassReference puts the class in quotes. Try:
>> >> >> >>
>> >> >> >> fonts: ClassReference("JewelThemeFontInject") ;
>> >> >> >>
>> >> >> >>
>> >> >> >> HTH,
>> >> >> >> -Alex
>> >> >> >>
>> >> >> >> On 3/6/18, 10:31 AM, "carlos.rovira@gmail.com on behalf of
>> Carlos
>> >> >> >>Rovira"
>> >> >> >> <carlos.rovira@gmail.com on behalf of carlosrovira@apache.org>
>> >> wrote:
>> >> >> >>
>> >> >> >> >Hi Alex,
>> >> >> >> >
>> >> >> >> >the 4 method seems ok but I'm getting this error:
>> >> >> >> >
>> >> >> >> >[INFO] Executing MXMLC in tool group Royale with args:
>> >> >> >> >[-load-config=/Users/carlosrovira/Dev/Royale/
>> >> >> >> Source/royale-asjs/examples/r
>> >> >> >> >oyale/JewelExample/target/compile-app-
>> >> >> >> >config.xml,
>> >> >> >>
>> >>
>> >>>>>-js-output=/Users/carlosrovira/Dev/Royale/Source/
>> royale-asjs/examples/
>> >> >> >> roya
>> >> >> >> >le/JewelExample/target/javascript,
>> >> >> >> >-compiler.targets=JSRoyale,SWF,
>> >> >> >> >/Users/carlosrovira/Dev/Royale/Source/royale-asjs/
>> >> >> >> examples/royale/JewelExa
>> >> >> >> >mple/src/main/royale/
>> >> >> >> >App.mxml]
>> >> >> >> >/Users/carlosrovira/Dev/Royale/Source/royale-asjs/
>> >> >> >> examples/royale/JewelExa
>> >> >> >> >mple/JewelTheme-
>> >> >> >> >0.9.2-SNAPSHOT.swc:defaults.css(28): col: 11 Error:
>> >> >>ewelThemeFontInjec
>> >> >> >>is
>> >> >> >> >not defined.
>> >> >> >> >
>> >> >> >> >if I unzip the theme -js.swc I can see JewelThemeFontInject.js
>> >>file
>> >> >> >>inside
>> >> >> >> >in the out folder (in its own package), so I think the theme SWC
>> >>is
>> >> >>ok.
>> >> >> >> >
>> >> >> >> >I put the declaration in
>> >> >> >> >
>> >> >> >> >.royale *, . royale *:before, . royale *:after {
>> >> >> >> > -moz-box-sizing: border-box;
>> >> >> >> > -webkit-box-sizing: border-box;
>> >> >> >> > box-sizing: border-box;
>> >> >> >> >
>> >> >> >> > fonts: ClassReference(JewelThemeFontInject) ;
>> >> >> >> >}
>> >> >> >> >
>> >> >> >> >so this is getting notice.
>> >> >> >> >
>> >> >> >> >but the error show the name of the class without first letter
>> >>Error:
>> >> >> >> >ewelThemeFontInjec is not defined
>> >> >> >> >
>> >> >> >> >any thoughts?
>> >> >> >> >
>> >> >> >> >thanks!
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >2018-03-06 18:26 GMT+01:00 Alex Harui <aharui@adobe.com.invalid
>> >:
>> >> >> >> >
>> >> >> >> >> Only <inject_html> from classes actually linked into the final
>> >> >> >> >>application
>> >> >> >> >> will be used.
>> >> >> >> >>
>> >> >> >> >> I think there are a few choices:
>> >> >> >> >> 1) require everyone use a particular html-template
>> >> >> >> >> 2) require some bead be used
>> >> >> >> >> 3) require a different Application subclass
>> >> >> >> >> 4) try to hack it in as follows:
>> >> >> >> >>
>> >> >> >> >> In the defaults.css for Jewel, add
>> >> >> >> >>
>> >> >> >> >> .Jewel { fonts: ClassReference(JewelInjectHTML) }
>> >> >> >> >>
>> >> >> >> >> And create a JewelInjectHTML class with the desired
>> >><inject_html>
>> >> >>on
>> >> >> >>the
>> >> >> >> >> constructor.
>> >> >> >> >>
>> >> >> >> >> That will have a bit of extra overhead, but might work.
>> >> >> >> >>
>> >> >> >> >> HTH,
>> >> >> >> >> -Alex
>> >> >> >> >>
>> >> >> >> >> On 3/6/18, 8:35 AM, "carlos.rovira@gmail.com on behalf of
>> >>Carlos
>> >> >> >> Rovira"
>> >> >> >> >> <carlos.rovira@gmail.com on behalf of carlosrovira@apache.org
>> >
>> >> >> wrote:
>> >> >> >> >>
>> >> >> >> >> >Hi Piotr,
>> >> >> >> >> >
>> >> >> >> >> >no, that's that I want to get in the resultant html file. I
>> >>don't
>> >> >> >> >>think I
>> >> >> >> >> >understand your question, that's exactly what I'm asking, why
>> >> >>that
>> >> >> >> >>line is
>> >> >> >> >> >not in the final HTML file, I suppose that is because is a
>> >>theme
>> >> >> >>file
>> >> >> >> >>and
>> >> >> >> >> >maybe the JewelThemeClasses.as is not used, but don't know
>> >>how to
>> >> >> >>make
>> >> >> >> >>it
>> >> >> >> >> >work
>> >> >> >> >> >
>> >> >> >> >> >thanks
>> >> >> >> >> >
>> >> >> >> >> >2018-03-06 17:06 GMT+01:00 Piotr Zarzycki
>> >> >> >><pi...@gmail.com>:
>> >> >> >> >> >
>> >> >> >> >> >> Link once again: <link
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> >>>>>>>>>>href="https://na01.safelinks.protection.outlook.co
>> m/?url=https%3A
>> >>>>>>>>>>%2F%2Fna01.safelinks.protection.outlook&data=02%
>> 7C01%7Caharui%40a
>> >>>>>>>>>>dobe.com%7Cc29454dc81424abfa1b008d5843c2bca%
>> 7Cfa7b1b5a7b34438794a
>> >>>>>>>>>>ed2c178decee1%7C0%7C0%7C636560316321675878&sdata=
>> 5j95MG6WqoLy5YSj
>> >>>>>>>>>>y4P%2FD2A5u1rQHJr6ZBqyUYUYPQY%3D&reserved=0.
>> >> com/?url=https%3A%2
>> >> >>>>>>>>F%2Fna01.safelinks.protection.outlook&data=02%
>> >> 7C01%7Caharui%40adobe
>> >> >>>>>>>>.com%7C52bafe9ca1d24b9b486f08d583a99b5c%
>> >> 7Cfa7b1b5a7b34438794aed2c17
>> >> >>>>>>>>8decee1%7C0%7C0%7C636559686834559221&sdata=
>> >> ZYz0Z%2B%2FEKrjwgfCwdQhS
>> >> >>>>>>>>bUopjBNsH5wfpkKiSN%2Bltm8%3D&reserved=0.
>> >> >> com/?url=https%3A%2F%
>> >> >> >>>>>>2Fna01.safelinks.protection.outlook&data=02%7C01%7Caharui%
>> >> >> 40adobe.com
>> >> >> >>>>>>%7Cd529a696163d4105e0f608d583a4d4e1%
>> >> 7Cfa7b1b5a7b34438794aed2c178de
>> >> >> cee
>> >> >>
>> >> >>>>>>>>1%7C0%7C0%7C636559666333752025&sdata=
>> >> 1OzBzVetTJVqzHNC8QEUL3I7yM9KyU
>> >> >> jV
>> >> >> >>>>>>Mpo8kYVEsnw%3D&reserved=0.
>> >> >> >> com/?url=https%3A%2F%2F
>> >> >> >>
>> >>
>> >>>>>>>>na01.safelinks.protection.outlook&data=02%7C01%7Caharui%
>> 40adobe.com
>> >> >> >> %7C9
>> >> >> >> >>>>0d36aa7b58d4a8f037a08d5839081a1%7Cfa7b1b5a7b34438794aed2
>> c178de
>> >> >> >> cee1%7C0%
>> >> >> >> >>>>7C0%7C636559579033937825&sdata=5puVvWSyXU5Lh1gy9f9gJ1iEl
>> 0N1sp
>> >> >> >> EXJza%2FJG
>> >> >> >> >>>>m6Xug%3D&reserved=0.
>> >> >> >> >> com/?url=https%3A%2F%2Ffo
>> >> >> >> >>
>> >>>>nts.googleapis.com%2Fcss%3Ffamily%3DLato&data=02%7C01%7Caharui%
>> >> >> >> >> 40adobe.co
>> >> >> >> >> >>m%7C335f9e4addc14bb6bbb708d58380469b%
>> >> >> 7Cfa7b1b5a7b34438794aed2c178de
>> >> >> >> >> cee1%7
>> >> >> >> >>
>> >> >> >>>>C0%7C0%7C636559509319053690&sdata=yA7%
>> >> 2Bh88X94JpycunvMJSNuCflIoOkddb
>> >> >> >> >> ODAux
>> >> >> >> >> >>creWGM%3D&reserved=0"
>> >> >> >> >> >> rel="stylesheet">
>> >> >> >> >> >>
>> >> >> >> >> >> 2018-03-06 17:06 GMT+01:00 Piotr Zarzycki
>> >> >> >> >><pi...@gmail.com>:
>> >> >> >> >> >>
>> >> >> >> >> >> > I meant here something else. Do you have in your head
>> >> >>something
>> >> >> >> >>like
>> >> >> >> >> >>that
>> >> >> >> >> >> > after compilation in the html files ?
>> >> >> >> >> >> >
>> >> >> >> >> >> > <link
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> >>>>>>>>>>href="https://na01.safelinks.protection.outlook.co
>> m/?url=https%3A
>> >>>>>>>>>>%2F%2Fna01.safelinks.protection.outlook&data=02%
>> 7C01%7Caharui%40a
>> >>>>>>>>>>dobe.com%7Cc29454dc81424abfa1b008d5843c2bca%
>> 7Cfa7b1b5a7b34438794a
>> >>>>>>>>>>ed2c178decee1%7C0%7C0%7C636560316321675878&sdata=
>> 5j95MG6WqoLy5YSj
>> >>>>>>>>>>y4P%2FD2A5u1rQHJr6ZBqyUYUYPQY%3D&reserved=0.
>> >> com/?url=https%3A%2
>> >> >>>>>>>>F%2Fna01.safelinks.protection.outlook&data=02%
>> >> 7C01%7Caharui%40adobe
>> >> >>>>>>>>.com%7C52bafe9ca1d24b9b486f08d583a99b5c%
>> >> 7Cfa7b1b5a7b34438794aed2c17
>> >> >>>>>>>>8decee1%7C0%7C0%7C636559686834559221&sdata=
>> >> ZYz0Z%2B%2FEKrjwgfCwdQhS
>> >> >>>>>>>>bUopjBNsH5wfpkKiSN%2Bltm8%3D&reserved=0.
>> >> >> com/?url=https%3A%2F%
>> >> >> >>>>>>2Fna01.safelinks.protection.outlook&data=02%7C01%7Caharui%
>> >> >> 40adobe.com
>> >> >> >>>>>>%7Cd529a696163d4105e0f608d583a4d4e1%
>> >> 7Cfa7b1b5a7b34438794aed2c178de
>> >> >> cee
>> >> >>
>> >> >>>>>>>>1%7C0%7C0%7C636559666333752025&sdata=
>> >> 1OzBzVetTJVqzHNC8QEUL3I7yM9KyU
>> >> >> jV
>> >> >> >>>>>>Mpo8kYVEsnw%3D&reserved=0.
>> >> >> >> com/?url=https%3A%2F%2F
>> >> >> >>
>> >>
>> >>>>>>>>na01.safelinks.protection.outlook&data=02%7C01%7Caharui%
>> 40adobe.com
>> >> >> >> %7C9
>> >> >> >> >>>>0d36aa7b58d4a8f037a08d5839081a1%7Cfa7b1b5a7b34438794aed2
>> c178de
>> >> >> >> cee1%7C0%
>> >> >> >> >>>>7C0%7C636559579033937825&sdata=5puVvWSyXU5Lh1gy9f9gJ1iEl
>> 0N1sp
>> >> >> >> EXJza%2FJG
>> >> >> >> >>>>m6Xug%3D&reserved=0.
>> >> >> >> >> com/?url=https%3A%2F%2Ffo
>> >> >> >> >>
>> >>>>nts.googleapis.com%2Fcss%3Ffamily%3DLato&data=02%7C01%7Caharui%
>> >> >> >> >> 40adobe.co
>> >> >> >> >> >>m%7C335f9e4addc14bb6bbb708d58380469b%
>> >> >> 7Cfa7b1b5a7b34438794aed2c178de
>> >> >> >> >> cee1%7
>> >> >> >> >>
>> >> >> >>>>C0%7C0%7C636559509319053690&sdata=yA7%
>> >> 2Bh88X94JpycunvMJSNuCflIoOkddb
>> >> >> >> >> ODAux
>> >> >> >> >> >>creWGM%3D&reserved=0"
>> >> >> >> >> >> > rel="stylesheet">
>> >> >> >> >> >> >
>> >> >> >> >> >> > 2018-03-06 17:01 GMT+01:00 Carlos Rovira
>> >> >> >><carlosrovira@apache.org
>> >> >> >> >:
>> >> >> >> >> >> >
>> >> >> >> >> >> >> Hi Piotr,
>> >> >> >> >> >> >>
>> >> >> >> >> >> >> I introduced a new line in Application.as in Jewel UI
>> >>set to
>> >> >> >>start
>> >> >> >> >> >> >> implementing responsiveness in mobile:
>> >> >> >> >> >> >>
>> >> >> >> >> >> >> <meta name="viewport" content="width=device-width,
>> >> >> >> >>initial-scale=1,
>> >> >> >> >> >> >> minimum-scale=1, maximum-scale=1">
>> >> >> >> >> >> >>
>> >> >> >> >> >> >> this line is ok at that level since all jewel apps could
>> >>be
>> >> >> >> >> >>responsive
>> >> >> >> >> >> >>
>> >> >> >> >> >> >> that line appears ok in final html
>> >> >> >> >> >> >>
>> >> >> >> >> >> >> but the one in the theme, is not appearing in the html
>> >> >> >> >> >> >>
>> >> >> >> >> >> >> the rest seems ok with the normal script generated by
>> >>Royale
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>
>> >> >> >> >> >> >> 2018-03-06 16:47 GMT+01:00 Piotr Zarzycki
>> >> >> >> >> >><pi...@gmail.com>:
>> >> >> >> >> >> >>
>> >> >> >> >> >> >> > Hi Carlos,
>> >> >> >> >> >> >> >
>> >> >> >> >> >> >> > How looks like HTML output when you compile things
>> >>using
>> >> >>that
>> >> >> >> >> >>stuff ?
>> >> >> >> >> >> >> >
>> >> >> >> >> >> >> > Thanks, Piotr
>> >> >> >> >> >> >> >
>> >> >> >> >> >> >> > 2018-03-06 16:40 GMT+01:00 Carlos Rovira
>> >> >> >> >><carlosrovira@apache.org
>> >> >> >> >> >:
>> >> >> >> >> >> >> >
>> >> >> >> >> >> >> > > Hi
>> >> >> >> >> >> >> > >
>> >> >> >> >> >> >> > > I want the theme define the typography to use, to
>> get
>> >> >>this
>> >> >> >>I'm
>> >> >> >> >> >>using
>> >> >> >> >> >> >> the
>> >> >> >> >> >> >> > > inject_html tag in the constructor
>> >> >> >> >> >> >> > >
>> >> >> >> >> >> >> > > The only class I have in the theme is the following
>> >> >> >> >> >> >> > >
>> >> >> >> >> >> >> > >
>> >> >> >> >> >> >> > > package
>> >> >> >> >> >> >> > > {
>> >> >> >> >> >> >> > >
>> >> >> >> >> >> >> > > /**
>> >> >> >> >> >> >> > > * @private
>> >> >> >> >> >> >> > > * This class is used to link additional classes into
>> >> >> >> >> >>JewelTheme.swc
>> >> >> >> >> >> >> > > * beyond those that are found by dependecy analysis
>> >> >> >>starting
>> >> >> >> >> >> >> > > * from the classes specified in manifest.xml.
>> >> >> >> >> >> >> > > */
>> >> >> >> >> >> >> > > internal class JewelThemeClasses
>> >> >> >> >> >> >> > > {
>> >> >> >> >> >> >> > > /**
>> >> >> >> >> >> >> > > * constructor.
>> >> >> >> >> >> >> > > *
>> >> >> >> >> >> >> > > * <inject_html>
>> >> >> >> >> >> >> > > * <link
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> >>>>>>>>>>href="https://na01.safelinks.protection.outlook.co
>> m/?url=https%3A
>> >>>>>>>>>>%2F%2Fna01.safelinks.protection.outlook&data=02%
>> 7C01%7Caharui%40a
>> >>>>>>>>>>dobe.com%7Cc29454dc81424abfa1b008d5843c2bca%
>> 7Cfa7b1b5a7b34438794a
>> >>>>>>>>>>ed2c178decee1%7C0%7C0%7C636560316321675878&sdata=
>> 5j95MG6WqoLy5YSj
>> >>>>>>>>>>y4P%2FD2A5u1rQHJr6ZBqyUYUYPQY%3D&reserved=0.
>> >> com/?url=https%3A%2
>> >> >>>>>>>>F%2Fna01.safelinks.protection.outlook&data=02%
>> >> 7C01%7Caharui%40adobe
>> >> >>>>>>>>.com%7C52bafe9ca1d24b9b486f08d583a99b5c%
>> >> 7Cfa7b1b5a7b34438794aed2c17
>> >> >>>>>>>>8decee1%7C0%7C0%7C636559686834559221&sdata=
>> >> ZYz0Z%2B%2FEKrjwgfCwdQhS
>> >> >>>>>>>>bUopjBNsH5wfpkKiSN%2Bltm8%3D&reserved=0.
>> >> >> com/?url=https%3A%2F%
>> >> >> >>>>>>2Fna01.safelinks.protection.outlook&data=02%7C01%7Caharui%
>> >> >> 40adobe.com
>> >> >> >>>>>>%7Cd529a696163d4105e0f608d583a4d4e1%
>> >> 7Cfa7b1b5a7b34438794aed2c178de
>> >> >> cee
>> >> >>
>> >> >>>>>>>>1%7C0%7C0%7C636559666333752025&sdata=
>> >> 1OzBzVetTJVqzHNC8QEUL3I7yM9KyU
>> >> >> jV
>> >> >> >>>>>>Mpo8kYVEsnw%3D&reserved=0.
>> >> >> >> com/?url=https%3A%2F%2F
>> >> >> >>
>> >>
>> >>>>>>>>na01.safelinks.protection.outlook&data=02%7C01%7Caharui%
>> 40adobe.com
>> >> >> >> %7C9
>> >> >> >> >>>>0d36aa7b58d4a8f037a08d5839081a1%7Cfa7b1b5a7b34438794aed2
>> c178de
>> >> >> >> cee1%7C0%
>> >> >> >> >>>>7C0%7C636559579033937825&sdata=5puVvWSyXU5Lh1gy9f9gJ1iEl
>> 0N1sp
>> >> >> >> EXJza%2FJG
>> >> >> >> >>>>m6Xug%3D&reserved=0.
>> >> >> >> >> com/?url=https%3A%2F%2Ffo
>> >> >> >> >>
>> >>>>nts.googleapis.com%2Fcss%3Ffamily%3DLato&data=02%7C01%7Caharui%
>> >> >> >> >> 40adobe.co
>> >> >> >> >> >>m%7C335f9e4addc14bb6bbb708d58380469b%
>> >> >> 7Cfa7b1b5a7b34438794aed2c178de
>> >> >> >> >> cee1%7
>> >> >> >> >>
>> >> >> >>>>C0%7C0%7C636559509319053690&sdata=yA7%
>> >> 2Bh88X94JpycunvMJSNuCflIoOkddb
>> >> >> >> >> ODAux
>> >> >> >> >> >>creWGM%3D&reserved=0
>> >> >> >> >> >> "
>> >> >> >> >> >> >> > > rel="stylesheet">
>> >> >> >> >> >> >> > > * </inject_html>
>> >> >> >> >> >> >> > > *
>> >> >> >> >> >> >> > > * @langversion 3.0
>> >> >> >> >> >> >> > > * @playerversion Flash 10.2
>> >> >> >> >> >> >> > > * @playerversion AIR 2.6
>> >> >> >> >> >> >> > > * @productversion Royale 0.9.2
>> >> >> >> >> >> >> > > */
>> >> >> >> >> >> >> > > public function JewelThemeClasses()
>> >> >> >> >> >> >> > > {
>> >> >> >> >> >> >> > > super();
>> >> >> >> >> >> >> > > }
>> >> >> >> >> >> >> > > }
>> >> >> >> >> >> >> > >
>> >> >> >> >> >> >> > > }
>> >> >> >> >> >> >> > >
>> >> >> >> >> >> >> > > But this is not working since I don't get anything
>> >> >> >>injected in
>> >> >> >> >> >>the
>> >> >> >> >> >> >> html
>> >> >> >> >> >> >> > >
>> >> >> >> >> >> >> > > anyone knows what could be the problem?
>> >> >> >> >> >> >> > >
>> >> >> >> >> >> >> > > thanks
>> >> >> >> >> >> >> > >
>> >> >> >> >> >> >> > >
>> >> >> >> >> >> >> > > --
>> >> >> >> >> >> >> > > Carlos Rovira
>> >> >> >> >> >> >> > >
>> >> >> >> >> >>https://na01.safelinks.protection.outlook.com/?url=
>> >> >> >> >> http%3A%2F%2Fabout.me%
>> >> >> >> >> >>2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
>> >> >> >> >> 7C335f9e4addc14bb6bbb708
>> >> >> >> >> >>d58380469b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
>> >> >> >> >> 7C63655950931905369
>> >> >> >> >>
>> >> >> >> >>>>0&sdata=%2FNmOa%2BKcyD93kNDolxbReQZMhVrgPTzrzk
>> >> >> >> l%2FYwSRGTs%3D&reserved=0
>> >> >> >> >> >> >> > >
>> >> >> >> >> >> >> >
>> >> >> >> >> >> >> >
>> >> >> >> >> >> >> >
>> >> >> >> >> >> >> > --
>> >> >> >> >> >> >> >
>> >> >> >> >> >> >> > Piotr Zarzycki
>> >> >> >> >> >> >> >
>> >> >> >> >> >> >> > Patreon:
>> >> >> >> >> >>*https://na01.safelinks.protection.outlook.com/?url=
>> >> >> >> >> https%3A%2F%2Fwww.pat
>> >> >> >> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
>> >> >> >> >> %7C335f9e4addc1
>> >> >> >> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
>> >> >> >> >> cee1%7C0%7C0%7C6365595
>> >> >> >> >> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
>> >> >> >> >> Y6k6l9ER6rkZ4%3D&reserved
>> >> >> >> >> >>=0
>> >> >> >> >> >> >> >
>> >> >> >> >> >><https://na01.safelinks.protection.outlook.com/?url=
>> >> >> >> >> https%3A%2F%2Fwww.pat
>> >> >> >> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
>> >> >> >> >> %7C335f9e4addc1
>> >> >> >> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
>> >> >> >> >> cee1%7C0%7C0%7C6365595
>> >> >> >> >> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
>> >> >> >> >> Y6k6l9ER6rkZ4%3D&reserved
>> >> >> >> >> >>=0>*
>> >> >> >> >> >> >> >
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>
>> >> >> >> >> >> >> --
>> >> >> >> >> >> >> Carlos Rovira
>> >> >> >> >> >> >>
>> >> >> >> >> >>https://na01.safelinks.protection.outlook.com/?url=
>> >> >> >> >> http%3A%2F%2Fabout.me%
>> >> >> >> >> >>2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
>> >> >> >> >> 7C335f9e4addc14bb6bbb708
>> >> >> >> >> >>d58380469b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
>> >> >> >> >> 7C63655950931905369
>> >> >> >> >>
>> >> >> >> >>>>0&sdata=%2FNmOa%2BKcyD93kNDolxbReQZMhVrgPTzrzk
>> >> >> >> l%2FYwSRGTs%3D&reserved=0
>> >> >> >> >> >> >>
>> >> >> >> >> >> >
>> >> >> >> >> >> >
>> >> >> >> >> >> >
>> >> >> >> >> >> > --
>> >> >> >> >> >> >
>> >> >> >> >> >> > Piotr Zarzycki
>> >> >> >> >> >> >
>> >> >> >> >> >> > Patreon:
>> >> >> >> >> >>*https://na01.safelinks.protection.outlook.com/?url=
>> >> >> >> >> https%3A%2F%2Fwww.pat
>> >> >> >> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
>> >> >> >> >> %7C335f9e4addc1
>> >> >> >> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
>> >> >> >> >> cee1%7C0%7C0%7C6365595
>> >> >> >> >> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
>> >> >> >> >> Y6k6l9ER6rkZ4%3D&reserved
>> >> >> >> >> >>=0
>> >> >> >> >> >> >
>> >> >> >> >> >><https://na01.safelinks.protection.outlook.com/?url=
>> >> >> >> >> https%3A%2F%2Fwww.pat
>> >> >> >> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
>> >> >> >> >> %7C335f9e4addc1
>> >> >> >> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
>> >> >> >> >> cee1%7C0%7C0%7C6365595
>> >> >> >> >> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
>> >> >> >> >> Y6k6l9ER6rkZ4%3D&reserved
>> >> >> >> >> >>=0>*
>> >> >> >> >> >> >
>> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >> >> --
>> >> >> >> >> >>
>> >> >> >> >> >> Piotr Zarzycki
>> >> >> >> >> >>
>> >> >> >> >> >> Patreon:
>> >> >> >> >> >>*https://na01.safelinks.protection.outlook.com/?url=
>> >> >> >> >> https%3A%2F%2Fwww.pat
>> >> >> >> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
>> >> >> >> >> %7C335f9e4addc1
>> >> >> >> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
>> >> >> >> >> cee1%7C0%7C0%7C6365595
>> >> >> >> >> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
>> >> >> >> >> Y6k6l9ER6rkZ4%3D&reserved
>> >> >> >> >> >>=0
>> >> >> >> >> >>
>> >> >> >> >> >><https://na01.safelinks.protection.outlook.com/?url=
>> >> >> >> >> https%3A%2F%2Fwww.pat
>> >> >> >> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
>> >> >> >> >> %7C335f9e4addc1
>> >> >> >> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
>> >> >> >> >> cee1%7C0%7C0%7C6365595
>> >> >> >> >> >>09319063694&sdata=o76Gym4fOsBicseiddsVm1FQHtzgLu
>> >> >> >> >> zQ5MkEqFyBckI%3D&reserved
>> >> >> >> >> >>=0>*
>> >> >> >> >> >>
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >--
>> >> >> >> >> >Carlos Rovira
>> >> >> >> >> >https://na01.safelinks.protection.outlook.com/?url=
>> >> >> >> >> http%3A%2F%2Fabout.me%2
>> >> >> >> >> >Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
>> >> >> >> >> 7C335f9e4addc14bb6bbb708d5
>> >> >> >> >> >8380469b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
>> >> >> >> >> 7C636559509319063694&s
>> >> >> >> >>
>> >>>data=7moxBd2GSpHpn7AAtOwOD9MZSKIvjLai7e%2B5WK5BeOA%3D&reserved=0
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >--
>> >> >> >> >Carlos Rovira
>> >> >> >> >https://na01.safelinks.protection.outlook.com/?url=
>> >> >> >> http%3A%2F%2Fabout.me%2
>> >> >> >> >Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
>> >> >> >> 7C90d36aa7b58d4a8f037a08d5
>> >> >> >> >839081a1%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
>> >> >> >> 7C636559579033937825&s
>> >> >> >> >data=50jZM6zOSthV%2FLV2ATtlQR3ymCzo3eKGGhk6ccYp3Fs%3D&
>> reserved=0
>> >> >> >>
>> >> >> >>
>> >> >> >
>> >> >> >
>> >> >> >--
>> >> >> >Carlos Rovira
>> >> >> >https://na01.safelinks.protection.outlook.com/?url=
>> >> >> http%3A%2F%2Fabout.me%2
>> >> >> >Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
>> >> >> 7Cd529a696163d4105e0f608d5
>> >> >> >83a4d4e1%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
>> >> >> 7C636559666333752025&s
>> >> >> >data=MR%2BipgM59CJpHxtty1Yut1PeBobh5mgZ318%2FXAN4Ttw%3D&reserved=0
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >> >--
>> >> >Carlos Rovira
>> >> >https://na01.safelinks.protection.outlook.com/?url=
>> >> http%3A%2F%2Fabout.me%2
>> >> >Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
>> >> 7C52bafe9ca1d24b9b486f08d5
>> >> >83a99b5c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
>> >> 7C636559686834559221&s
>> >> >data=HH1Pg3ZmLYtF%2B2vkbsOIfjvUyO8Wt4j3SavSYsLZQhs%3D&reserved=0
>> >>
>> >>
>> >
>> >
>> >--
>> >Carlos Rovira
>> >https://na01.safelinks.protection.outlook.com/?url=http%3A%
>> 2F%2Fabout.me%2
>> >Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%7Cc29454dc8
>> 1424abfa1b008d5
>> >843c2bca%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C63656
>> 0316321675878&s
>> >data=kr%2FIlt3xEzq9fa5NjyP37QelOSJh9brdaZbpbHQKC0c%3D&reserved=0
>>
>>
>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>
>
--
Carlos Rovira
http://about.me/carlosrovira
Re: How to inject html with a theme class
Posted by Carlos Rovira <ca...@apache.org>.
Hi Alex,
I was looking at this problem and finaly get library.swf to be 6k and with
info about JewelThemeFontInject
but JewelExample fails the same way:
[-load-config=/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/royale/JewelExample/target/compile-app-config.xml,
-js-output=/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/royale/JewelExample/target/javascript,
-compiler.targets=JSRoyale,SWF,
/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/royale/JewelExample/src/main/royale/App.mxml]
/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/royale/JewelExample/JewelTheme-0.9.3-SNAPSHOT.swc:royale-jewel-blue.css(24):
col: 11 Error: org.apache.royale.jewel.JewelThemeFontInject is not defined.
/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/royale/JewelExample/JewelTheme-0.9.3-SNAPSHOT.swc:royale-jewel-blue.css(24):
col: 11 Error: org.apache.royale.jewel.JewelThemeFontInject is not defined.
/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/royale/JewelExample/JewelTheme-0.9.3-SNAPSHOT.swc:royale-jewel-blue.css(24):
col: 11 Error: org.apache.royale.jewel.JewelThemeFontInject is not defined.
some thoughts about why now that class seems to be available in SWC the
error remains?
thanks
2018-03-07 17:44 GMT+01:00 Alex Harui <ah...@adobe.com.invalid>:
> When you say the files are empty, does that mean it is truly 0 bytes or
> just doesn’t contain the classes you want?
>
>
> If no classes are specified to be compiled due to COMPILE::SWF and
> COMPILE::JS blocks then the library.swf will not contain those classes.
> The library compile succeeds because it thinks it is doing what you told
> it to (not what you wanted it to) and so the failure point is in the
> application compile when that class is finally needed to link the output
> SWF. The library compiler does not check ClassReferences in the CSS files
> in the SWC. The CSS files are not parsed by the library compiler, they
> are just included.
>
> If the file is truly empty, then check the script output. Maybe it
> couldn't find the jar it launches because you are using Maven.
>
> -Alex
>
> On 3/7/18, 6:59 AM, "carlos.rovira@gmail.com on behalf of Carlos Rovira"
> <carlos.rovira@gmail.com on behalf of carlosrovira@apache.org> wrote:
>
> >Hi Alex,
> >
> >I did it :
> >
> >../royale-compiler/compiler/src/assembly/scripts/swfdump -abc library.swf
> >>
> >mysqc.txt
> >
> >
> >(for both -swf.swc and -js.swc), and both files (mysqc.txt) are empty
> >
> >
> >so what could be happen? why there's nothing in library.swf but there's
> >.js
> >generated?
> >
> >
> >thanks
> >
> >
> >
> >
> >2018-03-06 23:18 GMT+01:00 Alex Harui <ah...@adobe.com.invalid>:
> >
> >> SWCs contained compiled AS, not the .as file itself. And Royale SWCs
> >>also
> >> contain .js files. So the proof is really in SWFDump-ing the
> >>library.swf
> >> in the SWC. We need to verify that JewelThemeFontInject is in the
> >> library.swf.
> >>
> >> So:
> >>
> >> -unzip the SWC.
> >> -Run bin/swfdump -abc library.swf >MySWC.txt
> >> -Look in MySWC.txt for JewelThemeFontInject.
> >>
> >> Then we'll worry about the app compile.
> >>
> >> -Alex
> >>
> >> On 3/6/18, 1:30 PM, "carlos.rovira@gmail.com on behalf of Carlos
> Rovira"
> >> <carlos.rovira@gmail.com on behalf of carlosrovira@apache.org> wrote:
> >>
> >> >Hi Alex,
> >> >
> >> >2018-03-06 22:04 GMT+01:00 Alex Harui <ah...@adobe.com.invalid>:
> >> >
> >> >> Hi Carlos,
> >> >>
> >> >> I don't think there is per-platform CSS, so
> >> >> org.apache.royale.jewel.JewelThemeFontInject needs to be in the SWC
> >>for
> >> >> both the SWF and JS compile.
> >> >
> >> >
> >> >right, I checked both SWF and JS SWC files and both have the same, and
> >>one
> >> >of the files is
> >> >org.apache.royale.jewel.JewelThemeFontInject.js in his folder
> structure
> >> (I
> >> >expect to find the .as in SWC file for SWF, is that right?)
> >> >
> >> >
> >> >> I couldn't quite tell from the commit
> >> >> message, but it looked like JewelThemeFontInject might have been set
> >>up
> >> >>to
> >> >> be JSOnly.
> >> >>
> >> >
> >> >mmm...I though SWC files where agnostic, and the compilation is valid
> >>for
> >> >both JS and SWF targets. If not, don't know how to do that
> >> >in JewelExample I have in the pom <targets>JSRoyale,SWF</targets>
> >> >And tried to remove SWF but the result is the same error
> >> >If I remove JSRoyale, the compilation succed, but the error is still
> >>there
> >> >and since for SWF there are other problems like linear-gradients,
> >>there's
> >> >no SWF generation at the moment.
> >> >
> >> >
> >> >> Also, it shouldn't matter, but I would not bother to put
> >> >> org.apache.royale.jewel.JewelThemeFontInject in the manifest.
> Nobody
> >> >> should be using it in MXML.
> >> >>
> >> >
> >> >Right I'll remove it
> >> >
> >> >
> >> >>
> >> >> Check the SWC. You can unzip it and SWFDump the library.swf and it
> >> >>should
> >> >> have org.apache.royale.jewel.JewelThemeFontInject in it, and
> >> >>anequivalent
> >> >> .js file.
> >> >>
> >> >
> >> >There's only one .js file, that's what I think it's not right, there
> >> >should
> >> >be a .as and a .js? (I think a .as for swc swf file, and a .js for swc
> >>js
> >> >file)
> >> >
> >> >thanks
> >> >
> >> >Carlos
> >> >
> >> >
> >> >> HTH,
> >> >> -Alex
> >> >>
> >> >> On 3/6/18, 12:56 PM, "carlos.rovira@gmail.com on behalf of Carlos
> >> >>Rovira"
> >> >> <carlos.rovira@gmail.com on behalf of carlosrovira@apache.org>
> wrote:
> >> >>
> >> >> >Hi Alex,
> >> >> >
> >> >> >more near, but still fails. I put the quotes failed, then I figured
> >> >>that I
> >> >> >put in jewel package similar to lib, so I changed to :
> >> >> >
> >> >> >fonts:
> >>ClassReference("org.apache.royale.jewel.JewelThemeFontInject");
> >> >> >
> >> >> >this failed in similar way:
> >> >> >
> >> >> >[INFO] Executing MXMLC in tool group Royale with args:
> >> >> >[-load-config=/Users/carlosrovira/Dev/Royale/
> >> >> Source/royale-asjs/examples/r
> >> >> >oyale/JewelExample/target/compile-app-
> >> >> >config.xml,
> >> >>
> >>>-js-output=/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/
> >> >> roya
> >> >> >le/JewelExample/target/javascript,
> >> >> >-compiler.targets=JSRoyale,SWF,
> >> >> >/Users/carlosrovira/Dev/Royale/Source/royale-asjs/
> >> >> examples/royale/JewelExa
> >> >> >mple/src/main/royale/
> >> >> >App.mxml]
> >> >> >/Users/carlosrovira/Dev/Royale/Source/royale-asjs/
> >> >> examples/royale/JewelExa
> >> >> >mple/JewelTheme-
> >> >> >0.9.2-SNAPSHOT.swc:defaults.css(29): col: 10 Error:
> >> >> >org.apache.royale.jewel.JewelThemeFontInject is not defined.
> >> >> >
> >> >> >I recheck all files but can see what's could be wrong
> >> >> >
> >> >> >
> >> >> >
> >> >> >2018-03-06 19:51 GMT+01:00 Alex Harui <ah...@adobe.com.invalid>:
> >> >> >
> >> >> >> I missed that ClassReference puts the class in quotes. Try:
> >> >> >>
> >> >> >> fonts: ClassReference("JewelThemeFontInject") ;
> >> >> >>
> >> >> >>
> >> >> >> HTH,
> >> >> >> -Alex
> >> >> >>
> >> >> >> On 3/6/18, 10:31 AM, "carlos.rovira@gmail.com on behalf of Carlos
> >> >> >>Rovira"
> >> >> >> <carlos.rovira@gmail.com on behalf of carlosrovira@apache.org>
> >> wrote:
> >> >> >>
> >> >> >> >Hi Alex,
> >> >> >> >
> >> >> >> >the 4 method seems ok but I'm getting this error:
> >> >> >> >
> >> >> >> >[INFO] Executing MXMLC in tool group Royale with args:
> >> >> >> >[-load-config=/Users/carlosrovira/Dev/Royale/
> >> >> >> Source/royale-asjs/examples/r
> >> >> >> >oyale/JewelExample/target/compile-app-
> >> >> >> >config.xml,
> >> >> >>
> >>
> >>>>>-js-output=/Users/carlosrovira/Dev/Royale/
> Source/royale-asjs/examples/
> >> >> >> roya
> >> >> >> >le/JewelExample/target/javascript,
> >> >> >> >-compiler.targets=JSRoyale,SWF,
> >> >> >> >/Users/carlosrovira/Dev/Royale/Source/royale-asjs/
> >> >> >> examples/royale/JewelExa
> >> >> >> >mple/src/main/royale/
> >> >> >> >App.mxml]
> >> >> >> >/Users/carlosrovira/Dev/Royale/Source/royale-asjs/
> >> >> >> examples/royale/JewelExa
> >> >> >> >mple/JewelTheme-
> >> >> >> >0.9.2-SNAPSHOT.swc:defaults.css(28): col: 11 Error:
> >> >>ewelThemeFontInjec
> >> >> >>is
> >> >> >> >not defined.
> >> >> >> >
> >> >> >> >if I unzip the theme -js.swc I can see JewelThemeFontInject.js
> >>file
> >> >> >>inside
> >> >> >> >in the out folder (in its own package), so I think the theme SWC
> >>is
> >> >>ok.
> >> >> >> >
> >> >> >> >I put the declaration in
> >> >> >> >
> >> >> >> >.royale *, . royale *:before, . royale *:after {
> >> >> >> > -moz-box-sizing: border-box;
> >> >> >> > -webkit-box-sizing: border-box;
> >> >> >> > box-sizing: border-box;
> >> >> >> >
> >> >> >> > fonts: ClassReference(JewelThemeFontInject) ;
> >> >> >> >}
> >> >> >> >
> >> >> >> >so this is getting notice.
> >> >> >> >
> >> >> >> >but the error show the name of the class without first letter
> >>Error:
> >> >> >> >ewelThemeFontInjec is not defined
> >> >> >> >
> >> >> >> >any thoughts?
> >> >> >> >
> >> >> >> >thanks!
> >> >> >> >
> >> >> >> >
> >> >> >> >2018-03-06 18:26 GMT+01:00 Alex Harui <aharui@adobe.com.invalid
> >:
> >> >> >> >
> >> >> >> >> Only <inject_html> from classes actually linked into the final
> >> >> >> >>application
> >> >> >> >> will be used.
> >> >> >> >>
> >> >> >> >> I think there are a few choices:
> >> >> >> >> 1) require everyone use a particular html-template
> >> >> >> >> 2) require some bead be used
> >> >> >> >> 3) require a different Application subclass
> >> >> >> >> 4) try to hack it in as follows:
> >> >> >> >>
> >> >> >> >> In the defaults.css for Jewel, add
> >> >> >> >>
> >> >> >> >> .Jewel { fonts: ClassReference(JewelInjectHTML) }
> >> >> >> >>
> >> >> >> >> And create a JewelInjectHTML class with the desired
> >><inject_html>
> >> >>on
> >> >> >>the
> >> >> >> >> constructor.
> >> >> >> >>
> >> >> >> >> That will have a bit of extra overhead, but might work.
> >> >> >> >>
> >> >> >> >> HTH,
> >> >> >> >> -Alex
> >> >> >> >>
> >> >> >> >> On 3/6/18, 8:35 AM, "carlos.rovira@gmail.com on behalf of
> >>Carlos
> >> >> >> Rovira"
> >> >> >> >> <carlos.rovira@gmail.com on behalf of carlosrovira@apache.org>
> >> >> wrote:
> >> >> >> >>
> >> >> >> >> >Hi Piotr,
> >> >> >> >> >
> >> >> >> >> >no, that's that I want to get in the resultant html file. I
> >>don't
> >> >> >> >>think I
> >> >> >> >> >understand your question, that's exactly what I'm asking, why
> >> >>that
> >> >> >> >>line is
> >> >> >> >> >not in the final HTML file, I suppose that is because is a
> >>theme
> >> >> >>file
> >> >> >> >>and
> >> >> >> >> >maybe the JewelThemeClasses.as is not used, but don't know
> >>how to
> >> >> >>make
> >> >> >> >>it
> >> >> >> >> >work
> >> >> >> >> >
> >> >> >> >> >thanks
> >> >> >> >> >
> >> >> >> >> >2018-03-06 17:06 GMT+01:00 Piotr Zarzycki
> >> >> >><pi...@gmail.com>:
> >> >> >> >> >
> >> >> >> >> >> Link once again: <link
> >> >> >> >>
> >> >> >>
> >> >>
> >>
> >>>>>>>>>>href="https://na01.safelinks.protection.outlook.
> com/?url=https%3A
> >>>>>>>>>>%2F%2Fna01.safelinks.protection.outlook&
> data=02%7C01%7Caharui%40a
> >>>>>>>>>>dobe.com%7Cc29454dc81424abfa1b008d5843c
> 2bca%7Cfa7b1b5a7b34438794a
> >>>>>>>>>>ed2c178decee1%7C0%7C0%7C636560316321675878&
> sdata=5j95MG6WqoLy5YSj
> >>>>>>>>>>y4P%2FD2A5u1rQHJr6ZBqyUYUYPQY%3D&reserved=0.
> >> com/?url=https%3A%2
> >> >>>>>>>>F%2Fna01.safelinks.protection.outlook&data=02%
> >> 7C01%7Caharui%40adobe
> >> >>>>>>>>.com%7C52bafe9ca1d24b9b486f08d583a99b5c%
> >> 7Cfa7b1b5a7b34438794aed2c17
> >> >>>>>>>>8decee1%7C0%7C0%7C636559686834559221&sdata=
> >> ZYz0Z%2B%2FEKrjwgfCwdQhS
> >> >>>>>>>>bUopjBNsH5wfpkKiSN%2Bltm8%3D&reserved=0.
> >> >> com/?url=https%3A%2F%
> >> >> >>>>>>2Fna01.safelinks.protection.outlook&data=02%7C01%7Caharui%
> >> >> 40adobe.com
> >> >> >>>>>>%7Cd529a696163d4105e0f608d583a4d4e1%
> >> 7Cfa7b1b5a7b34438794aed2c178de
> >> >> cee
> >> >>
> >> >>>>>>>>1%7C0%7C0%7C636559666333752025&sdata=
> >> 1OzBzVetTJVqzHNC8QEUL3I7yM9KyU
> >> >> jV
> >> >> >>>>>>Mpo8kYVEsnw%3D&reserved=0.
> >> >> >> com/?url=https%3A%2F%2F
> >> >> >>
> >>
> >>>>>>>>na01.safelinks.protection.outlook&data=02%7C01%7Caharui%
> 40adobe.com
> >> >> >> %7C9
> >> >> >> >>>>0d36aa7b58d4a8f037a08d5839081a1%
> 7Cfa7b1b5a7b34438794aed2c178de
> >> >> >> cee1%7C0%
> >> >> >> >>>>7C0%7C636559579033937825&sdata=5puVvWSyXU5Lh1gy9f9gJ1iEl0N1sp
> >> >> >> EXJza%2FJG
> >> >> >> >>>>m6Xug%3D&reserved=0.
> >> >> >> >> com/?url=https%3A%2F%2Ffo
> >> >> >> >>
> >>>>nts.googleapis.com%2Fcss%3Ffamily%3DLato&data=02%7C01%7Caharui%
> >> >> >> >> 40adobe.co
> >> >> >> >> >>m%7C335f9e4addc14bb6bbb708d58380469b%
> >> >> 7Cfa7b1b5a7b34438794aed2c178de
> >> >> >> >> cee1%7
> >> >> >> >>
> >> >> >>>>C0%7C0%7C636559509319053690&sdata=yA7%
> >> 2Bh88X94JpycunvMJSNuCflIoOkddb
> >> >> >> >> ODAux
> >> >> >> >> >>creWGM%3D&reserved=0"
> >> >> >> >> >> rel="stylesheet">
> >> >> >> >> >>
> >> >> >> >> >> 2018-03-06 17:06 GMT+01:00 Piotr Zarzycki
> >> >> >> >><pi...@gmail.com>:
> >> >> >> >> >>
> >> >> >> >> >> > I meant here something else. Do you have in your head
> >> >>something
> >> >> >> >>like
> >> >> >> >> >>that
> >> >> >> >> >> > after compilation in the html files ?
> >> >> >> >> >> >
> >> >> >> >> >> > <link
> >> >> >> >>
> >> >> >>
> >> >>
> >>
> >>>>>>>>>>href="https://na01.safelinks.protection.outlook.
> com/?url=https%3A
> >>>>>>>>>>%2F%2Fna01.safelinks.protection.outlook&
> data=02%7C01%7Caharui%40a
> >>>>>>>>>>dobe.com%7Cc29454dc81424abfa1b008d5843c
> 2bca%7Cfa7b1b5a7b34438794a
> >>>>>>>>>>ed2c178decee1%7C0%7C0%7C636560316321675878&
> sdata=5j95MG6WqoLy5YSj
> >>>>>>>>>>y4P%2FD2A5u1rQHJr6ZBqyUYUYPQY%3D&reserved=0.
> >> com/?url=https%3A%2
> >> >>>>>>>>F%2Fna01.safelinks.protection.outlook&data=02%
> >> 7C01%7Caharui%40adobe
> >> >>>>>>>>.com%7C52bafe9ca1d24b9b486f08d583a99b5c%
> >> 7Cfa7b1b5a7b34438794aed2c17
> >> >>>>>>>>8decee1%7C0%7C0%7C636559686834559221&sdata=
> >> ZYz0Z%2B%2FEKrjwgfCwdQhS
> >> >>>>>>>>bUopjBNsH5wfpkKiSN%2Bltm8%3D&reserved=0.
> >> >> com/?url=https%3A%2F%
> >> >> >>>>>>2Fna01.safelinks.protection.outlook&data=02%7C01%7Caharui%
> >> >> 40adobe.com
> >> >> >>>>>>%7Cd529a696163d4105e0f608d583a4d4e1%
> >> 7Cfa7b1b5a7b34438794aed2c178de
> >> >> cee
> >> >>
> >> >>>>>>>>1%7C0%7C0%7C636559666333752025&sdata=
> >> 1OzBzVetTJVqzHNC8QEUL3I7yM9KyU
> >> >> jV
> >> >> >>>>>>Mpo8kYVEsnw%3D&reserved=0.
> >> >> >> com/?url=https%3A%2F%2F
> >> >> >>
> >>
> >>>>>>>>na01.safelinks.protection.outlook&data=02%7C01%7Caharui%
> 40adobe.com
> >> >> >> %7C9
> >> >> >> >>>>0d36aa7b58d4a8f037a08d5839081a1%
> 7Cfa7b1b5a7b34438794aed2c178de
> >> >> >> cee1%7C0%
> >> >> >> >>>>7C0%7C636559579033937825&sdata=5puVvWSyXU5Lh1gy9f9gJ1iEl0N1sp
> >> >> >> EXJza%2FJG
> >> >> >> >>>>m6Xug%3D&reserved=0.
> >> >> >> >> com/?url=https%3A%2F%2Ffo
> >> >> >> >>
> >>>>nts.googleapis.com%2Fcss%3Ffamily%3DLato&data=02%7C01%7Caharui%
> >> >> >> >> 40adobe.co
> >> >> >> >> >>m%7C335f9e4addc14bb6bbb708d58380469b%
> >> >> 7Cfa7b1b5a7b34438794aed2c178de
> >> >> >> >> cee1%7
> >> >> >> >>
> >> >> >>>>C0%7C0%7C636559509319053690&sdata=yA7%
> >> 2Bh88X94JpycunvMJSNuCflIoOkddb
> >> >> >> >> ODAux
> >> >> >> >> >>creWGM%3D&reserved=0"
> >> >> >> >> >> > rel="stylesheet">
> >> >> >> >> >> >
> >> >> >> >> >> > 2018-03-06 17:01 GMT+01:00 Carlos Rovira
> >> >> >><carlosrovira@apache.org
> >> >> >> >:
> >> >> >> >> >> >
> >> >> >> >> >> >> Hi Piotr,
> >> >> >> >> >> >>
> >> >> >> >> >> >> I introduced a new line in Application.as in Jewel UI
> >>set to
> >> >> >>start
> >> >> >> >> >> >> implementing responsiveness in mobile:
> >> >> >> >> >> >>
> >> >> >> >> >> >> <meta name="viewport" content="width=device-width,
> >> >> >> >>initial-scale=1,
> >> >> >> >> >> >> minimum-scale=1, maximum-scale=1">
> >> >> >> >> >> >>
> >> >> >> >> >> >> this line is ok at that level since all jewel apps could
> >>be
> >> >> >> >> >>responsive
> >> >> >> >> >> >>
> >> >> >> >> >> >> that line appears ok in final html
> >> >> >> >> >> >>
> >> >> >> >> >> >> but the one in the theme, is not appearing in the html
> >> >> >> >> >> >>
> >> >> >> >> >> >> the rest seems ok with the normal script generated by
> >>Royale
> >> >> >> >> >> >>
> >> >> >> >> >> >>
> >> >> >> >> >> >>
> >> >> >> >> >> >> 2018-03-06 16:47 GMT+01:00 Piotr Zarzycki
> >> >> >> >> >><pi...@gmail.com>:
> >> >> >> >> >> >>
> >> >> >> >> >> >> > Hi Carlos,
> >> >> >> >> >> >> >
> >> >> >> >> >> >> > How looks like HTML output when you compile things
> >>using
> >> >>that
> >> >> >> >> >>stuff ?
> >> >> >> >> >> >> >
> >> >> >> >> >> >> > Thanks, Piotr
> >> >> >> >> >> >> >
> >> >> >> >> >> >> > 2018-03-06 16:40 GMT+01:00 Carlos Rovira
> >> >> >> >><carlosrovira@apache.org
> >> >> >> >> >:
> >> >> >> >> >> >> >
> >> >> >> >> >> >> > > Hi
> >> >> >> >> >> >> > >
> >> >> >> >> >> >> > > I want the theme define the typography to use, to get
> >> >>this
> >> >> >>I'm
> >> >> >> >> >>using
> >> >> >> >> >> >> the
> >> >> >> >> >> >> > > inject_html tag in the constructor
> >> >> >> >> >> >> > >
> >> >> >> >> >> >> > > The only class I have in the theme is the following
> >> >> >> >> >> >> > >
> >> >> >> >> >> >> > >
> >> >> >> >> >> >> > > package
> >> >> >> >> >> >> > > {
> >> >> >> >> >> >> > >
> >> >> >> >> >> >> > > /**
> >> >> >> >> >> >> > > * @private
> >> >> >> >> >> >> > > * This class is used to link additional classes into
> >> >> >> >> >>JewelTheme.swc
> >> >> >> >> >> >> > > * beyond those that are found by dependecy analysis
> >> >> >>starting
> >> >> >> >> >> >> > > * from the classes specified in manifest.xml.
> >> >> >> >> >> >> > > */
> >> >> >> >> >> >> > > internal class JewelThemeClasses
> >> >> >> >> >> >> > > {
> >> >> >> >> >> >> > > /**
> >> >> >> >> >> >> > > * constructor.
> >> >> >> >> >> >> > > *
> >> >> >> >> >> >> > > * <inject_html>
> >> >> >> >> >> >> > > * <link
> >> >> >> >>
> >> >> >>
> >> >>
> >>
> >>>>>>>>>>href="https://na01.safelinks.protection.outlook.
> com/?url=https%3A
> >>>>>>>>>>%2F%2Fna01.safelinks.protection.outlook&
> data=02%7C01%7Caharui%40a
> >>>>>>>>>>dobe.com%7Cc29454dc81424abfa1b008d5843c
> 2bca%7Cfa7b1b5a7b34438794a
> >>>>>>>>>>ed2c178decee1%7C0%7C0%7C636560316321675878&
> sdata=5j95MG6WqoLy5YSj
> >>>>>>>>>>y4P%2FD2A5u1rQHJr6ZBqyUYUYPQY%3D&reserved=0.
> >> com/?url=https%3A%2
> >> >>>>>>>>F%2Fna01.safelinks.protection.outlook&data=02%
> >> 7C01%7Caharui%40adobe
> >> >>>>>>>>.com%7C52bafe9ca1d24b9b486f08d583a99b5c%
> >> 7Cfa7b1b5a7b34438794aed2c17
> >> >>>>>>>>8decee1%7C0%7C0%7C636559686834559221&sdata=
> >> ZYz0Z%2B%2FEKrjwgfCwdQhS
> >> >>>>>>>>bUopjBNsH5wfpkKiSN%2Bltm8%3D&reserved=0.
> >> >> com/?url=https%3A%2F%
> >> >> >>>>>>2Fna01.safelinks.protection.outlook&data=02%7C01%7Caharui%
> >> >> 40adobe.com
> >> >> >>>>>>%7Cd529a696163d4105e0f608d583a4d4e1%
> >> 7Cfa7b1b5a7b34438794aed2c178de
> >> >> cee
> >> >>
> >> >>>>>>>>1%7C0%7C0%7C636559666333752025&sdata=
> >> 1OzBzVetTJVqzHNC8QEUL3I7yM9KyU
> >> >> jV
> >> >> >>>>>>Mpo8kYVEsnw%3D&reserved=0.
> >> >> >> com/?url=https%3A%2F%2F
> >> >> >>
> >>
> >>>>>>>>na01.safelinks.protection.outlook&data=02%7C01%7Caharui%
> 40adobe.com
> >> >> >> %7C9
> >> >> >> >>>>0d36aa7b58d4a8f037a08d5839081a1%
> 7Cfa7b1b5a7b34438794aed2c178de
> >> >> >> cee1%7C0%
> >> >> >> >>>>7C0%7C636559579033937825&sdata=5puVvWSyXU5Lh1gy9f9gJ1iEl0N1sp
> >> >> >> EXJza%2FJG
> >> >> >> >>>>m6Xug%3D&reserved=0.
> >> >> >> >> com/?url=https%3A%2F%2Ffo
> >> >> >> >>
> >>>>nts.googleapis.com%2Fcss%3Ffamily%3DLato&data=02%7C01%7Caharui%
> >> >> >> >> 40adobe.co
> >> >> >> >> >>m%7C335f9e4addc14bb6bbb708d58380469b%
> >> >> 7Cfa7b1b5a7b34438794aed2c178de
> >> >> >> >> cee1%7
> >> >> >> >>
> >> >> >>>>C0%7C0%7C636559509319053690&sdata=yA7%
> >> 2Bh88X94JpycunvMJSNuCflIoOkddb
> >> >> >> >> ODAux
> >> >> >> >> >>creWGM%3D&reserved=0
> >> >> >> >> >> "
> >> >> >> >> >> >> > > rel="stylesheet">
> >> >> >> >> >> >> > > * </inject_html>
> >> >> >> >> >> >> > > *
> >> >> >> >> >> >> > > * @langversion 3.0
> >> >> >> >> >> >> > > * @playerversion Flash 10.2
> >> >> >> >> >> >> > > * @playerversion AIR 2.6
> >> >> >> >> >> >> > > * @productversion Royale 0.9.2
> >> >> >> >> >> >> > > */
> >> >> >> >> >> >> > > public function JewelThemeClasses()
> >> >> >> >> >> >> > > {
> >> >> >> >> >> >> > > super();
> >> >> >> >> >> >> > > }
> >> >> >> >> >> >> > > }
> >> >> >> >> >> >> > >
> >> >> >> >> >> >> > > }
> >> >> >> >> >> >> > >
> >> >> >> >> >> >> > > But this is not working since I don't get anything
> >> >> >>injected in
> >> >> >> >> >>the
> >> >> >> >> >> >> html
> >> >> >> >> >> >> > >
> >> >> >> >> >> >> > > anyone knows what could be the problem?
> >> >> >> >> >> >> > >
> >> >> >> >> >> >> > > thanks
> >> >> >> >> >> >> > >
> >> >> >> >> >> >> > >
> >> >> >> >> >> >> > > --
> >> >> >> >> >> >> > > Carlos Rovira
> >> >> >> >> >> >> > >
> >> >> >> >> >>https://na01.safelinks.protection.outlook.com/?url=
> >> >> >> >> http%3A%2F%2Fabout.me%
> >> >> >> >> >>2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
> >> >> >> >> 7C335f9e4addc14bb6bbb708
> >> >> >> >> >>d58380469b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
> >> >> >> >> 7C63655950931905369
> >> >> >> >>
> >> >> >> >>>>0&sdata=%2FNmOa%2BKcyD93kNDolxbReQZMhVrgPTzrzk
> >> >> >> l%2FYwSRGTs%3D&reserved=0
> >> >> >> >> >> >> > >
> >> >> >> >> >> >> >
> >> >> >> >> >> >> >
> >> >> >> >> >> >> >
> >> >> >> >> >> >> > --
> >> >> >> >> >> >> >
> >> >> >> >> >> >> > Piotr Zarzycki
> >> >> >> >> >> >> >
> >> >> >> >> >> >> > Patreon:
> >> >> >> >> >>*https://na01.safelinks.protection.outlook.com/?url=
> >> >> >> >> https%3A%2F%2Fwww.pat
> >> >> >> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
> >> >> >> >> %7C335f9e4addc1
> >> >> >> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
> >> >> >> >> cee1%7C0%7C0%7C6365595
> >> >> >> >> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
> >> >> >> >> Y6k6l9ER6rkZ4%3D&reserved
> >> >> >> >> >>=0
> >> >> >> >> >> >> >
> >> >> >> >> >><https://na01.safelinks.protection.outlook.com/?url=
> >> >> >> >> https%3A%2F%2Fwww.pat
> >> >> >> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
> >> >> >> >> %7C335f9e4addc1
> >> >> >> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
> >> >> >> >> cee1%7C0%7C0%7C6365595
> >> >> >> >> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
> >> >> >> >> Y6k6l9ER6rkZ4%3D&reserved
> >> >> >> >> >>=0>*
> >> >> >> >> >> >> >
> >> >> >> >> >> >>
> >> >> >> >> >> >>
> >> >> >> >> >> >>
> >> >> >> >> >> >> --
> >> >> >> >> >> >> Carlos Rovira
> >> >> >> >> >> >>
> >> >> >> >> >>https://na01.safelinks.protection.outlook.com/?url=
> >> >> >> >> http%3A%2F%2Fabout.me%
> >> >> >> >> >>2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
> >> >> >> >> 7C335f9e4addc14bb6bbb708
> >> >> >> >> >>d58380469b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
> >> >> >> >> 7C63655950931905369
> >> >> >> >>
> >> >> >> >>>>0&sdata=%2FNmOa%2BKcyD93kNDolxbReQZMhVrgPTzrzk
> >> >> >> l%2FYwSRGTs%3D&reserved=0
> >> >> >> >> >> >>
> >> >> >> >> >> >
> >> >> >> >> >> >
> >> >> >> >> >> >
> >> >> >> >> >> > --
> >> >> >> >> >> >
> >> >> >> >> >> > Piotr Zarzycki
> >> >> >> >> >> >
> >> >> >> >> >> > Patreon:
> >> >> >> >> >>*https://na01.safelinks.protection.outlook.com/?url=
> >> >> >> >> https%3A%2F%2Fwww.pat
> >> >> >> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
> >> >> >> >> %7C335f9e4addc1
> >> >> >> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
> >> >> >> >> cee1%7C0%7C0%7C6365595
> >> >> >> >> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
> >> >> >> >> Y6k6l9ER6rkZ4%3D&reserved
> >> >> >> >> >>=0
> >> >> >> >> >> >
> >> >> >> >> >><https://na01.safelinks.protection.outlook.com/?url=
> >> >> >> >> https%3A%2F%2Fwww.pat
> >> >> >> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
> >> >> >> >> %7C335f9e4addc1
> >> >> >> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
> >> >> >> >> cee1%7C0%7C0%7C6365595
> >> >> >> >> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
> >> >> >> >> Y6k6l9ER6rkZ4%3D&reserved
> >> >> >> >> >>=0>*
> >> >> >> >> >> >
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >> --
> >> >> >> >> >>
> >> >> >> >> >> Piotr Zarzycki
> >> >> >> >> >>
> >> >> >> >> >> Patreon:
> >> >> >> >> >>*https://na01.safelinks.protection.outlook.com/?url=
> >> >> >> >> https%3A%2F%2Fwww.pat
> >> >> >> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
> >> >> >> >> %7C335f9e4addc1
> >> >> >> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
> >> >> >> >> cee1%7C0%7C0%7C6365595
> >> >> >> >> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
> >> >> >> >> Y6k6l9ER6rkZ4%3D&reserved
> >> >> >> >> >>=0
> >> >> >> >> >>
> >> >> >> >> >><https://na01.safelinks.protection.outlook.com/?url=
> >> >> >> >> https%3A%2F%2Fwww.pat
> >> >> >> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
> >> >> >> >> %7C335f9e4addc1
> >> >> >> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
> >> >> >> >> cee1%7C0%7C0%7C6365595
> >> >> >> >> >>09319063694&sdata=o76Gym4fOsBicseiddsVm1FQHtzgLu
> >> >> >> >> zQ5MkEqFyBckI%3D&reserved
> >> >> >> >> >>=0>*
> >> >> >> >> >>
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >--
> >> >> >> >> >Carlos Rovira
> >> >> >> >> >https://na01.safelinks.protection.outlook.com/?url=
> >> >> >> >> http%3A%2F%2Fabout.me%2
> >> >> >> >> >Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
> >> >> >> >> 7C335f9e4addc14bb6bbb708d5
> >> >> >> >> >8380469b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
> >> >> >> >> 7C636559509319063694&s
> >> >> >> >>
> >>>data=7moxBd2GSpHpn7AAtOwOD9MZSKIvjLai7e%2B5WK5BeOA%3D&reserved=0
> >> >> >> >>
> >> >> >> >>
> >> >> >> >
> >> >> >> >
> >> >> >> >--
> >> >> >> >Carlos Rovira
> >> >> >> >https://na01.safelinks.protection.outlook.com/?url=
> >> >> >> http%3A%2F%2Fabout.me%2
> >> >> >> >Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
> >> >> >> 7C90d36aa7b58d4a8f037a08d5
> >> >> >> >839081a1%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
> >> >> >> 7C636559579033937825&s
> >> >> >> >data=50jZM6zOSthV%2FLV2ATtlQR3ymCzo3eKGGhk6ccYp3Fs%3D&reserved=0
> >> >> >>
> >> >> >>
> >> >> >
> >> >> >
> >> >> >--
> >> >> >Carlos Rovira
> >> >> >https://na01.safelinks.protection.outlook.com/?url=
> >> >> http%3A%2F%2Fabout.me%2
> >> >> >Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
> >> >> 7Cd529a696163d4105e0f608d5
> >> >> >83a4d4e1%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
> >> >> 7C636559666333752025&s
> >> >> >data=MR%2BipgM59CJpHxtty1Yut1PeBobh5mgZ318%2FXAN4Ttw%3D&reserved=0
> >> >>
> >> >>
> >> >
> >> >
> >> >--
> >> >Carlos Rovira
> >> >https://na01.safelinks.protection.outlook.com/?url=
> >> http%3A%2F%2Fabout.me%2
> >> >Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
> >> 7C52bafe9ca1d24b9b486f08d5
> >> >83a99b5c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
> >> 7C636559686834559221&s
> >> >data=HH1Pg3ZmLYtF%2B2vkbsOIfjvUyO8Wt4j3SavSYsLZQhs%3D&reserved=0
> >>
> >>
> >
> >
> >--
> >Carlos Rovira
> >https://na01.safelinks.protection.outlook.com/?url=
> http%3A%2F%2Fabout.me%2
> >Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
> 7Cc29454dc81424abfa1b008d5
> >843c2bca%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
> 7C636560316321675878&s
> >data=kr%2FIlt3xEzq9fa5NjyP37QelOSJh9brdaZbpbHQKC0c%3D&reserved=0
>
>
--
Carlos Rovira
http://about.me/carlosrovira
Re: How to inject html with a theme class
Posted by Alex Harui <ah...@adobe.com.INVALID>.
When you say the files are empty, does that mean it is truly 0 bytes or
just doesn’t contain the classes you want?
If no classes are specified to be compiled due to COMPILE::SWF and
COMPILE::JS blocks then the library.swf will not contain those classes.
The library compile succeeds because it thinks it is doing what you told
it to (not what you wanted it to) and so the failure point is in the
application compile when that class is finally needed to link the output
SWF. The library compiler does not check ClassReferences in the CSS files
in the SWC. The CSS files are not parsed by the library compiler, they
are just included.
If the file is truly empty, then check the script output. Maybe it
couldn't find the jar it launches because you are using Maven.
-Alex
On 3/7/18, 6:59 AM, "carlos.rovira@gmail.com on behalf of Carlos Rovira"
<carlos.rovira@gmail.com on behalf of carlosrovira@apache.org> wrote:
>Hi Alex,
>
>I did it :
>
>../royale-compiler/compiler/src/assembly/scripts/swfdump -abc library.swf
>>
>mysqc.txt
>
>
>(for both -swf.swc and -js.swc), and both files (mysqc.txt) are empty
>
>
>so what could be happen? why there's nothing in library.swf but there's
>.js
>generated?
>
>
>thanks
>
>
>
>
>2018-03-06 23:18 GMT+01:00 Alex Harui <ah...@adobe.com.invalid>:
>
>> SWCs contained compiled AS, not the .as file itself. And Royale SWCs
>>also
>> contain .js files. So the proof is really in SWFDump-ing the
>>library.swf
>> in the SWC. We need to verify that JewelThemeFontInject is in the
>> library.swf.
>>
>> So:
>>
>> -unzip the SWC.
>> -Run bin/swfdump -abc library.swf >MySWC.txt
>> -Look in MySWC.txt for JewelThemeFontInject.
>>
>> Then we'll worry about the app compile.
>>
>> -Alex
>>
>> On 3/6/18, 1:30 PM, "carlos.rovira@gmail.com on behalf of Carlos Rovira"
>> <carlos.rovira@gmail.com on behalf of carlosrovira@apache.org> wrote:
>>
>> >Hi Alex,
>> >
>> >2018-03-06 22:04 GMT+01:00 Alex Harui <ah...@adobe.com.invalid>:
>> >
>> >> Hi Carlos,
>> >>
>> >> I don't think there is per-platform CSS, so
>> >> org.apache.royale.jewel.JewelThemeFontInject needs to be in the SWC
>>for
>> >> both the SWF and JS compile.
>> >
>> >
>> >right, I checked both SWF and JS SWC files and both have the same, and
>>one
>> >of the files is
>> >org.apache.royale.jewel.JewelThemeFontInject.js in his folder structure
>> (I
>> >expect to find the .as in SWC file for SWF, is that right?)
>> >
>> >
>> >> I couldn't quite tell from the commit
>> >> message, but it looked like JewelThemeFontInject might have been set
>>up
>> >>to
>> >> be JSOnly.
>> >>
>> >
>> >mmm...I though SWC files where agnostic, and the compilation is valid
>>for
>> >both JS and SWF targets. If not, don't know how to do that
>> >in JewelExample I have in the pom <targets>JSRoyale,SWF</targets>
>> >And tried to remove SWF but the result is the same error
>> >If I remove JSRoyale, the compilation succed, but the error is still
>>there
>> >and since for SWF there are other problems like linear-gradients,
>>there's
>> >no SWF generation at the moment.
>> >
>> >
>> >> Also, it shouldn't matter, but I would not bother to put
>> >> org.apache.royale.jewel.JewelThemeFontInject in the manifest. Nobody
>> >> should be using it in MXML.
>> >>
>> >
>> >Right I'll remove it
>> >
>> >
>> >>
>> >> Check the SWC. You can unzip it and SWFDump the library.swf and it
>> >>should
>> >> have org.apache.royale.jewel.JewelThemeFontInject in it, and
>> >>anequivalent
>> >> .js file.
>> >>
>> >
>> >There's only one .js file, that's what I think it's not right, there
>> >should
>> >be a .as and a .js? (I think a .as for swc swf file, and a .js for swc
>>js
>> >file)
>> >
>> >thanks
>> >
>> >Carlos
>> >
>> >
>> >> HTH,
>> >> -Alex
>> >>
>> >> On 3/6/18, 12:56 PM, "carlos.rovira@gmail.com on behalf of Carlos
>> >>Rovira"
>> >> <carlos.rovira@gmail.com on behalf of carlosrovira@apache.org> wrote:
>> >>
>> >> >Hi Alex,
>> >> >
>> >> >more near, but still fails. I put the quotes failed, then I figured
>> >>that I
>> >> >put in jewel package similar to lib, so I changed to :
>> >> >
>> >> >fonts:
>>ClassReference("org.apache.royale.jewel.JewelThemeFontInject");
>> >> >
>> >> >this failed in similar way:
>> >> >
>> >> >[INFO] Executing MXMLC in tool group Royale with args:
>> >> >[-load-config=/Users/carlosrovira/Dev/Royale/
>> >> Source/royale-asjs/examples/r
>> >> >oyale/JewelExample/target/compile-app-
>> >> >config.xml,
>> >>
>>>-js-output=/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/
>> >> roya
>> >> >le/JewelExample/target/javascript,
>> >> >-compiler.targets=JSRoyale,SWF,
>> >> >/Users/carlosrovira/Dev/Royale/Source/royale-asjs/
>> >> examples/royale/JewelExa
>> >> >mple/src/main/royale/
>> >> >App.mxml]
>> >> >/Users/carlosrovira/Dev/Royale/Source/royale-asjs/
>> >> examples/royale/JewelExa
>> >> >mple/JewelTheme-
>> >> >0.9.2-SNAPSHOT.swc:defaults.css(29): col: 10 Error:
>> >> >org.apache.royale.jewel.JewelThemeFontInject is not defined.
>> >> >
>> >> >I recheck all files but can see what's could be wrong
>> >> >
>> >> >
>> >> >
>> >> >2018-03-06 19:51 GMT+01:00 Alex Harui <ah...@adobe.com.invalid>:
>> >> >
>> >> >> I missed that ClassReference puts the class in quotes. Try:
>> >> >>
>> >> >> fonts: ClassReference("JewelThemeFontInject") ;
>> >> >>
>> >> >>
>> >> >> HTH,
>> >> >> -Alex
>> >> >>
>> >> >> On 3/6/18, 10:31 AM, "carlos.rovira@gmail.com on behalf of Carlos
>> >> >>Rovira"
>> >> >> <carlos.rovira@gmail.com on behalf of carlosrovira@apache.org>
>> wrote:
>> >> >>
>> >> >> >Hi Alex,
>> >> >> >
>> >> >> >the 4 method seems ok but I'm getting this error:
>> >> >> >
>> >> >> >[INFO] Executing MXMLC in tool group Royale with args:
>> >> >> >[-load-config=/Users/carlosrovira/Dev/Royale/
>> >> >> Source/royale-asjs/examples/r
>> >> >> >oyale/JewelExample/target/compile-app-
>> >> >> >config.xml,
>> >> >>
>>
>>>>>-js-output=/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/
>> >> >> roya
>> >> >> >le/JewelExample/target/javascript,
>> >> >> >-compiler.targets=JSRoyale,SWF,
>> >> >> >/Users/carlosrovira/Dev/Royale/Source/royale-asjs/
>> >> >> examples/royale/JewelExa
>> >> >> >mple/src/main/royale/
>> >> >> >App.mxml]
>> >> >> >/Users/carlosrovira/Dev/Royale/Source/royale-asjs/
>> >> >> examples/royale/JewelExa
>> >> >> >mple/JewelTheme-
>> >> >> >0.9.2-SNAPSHOT.swc:defaults.css(28): col: 11 Error:
>> >>ewelThemeFontInjec
>> >> >>is
>> >> >> >not defined.
>> >> >> >
>> >> >> >if I unzip the theme -js.swc I can see JewelThemeFontInject.js
>>file
>> >> >>inside
>> >> >> >in the out folder (in its own package), so I think the theme SWC
>>is
>> >>ok.
>> >> >> >
>> >> >> >I put the declaration in
>> >> >> >
>> >> >> >.royale *, . royale *:before, . royale *:after {
>> >> >> > -moz-box-sizing: border-box;
>> >> >> > -webkit-box-sizing: border-box;
>> >> >> > box-sizing: border-box;
>> >> >> >
>> >> >> > fonts: ClassReference(JewelThemeFontInject) ;
>> >> >> >}
>> >> >> >
>> >> >> >so this is getting notice.
>> >> >> >
>> >> >> >but the error show the name of the class without first letter
>>Error:
>> >> >> >ewelThemeFontInjec is not defined
>> >> >> >
>> >> >> >any thoughts?
>> >> >> >
>> >> >> >thanks!
>> >> >> >
>> >> >> >
>> >> >> >2018-03-06 18:26 GMT+01:00 Alex Harui <ah...@adobe.com.invalid>:
>> >> >> >
>> >> >> >> Only <inject_html> from classes actually linked into the final
>> >> >> >>application
>> >> >> >> will be used.
>> >> >> >>
>> >> >> >> I think there are a few choices:
>> >> >> >> 1) require everyone use a particular html-template
>> >> >> >> 2) require some bead be used
>> >> >> >> 3) require a different Application subclass
>> >> >> >> 4) try to hack it in as follows:
>> >> >> >>
>> >> >> >> In the defaults.css for Jewel, add
>> >> >> >>
>> >> >> >> .Jewel { fonts: ClassReference(JewelInjectHTML) }
>> >> >> >>
>> >> >> >> And create a JewelInjectHTML class with the desired
>><inject_html>
>> >>on
>> >> >>the
>> >> >> >> constructor.
>> >> >> >>
>> >> >> >> That will have a bit of extra overhead, but might work.
>> >> >> >>
>> >> >> >> HTH,
>> >> >> >> -Alex
>> >> >> >>
>> >> >> >> On 3/6/18, 8:35 AM, "carlos.rovira@gmail.com on behalf of
>>Carlos
>> >> >> Rovira"
>> >> >> >> <carlos.rovira@gmail.com on behalf of carlosrovira@apache.org>
>> >> wrote:
>> >> >> >>
>> >> >> >> >Hi Piotr,
>> >> >> >> >
>> >> >> >> >no, that's that I want to get in the resultant html file. I
>>don't
>> >> >> >>think I
>> >> >> >> >understand your question, that's exactly what I'm asking, why
>> >>that
>> >> >> >>line is
>> >> >> >> >not in the final HTML file, I suppose that is because is a
>>theme
>> >> >>file
>> >> >> >>and
>> >> >> >> >maybe the JewelThemeClasses.as is not used, but don't know
>>how to
>> >> >>make
>> >> >> >>it
>> >> >> >> >work
>> >> >> >> >
>> >> >> >> >thanks
>> >> >> >> >
>> >> >> >> >2018-03-06 17:06 GMT+01:00 Piotr Zarzycki
>> >> >><pi...@gmail.com>:
>> >> >> >> >
>> >> >> >> >> Link once again: <link
>> >> >> >>
>> >> >>
>> >>
>>
>>>>>>>>>>href="https://na01.safelinks.protection.outlook.com/?url=https%3A
>>>>>>>>>>%2F%2Fna01.safelinks.protection.outlook&data=02%7C01%7Caharui%40a
>>>>>>>>>>dobe.com%7Cc29454dc81424abfa1b008d5843c2bca%7Cfa7b1b5a7b34438794a
>>>>>>>>>>ed2c178decee1%7C0%7C0%7C636560316321675878&sdata=5j95MG6WqoLy5YSj
>>>>>>>>>>y4P%2FD2A5u1rQHJr6ZBqyUYUYPQY%3D&reserved=0.
>> com/?url=https%3A%2
>> >>>>>>>>F%2Fna01.safelinks.protection.outlook&data=02%
>> 7C01%7Caharui%40adobe
>> >>>>>>>>.com%7C52bafe9ca1d24b9b486f08d583a99b5c%
>> 7Cfa7b1b5a7b34438794aed2c17
>> >>>>>>>>8decee1%7C0%7C0%7C636559686834559221&sdata=
>> ZYz0Z%2B%2FEKrjwgfCwdQhS
>> >>>>>>>>bUopjBNsH5wfpkKiSN%2Bltm8%3D&reserved=0.
>> >> com/?url=https%3A%2F%
>> >> >>>>>>2Fna01.safelinks.protection.outlook&data=02%7C01%7Caharui%
>> >> 40adobe.com
>> >> >>>>>>%7Cd529a696163d4105e0f608d583a4d4e1%
>> 7Cfa7b1b5a7b34438794aed2c178de
>> >> cee
>> >>
>> >>>>>>>>1%7C0%7C0%7C636559666333752025&sdata=
>> 1OzBzVetTJVqzHNC8QEUL3I7yM9KyU
>> >> jV
>> >> >>>>>>Mpo8kYVEsnw%3D&reserved=0.
>> >> >> com/?url=https%3A%2F%2F
>> >> >>
>>
>>>>>>>>na01.safelinks.protection.outlook&data=02%7C01%7Caharui%40adobe.com
>> >> >> %7C9
>> >> >> >>>>0d36aa7b58d4a8f037a08d5839081a1%7Cfa7b1b5a7b34438794aed2c178de
>> >> >> cee1%7C0%
>> >> >> >>>>7C0%7C636559579033937825&sdata=5puVvWSyXU5Lh1gy9f9gJ1iEl0N1sp
>> >> >> EXJza%2FJG
>> >> >> >>>>m6Xug%3D&reserved=0.
>> >> >> >> com/?url=https%3A%2F%2Ffo
>> >> >> >>
>>>>nts.googleapis.com%2Fcss%3Ffamily%3DLato&data=02%7C01%7Caharui%
>> >> >> >> 40adobe.co
>> >> >> >> >>m%7C335f9e4addc14bb6bbb708d58380469b%
>> >> 7Cfa7b1b5a7b34438794aed2c178de
>> >> >> >> cee1%7
>> >> >> >>
>> >> >>>>C0%7C0%7C636559509319053690&sdata=yA7%
>> 2Bh88X94JpycunvMJSNuCflIoOkddb
>> >> >> >> ODAux
>> >> >> >> >>creWGM%3D&reserved=0"
>> >> >> >> >> rel="stylesheet">
>> >> >> >> >>
>> >> >> >> >> 2018-03-06 17:06 GMT+01:00 Piotr Zarzycki
>> >> >> >><pi...@gmail.com>:
>> >> >> >> >>
>> >> >> >> >> > I meant here something else. Do you have in your head
>> >>something
>> >> >> >>like
>> >> >> >> >>that
>> >> >> >> >> > after compilation in the html files ?
>> >> >> >> >> >
>> >> >> >> >> > <link
>> >> >> >>
>> >> >>
>> >>
>>
>>>>>>>>>>href="https://na01.safelinks.protection.outlook.com/?url=https%3A
>>>>>>>>>>%2F%2Fna01.safelinks.protection.outlook&data=02%7C01%7Caharui%40a
>>>>>>>>>>dobe.com%7Cc29454dc81424abfa1b008d5843c2bca%7Cfa7b1b5a7b34438794a
>>>>>>>>>>ed2c178decee1%7C0%7C0%7C636560316321675878&sdata=5j95MG6WqoLy5YSj
>>>>>>>>>>y4P%2FD2A5u1rQHJr6ZBqyUYUYPQY%3D&reserved=0.
>> com/?url=https%3A%2
>> >>>>>>>>F%2Fna01.safelinks.protection.outlook&data=02%
>> 7C01%7Caharui%40adobe
>> >>>>>>>>.com%7C52bafe9ca1d24b9b486f08d583a99b5c%
>> 7Cfa7b1b5a7b34438794aed2c17
>> >>>>>>>>8decee1%7C0%7C0%7C636559686834559221&sdata=
>> ZYz0Z%2B%2FEKrjwgfCwdQhS
>> >>>>>>>>bUopjBNsH5wfpkKiSN%2Bltm8%3D&reserved=0.
>> >> com/?url=https%3A%2F%
>> >> >>>>>>2Fna01.safelinks.protection.outlook&data=02%7C01%7Caharui%
>> >> 40adobe.com
>> >> >>>>>>%7Cd529a696163d4105e0f608d583a4d4e1%
>> 7Cfa7b1b5a7b34438794aed2c178de
>> >> cee
>> >>
>> >>>>>>>>1%7C0%7C0%7C636559666333752025&sdata=
>> 1OzBzVetTJVqzHNC8QEUL3I7yM9KyU
>> >> jV
>> >> >>>>>>Mpo8kYVEsnw%3D&reserved=0.
>> >> >> com/?url=https%3A%2F%2F
>> >> >>
>>
>>>>>>>>na01.safelinks.protection.outlook&data=02%7C01%7Caharui%40adobe.com
>> >> >> %7C9
>> >> >> >>>>0d36aa7b58d4a8f037a08d5839081a1%7Cfa7b1b5a7b34438794aed2c178de
>> >> >> cee1%7C0%
>> >> >> >>>>7C0%7C636559579033937825&sdata=5puVvWSyXU5Lh1gy9f9gJ1iEl0N1sp
>> >> >> EXJza%2FJG
>> >> >> >>>>m6Xug%3D&reserved=0.
>> >> >> >> com/?url=https%3A%2F%2Ffo
>> >> >> >>
>>>>nts.googleapis.com%2Fcss%3Ffamily%3DLato&data=02%7C01%7Caharui%
>> >> >> >> 40adobe.co
>> >> >> >> >>m%7C335f9e4addc14bb6bbb708d58380469b%
>> >> 7Cfa7b1b5a7b34438794aed2c178de
>> >> >> >> cee1%7
>> >> >> >>
>> >> >>>>C0%7C0%7C636559509319053690&sdata=yA7%
>> 2Bh88X94JpycunvMJSNuCflIoOkddb
>> >> >> >> ODAux
>> >> >> >> >>creWGM%3D&reserved=0"
>> >> >> >> >> > rel="stylesheet">
>> >> >> >> >> >
>> >> >> >> >> > 2018-03-06 17:01 GMT+01:00 Carlos Rovira
>> >> >><carlosrovira@apache.org
>> >> >> >:
>> >> >> >> >> >
>> >> >> >> >> >> Hi Piotr,
>> >> >> >> >> >>
>> >> >> >> >> >> I introduced a new line in Application.as in Jewel UI
>>set to
>> >> >>start
>> >> >> >> >> >> implementing responsiveness in mobile:
>> >> >> >> >> >>
>> >> >> >> >> >> <meta name="viewport" content="width=device-width,
>> >> >> >>initial-scale=1,
>> >> >> >> >> >> minimum-scale=1, maximum-scale=1">
>> >> >> >> >> >>
>> >> >> >> >> >> this line is ok at that level since all jewel apps could
>>be
>> >> >> >> >>responsive
>> >> >> >> >> >>
>> >> >> >> >> >> that line appears ok in final html
>> >> >> >> >> >>
>> >> >> >> >> >> but the one in the theme, is not appearing in the html
>> >> >> >> >> >>
>> >> >> >> >> >> the rest seems ok with the normal script generated by
>>Royale
>> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >> >> 2018-03-06 16:47 GMT+01:00 Piotr Zarzycki
>> >> >> >> >><pi...@gmail.com>:
>> >> >> >> >> >>
>> >> >> >> >> >> > Hi Carlos,
>> >> >> >> >> >> >
>> >> >> >> >> >> > How looks like HTML output when you compile things
>>using
>> >>that
>> >> >> >> >>stuff ?
>> >> >> >> >> >> >
>> >> >> >> >> >> > Thanks, Piotr
>> >> >> >> >> >> >
>> >> >> >> >> >> > 2018-03-06 16:40 GMT+01:00 Carlos Rovira
>> >> >> >><carlosrovira@apache.org
>> >> >> >> >:
>> >> >> >> >> >> >
>> >> >> >> >> >> > > Hi
>> >> >> >> >> >> > >
>> >> >> >> >> >> > > I want the theme define the typography to use, to get
>> >>this
>> >> >>I'm
>> >> >> >> >>using
>> >> >> >> >> >> the
>> >> >> >> >> >> > > inject_html tag in the constructor
>> >> >> >> >> >> > >
>> >> >> >> >> >> > > The only class I have in the theme is the following
>> >> >> >> >> >> > >
>> >> >> >> >> >> > >
>> >> >> >> >> >> > > package
>> >> >> >> >> >> > > {
>> >> >> >> >> >> > >
>> >> >> >> >> >> > > /**
>> >> >> >> >> >> > > * @private
>> >> >> >> >> >> > > * This class is used to link additional classes into
>> >> >> >> >>JewelTheme.swc
>> >> >> >> >> >> > > * beyond those that are found by dependecy analysis
>> >> >>starting
>> >> >> >> >> >> > > * from the classes specified in manifest.xml.
>> >> >> >> >> >> > > */
>> >> >> >> >> >> > > internal class JewelThemeClasses
>> >> >> >> >> >> > > {
>> >> >> >> >> >> > > /**
>> >> >> >> >> >> > > * constructor.
>> >> >> >> >> >> > > *
>> >> >> >> >> >> > > * <inject_html>
>> >> >> >> >> >> > > * <link
>> >> >> >>
>> >> >>
>> >>
>>
>>>>>>>>>>href="https://na01.safelinks.protection.outlook.com/?url=https%3A
>>>>>>>>>>%2F%2Fna01.safelinks.protection.outlook&data=02%7C01%7Caharui%40a
>>>>>>>>>>dobe.com%7Cc29454dc81424abfa1b008d5843c2bca%7Cfa7b1b5a7b34438794a
>>>>>>>>>>ed2c178decee1%7C0%7C0%7C636560316321675878&sdata=5j95MG6WqoLy5YSj
>>>>>>>>>>y4P%2FD2A5u1rQHJr6ZBqyUYUYPQY%3D&reserved=0.
>> com/?url=https%3A%2
>> >>>>>>>>F%2Fna01.safelinks.protection.outlook&data=02%
>> 7C01%7Caharui%40adobe
>> >>>>>>>>.com%7C52bafe9ca1d24b9b486f08d583a99b5c%
>> 7Cfa7b1b5a7b34438794aed2c17
>> >>>>>>>>8decee1%7C0%7C0%7C636559686834559221&sdata=
>> ZYz0Z%2B%2FEKrjwgfCwdQhS
>> >>>>>>>>bUopjBNsH5wfpkKiSN%2Bltm8%3D&reserved=0.
>> >> com/?url=https%3A%2F%
>> >> >>>>>>2Fna01.safelinks.protection.outlook&data=02%7C01%7Caharui%
>> >> 40adobe.com
>> >> >>>>>>%7Cd529a696163d4105e0f608d583a4d4e1%
>> 7Cfa7b1b5a7b34438794aed2c178de
>> >> cee
>> >>
>> >>>>>>>>1%7C0%7C0%7C636559666333752025&sdata=
>> 1OzBzVetTJVqzHNC8QEUL3I7yM9KyU
>> >> jV
>> >> >>>>>>Mpo8kYVEsnw%3D&reserved=0.
>> >> >> com/?url=https%3A%2F%2F
>> >> >>
>>
>>>>>>>>na01.safelinks.protection.outlook&data=02%7C01%7Caharui%40adobe.com
>> >> >> %7C9
>> >> >> >>>>0d36aa7b58d4a8f037a08d5839081a1%7Cfa7b1b5a7b34438794aed2c178de
>> >> >> cee1%7C0%
>> >> >> >>>>7C0%7C636559579033937825&sdata=5puVvWSyXU5Lh1gy9f9gJ1iEl0N1sp
>> >> >> EXJza%2FJG
>> >> >> >>>>m6Xug%3D&reserved=0.
>> >> >> >> com/?url=https%3A%2F%2Ffo
>> >> >> >>
>>>>nts.googleapis.com%2Fcss%3Ffamily%3DLato&data=02%7C01%7Caharui%
>> >> >> >> 40adobe.co
>> >> >> >> >>m%7C335f9e4addc14bb6bbb708d58380469b%
>> >> 7Cfa7b1b5a7b34438794aed2c178de
>> >> >> >> cee1%7
>> >> >> >>
>> >> >>>>C0%7C0%7C636559509319053690&sdata=yA7%
>> 2Bh88X94JpycunvMJSNuCflIoOkddb
>> >> >> >> ODAux
>> >> >> >> >>creWGM%3D&reserved=0
>> >> >> >> >> "
>> >> >> >> >> >> > > rel="stylesheet">
>> >> >> >> >> >> > > * </inject_html>
>> >> >> >> >> >> > > *
>> >> >> >> >> >> > > * @langversion 3.0
>> >> >> >> >> >> > > * @playerversion Flash 10.2
>> >> >> >> >> >> > > * @playerversion AIR 2.6
>> >> >> >> >> >> > > * @productversion Royale 0.9.2
>> >> >> >> >> >> > > */
>> >> >> >> >> >> > > public function JewelThemeClasses()
>> >> >> >> >> >> > > {
>> >> >> >> >> >> > > super();
>> >> >> >> >> >> > > }
>> >> >> >> >> >> > > }
>> >> >> >> >> >> > >
>> >> >> >> >> >> > > }
>> >> >> >> >> >> > >
>> >> >> >> >> >> > > But this is not working since I don't get anything
>> >> >>injected in
>> >> >> >> >>the
>> >> >> >> >> >> html
>> >> >> >> >> >> > >
>> >> >> >> >> >> > > anyone knows what could be the problem?
>> >> >> >> >> >> > >
>> >> >> >> >> >> > > thanks
>> >> >> >> >> >> > >
>> >> >> >> >> >> > >
>> >> >> >> >> >> > > --
>> >> >> >> >> >> > > Carlos Rovira
>> >> >> >> >> >> > >
>> >> >> >> >>https://na01.safelinks.protection.outlook.com/?url=
>> >> >> >> http%3A%2F%2Fabout.me%
>> >> >> >> >>2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
>> >> >> >> 7C335f9e4addc14bb6bbb708
>> >> >> >> >>d58380469b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
>> >> >> >> 7C63655950931905369
>> >> >> >>
>> >> >> >>>>0&sdata=%2FNmOa%2BKcyD93kNDolxbReQZMhVrgPTzrzk
>> >> >> l%2FYwSRGTs%3D&reserved=0
>> >> >> >> >> >> > >
>> >> >> >> >> >> >
>> >> >> >> >> >> >
>> >> >> >> >> >> >
>> >> >> >> >> >> > --
>> >> >> >> >> >> >
>> >> >> >> >> >> > Piotr Zarzycki
>> >> >> >> >> >> >
>> >> >> >> >> >> > Patreon:
>> >> >> >> >>*https://na01.safelinks.protection.outlook.com/?url=
>> >> >> >> https%3A%2F%2Fwww.pat
>> >> >> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
>> >> >> >> %7C335f9e4addc1
>> >> >> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
>> >> >> >> cee1%7C0%7C0%7C6365595
>> >> >> >> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
>> >> >> >> Y6k6l9ER6rkZ4%3D&reserved
>> >> >> >> >>=0
>> >> >> >> >> >> >
>> >> >> >> >><https://na01.safelinks.protection.outlook.com/?url=
>> >> >> >> https%3A%2F%2Fwww.pat
>> >> >> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
>> >> >> >> %7C335f9e4addc1
>> >> >> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
>> >> >> >> cee1%7C0%7C0%7C6365595
>> >> >> >> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
>> >> >> >> Y6k6l9ER6rkZ4%3D&reserved
>> >> >> >> >>=0>*
>> >> >> >> >> >> >
>> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >> >> --
>> >> >> >> >> >> Carlos Rovira
>> >> >> >> >> >>
>> >> >> >> >>https://na01.safelinks.protection.outlook.com/?url=
>> >> >> >> http%3A%2F%2Fabout.me%
>> >> >> >> >>2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
>> >> >> >> 7C335f9e4addc14bb6bbb708
>> >> >> >> >>d58380469b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
>> >> >> >> 7C63655950931905369
>> >> >> >>
>> >> >> >>>>0&sdata=%2FNmOa%2BKcyD93kNDolxbReQZMhVrgPTzrzk
>> >> >> l%2FYwSRGTs%3D&reserved=0
>> >> >> >> >> >>
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> > --
>> >> >> >> >> >
>> >> >> >> >> > Piotr Zarzycki
>> >> >> >> >> >
>> >> >> >> >> > Patreon:
>> >> >> >> >>*https://na01.safelinks.protection.outlook.com/?url=
>> >> >> >> https%3A%2F%2Fwww.pat
>> >> >> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
>> >> >> >> %7C335f9e4addc1
>> >> >> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
>> >> >> >> cee1%7C0%7C0%7C6365595
>> >> >> >> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
>> >> >> >> Y6k6l9ER6rkZ4%3D&reserved
>> >> >> >> >>=0
>> >> >> >> >> >
>> >> >> >> >><https://na01.safelinks.protection.outlook.com/?url=
>> >> >> >> https%3A%2F%2Fwww.pat
>> >> >> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
>> >> >> >> %7C335f9e4addc1
>> >> >> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
>> >> >> >> cee1%7C0%7C0%7C6365595
>> >> >> >> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
>> >> >> >> Y6k6l9ER6rkZ4%3D&reserved
>> >> >> >> >>=0>*
>> >> >> >> >> >
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >> --
>> >> >> >> >>
>> >> >> >> >> Piotr Zarzycki
>> >> >> >> >>
>> >> >> >> >> Patreon:
>> >> >> >> >>*https://na01.safelinks.protection.outlook.com/?url=
>> >> >> >> https%3A%2F%2Fwww.pat
>> >> >> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
>> >> >> >> %7C335f9e4addc1
>> >> >> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
>> >> >> >> cee1%7C0%7C0%7C6365595
>> >> >> >> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
>> >> >> >> Y6k6l9ER6rkZ4%3D&reserved
>> >> >> >> >>=0
>> >> >> >> >>
>> >> >> >> >><https://na01.safelinks.protection.outlook.com/?url=
>> >> >> >> https%3A%2F%2Fwww.pat
>> >> >> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
>> >> >> >> %7C335f9e4addc1
>> >> >> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
>> >> >> >> cee1%7C0%7C0%7C6365595
>> >> >> >> >>09319063694&sdata=o76Gym4fOsBicseiddsVm1FQHtzgLu
>> >> >> >> zQ5MkEqFyBckI%3D&reserved
>> >> >> >> >>=0>*
>> >> >> >> >>
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >--
>> >> >> >> >Carlos Rovira
>> >> >> >> >https://na01.safelinks.protection.outlook.com/?url=
>> >> >> >> http%3A%2F%2Fabout.me%2
>> >> >> >> >Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
>> >> >> >> 7C335f9e4addc14bb6bbb708d5
>> >> >> >> >8380469b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
>> >> >> >> 7C636559509319063694&s
>> >> >> >>
>>>data=7moxBd2GSpHpn7AAtOwOD9MZSKIvjLai7e%2B5WK5BeOA%3D&reserved=0
>> >> >> >>
>> >> >> >>
>> >> >> >
>> >> >> >
>> >> >> >--
>> >> >> >Carlos Rovira
>> >> >> >https://na01.safelinks.protection.outlook.com/?url=
>> >> >> http%3A%2F%2Fabout.me%2
>> >> >> >Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
>> >> >> 7C90d36aa7b58d4a8f037a08d5
>> >> >> >839081a1%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
>> >> >> 7C636559579033937825&s
>> >> >> >data=50jZM6zOSthV%2FLV2ATtlQR3ymCzo3eKGGhk6ccYp3Fs%3D&reserved=0
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >> >--
>> >> >Carlos Rovira
>> >> >https://na01.safelinks.protection.outlook.com/?url=
>> >> http%3A%2F%2Fabout.me%2
>> >> >Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
>> >> 7Cd529a696163d4105e0f608d5
>> >> >83a4d4e1%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
>> >> 7C636559666333752025&s
>> >> >data=MR%2BipgM59CJpHxtty1Yut1PeBobh5mgZ318%2FXAN4Ttw%3D&reserved=0
>> >>
>> >>
>> >
>> >
>> >--
>> >Carlos Rovira
>> >https://na01.safelinks.protection.outlook.com/?url=
>> http%3A%2F%2Fabout.me%2
>> >Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
>> 7C52bafe9ca1d24b9b486f08d5
>> >83a99b5c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
>> 7C636559686834559221&s
>> >data=HH1Pg3ZmLYtF%2B2vkbsOIfjvUyO8Wt4j3SavSYsLZQhs%3D&reserved=0
>>
>>
>
>
>--
>Carlos Rovira
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2
>Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%7Cc29454dc81424abfa1b008d5
>843c2bca%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636560316321675878&s
>data=kr%2FIlt3xEzq9fa5NjyP37QelOSJh9brdaZbpbHQKC0c%3D&reserved=0
Re: How to inject html with a theme class
Posted by Carlos Rovira <ca...@apache.org>.
Hi Alex,
I did it :
../royale-compiler/compiler/src/assembly/scripts/swfdump -abc library.swf >
mysqc.txt
(for both -swf.swc and -js.swc), and both files (mysqc.txt) are empty
so what could be happen? why there's nothing in library.swf but there's .js
generated?
thanks
2018-03-06 23:18 GMT+01:00 Alex Harui <ah...@adobe.com.invalid>:
> SWCs contained compiled AS, not the .as file itself. And Royale SWCs also
> contain .js files. So the proof is really in SWFDump-ing the library.swf
> in the SWC. We need to verify that JewelThemeFontInject is in the
> library.swf.
>
> So:
>
> -unzip the SWC.
> -Run bin/swfdump -abc library.swf >MySWC.txt
> -Look in MySWC.txt for JewelThemeFontInject.
>
> Then we'll worry about the app compile.
>
> -Alex
>
> On 3/6/18, 1:30 PM, "carlos.rovira@gmail.com on behalf of Carlos Rovira"
> <carlos.rovira@gmail.com on behalf of carlosrovira@apache.org> wrote:
>
> >Hi Alex,
> >
> >2018-03-06 22:04 GMT+01:00 Alex Harui <ah...@adobe.com.invalid>:
> >
> >> Hi Carlos,
> >>
> >> I don't think there is per-platform CSS, so
> >> org.apache.royale.jewel.JewelThemeFontInject needs to be in the SWC for
> >> both the SWF and JS compile.
> >
> >
> >right, I checked both SWF and JS SWC files and both have the same, and one
> >of the files is
> >org.apache.royale.jewel.JewelThemeFontInject.js in his folder structure
> (I
> >expect to find the .as in SWC file for SWF, is that right?)
> >
> >
> >> I couldn't quite tell from the commit
> >> message, but it looked like JewelThemeFontInject might have been set up
> >>to
> >> be JSOnly.
> >>
> >
> >mmm...I though SWC files where agnostic, and the compilation is valid for
> >both JS and SWF targets. If not, don't know how to do that
> >in JewelExample I have in the pom <targets>JSRoyale,SWF</targets>
> >And tried to remove SWF but the result is the same error
> >If I remove JSRoyale, the compilation succed, but the error is still there
> >and since for SWF there are other problems like linear-gradients, there's
> >no SWF generation at the moment.
> >
> >
> >> Also, it shouldn't matter, but I would not bother to put
> >> org.apache.royale.jewel.JewelThemeFontInject in the manifest. Nobody
> >> should be using it in MXML.
> >>
> >
> >Right I'll remove it
> >
> >
> >>
> >> Check the SWC. You can unzip it and SWFDump the library.swf and it
> >>should
> >> have org.apache.royale.jewel.JewelThemeFontInject in it, and
> >>anequivalent
> >> .js file.
> >>
> >
> >There's only one .js file, that's what I think it's not right, there
> >should
> >be a .as and a .js? (I think a .as for swc swf file, and a .js for swc js
> >file)
> >
> >thanks
> >
> >Carlos
> >
> >
> >> HTH,
> >> -Alex
> >>
> >> On 3/6/18, 12:56 PM, "carlos.rovira@gmail.com on behalf of Carlos
> >>Rovira"
> >> <carlos.rovira@gmail.com on behalf of carlosrovira@apache.org> wrote:
> >>
> >> >Hi Alex,
> >> >
> >> >more near, but still fails. I put the quotes failed, then I figured
> >>that I
> >> >put in jewel package similar to lib, so I changed to :
> >> >
> >> >fonts: ClassReference("org.apache.royale.jewel.JewelThemeFontInject");
> >> >
> >> >this failed in similar way:
> >> >
> >> >[INFO] Executing MXMLC in tool group Royale with args:
> >> >[-load-config=/Users/carlosrovira/Dev/Royale/
> >> Source/royale-asjs/examples/r
> >> >oyale/JewelExample/target/compile-app-
> >> >config.xml,
> >> >-js-output=/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/
> >> roya
> >> >le/JewelExample/target/javascript,
> >> >-compiler.targets=JSRoyale,SWF,
> >> >/Users/carlosrovira/Dev/Royale/Source/royale-asjs/
> >> examples/royale/JewelExa
> >> >mple/src/main/royale/
> >> >App.mxml]
> >> >/Users/carlosrovira/Dev/Royale/Source/royale-asjs/
> >> examples/royale/JewelExa
> >> >mple/JewelTheme-
> >> >0.9.2-SNAPSHOT.swc:defaults.css(29): col: 10 Error:
> >> >org.apache.royale.jewel.JewelThemeFontInject is not defined.
> >> >
> >> >I recheck all files but can see what's could be wrong
> >> >
> >> >
> >> >
> >> >2018-03-06 19:51 GMT+01:00 Alex Harui <ah...@adobe.com.invalid>:
> >> >
> >> >> I missed that ClassReference puts the class in quotes. Try:
> >> >>
> >> >> fonts: ClassReference("JewelThemeFontInject") ;
> >> >>
> >> >>
> >> >> HTH,
> >> >> -Alex
> >> >>
> >> >> On 3/6/18, 10:31 AM, "carlos.rovira@gmail.com on behalf of Carlos
> >> >>Rovira"
> >> >> <carlos.rovira@gmail.com on behalf of carlosrovira@apache.org>
> wrote:
> >> >>
> >> >> >Hi Alex,
> >> >> >
> >> >> >the 4 method seems ok but I'm getting this error:
> >> >> >
> >> >> >[INFO] Executing MXMLC in tool group Royale with args:
> >> >> >[-load-config=/Users/carlosrovira/Dev/Royale/
> >> >> Source/royale-asjs/examples/r
> >> >> >oyale/JewelExample/target/compile-app-
> >> >> >config.xml,
> >> >>
> >>>-js-output=/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/
> >> >> roya
> >> >> >le/JewelExample/target/javascript,
> >> >> >-compiler.targets=JSRoyale,SWF,
> >> >> >/Users/carlosrovira/Dev/Royale/Source/royale-asjs/
> >> >> examples/royale/JewelExa
> >> >> >mple/src/main/royale/
> >> >> >App.mxml]
> >> >> >/Users/carlosrovira/Dev/Royale/Source/royale-asjs/
> >> >> examples/royale/JewelExa
> >> >> >mple/JewelTheme-
> >> >> >0.9.2-SNAPSHOT.swc:defaults.css(28): col: 11 Error:
> >>ewelThemeFontInjec
> >> >>is
> >> >> >not defined.
> >> >> >
> >> >> >if I unzip the theme -js.swc I can see JewelThemeFontInject.js file
> >> >>inside
> >> >> >in the out folder (in its own package), so I think the theme SWC is
> >>ok.
> >> >> >
> >> >> >I put the declaration in
> >> >> >
> >> >> >.royale *, . royale *:before, . royale *:after {
> >> >> > -moz-box-sizing: border-box;
> >> >> > -webkit-box-sizing: border-box;
> >> >> > box-sizing: border-box;
> >> >> >
> >> >> > fonts: ClassReference(JewelThemeFontInject) ;
> >> >> >}
> >> >> >
> >> >> >so this is getting notice.
> >> >> >
> >> >> >but the error show the name of the class without first letter Error:
> >> >> >ewelThemeFontInjec is not defined
> >> >> >
> >> >> >any thoughts?
> >> >> >
> >> >> >thanks!
> >> >> >
> >> >> >
> >> >> >2018-03-06 18:26 GMT+01:00 Alex Harui <ah...@adobe.com.invalid>:
> >> >> >
> >> >> >> Only <inject_html> from classes actually linked into the final
> >> >> >>application
> >> >> >> will be used.
> >> >> >>
> >> >> >> I think there are a few choices:
> >> >> >> 1) require everyone use a particular html-template
> >> >> >> 2) require some bead be used
> >> >> >> 3) require a different Application subclass
> >> >> >> 4) try to hack it in as follows:
> >> >> >>
> >> >> >> In the defaults.css for Jewel, add
> >> >> >>
> >> >> >> .Jewel { fonts: ClassReference(JewelInjectHTML) }
> >> >> >>
> >> >> >> And create a JewelInjectHTML class with the desired <inject_html>
> >>on
> >> >>the
> >> >> >> constructor.
> >> >> >>
> >> >> >> That will have a bit of extra overhead, but might work.
> >> >> >>
> >> >> >> HTH,
> >> >> >> -Alex
> >> >> >>
> >> >> >> On 3/6/18, 8:35 AM, "carlos.rovira@gmail.com on behalf of Carlos
> >> >> Rovira"
> >> >> >> <carlos.rovira@gmail.com on behalf of carlosrovira@apache.org>
> >> wrote:
> >> >> >>
> >> >> >> >Hi Piotr,
> >> >> >> >
> >> >> >> >no, that's that I want to get in the resultant html file. I don't
> >> >> >>think I
> >> >> >> >understand your question, that's exactly what I'm asking, why
> >>that
> >> >> >>line is
> >> >> >> >not in the final HTML file, I suppose that is because is a theme
> >> >>file
> >> >> >>and
> >> >> >> >maybe the JewelThemeClasses.as is not used, but don't know how to
> >> >>make
> >> >> >>it
> >> >> >> >work
> >> >> >> >
> >> >> >> >thanks
> >> >> >> >
> >> >> >> >2018-03-06 17:06 GMT+01:00 Piotr Zarzycki
> >> >><pi...@gmail.com>:
> >> >> >> >
> >> >> >> >> Link once again: <link
> >> >> >>
> >> >>
> >>
> >>>>>>>>href="https://na01.safelinks.protection.outlook.
> com/?url=https%3A%2
> >>>>>>>>F%2Fna01.safelinks.protection.outlook&data=02%
> 7C01%7Caharui%40adobe
> >>>>>>>>.com%7C52bafe9ca1d24b9b486f08d583a99b5c%
> 7Cfa7b1b5a7b34438794aed2c17
> >>>>>>>>8decee1%7C0%7C0%7C636559686834559221&sdata=
> ZYz0Z%2B%2FEKrjwgfCwdQhS
> >>>>>>>>bUopjBNsH5wfpkKiSN%2Bltm8%3D&reserved=0.
> >> com/?url=https%3A%2F%
> >> >>>>>>2Fna01.safelinks.protection.outlook&data=02%7C01%7Caharui%
> >> 40adobe.com
> >> >>>>>>%7Cd529a696163d4105e0f608d583a4d4e1%
> 7Cfa7b1b5a7b34438794aed2c178de
> >> cee
> >>
> >>>>>>>>1%7C0%7C0%7C636559666333752025&sdata=
> 1OzBzVetTJVqzHNC8QEUL3I7yM9KyU
> >> jV
> >> >>>>>>Mpo8kYVEsnw%3D&reserved=0.
> >> >> com/?url=https%3A%2F%2F
> >> >>
> >>>>>>na01.safelinks.protection.outlook&data=02%7C01%7Caharui%40adobe.com
> >> >> %7C9
> >> >> >>>>0d36aa7b58d4a8f037a08d5839081a1%7Cfa7b1b5a7b34438794aed2c178de
> >> >> cee1%7C0%
> >> >> >>>>7C0%7C636559579033937825&sdata=5puVvWSyXU5Lh1gy9f9gJ1iEl0N1sp
> >> >> EXJza%2FJG
> >> >> >>>>m6Xug%3D&reserved=0.
> >> >> >> com/?url=https%3A%2F%2Ffo
> >> >> >> >>nts.googleapis.com%2Fcss%3Ffamily%3DLato&data=02%7C01%7Caharui%
> >> >> >> 40adobe.co
> >> >> >> >>m%7C335f9e4addc14bb6bbb708d58380469b%
> >> 7Cfa7b1b5a7b34438794aed2c178de
> >> >> >> cee1%7
> >> >> >>
> >> >>>>C0%7C0%7C636559509319053690&sdata=yA7%
> 2Bh88X94JpycunvMJSNuCflIoOkddb
> >> >> >> ODAux
> >> >> >> >>creWGM%3D&reserved=0"
> >> >> >> >> rel="stylesheet">
> >> >> >> >>
> >> >> >> >> 2018-03-06 17:06 GMT+01:00 Piotr Zarzycki
> >> >> >><pi...@gmail.com>:
> >> >> >> >>
> >> >> >> >> > I meant here something else. Do you have in your head
> >>something
> >> >> >>like
> >> >> >> >>that
> >> >> >> >> > after compilation in the html files ?
> >> >> >> >> >
> >> >> >> >> > <link
> >> >> >>
> >> >>
> >>
> >>>>>>>>href="https://na01.safelinks.protection.outlook.
> com/?url=https%3A%2
> >>>>>>>>F%2Fna01.safelinks.protection.outlook&data=02%
> 7C01%7Caharui%40adobe
> >>>>>>>>.com%7C52bafe9ca1d24b9b486f08d583a99b5c%
> 7Cfa7b1b5a7b34438794aed2c17
> >>>>>>>>8decee1%7C0%7C0%7C636559686834559221&sdata=
> ZYz0Z%2B%2FEKrjwgfCwdQhS
> >>>>>>>>bUopjBNsH5wfpkKiSN%2Bltm8%3D&reserved=0.
> >> com/?url=https%3A%2F%
> >> >>>>>>2Fna01.safelinks.protection.outlook&data=02%7C01%7Caharui%
> >> 40adobe.com
> >> >>>>>>%7Cd529a696163d4105e0f608d583a4d4e1%
> 7Cfa7b1b5a7b34438794aed2c178de
> >> cee
> >>
> >>>>>>>>1%7C0%7C0%7C636559666333752025&sdata=
> 1OzBzVetTJVqzHNC8QEUL3I7yM9KyU
> >> jV
> >> >>>>>>Mpo8kYVEsnw%3D&reserved=0.
> >> >> com/?url=https%3A%2F%2F
> >> >>
> >>>>>>na01.safelinks.protection.outlook&data=02%7C01%7Caharui%40adobe.com
> >> >> %7C9
> >> >> >>>>0d36aa7b58d4a8f037a08d5839081a1%7Cfa7b1b5a7b34438794aed2c178de
> >> >> cee1%7C0%
> >> >> >>>>7C0%7C636559579033937825&sdata=5puVvWSyXU5Lh1gy9f9gJ1iEl0N1sp
> >> >> EXJza%2FJG
> >> >> >>>>m6Xug%3D&reserved=0.
> >> >> >> com/?url=https%3A%2F%2Ffo
> >> >> >> >>nts.googleapis.com%2Fcss%3Ffamily%3DLato&data=02%7C01%7Caharui%
> >> >> >> 40adobe.co
> >> >> >> >>m%7C335f9e4addc14bb6bbb708d58380469b%
> >> 7Cfa7b1b5a7b34438794aed2c178de
> >> >> >> cee1%7
> >> >> >>
> >> >>>>C0%7C0%7C636559509319053690&sdata=yA7%
> 2Bh88X94JpycunvMJSNuCflIoOkddb
> >> >> >> ODAux
> >> >> >> >>creWGM%3D&reserved=0"
> >> >> >> >> > rel="stylesheet">
> >> >> >> >> >
> >> >> >> >> > 2018-03-06 17:01 GMT+01:00 Carlos Rovira
> >> >><carlosrovira@apache.org
> >> >> >:
> >> >> >> >> >
> >> >> >> >> >> Hi Piotr,
> >> >> >> >> >>
> >> >> >> >> >> I introduced a new line in Application.as in Jewel UI set to
> >> >>start
> >> >> >> >> >> implementing responsiveness in mobile:
> >> >> >> >> >>
> >> >> >> >> >> <meta name="viewport" content="width=device-width,
> >> >> >>initial-scale=1,
> >> >> >> >> >> minimum-scale=1, maximum-scale=1">
> >> >> >> >> >>
> >> >> >> >> >> this line is ok at that level since all jewel apps could be
> >> >> >> >>responsive
> >> >> >> >> >>
> >> >> >> >> >> that line appears ok in final html
> >> >> >> >> >>
> >> >> >> >> >> but the one in the theme, is not appearing in the html
> >> >> >> >> >>
> >> >> >> >> >> the rest seems ok with the normal script generated by Royale
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >> 2018-03-06 16:47 GMT+01:00 Piotr Zarzycki
> >> >> >> >><pi...@gmail.com>:
> >> >> >> >> >>
> >> >> >> >> >> > Hi Carlos,
> >> >> >> >> >> >
> >> >> >> >> >> > How looks like HTML output when you compile things using
> >>that
> >> >> >> >>stuff ?
> >> >> >> >> >> >
> >> >> >> >> >> > Thanks, Piotr
> >> >> >> >> >> >
> >> >> >> >> >> > 2018-03-06 16:40 GMT+01:00 Carlos Rovira
> >> >> >><carlosrovira@apache.org
> >> >> >> >:
> >> >> >> >> >> >
> >> >> >> >> >> > > Hi
> >> >> >> >> >> > >
> >> >> >> >> >> > > I want the theme define the typography to use, to get
> >>this
> >> >>I'm
> >> >> >> >>using
> >> >> >> >> >> the
> >> >> >> >> >> > > inject_html tag in the constructor
> >> >> >> >> >> > >
> >> >> >> >> >> > > The only class I have in the theme is the following
> >> >> >> >> >> > >
> >> >> >> >> >> > >
> >> >> >> >> >> > > package
> >> >> >> >> >> > > {
> >> >> >> >> >> > >
> >> >> >> >> >> > > /**
> >> >> >> >> >> > > * @private
> >> >> >> >> >> > > * This class is used to link additional classes into
> >> >> >> >>JewelTheme.swc
> >> >> >> >> >> > > * beyond those that are found by dependecy analysis
> >> >>starting
> >> >> >> >> >> > > * from the classes specified in manifest.xml.
> >> >> >> >> >> > > */
> >> >> >> >> >> > > internal class JewelThemeClasses
> >> >> >> >> >> > > {
> >> >> >> >> >> > > /**
> >> >> >> >> >> > > * constructor.
> >> >> >> >> >> > > *
> >> >> >> >> >> > > * <inject_html>
> >> >> >> >> >> > > * <link
> >> >> >>
> >> >>
> >>
> >>>>>>>>href="https://na01.safelinks.protection.outlook.
> com/?url=https%3A%2
> >>>>>>>>F%2Fna01.safelinks.protection.outlook&data=02%
> 7C01%7Caharui%40adobe
> >>>>>>>>.com%7C52bafe9ca1d24b9b486f08d583a99b5c%
> 7Cfa7b1b5a7b34438794aed2c17
> >>>>>>>>8decee1%7C0%7C0%7C636559686834559221&sdata=
> ZYz0Z%2B%2FEKrjwgfCwdQhS
> >>>>>>>>bUopjBNsH5wfpkKiSN%2Bltm8%3D&reserved=0.
> >> com/?url=https%3A%2F%
> >> >>>>>>2Fna01.safelinks.protection.outlook&data=02%7C01%7Caharui%
> >> 40adobe.com
> >> >>>>>>%7Cd529a696163d4105e0f608d583a4d4e1%
> 7Cfa7b1b5a7b34438794aed2c178de
> >> cee
> >>
> >>>>>>>>1%7C0%7C0%7C636559666333752025&sdata=
> 1OzBzVetTJVqzHNC8QEUL3I7yM9KyU
> >> jV
> >> >>>>>>Mpo8kYVEsnw%3D&reserved=0.
> >> >> com/?url=https%3A%2F%2F
> >> >>
> >>>>>>na01.safelinks.protection.outlook&data=02%7C01%7Caharui%40adobe.com
> >> >> %7C9
> >> >> >>>>0d36aa7b58d4a8f037a08d5839081a1%7Cfa7b1b5a7b34438794aed2c178de
> >> >> cee1%7C0%
> >> >> >>>>7C0%7C636559579033937825&sdata=5puVvWSyXU5Lh1gy9f9gJ1iEl0N1sp
> >> >> EXJza%2FJG
> >> >> >>>>m6Xug%3D&reserved=0.
> >> >> >> com/?url=https%3A%2F%2Ffo
> >> >> >> >>nts.googleapis.com%2Fcss%3Ffamily%3DLato&data=02%7C01%7Caharui%
> >> >> >> 40adobe.co
> >> >> >> >>m%7C335f9e4addc14bb6bbb708d58380469b%
> >> 7Cfa7b1b5a7b34438794aed2c178de
> >> >> >> cee1%7
> >> >> >>
> >> >>>>C0%7C0%7C636559509319053690&sdata=yA7%
> 2Bh88X94JpycunvMJSNuCflIoOkddb
> >> >> >> ODAux
> >> >> >> >>creWGM%3D&reserved=0
> >> >> >> >> "
> >> >> >> >> >> > > rel="stylesheet">
> >> >> >> >> >> > > * </inject_html>
> >> >> >> >> >> > > *
> >> >> >> >> >> > > * @langversion 3.0
> >> >> >> >> >> > > * @playerversion Flash 10.2
> >> >> >> >> >> > > * @playerversion AIR 2.6
> >> >> >> >> >> > > * @productversion Royale 0.9.2
> >> >> >> >> >> > > */
> >> >> >> >> >> > > public function JewelThemeClasses()
> >> >> >> >> >> > > {
> >> >> >> >> >> > > super();
> >> >> >> >> >> > > }
> >> >> >> >> >> > > }
> >> >> >> >> >> > >
> >> >> >> >> >> > > }
> >> >> >> >> >> > >
> >> >> >> >> >> > > But this is not working since I don't get anything
> >> >>injected in
> >> >> >> >>the
> >> >> >> >> >> html
> >> >> >> >> >> > >
> >> >> >> >> >> > > anyone knows what could be the problem?
> >> >> >> >> >> > >
> >> >> >> >> >> > > thanks
> >> >> >> >> >> > >
> >> >> >> >> >> > >
> >> >> >> >> >> > > --
> >> >> >> >> >> > > Carlos Rovira
> >> >> >> >> >> > >
> >> >> >> >>https://na01.safelinks.protection.outlook.com/?url=
> >> >> >> http%3A%2F%2Fabout.me%
> >> >> >> >>2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
> >> >> >> 7C335f9e4addc14bb6bbb708
> >> >> >> >>d58380469b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
> >> >> >> 7C63655950931905369
> >> >> >>
> >> >> >>>>0&sdata=%2FNmOa%2BKcyD93kNDolxbReQZMhVrgPTzrzk
> >> >> l%2FYwSRGTs%3D&reserved=0
> >> >> >> >> >> > >
> >> >> >> >> >> >
> >> >> >> >> >> >
> >> >> >> >> >> >
> >> >> >> >> >> > --
> >> >> >> >> >> >
> >> >> >> >> >> > Piotr Zarzycki
> >> >> >> >> >> >
> >> >> >> >> >> > Patreon:
> >> >> >> >>*https://na01.safelinks.protection.outlook.com/?url=
> >> >> >> https%3A%2F%2Fwww.pat
> >> >> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
> >> >> >> %7C335f9e4addc1
> >> >> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
> >> >> >> cee1%7C0%7C0%7C6365595
> >> >> >> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
> >> >> >> Y6k6l9ER6rkZ4%3D&reserved
> >> >> >> >>=0
> >> >> >> >> >> >
> >> >> >> >><https://na01.safelinks.protection.outlook.com/?url=
> >> >> >> https%3A%2F%2Fwww.pat
> >> >> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
> >> >> >> %7C335f9e4addc1
> >> >> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
> >> >> >> cee1%7C0%7C0%7C6365595
> >> >> >> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
> >> >> >> Y6k6l9ER6rkZ4%3D&reserved
> >> >> >> >>=0>*
> >> >> >> >> >> >
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >> --
> >> >> >> >> >> Carlos Rovira
> >> >> >> >> >>
> >> >> >> >>https://na01.safelinks.protection.outlook.com/?url=
> >> >> >> http%3A%2F%2Fabout.me%
> >> >> >> >>2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
> >> >> >> 7C335f9e4addc14bb6bbb708
> >> >> >> >>d58380469b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
> >> >> >> 7C63655950931905369
> >> >> >>
> >> >> >>>>0&sdata=%2FNmOa%2BKcyD93kNDolxbReQZMhVrgPTzrzk
> >> >> l%2FYwSRGTs%3D&reserved=0
> >> >> >> >> >>
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> > --
> >> >> >> >> >
> >> >> >> >> > Piotr Zarzycki
> >> >> >> >> >
> >> >> >> >> > Patreon:
> >> >> >> >>*https://na01.safelinks.protection.outlook.com/?url=
> >> >> >> https%3A%2F%2Fwww.pat
> >> >> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
> >> >> >> %7C335f9e4addc1
> >> >> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
> >> >> >> cee1%7C0%7C0%7C6365595
> >> >> >> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
> >> >> >> Y6k6l9ER6rkZ4%3D&reserved
> >> >> >> >>=0
> >> >> >> >> >
> >> >> >> >><https://na01.safelinks.protection.outlook.com/?url=
> >> >> >> https%3A%2F%2Fwww.pat
> >> >> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
> >> >> >> %7C335f9e4addc1
> >> >> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
> >> >> >> cee1%7C0%7C0%7C6365595
> >> >> >> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
> >> >> >> Y6k6l9ER6rkZ4%3D&reserved
> >> >> >> >>=0>*
> >> >> >> >> >
> >> >> >> >>
> >> >> >> >>
> >> >> >> >>
> >> >> >> >> --
> >> >> >> >>
> >> >> >> >> Piotr Zarzycki
> >> >> >> >>
> >> >> >> >> Patreon:
> >> >> >> >>*https://na01.safelinks.protection.outlook.com/?url=
> >> >> >> https%3A%2F%2Fwww.pat
> >> >> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
> >> >> >> %7C335f9e4addc1
> >> >> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
> >> >> >> cee1%7C0%7C0%7C6365595
> >> >> >> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
> >> >> >> Y6k6l9ER6rkZ4%3D&reserved
> >> >> >> >>=0
> >> >> >> >>
> >> >> >> >><https://na01.safelinks.protection.outlook.com/?url=
> >> >> >> https%3A%2F%2Fwww.pat
> >> >> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
> >> >> >> %7C335f9e4addc1
> >> >> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
> >> >> >> cee1%7C0%7C0%7C6365595
> >> >> >> >>09319063694&sdata=o76Gym4fOsBicseiddsVm1FQHtzgLu
> >> >> >> zQ5MkEqFyBckI%3D&reserved
> >> >> >> >>=0>*
> >> >> >> >>
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> >--
> >> >> >> >Carlos Rovira
> >> >> >> >https://na01.safelinks.protection.outlook.com/?url=
> >> >> >> http%3A%2F%2Fabout.me%2
> >> >> >> >Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
> >> >> >> 7C335f9e4addc14bb6bbb708d5
> >> >> >> >8380469b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
> >> >> >> 7C636559509319063694&s
> >> >> >> >data=7moxBd2GSpHpn7AAtOwOD9MZSKIvjLai7e%2B5WK5BeOA%3D&reserved=0
> >> >> >>
> >> >> >>
> >> >> >
> >> >> >
> >> >> >--
> >> >> >Carlos Rovira
> >> >> >https://na01.safelinks.protection.outlook.com/?url=
> >> >> http%3A%2F%2Fabout.me%2
> >> >> >Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
> >> >> 7C90d36aa7b58d4a8f037a08d5
> >> >> >839081a1%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
> >> >> 7C636559579033937825&s
> >> >> >data=50jZM6zOSthV%2FLV2ATtlQR3ymCzo3eKGGhk6ccYp3Fs%3D&reserved=0
> >> >>
> >> >>
> >> >
> >> >
> >> >--
> >> >Carlos Rovira
> >> >https://na01.safelinks.protection.outlook.com/?url=
> >> http%3A%2F%2Fabout.me%2
> >> >Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
> >> 7Cd529a696163d4105e0f608d5
> >> >83a4d4e1%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
> >> 7C636559666333752025&s
> >> >data=MR%2BipgM59CJpHxtty1Yut1PeBobh5mgZ318%2FXAN4Ttw%3D&reserved=0
> >>
> >>
> >
> >
> >--
> >Carlos Rovira
> >https://na01.safelinks.protection.outlook.com/?url=
> http%3A%2F%2Fabout.me%2
> >Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
> 7C52bafe9ca1d24b9b486f08d5
> >83a99b5c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
> 7C636559686834559221&s
> >data=HH1Pg3ZmLYtF%2B2vkbsOIfjvUyO8Wt4j3SavSYsLZQhs%3D&reserved=0
>
>
--
Carlos Rovira
http://about.me/carlosrovira
Re: How to inject html with a theme class
Posted by Alex Harui <ah...@adobe.com.INVALID>.
SWCs contained compiled AS, not the .as file itself. And Royale SWCs also
contain .js files. So the proof is really in SWFDump-ing the library.swf
in the SWC. We need to verify that JewelThemeFontInject is in the
library.swf.
So:
-unzip the SWC.
-Run bin/swfdump -abc library.swf >MySWC.txt
-Look in MySWC.txt for JewelThemeFontInject.
Then we'll worry about the app compile.
-Alex
On 3/6/18, 1:30 PM, "carlos.rovira@gmail.com on behalf of Carlos Rovira"
<carlos.rovira@gmail.com on behalf of carlosrovira@apache.org> wrote:
>Hi Alex,
>
>2018-03-06 22:04 GMT+01:00 Alex Harui <ah...@adobe.com.invalid>:
>
>> Hi Carlos,
>>
>> I don't think there is per-platform CSS, so
>> org.apache.royale.jewel.JewelThemeFontInject needs to be in the SWC for
>> both the SWF and JS compile.
>
>
>right, I checked both SWF and JS SWC files and both have the same, and one
>of the files is
>org.apache.royale.jewel.JewelThemeFontInject.js in his folder structure (I
>expect to find the .as in SWC file for SWF, is that right?)
>
>
>> I couldn't quite tell from the commit
>> message, but it looked like JewelThemeFontInject might have been set up
>>to
>> be JSOnly.
>>
>
>mmm...I though SWC files where agnostic, and the compilation is valid for
>both JS and SWF targets. If not, don't know how to do that
>in JewelExample I have in the pom <targets>JSRoyale,SWF</targets>
>And tried to remove SWF but the result is the same error
>If I remove JSRoyale, the compilation succed, but the error is still there
>and since for SWF there are other problems like linear-gradients, there's
>no SWF generation at the moment.
>
>
>> Also, it shouldn't matter, but I would not bother to put
>> org.apache.royale.jewel.JewelThemeFontInject in the manifest. Nobody
>> should be using it in MXML.
>>
>
>Right I'll remove it
>
>
>>
>> Check the SWC. You can unzip it and SWFDump the library.swf and it
>>should
>> have org.apache.royale.jewel.JewelThemeFontInject in it, and
>>anequivalent
>> .js file.
>>
>
>There's only one .js file, that's what I think it's not right, there
>should
>be a .as and a .js? (I think a .as for swc swf file, and a .js for swc js
>file)
>
>thanks
>
>Carlos
>
>
>> HTH,
>> -Alex
>>
>> On 3/6/18, 12:56 PM, "carlos.rovira@gmail.com on behalf of Carlos
>>Rovira"
>> <carlos.rovira@gmail.com on behalf of carlosrovira@apache.org> wrote:
>>
>> >Hi Alex,
>> >
>> >more near, but still fails. I put the quotes failed, then I figured
>>that I
>> >put in jewel package similar to lib, so I changed to :
>> >
>> >fonts: ClassReference("org.apache.royale.jewel.JewelThemeFontInject");
>> >
>> >this failed in similar way:
>> >
>> >[INFO] Executing MXMLC in tool group Royale with args:
>> >[-load-config=/Users/carlosrovira/Dev/Royale/
>> Source/royale-asjs/examples/r
>> >oyale/JewelExample/target/compile-app-
>> >config.xml,
>> >-js-output=/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/
>> roya
>> >le/JewelExample/target/javascript,
>> >-compiler.targets=JSRoyale,SWF,
>> >/Users/carlosrovira/Dev/Royale/Source/royale-asjs/
>> examples/royale/JewelExa
>> >mple/src/main/royale/
>> >App.mxml]
>> >/Users/carlosrovira/Dev/Royale/Source/royale-asjs/
>> examples/royale/JewelExa
>> >mple/JewelTheme-
>> >0.9.2-SNAPSHOT.swc:defaults.css(29): col: 10 Error:
>> >org.apache.royale.jewel.JewelThemeFontInject is not defined.
>> >
>> >I recheck all files but can see what's could be wrong
>> >
>> >
>> >
>> >2018-03-06 19:51 GMT+01:00 Alex Harui <ah...@adobe.com.invalid>:
>> >
>> >> I missed that ClassReference puts the class in quotes. Try:
>> >>
>> >> fonts: ClassReference("JewelThemeFontInject") ;
>> >>
>> >>
>> >> HTH,
>> >> -Alex
>> >>
>> >> On 3/6/18, 10:31 AM, "carlos.rovira@gmail.com on behalf of Carlos
>> >>Rovira"
>> >> <carlos.rovira@gmail.com on behalf of carlosrovira@apache.org> wrote:
>> >>
>> >> >Hi Alex,
>> >> >
>> >> >the 4 method seems ok but I'm getting this error:
>> >> >
>> >> >[INFO] Executing MXMLC in tool group Royale with args:
>> >> >[-load-config=/Users/carlosrovira/Dev/Royale/
>> >> Source/royale-asjs/examples/r
>> >> >oyale/JewelExample/target/compile-app-
>> >> >config.xml,
>> >>
>>>-js-output=/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/
>> >> roya
>> >> >le/JewelExample/target/javascript,
>> >> >-compiler.targets=JSRoyale,SWF,
>> >> >/Users/carlosrovira/Dev/Royale/Source/royale-asjs/
>> >> examples/royale/JewelExa
>> >> >mple/src/main/royale/
>> >> >App.mxml]
>> >> >/Users/carlosrovira/Dev/Royale/Source/royale-asjs/
>> >> examples/royale/JewelExa
>> >> >mple/JewelTheme-
>> >> >0.9.2-SNAPSHOT.swc:defaults.css(28): col: 11 Error:
>>ewelThemeFontInjec
>> >>is
>> >> >not defined.
>> >> >
>> >> >if I unzip the theme -js.swc I can see JewelThemeFontInject.js file
>> >>inside
>> >> >in the out folder (in its own package), so I think the theme SWC is
>>ok.
>> >> >
>> >> >I put the declaration in
>> >> >
>> >> >.royale *, . royale *:before, . royale *:after {
>> >> > -moz-box-sizing: border-box;
>> >> > -webkit-box-sizing: border-box;
>> >> > box-sizing: border-box;
>> >> >
>> >> > fonts: ClassReference(JewelThemeFontInject) ;
>> >> >}
>> >> >
>> >> >so this is getting notice.
>> >> >
>> >> >but the error show the name of the class without first letter Error:
>> >> >ewelThemeFontInjec is not defined
>> >> >
>> >> >any thoughts?
>> >> >
>> >> >thanks!
>> >> >
>> >> >
>> >> >2018-03-06 18:26 GMT+01:00 Alex Harui <ah...@adobe.com.invalid>:
>> >> >
>> >> >> Only <inject_html> from classes actually linked into the final
>> >> >>application
>> >> >> will be used.
>> >> >>
>> >> >> I think there are a few choices:
>> >> >> 1) require everyone use a particular html-template
>> >> >> 2) require some bead be used
>> >> >> 3) require a different Application subclass
>> >> >> 4) try to hack it in as follows:
>> >> >>
>> >> >> In the defaults.css for Jewel, add
>> >> >>
>> >> >> .Jewel { fonts: ClassReference(JewelInjectHTML) }
>> >> >>
>> >> >> And create a JewelInjectHTML class with the desired <inject_html>
>>on
>> >>the
>> >> >> constructor.
>> >> >>
>> >> >> That will have a bit of extra overhead, but might work.
>> >> >>
>> >> >> HTH,
>> >> >> -Alex
>> >> >>
>> >> >> On 3/6/18, 8:35 AM, "carlos.rovira@gmail.com on behalf of Carlos
>> >> Rovira"
>> >> >> <carlos.rovira@gmail.com on behalf of carlosrovira@apache.org>
>> wrote:
>> >> >>
>> >> >> >Hi Piotr,
>> >> >> >
>> >> >> >no, that's that I want to get in the resultant html file. I don't
>> >> >>think I
>> >> >> >understand your question, that's exactly what I'm asking, why
>>that
>> >> >>line is
>> >> >> >not in the final HTML file, I suppose that is because is a theme
>> >>file
>> >> >>and
>> >> >> >maybe the JewelThemeClasses.as is not used, but don't know how to
>> >>make
>> >> >>it
>> >> >> >work
>> >> >> >
>> >> >> >thanks
>> >> >> >
>> >> >> >2018-03-06 17:06 GMT+01:00 Piotr Zarzycki
>> >><pi...@gmail.com>:
>> >> >> >
>> >> >> >> Link once again: <link
>> >> >>
>> >>
>>
>>>>>>>>href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2
>>>>>>>>F%2Fna01.safelinks.protection.outlook&data=02%7C01%7Caharui%40adobe
>>>>>>>>.com%7C52bafe9ca1d24b9b486f08d583a99b5c%7Cfa7b1b5a7b34438794aed2c17
>>>>>>>>8decee1%7C0%7C0%7C636559686834559221&sdata=ZYz0Z%2B%2FEKrjwgfCwdQhS
>>>>>>>>bUopjBNsH5wfpkKiSN%2Bltm8%3D&reserved=0.
>> com/?url=https%3A%2F%
>> >>>>>>2Fna01.safelinks.protection.outlook&data=02%7C01%7Caharui%
>> 40adobe.com
>> >>>>>>%7Cd529a696163d4105e0f608d583a4d4e1%7Cfa7b1b5a7b34438794aed2c178de
>> cee
>>
>>>>>>>>1%7C0%7C0%7C636559666333752025&sdata=1OzBzVetTJVqzHNC8QEUL3I7yM9KyU
>> jV
>> >>>>>>Mpo8kYVEsnw%3D&reserved=0.
>> >> com/?url=https%3A%2F%2F
>> >>
>>>>>>na01.safelinks.protection.outlook&data=02%7C01%7Caharui%40adobe.com
>> >> %7C9
>> >> >>>>0d36aa7b58d4a8f037a08d5839081a1%7Cfa7b1b5a7b34438794aed2c178de
>> >> cee1%7C0%
>> >> >>>>7C0%7C636559579033937825&sdata=5puVvWSyXU5Lh1gy9f9gJ1iEl0N1sp
>> >> EXJza%2FJG
>> >> >>>>m6Xug%3D&reserved=0.
>> >> >> com/?url=https%3A%2F%2Ffo
>> >> >> >>nts.googleapis.com%2Fcss%3Ffamily%3DLato&data=02%7C01%7Caharui%
>> >> >> 40adobe.co
>> >> >> >>m%7C335f9e4addc14bb6bbb708d58380469b%
>> 7Cfa7b1b5a7b34438794aed2c178de
>> >> >> cee1%7
>> >> >>
>> >>>>C0%7C0%7C636559509319053690&sdata=yA7%2Bh88X94JpycunvMJSNuCflIoOkddb
>> >> >> ODAux
>> >> >> >>creWGM%3D&reserved=0"
>> >> >> >> rel="stylesheet">
>> >> >> >>
>> >> >> >> 2018-03-06 17:06 GMT+01:00 Piotr Zarzycki
>> >> >><pi...@gmail.com>:
>> >> >> >>
>> >> >> >> > I meant here something else. Do you have in your head
>>something
>> >> >>like
>> >> >> >>that
>> >> >> >> > after compilation in the html files ?
>> >> >> >> >
>> >> >> >> > <link
>> >> >>
>> >>
>>
>>>>>>>>href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2
>>>>>>>>F%2Fna01.safelinks.protection.outlook&data=02%7C01%7Caharui%40adobe
>>>>>>>>.com%7C52bafe9ca1d24b9b486f08d583a99b5c%7Cfa7b1b5a7b34438794aed2c17
>>>>>>>>8decee1%7C0%7C0%7C636559686834559221&sdata=ZYz0Z%2B%2FEKrjwgfCwdQhS
>>>>>>>>bUopjBNsH5wfpkKiSN%2Bltm8%3D&reserved=0.
>> com/?url=https%3A%2F%
>> >>>>>>2Fna01.safelinks.protection.outlook&data=02%7C01%7Caharui%
>> 40adobe.com
>> >>>>>>%7Cd529a696163d4105e0f608d583a4d4e1%7Cfa7b1b5a7b34438794aed2c178de
>> cee
>>
>>>>>>>>1%7C0%7C0%7C636559666333752025&sdata=1OzBzVetTJVqzHNC8QEUL3I7yM9KyU
>> jV
>> >>>>>>Mpo8kYVEsnw%3D&reserved=0.
>> >> com/?url=https%3A%2F%2F
>> >>
>>>>>>na01.safelinks.protection.outlook&data=02%7C01%7Caharui%40adobe.com
>> >> %7C9
>> >> >>>>0d36aa7b58d4a8f037a08d5839081a1%7Cfa7b1b5a7b34438794aed2c178de
>> >> cee1%7C0%
>> >> >>>>7C0%7C636559579033937825&sdata=5puVvWSyXU5Lh1gy9f9gJ1iEl0N1sp
>> >> EXJza%2FJG
>> >> >>>>m6Xug%3D&reserved=0.
>> >> >> com/?url=https%3A%2F%2Ffo
>> >> >> >>nts.googleapis.com%2Fcss%3Ffamily%3DLato&data=02%7C01%7Caharui%
>> >> >> 40adobe.co
>> >> >> >>m%7C335f9e4addc14bb6bbb708d58380469b%
>> 7Cfa7b1b5a7b34438794aed2c178de
>> >> >> cee1%7
>> >> >>
>> >>>>C0%7C0%7C636559509319053690&sdata=yA7%2Bh88X94JpycunvMJSNuCflIoOkddb
>> >> >> ODAux
>> >> >> >>creWGM%3D&reserved=0"
>> >> >> >> > rel="stylesheet">
>> >> >> >> >
>> >> >> >> > 2018-03-06 17:01 GMT+01:00 Carlos Rovira
>> >><carlosrovira@apache.org
>> >> >:
>> >> >> >> >
>> >> >> >> >> Hi Piotr,
>> >> >> >> >>
>> >> >> >> >> I introduced a new line in Application.as in Jewel UI set to
>> >>start
>> >> >> >> >> implementing responsiveness in mobile:
>> >> >> >> >>
>> >> >> >> >> <meta name="viewport" content="width=device-width,
>> >> >>initial-scale=1,
>> >> >> >> >> minimum-scale=1, maximum-scale=1">
>> >> >> >> >>
>> >> >> >> >> this line is ok at that level since all jewel apps could be
>> >> >> >>responsive
>> >> >> >> >>
>> >> >> >> >> that line appears ok in final html
>> >> >> >> >>
>> >> >> >> >> but the one in the theme, is not appearing in the html
>> >> >> >> >>
>> >> >> >> >> the rest seems ok with the normal script generated by Royale
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >> 2018-03-06 16:47 GMT+01:00 Piotr Zarzycki
>> >> >> >><pi...@gmail.com>:
>> >> >> >> >>
>> >> >> >> >> > Hi Carlos,
>> >> >> >> >> >
>> >> >> >> >> > How looks like HTML output when you compile things using
>>that
>> >> >> >>stuff ?
>> >> >> >> >> >
>> >> >> >> >> > Thanks, Piotr
>> >> >> >> >> >
>> >> >> >> >> > 2018-03-06 16:40 GMT+01:00 Carlos Rovira
>> >> >><carlosrovira@apache.org
>> >> >> >:
>> >> >> >> >> >
>> >> >> >> >> > > Hi
>> >> >> >> >> > >
>> >> >> >> >> > > I want the theme define the typography to use, to get
>>this
>> >>I'm
>> >> >> >>using
>> >> >> >> >> the
>> >> >> >> >> > > inject_html tag in the constructor
>> >> >> >> >> > >
>> >> >> >> >> > > The only class I have in the theme is the following
>> >> >> >> >> > >
>> >> >> >> >> > >
>> >> >> >> >> > > package
>> >> >> >> >> > > {
>> >> >> >> >> > >
>> >> >> >> >> > > /**
>> >> >> >> >> > > * @private
>> >> >> >> >> > > * This class is used to link additional classes into
>> >> >> >>JewelTheme.swc
>> >> >> >> >> > > * beyond those that are found by dependecy analysis
>> >>starting
>> >> >> >> >> > > * from the classes specified in manifest.xml.
>> >> >> >> >> > > */
>> >> >> >> >> > > internal class JewelThemeClasses
>> >> >> >> >> > > {
>> >> >> >> >> > > /**
>> >> >> >> >> > > * constructor.
>> >> >> >> >> > > *
>> >> >> >> >> > > * <inject_html>
>> >> >> >> >> > > * <link
>> >> >>
>> >>
>>
>>>>>>>>href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2
>>>>>>>>F%2Fna01.safelinks.protection.outlook&data=02%7C01%7Caharui%40adobe
>>>>>>>>.com%7C52bafe9ca1d24b9b486f08d583a99b5c%7Cfa7b1b5a7b34438794aed2c17
>>>>>>>>8decee1%7C0%7C0%7C636559686834559221&sdata=ZYz0Z%2B%2FEKrjwgfCwdQhS
>>>>>>>>bUopjBNsH5wfpkKiSN%2Bltm8%3D&reserved=0.
>> com/?url=https%3A%2F%
>> >>>>>>2Fna01.safelinks.protection.outlook&data=02%7C01%7Caharui%
>> 40adobe.com
>> >>>>>>%7Cd529a696163d4105e0f608d583a4d4e1%7Cfa7b1b5a7b34438794aed2c178de
>> cee
>>
>>>>>>>>1%7C0%7C0%7C636559666333752025&sdata=1OzBzVetTJVqzHNC8QEUL3I7yM9KyU
>> jV
>> >>>>>>Mpo8kYVEsnw%3D&reserved=0.
>> >> com/?url=https%3A%2F%2F
>> >>
>>>>>>na01.safelinks.protection.outlook&data=02%7C01%7Caharui%40adobe.com
>> >> %7C9
>> >> >>>>0d36aa7b58d4a8f037a08d5839081a1%7Cfa7b1b5a7b34438794aed2c178de
>> >> cee1%7C0%
>> >> >>>>7C0%7C636559579033937825&sdata=5puVvWSyXU5Lh1gy9f9gJ1iEl0N1sp
>> >> EXJza%2FJG
>> >> >>>>m6Xug%3D&reserved=0.
>> >> >> com/?url=https%3A%2F%2Ffo
>> >> >> >>nts.googleapis.com%2Fcss%3Ffamily%3DLato&data=02%7C01%7Caharui%
>> >> >> 40adobe.co
>> >> >> >>m%7C335f9e4addc14bb6bbb708d58380469b%
>> 7Cfa7b1b5a7b34438794aed2c178de
>> >> >> cee1%7
>> >> >>
>> >>>>C0%7C0%7C636559509319053690&sdata=yA7%2Bh88X94JpycunvMJSNuCflIoOkddb
>> >> >> ODAux
>> >> >> >>creWGM%3D&reserved=0
>> >> >> >> "
>> >> >> >> >> > > rel="stylesheet">
>> >> >> >> >> > > * </inject_html>
>> >> >> >> >> > > *
>> >> >> >> >> > > * @langversion 3.0
>> >> >> >> >> > > * @playerversion Flash 10.2
>> >> >> >> >> > > * @playerversion AIR 2.6
>> >> >> >> >> > > * @productversion Royale 0.9.2
>> >> >> >> >> > > */
>> >> >> >> >> > > public function JewelThemeClasses()
>> >> >> >> >> > > {
>> >> >> >> >> > > super();
>> >> >> >> >> > > }
>> >> >> >> >> > > }
>> >> >> >> >> > >
>> >> >> >> >> > > }
>> >> >> >> >> > >
>> >> >> >> >> > > But this is not working since I don't get anything
>> >>injected in
>> >> >> >>the
>> >> >> >> >> html
>> >> >> >> >> > >
>> >> >> >> >> > > anyone knows what could be the problem?
>> >> >> >> >> > >
>> >> >> >> >> > > thanks
>> >> >> >> >> > >
>> >> >> >> >> > >
>> >> >> >> >> > > --
>> >> >> >> >> > > Carlos Rovira
>> >> >> >> >> > >
>> >> >> >>https://na01.safelinks.protection.outlook.com/?url=
>> >> >> http%3A%2F%2Fabout.me%
>> >> >> >>2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
>> >> >> 7C335f9e4addc14bb6bbb708
>> >> >> >>d58380469b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
>> >> >> 7C63655950931905369
>> >> >>
>> >> >>>>0&sdata=%2FNmOa%2BKcyD93kNDolxbReQZMhVrgPTzrzk
>> >> l%2FYwSRGTs%3D&reserved=0
>> >> >> >> >> > >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> > --
>> >> >> >> >> >
>> >> >> >> >> > Piotr Zarzycki
>> >> >> >> >> >
>> >> >> >> >> > Patreon:
>> >> >> >>*https://na01.safelinks.protection.outlook.com/?url=
>> >> >> https%3A%2F%2Fwww.pat
>> >> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
>> >> >> %7C335f9e4addc1
>> >> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
>> >> >> cee1%7C0%7C0%7C6365595
>> >> >> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
>> >> >> Y6k6l9ER6rkZ4%3D&reserved
>> >> >> >>=0
>> >> >> >> >> >
>> >> >> >><https://na01.safelinks.protection.outlook.com/?url=
>> >> >> https%3A%2F%2Fwww.pat
>> >> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
>> >> >> %7C335f9e4addc1
>> >> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
>> >> >> cee1%7C0%7C0%7C6365595
>> >> >> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
>> >> >> Y6k6l9ER6rkZ4%3D&reserved
>> >> >> >>=0>*
>> >> >> >> >> >
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >> --
>> >> >> >> >> Carlos Rovira
>> >> >> >> >>
>> >> >> >>https://na01.safelinks.protection.outlook.com/?url=
>> >> >> http%3A%2F%2Fabout.me%
>> >> >> >>2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
>> >> >> 7C335f9e4addc14bb6bbb708
>> >> >> >>d58380469b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
>> >> >> 7C63655950931905369
>> >> >>
>> >> >>>>0&sdata=%2FNmOa%2BKcyD93kNDolxbReQZMhVrgPTzrzk
>> >> l%2FYwSRGTs%3D&reserved=0
>> >> >> >> >>
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > --
>> >> >> >> >
>> >> >> >> > Piotr Zarzycki
>> >> >> >> >
>> >> >> >> > Patreon:
>> >> >> >>*https://na01.safelinks.protection.outlook.com/?url=
>> >> >> https%3A%2F%2Fwww.pat
>> >> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
>> >> >> %7C335f9e4addc1
>> >> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
>> >> >> cee1%7C0%7C0%7C6365595
>> >> >> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
>> >> >> Y6k6l9ER6rkZ4%3D&reserved
>> >> >> >>=0
>> >> >> >> >
>> >> >> >><https://na01.safelinks.protection.outlook.com/?url=
>> >> >> https%3A%2F%2Fwww.pat
>> >> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
>> >> >> %7C335f9e4addc1
>> >> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
>> >> >> cee1%7C0%7C0%7C6365595
>> >> >> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
>> >> >> Y6k6l9ER6rkZ4%3D&reserved
>> >> >> >>=0>*
>> >> >> >> >
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> --
>> >> >> >>
>> >> >> >> Piotr Zarzycki
>> >> >> >>
>> >> >> >> Patreon:
>> >> >> >>*https://na01.safelinks.protection.outlook.com/?url=
>> >> >> https%3A%2F%2Fwww.pat
>> >> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
>> >> >> %7C335f9e4addc1
>> >> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
>> >> >> cee1%7C0%7C0%7C6365595
>> >> >> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
>> >> >> Y6k6l9ER6rkZ4%3D&reserved
>> >> >> >>=0
>> >> >> >>
>> >> >> >><https://na01.safelinks.protection.outlook.com/?url=
>> >> >> https%3A%2F%2Fwww.pat
>> >> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
>> >> >> %7C335f9e4addc1
>> >> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
>> >> >> cee1%7C0%7C0%7C6365595
>> >> >> >>09319063694&sdata=o76Gym4fOsBicseiddsVm1FQHtzgLu
>> >> >> zQ5MkEqFyBckI%3D&reserved
>> >> >> >>=0>*
>> >> >> >>
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >--
>> >> >> >Carlos Rovira
>> >> >> >https://na01.safelinks.protection.outlook.com/?url=
>> >> >> http%3A%2F%2Fabout.me%2
>> >> >> >Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
>> >> >> 7C335f9e4addc14bb6bbb708d5
>> >> >> >8380469b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
>> >> >> 7C636559509319063694&s
>> >> >> >data=7moxBd2GSpHpn7AAtOwOD9MZSKIvjLai7e%2B5WK5BeOA%3D&reserved=0
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >> >--
>> >> >Carlos Rovira
>> >> >https://na01.safelinks.protection.outlook.com/?url=
>> >> http%3A%2F%2Fabout.me%2
>> >> >Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
>> >> 7C90d36aa7b58d4a8f037a08d5
>> >> >839081a1%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
>> >> 7C636559579033937825&s
>> >> >data=50jZM6zOSthV%2FLV2ATtlQR3ymCzo3eKGGhk6ccYp3Fs%3D&reserved=0
>> >>
>> >>
>> >
>> >
>> >--
>> >Carlos Rovira
>> >https://na01.safelinks.protection.outlook.com/?url=
>> http%3A%2F%2Fabout.me%2
>> >Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
>> 7Cd529a696163d4105e0f608d5
>> >83a4d4e1%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
>> 7C636559666333752025&s
>> >data=MR%2BipgM59CJpHxtty1Yut1PeBobh5mgZ318%2FXAN4Ttw%3D&reserved=0
>>
>>
>
>
>--
>Carlos Rovira
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2
>Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%7C52bafe9ca1d24b9b486f08d5
>83a99b5c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636559686834559221&s
>data=HH1Pg3ZmLYtF%2B2vkbsOIfjvUyO8Wt4j3SavSYsLZQhs%3D&reserved=0
Re: How to inject html with a theme class
Posted by Carlos Rovira <ca...@apache.org>.
Hi Alex,
2018-03-06 22:04 GMT+01:00 Alex Harui <ah...@adobe.com.invalid>:
> Hi Carlos,
>
> I don't think there is per-platform CSS, so
> org.apache.royale.jewel.JewelThemeFontInject needs to be in the SWC for
> both the SWF and JS compile.
right, I checked both SWF and JS SWC files and both have the same, and one
of the files is
org.apache.royale.jewel.JewelThemeFontInject.js in his folder structure (I
expect to find the .as in SWC file for SWF, is that right?)
> I couldn't quite tell from the commit
> message, but it looked like JewelThemeFontInject might have been set up to
> be JSOnly.
>
mmm...I though SWC files where agnostic, and the compilation is valid for
both JS and SWF targets. If not, don't know how to do that
in JewelExample I have in the pom <targets>JSRoyale,SWF</targets>
And tried to remove SWF but the result is the same error
If I remove JSRoyale, the compilation succed, but the error is still there
and since for SWF there are other problems like linear-gradients, there's
no SWF generation at the moment.
> Also, it shouldn't matter, but I would not bother to put
> org.apache.royale.jewel.JewelThemeFontInject in the manifest. Nobody
> should be using it in MXML.
>
Right I'll remove it
>
> Check the SWC. You can unzip it and SWFDump the library.swf and it should
> have org.apache.royale.jewel.JewelThemeFontInject in it, and anequivalent
> .js file.
>
There's only one .js file, that's what I think it's not right, there should
be a .as and a .js? (I think a .as for swc swf file, and a .js for swc js
file)
thanks
Carlos
> HTH,
> -Alex
>
> On 3/6/18, 12:56 PM, "carlos.rovira@gmail.com on behalf of Carlos Rovira"
> <carlos.rovira@gmail.com on behalf of carlosrovira@apache.org> wrote:
>
> >Hi Alex,
> >
> >more near, but still fails. I put the quotes failed, then I figured that I
> >put in jewel package similar to lib, so I changed to :
> >
> >fonts: ClassReference("org.apache.royale.jewel.JewelThemeFontInject");
> >
> >this failed in similar way:
> >
> >[INFO] Executing MXMLC in tool group Royale with args:
> >[-load-config=/Users/carlosrovira/Dev/Royale/
> Source/royale-asjs/examples/r
> >oyale/JewelExample/target/compile-app-
> >config.xml,
> >-js-output=/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/
> roya
> >le/JewelExample/target/javascript,
> >-compiler.targets=JSRoyale,SWF,
> >/Users/carlosrovira/Dev/Royale/Source/royale-asjs/
> examples/royale/JewelExa
> >mple/src/main/royale/
> >App.mxml]
> >/Users/carlosrovira/Dev/Royale/Source/royale-asjs/
> examples/royale/JewelExa
> >mple/JewelTheme-
> >0.9.2-SNAPSHOT.swc:defaults.css(29): col: 10 Error:
> >org.apache.royale.jewel.JewelThemeFontInject is not defined.
> >
> >I recheck all files but can see what's could be wrong
> >
> >
> >
> >2018-03-06 19:51 GMT+01:00 Alex Harui <ah...@adobe.com.invalid>:
> >
> >> I missed that ClassReference puts the class in quotes. Try:
> >>
> >> fonts: ClassReference("JewelThemeFontInject") ;
> >>
> >>
> >> HTH,
> >> -Alex
> >>
> >> On 3/6/18, 10:31 AM, "carlos.rovira@gmail.com on behalf of Carlos
> >>Rovira"
> >> <carlos.rovira@gmail.com on behalf of carlosrovira@apache.org> wrote:
> >>
> >> >Hi Alex,
> >> >
> >> >the 4 method seems ok but I'm getting this error:
> >> >
> >> >[INFO] Executing MXMLC in tool group Royale with args:
> >> >[-load-config=/Users/carlosrovira/Dev/Royale/
> >> Source/royale-asjs/examples/r
> >> >oyale/JewelExample/target/compile-app-
> >> >config.xml,
> >> >-js-output=/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/
> >> roya
> >> >le/JewelExample/target/javascript,
> >> >-compiler.targets=JSRoyale,SWF,
> >> >/Users/carlosrovira/Dev/Royale/Source/royale-asjs/
> >> examples/royale/JewelExa
> >> >mple/src/main/royale/
> >> >App.mxml]
> >> >/Users/carlosrovira/Dev/Royale/Source/royale-asjs/
> >> examples/royale/JewelExa
> >> >mple/JewelTheme-
> >> >0.9.2-SNAPSHOT.swc:defaults.css(28): col: 11 Error: ewelThemeFontInjec
> >>is
> >> >not defined.
> >> >
> >> >if I unzip the theme -js.swc I can see JewelThemeFontInject.js file
> >>inside
> >> >in the out folder (in its own package), so I think the theme SWC is ok.
> >> >
> >> >I put the declaration in
> >> >
> >> >.royale *, . royale *:before, . royale *:after {
> >> > -moz-box-sizing: border-box;
> >> > -webkit-box-sizing: border-box;
> >> > box-sizing: border-box;
> >> >
> >> > fonts: ClassReference(JewelThemeFontInject) ;
> >> >}
> >> >
> >> >so this is getting notice.
> >> >
> >> >but the error show the name of the class without first letter Error:
> >> >ewelThemeFontInjec is not defined
> >> >
> >> >any thoughts?
> >> >
> >> >thanks!
> >> >
> >> >
> >> >2018-03-06 18:26 GMT+01:00 Alex Harui <ah...@adobe.com.invalid>:
> >> >
> >> >> Only <inject_html> from classes actually linked into the final
> >> >>application
> >> >> will be used.
> >> >>
> >> >> I think there are a few choices:
> >> >> 1) require everyone use a particular html-template
> >> >> 2) require some bead be used
> >> >> 3) require a different Application subclass
> >> >> 4) try to hack it in as follows:
> >> >>
> >> >> In the defaults.css for Jewel, add
> >> >>
> >> >> .Jewel { fonts: ClassReference(JewelInjectHTML) }
> >> >>
> >> >> And create a JewelInjectHTML class with the desired <inject_html> on
> >>the
> >> >> constructor.
> >> >>
> >> >> That will have a bit of extra overhead, but might work.
> >> >>
> >> >> HTH,
> >> >> -Alex
> >> >>
> >> >> On 3/6/18, 8:35 AM, "carlos.rovira@gmail.com on behalf of Carlos
> >> Rovira"
> >> >> <carlos.rovira@gmail.com on behalf of carlosrovira@apache.org>
> wrote:
> >> >>
> >> >> >Hi Piotr,
> >> >> >
> >> >> >no, that's that I want to get in the resultant html file. I don't
> >> >>think I
> >> >> >understand your question, that's exactly what I'm asking, why that
> >> >>line is
> >> >> >not in the final HTML file, I suppose that is because is a theme
> >>file
> >> >>and
> >> >> >maybe the JewelThemeClasses.as is not used, but don't know how to
> >>make
> >> >>it
> >> >> >work
> >> >> >
> >> >> >thanks
> >> >> >
> >> >> >2018-03-06 17:06 GMT+01:00 Piotr Zarzycki
> >><pi...@gmail.com>:
> >> >> >
> >> >> >> Link once again: <link
> >> >>
> >>
> >>>>>>href="https://na01.safelinks.protection.outlook.
> com/?url=https%3A%2F%
> >>>>>>2Fna01.safelinks.protection.outlook&data=02%7C01%7Caharui%
> 40adobe.com
> >>>>>>%7Cd529a696163d4105e0f608d583a4d4e1%7Cfa7b1b5a7b34438794aed2c178de
> cee
> >>>>>>1%7C0%7C0%7C636559666333752025&sdata=1OzBzVetTJVqzHNC8QEUL3I7yM9KyU
> jV
> >>>>>>Mpo8kYVEsnw%3D&reserved=0.
> >> com/?url=https%3A%2F%2F
> >> >>>>na01.safelinks.protection.outlook&data=02%7C01%7Caharui%40adobe.com
> >> %7C9
> >> >>>>0d36aa7b58d4a8f037a08d5839081a1%7Cfa7b1b5a7b34438794aed2c178de
> >> cee1%7C0%
> >> >>>>7C0%7C636559579033937825&sdata=5puVvWSyXU5Lh1gy9f9gJ1iEl0N1sp
> >> EXJza%2FJG
> >> >>>>m6Xug%3D&reserved=0.
> >> >> com/?url=https%3A%2F%2Ffo
> >> >> >>nts.googleapis.com%2Fcss%3Ffamily%3DLato&data=02%7C01%7Caharui%
> >> >> 40adobe.co
> >> >> >>m%7C335f9e4addc14bb6bbb708d58380469b%
> 7Cfa7b1b5a7b34438794aed2c178de
> >> >> cee1%7
> >> >>
> >>>>C0%7C0%7C636559509319053690&sdata=yA7%2Bh88X94JpycunvMJSNuCflIoOkddb
> >> >> ODAux
> >> >> >>creWGM%3D&reserved=0"
> >> >> >> rel="stylesheet">
> >> >> >>
> >> >> >> 2018-03-06 17:06 GMT+01:00 Piotr Zarzycki
> >> >><pi...@gmail.com>:
> >> >> >>
> >> >> >> > I meant here something else. Do you have in your head something
> >> >>like
> >> >> >>that
> >> >> >> > after compilation in the html files ?
> >> >> >> >
> >> >> >> > <link
> >> >>
> >>
> >>>>>>href="https://na01.safelinks.protection.outlook.
> com/?url=https%3A%2F%
> >>>>>>2Fna01.safelinks.protection.outlook&data=02%7C01%7Caharui%
> 40adobe.com
> >>>>>>%7Cd529a696163d4105e0f608d583a4d4e1%7Cfa7b1b5a7b34438794aed2c178de
> cee
> >>>>>>1%7C0%7C0%7C636559666333752025&sdata=1OzBzVetTJVqzHNC8QEUL3I7yM9KyU
> jV
> >>>>>>Mpo8kYVEsnw%3D&reserved=0.
> >> com/?url=https%3A%2F%2F
> >> >>>>na01.safelinks.protection.outlook&data=02%7C01%7Caharui%40adobe.com
> >> %7C9
> >> >>>>0d36aa7b58d4a8f037a08d5839081a1%7Cfa7b1b5a7b34438794aed2c178de
> >> cee1%7C0%
> >> >>>>7C0%7C636559579033937825&sdata=5puVvWSyXU5Lh1gy9f9gJ1iEl0N1sp
> >> EXJza%2FJG
> >> >>>>m6Xug%3D&reserved=0.
> >> >> com/?url=https%3A%2F%2Ffo
> >> >> >>nts.googleapis.com%2Fcss%3Ffamily%3DLato&data=02%7C01%7Caharui%
> >> >> 40adobe.co
> >> >> >>m%7C335f9e4addc14bb6bbb708d58380469b%
> 7Cfa7b1b5a7b34438794aed2c178de
> >> >> cee1%7
> >> >>
> >>>>C0%7C0%7C636559509319053690&sdata=yA7%2Bh88X94JpycunvMJSNuCflIoOkddb
> >> >> ODAux
> >> >> >>creWGM%3D&reserved=0"
> >> >> >> > rel="stylesheet">
> >> >> >> >
> >> >> >> > 2018-03-06 17:01 GMT+01:00 Carlos Rovira
> >><carlosrovira@apache.org
> >> >:
> >> >> >> >
> >> >> >> >> Hi Piotr,
> >> >> >> >>
> >> >> >> >> I introduced a new line in Application.as in Jewel UI set to
> >>start
> >> >> >> >> implementing responsiveness in mobile:
> >> >> >> >>
> >> >> >> >> <meta name="viewport" content="width=device-width,
> >> >>initial-scale=1,
> >> >> >> >> minimum-scale=1, maximum-scale=1">
> >> >> >> >>
> >> >> >> >> this line is ok at that level since all jewel apps could be
> >> >> >>responsive
> >> >> >> >>
> >> >> >> >> that line appears ok in final html
> >> >> >> >>
> >> >> >> >> but the one in the theme, is not appearing in the html
> >> >> >> >>
> >> >> >> >> the rest seems ok with the normal script generated by Royale
> >> >> >> >>
> >> >> >> >>
> >> >> >> >>
> >> >> >> >> 2018-03-06 16:47 GMT+01:00 Piotr Zarzycki
> >> >> >><pi...@gmail.com>:
> >> >> >> >>
> >> >> >> >> > Hi Carlos,
> >> >> >> >> >
> >> >> >> >> > How looks like HTML output when you compile things using that
> >> >> >>stuff ?
> >> >> >> >> >
> >> >> >> >> > Thanks, Piotr
> >> >> >> >> >
> >> >> >> >> > 2018-03-06 16:40 GMT+01:00 Carlos Rovira
> >> >><carlosrovira@apache.org
> >> >> >:
> >> >> >> >> >
> >> >> >> >> > > Hi
> >> >> >> >> > >
> >> >> >> >> > > I want the theme define the typography to use, to get this
> >>I'm
> >> >> >>using
> >> >> >> >> the
> >> >> >> >> > > inject_html tag in the constructor
> >> >> >> >> > >
> >> >> >> >> > > The only class I have in the theme is the following
> >> >> >> >> > >
> >> >> >> >> > >
> >> >> >> >> > > package
> >> >> >> >> > > {
> >> >> >> >> > >
> >> >> >> >> > > /**
> >> >> >> >> > > * @private
> >> >> >> >> > > * This class is used to link additional classes into
> >> >> >>JewelTheme.swc
> >> >> >> >> > > * beyond those that are found by dependecy analysis
> >>starting
> >> >> >> >> > > * from the classes specified in manifest.xml.
> >> >> >> >> > > */
> >> >> >> >> > > internal class JewelThemeClasses
> >> >> >> >> > > {
> >> >> >> >> > > /**
> >> >> >> >> > > * constructor.
> >> >> >> >> > > *
> >> >> >> >> > > * <inject_html>
> >> >> >> >> > > * <link
> >> >>
> >>
> >>>>>>href="https://na01.safelinks.protection.outlook.
> com/?url=https%3A%2F%
> >>>>>>2Fna01.safelinks.protection.outlook&data=02%7C01%7Caharui%
> 40adobe.com
> >>>>>>%7Cd529a696163d4105e0f608d583a4d4e1%7Cfa7b1b5a7b34438794aed2c178de
> cee
> >>>>>>1%7C0%7C0%7C636559666333752025&sdata=1OzBzVetTJVqzHNC8QEUL3I7yM9KyU
> jV
> >>>>>>Mpo8kYVEsnw%3D&reserved=0.
> >> com/?url=https%3A%2F%2F
> >> >>>>na01.safelinks.protection.outlook&data=02%7C01%7Caharui%40adobe.com
> >> %7C9
> >> >>>>0d36aa7b58d4a8f037a08d5839081a1%7Cfa7b1b5a7b34438794aed2c178de
> >> cee1%7C0%
> >> >>>>7C0%7C636559579033937825&sdata=5puVvWSyXU5Lh1gy9f9gJ1iEl0N1sp
> >> EXJza%2FJG
> >> >>>>m6Xug%3D&reserved=0.
> >> >> com/?url=https%3A%2F%2Ffo
> >> >> >>nts.googleapis.com%2Fcss%3Ffamily%3DLato&data=02%7C01%7Caharui%
> >> >> 40adobe.co
> >> >> >>m%7C335f9e4addc14bb6bbb708d58380469b%
> 7Cfa7b1b5a7b34438794aed2c178de
> >> >> cee1%7
> >> >>
> >>>>C0%7C0%7C636559509319053690&sdata=yA7%2Bh88X94JpycunvMJSNuCflIoOkddb
> >> >> ODAux
> >> >> >>creWGM%3D&reserved=0
> >> >> >> "
> >> >> >> >> > > rel="stylesheet">
> >> >> >> >> > > * </inject_html>
> >> >> >> >> > > *
> >> >> >> >> > > * @langversion 3.0
> >> >> >> >> > > * @playerversion Flash 10.2
> >> >> >> >> > > * @playerversion AIR 2.6
> >> >> >> >> > > * @productversion Royale 0.9.2
> >> >> >> >> > > */
> >> >> >> >> > > public function JewelThemeClasses()
> >> >> >> >> > > {
> >> >> >> >> > > super();
> >> >> >> >> > > }
> >> >> >> >> > > }
> >> >> >> >> > >
> >> >> >> >> > > }
> >> >> >> >> > >
> >> >> >> >> > > But this is not working since I don't get anything
> >>injected in
> >> >> >>the
> >> >> >> >> html
> >> >> >> >> > >
> >> >> >> >> > > anyone knows what could be the problem?
> >> >> >> >> > >
> >> >> >> >> > > thanks
> >> >> >> >> > >
> >> >> >> >> > >
> >> >> >> >> > > --
> >> >> >> >> > > Carlos Rovira
> >> >> >> >> > >
> >> >> >>https://na01.safelinks.protection.outlook.com/?url=
> >> >> http%3A%2F%2Fabout.me%
> >> >> >>2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
> >> >> 7C335f9e4addc14bb6bbb708
> >> >> >>d58380469b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
> >> >> 7C63655950931905369
> >> >>
> >> >>>>0&sdata=%2FNmOa%2BKcyD93kNDolxbReQZMhVrgPTzrzk
> >> l%2FYwSRGTs%3D&reserved=0
> >> >> >> >> > >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> > --
> >> >> >> >> >
> >> >> >> >> > Piotr Zarzycki
> >> >> >> >> >
> >> >> >> >> > Patreon:
> >> >> >>*https://na01.safelinks.protection.outlook.com/?url=
> >> >> https%3A%2F%2Fwww.pat
> >> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
> >> >> %7C335f9e4addc1
> >> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
> >> >> cee1%7C0%7C0%7C6365595
> >> >> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
> >> >> Y6k6l9ER6rkZ4%3D&reserved
> >> >> >>=0
> >> >> >> >> >
> >> >> >><https://na01.safelinks.protection.outlook.com/?url=
> >> >> https%3A%2F%2Fwww.pat
> >> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
> >> >> %7C335f9e4addc1
> >> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
> >> >> cee1%7C0%7C0%7C6365595
> >> >> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
> >> >> Y6k6l9ER6rkZ4%3D&reserved
> >> >> >>=0>*
> >> >> >> >> >
> >> >> >> >>
> >> >> >> >>
> >> >> >> >>
> >> >> >> >> --
> >> >> >> >> Carlos Rovira
> >> >> >> >>
> >> >> >>https://na01.safelinks.protection.outlook.com/?url=
> >> >> http%3A%2F%2Fabout.me%
> >> >> >>2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
> >> >> 7C335f9e4addc14bb6bbb708
> >> >> >>d58380469b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
> >> >> 7C63655950931905369
> >> >>
> >> >>>>0&sdata=%2FNmOa%2BKcyD93kNDolxbReQZMhVrgPTzrzk
> >> l%2FYwSRGTs%3D&reserved=0
> >> >> >> >>
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> > --
> >> >> >> >
> >> >> >> > Piotr Zarzycki
> >> >> >> >
> >> >> >> > Patreon:
> >> >> >>*https://na01.safelinks.protection.outlook.com/?url=
> >> >> https%3A%2F%2Fwww.pat
> >> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
> >> >> %7C335f9e4addc1
> >> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
> >> >> cee1%7C0%7C0%7C6365595
> >> >> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
> >> >> Y6k6l9ER6rkZ4%3D&reserved
> >> >> >>=0
> >> >> >> >
> >> >> >><https://na01.safelinks.protection.outlook.com/?url=
> >> >> https%3A%2F%2Fwww.pat
> >> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
> >> >> %7C335f9e4addc1
> >> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
> >> >> cee1%7C0%7C0%7C6365595
> >> >> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
> >> >> Y6k6l9ER6rkZ4%3D&reserved
> >> >> >>=0>*
> >> >> >> >
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> --
> >> >> >>
> >> >> >> Piotr Zarzycki
> >> >> >>
> >> >> >> Patreon:
> >> >> >>*https://na01.safelinks.protection.outlook.com/?url=
> >> >> https%3A%2F%2Fwww.pat
> >> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
> >> >> %7C335f9e4addc1
> >> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
> >> >> cee1%7C0%7C0%7C6365595
> >> >> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
> >> >> Y6k6l9ER6rkZ4%3D&reserved
> >> >> >>=0
> >> >> >>
> >> >> >><https://na01.safelinks.protection.outlook.com/?url=
> >> >> https%3A%2F%2Fwww.pat
> >> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
> >> >> %7C335f9e4addc1
> >> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
> >> >> cee1%7C0%7C0%7C6365595
> >> >> >>09319063694&sdata=o76Gym4fOsBicseiddsVm1FQHtzgLu
> >> >> zQ5MkEqFyBckI%3D&reserved
> >> >> >>=0>*
> >> >> >>
> >> >> >
> >> >> >
> >> >> >
> >> >> >--
> >> >> >Carlos Rovira
> >> >> >https://na01.safelinks.protection.outlook.com/?url=
> >> >> http%3A%2F%2Fabout.me%2
> >> >> >Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
> >> >> 7C335f9e4addc14bb6bbb708d5
> >> >> >8380469b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
> >> >> 7C636559509319063694&s
> >> >> >data=7moxBd2GSpHpn7AAtOwOD9MZSKIvjLai7e%2B5WK5BeOA%3D&reserved=0
> >> >>
> >> >>
> >> >
> >> >
> >> >--
> >> >Carlos Rovira
> >> >https://na01.safelinks.protection.outlook.com/?url=
> >> http%3A%2F%2Fabout.me%2
> >> >Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
> >> 7C90d36aa7b58d4a8f037a08d5
> >> >839081a1%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
> >> 7C636559579033937825&s
> >> >data=50jZM6zOSthV%2FLV2ATtlQR3ymCzo3eKGGhk6ccYp3Fs%3D&reserved=0
> >>
> >>
> >
> >
> >--
> >Carlos Rovira
> >https://na01.safelinks.protection.outlook.com/?url=
> http%3A%2F%2Fabout.me%2
> >Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
> 7Cd529a696163d4105e0f608d5
> >83a4d4e1%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
> 7C636559666333752025&s
> >data=MR%2BipgM59CJpHxtty1Yut1PeBobh5mgZ318%2FXAN4Ttw%3D&reserved=0
>
>
--
Carlos Rovira
http://about.me/carlosrovira
Re: How to inject html with a theme class
Posted by Alex Harui <ah...@adobe.com.INVALID>.
Hi Carlos,
I don't think there is per-platform CSS, so
org.apache.royale.jewel.JewelThemeFontInject needs to be in the SWC for
both the SWF and JS compile. I couldn't quite tell from the commit
message, but it looked like JewelThemeFontInject might have been set up to
be JSOnly.
Also, it shouldn't matter, but I would not bother to put
org.apache.royale.jewel.JewelThemeFontInject in the manifest. Nobody
should be using it in MXML.
Check the SWC. You can unzip it and SWFDump the library.swf and it should
have org.apache.royale.jewel.JewelThemeFontInject in it, and anequivalent
.js file.
HTH,
-Alex
On 3/6/18, 12:56 PM, "carlos.rovira@gmail.com on behalf of Carlos Rovira"
<carlos.rovira@gmail.com on behalf of carlosrovira@apache.org> wrote:
>Hi Alex,
>
>more near, but still fails. I put the quotes failed, then I figured that I
>put in jewel package similar to lib, so I changed to :
>
>fonts: ClassReference("org.apache.royale.jewel.JewelThemeFontInject");
>
>this failed in similar way:
>
>[INFO] Executing MXMLC in tool group Royale with args:
>[-load-config=/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/r
>oyale/JewelExample/target/compile-app-
>config.xml,
>-js-output=/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/roya
>le/JewelExample/target/javascript,
>-compiler.targets=JSRoyale,SWF,
>/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/royale/JewelExa
>mple/src/main/royale/
>App.mxml]
>/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/royale/JewelExa
>mple/JewelTheme-
>0.9.2-SNAPSHOT.swc:defaults.css(29): col: 10 Error:
>org.apache.royale.jewel.JewelThemeFontInject is not defined.
>
>I recheck all files but can see what's could be wrong
>
>
>
>2018-03-06 19:51 GMT+01:00 Alex Harui <ah...@adobe.com.invalid>:
>
>> I missed that ClassReference puts the class in quotes. Try:
>>
>> fonts: ClassReference("JewelThemeFontInject") ;
>>
>>
>> HTH,
>> -Alex
>>
>> On 3/6/18, 10:31 AM, "carlos.rovira@gmail.com on behalf of Carlos
>>Rovira"
>> <carlos.rovira@gmail.com on behalf of carlosrovira@apache.org> wrote:
>>
>> >Hi Alex,
>> >
>> >the 4 method seems ok but I'm getting this error:
>> >
>> >[INFO] Executing MXMLC in tool group Royale with args:
>> >[-load-config=/Users/carlosrovira/Dev/Royale/
>> Source/royale-asjs/examples/r
>> >oyale/JewelExample/target/compile-app-
>> >config.xml,
>> >-js-output=/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/
>> roya
>> >le/JewelExample/target/javascript,
>> >-compiler.targets=JSRoyale,SWF,
>> >/Users/carlosrovira/Dev/Royale/Source/royale-asjs/
>> examples/royale/JewelExa
>> >mple/src/main/royale/
>> >App.mxml]
>> >/Users/carlosrovira/Dev/Royale/Source/royale-asjs/
>> examples/royale/JewelExa
>> >mple/JewelTheme-
>> >0.9.2-SNAPSHOT.swc:defaults.css(28): col: 11 Error: ewelThemeFontInjec
>>is
>> >not defined.
>> >
>> >if I unzip the theme -js.swc I can see JewelThemeFontInject.js file
>>inside
>> >in the out folder (in its own package), so I think the theme SWC is ok.
>> >
>> >I put the declaration in
>> >
>> >.royale *, . royale *:before, . royale *:after {
>> > -moz-box-sizing: border-box;
>> > -webkit-box-sizing: border-box;
>> > box-sizing: border-box;
>> >
>> > fonts: ClassReference(JewelThemeFontInject) ;
>> >}
>> >
>> >so this is getting notice.
>> >
>> >but the error show the name of the class without first letter Error:
>> >ewelThemeFontInjec is not defined
>> >
>> >any thoughts?
>> >
>> >thanks!
>> >
>> >
>> >2018-03-06 18:26 GMT+01:00 Alex Harui <ah...@adobe.com.invalid>:
>> >
>> >> Only <inject_html> from classes actually linked into the final
>> >>application
>> >> will be used.
>> >>
>> >> I think there are a few choices:
>> >> 1) require everyone use a particular html-template
>> >> 2) require some bead be used
>> >> 3) require a different Application subclass
>> >> 4) try to hack it in as follows:
>> >>
>> >> In the defaults.css for Jewel, add
>> >>
>> >> .Jewel { fonts: ClassReference(JewelInjectHTML) }
>> >>
>> >> And create a JewelInjectHTML class with the desired <inject_html> on
>>the
>> >> constructor.
>> >>
>> >> That will have a bit of extra overhead, but might work.
>> >>
>> >> HTH,
>> >> -Alex
>> >>
>> >> On 3/6/18, 8:35 AM, "carlos.rovira@gmail.com on behalf of Carlos
>> Rovira"
>> >> <carlos.rovira@gmail.com on behalf of carlosrovira@apache.org> wrote:
>> >>
>> >> >Hi Piotr,
>> >> >
>> >> >no, that's that I want to get in the resultant html file. I don't
>> >>think I
>> >> >understand your question, that's exactly what I'm asking, why that
>> >>line is
>> >> >not in the final HTML file, I suppose that is because is a theme
>>file
>> >>and
>> >> >maybe the JewelThemeClasses.as is not used, but don't know how to
>>make
>> >>it
>> >> >work
>> >> >
>> >> >thanks
>> >> >
>> >> >2018-03-06 17:06 GMT+01:00 Piotr Zarzycki
>><pi...@gmail.com>:
>> >> >
>> >> >> Link once again: <link
>> >>
>>
>>>>>>href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%
>>>>>>2Fna01.safelinks.protection.outlook&data=02%7C01%7Caharui%40adobe.com
>>>>>>%7Cd529a696163d4105e0f608d583a4d4e1%7Cfa7b1b5a7b34438794aed2c178decee
>>>>>>1%7C0%7C0%7C636559666333752025&sdata=1OzBzVetTJVqzHNC8QEUL3I7yM9KyUjV
>>>>>>Mpo8kYVEsnw%3D&reserved=0.
>> com/?url=https%3A%2F%2F
>> >>>>na01.safelinks.protection.outlook&data=02%7C01%7Caharui%40adobe.com
>> %7C9
>> >>>>0d36aa7b58d4a8f037a08d5839081a1%7Cfa7b1b5a7b34438794aed2c178de
>> cee1%7C0%
>> >>>>7C0%7C636559579033937825&sdata=5puVvWSyXU5Lh1gy9f9gJ1iEl0N1sp
>> EXJza%2FJG
>> >>>>m6Xug%3D&reserved=0.
>> >> com/?url=https%3A%2F%2Ffo
>> >> >>nts.googleapis.com%2Fcss%3Ffamily%3DLato&data=02%7C01%7Caharui%
>> >> 40adobe.co
>> >> >>m%7C335f9e4addc14bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
>> >> cee1%7
>> >>
>>>>C0%7C0%7C636559509319053690&sdata=yA7%2Bh88X94JpycunvMJSNuCflIoOkddb
>> >> ODAux
>> >> >>creWGM%3D&reserved=0"
>> >> >> rel="stylesheet">
>> >> >>
>> >> >> 2018-03-06 17:06 GMT+01:00 Piotr Zarzycki
>> >><pi...@gmail.com>:
>> >> >>
>> >> >> > I meant here something else. Do you have in your head something
>> >>like
>> >> >>that
>> >> >> > after compilation in the html files ?
>> >> >> >
>> >> >> > <link
>> >>
>>
>>>>>>href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%
>>>>>>2Fna01.safelinks.protection.outlook&data=02%7C01%7Caharui%40adobe.com
>>>>>>%7Cd529a696163d4105e0f608d583a4d4e1%7Cfa7b1b5a7b34438794aed2c178decee
>>>>>>1%7C0%7C0%7C636559666333752025&sdata=1OzBzVetTJVqzHNC8QEUL3I7yM9KyUjV
>>>>>>Mpo8kYVEsnw%3D&reserved=0.
>> com/?url=https%3A%2F%2F
>> >>>>na01.safelinks.protection.outlook&data=02%7C01%7Caharui%40adobe.com
>> %7C9
>> >>>>0d36aa7b58d4a8f037a08d5839081a1%7Cfa7b1b5a7b34438794aed2c178de
>> cee1%7C0%
>> >>>>7C0%7C636559579033937825&sdata=5puVvWSyXU5Lh1gy9f9gJ1iEl0N1sp
>> EXJza%2FJG
>> >>>>m6Xug%3D&reserved=0.
>> >> com/?url=https%3A%2F%2Ffo
>> >> >>nts.googleapis.com%2Fcss%3Ffamily%3DLato&data=02%7C01%7Caharui%
>> >> 40adobe.co
>> >> >>m%7C335f9e4addc14bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
>> >> cee1%7
>> >>
>>>>C0%7C0%7C636559509319053690&sdata=yA7%2Bh88X94JpycunvMJSNuCflIoOkddb
>> >> ODAux
>> >> >>creWGM%3D&reserved=0"
>> >> >> > rel="stylesheet">
>> >> >> >
>> >> >> > 2018-03-06 17:01 GMT+01:00 Carlos Rovira
>><carlosrovira@apache.org
>> >:
>> >> >> >
>> >> >> >> Hi Piotr,
>> >> >> >>
>> >> >> >> I introduced a new line in Application.as in Jewel UI set to
>>start
>> >> >> >> implementing responsiveness in mobile:
>> >> >> >>
>> >> >> >> <meta name="viewport" content="width=device-width,
>> >>initial-scale=1,
>> >> >> >> minimum-scale=1, maximum-scale=1">
>> >> >> >>
>> >> >> >> this line is ok at that level since all jewel apps could be
>> >> >>responsive
>> >> >> >>
>> >> >> >> that line appears ok in final html
>> >> >> >>
>> >> >> >> but the one in the theme, is not appearing in the html
>> >> >> >>
>> >> >> >> the rest seems ok with the normal script generated by Royale
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> 2018-03-06 16:47 GMT+01:00 Piotr Zarzycki
>> >> >><pi...@gmail.com>:
>> >> >> >>
>> >> >> >> > Hi Carlos,
>> >> >> >> >
>> >> >> >> > How looks like HTML output when you compile things using that
>> >> >>stuff ?
>> >> >> >> >
>> >> >> >> > Thanks, Piotr
>> >> >> >> >
>> >> >> >> > 2018-03-06 16:40 GMT+01:00 Carlos Rovira
>> >><carlosrovira@apache.org
>> >> >:
>> >> >> >> >
>> >> >> >> > > Hi
>> >> >> >> > >
>> >> >> >> > > I want the theme define the typography to use, to get this
>>I'm
>> >> >>using
>> >> >> >> the
>> >> >> >> > > inject_html tag in the constructor
>> >> >> >> > >
>> >> >> >> > > The only class I have in the theme is the following
>> >> >> >> > >
>> >> >> >> > >
>> >> >> >> > > package
>> >> >> >> > > {
>> >> >> >> > >
>> >> >> >> > > /**
>> >> >> >> > > * @private
>> >> >> >> > > * This class is used to link additional classes into
>> >> >>JewelTheme.swc
>> >> >> >> > > * beyond those that are found by dependecy analysis
>>starting
>> >> >> >> > > * from the classes specified in manifest.xml.
>> >> >> >> > > */
>> >> >> >> > > internal class JewelThemeClasses
>> >> >> >> > > {
>> >> >> >> > > /**
>> >> >> >> > > * constructor.
>> >> >> >> > > *
>> >> >> >> > > * <inject_html>
>> >> >> >> > > * <link
>> >>
>>
>>>>>>href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%
>>>>>>2Fna01.safelinks.protection.outlook&data=02%7C01%7Caharui%40adobe.com
>>>>>>%7Cd529a696163d4105e0f608d583a4d4e1%7Cfa7b1b5a7b34438794aed2c178decee
>>>>>>1%7C0%7C0%7C636559666333752025&sdata=1OzBzVetTJVqzHNC8QEUL3I7yM9KyUjV
>>>>>>Mpo8kYVEsnw%3D&reserved=0.
>> com/?url=https%3A%2F%2F
>> >>>>na01.safelinks.protection.outlook&data=02%7C01%7Caharui%40adobe.com
>> %7C9
>> >>>>0d36aa7b58d4a8f037a08d5839081a1%7Cfa7b1b5a7b34438794aed2c178de
>> cee1%7C0%
>> >>>>7C0%7C636559579033937825&sdata=5puVvWSyXU5Lh1gy9f9gJ1iEl0N1sp
>> EXJza%2FJG
>> >>>>m6Xug%3D&reserved=0.
>> >> com/?url=https%3A%2F%2Ffo
>> >> >>nts.googleapis.com%2Fcss%3Ffamily%3DLato&data=02%7C01%7Caharui%
>> >> 40adobe.co
>> >> >>m%7C335f9e4addc14bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
>> >> cee1%7
>> >>
>>>>C0%7C0%7C636559509319053690&sdata=yA7%2Bh88X94JpycunvMJSNuCflIoOkddb
>> >> ODAux
>> >> >>creWGM%3D&reserved=0
>> >> >> "
>> >> >> >> > > rel="stylesheet">
>> >> >> >> > > * </inject_html>
>> >> >> >> > > *
>> >> >> >> > > * @langversion 3.0
>> >> >> >> > > * @playerversion Flash 10.2
>> >> >> >> > > * @playerversion AIR 2.6
>> >> >> >> > > * @productversion Royale 0.9.2
>> >> >> >> > > */
>> >> >> >> > > public function JewelThemeClasses()
>> >> >> >> > > {
>> >> >> >> > > super();
>> >> >> >> > > }
>> >> >> >> > > }
>> >> >> >> > >
>> >> >> >> > > }
>> >> >> >> > >
>> >> >> >> > > But this is not working since I don't get anything
>>injected in
>> >> >>the
>> >> >> >> html
>> >> >> >> > >
>> >> >> >> > > anyone knows what could be the problem?
>> >> >> >> > >
>> >> >> >> > > thanks
>> >> >> >> > >
>> >> >> >> > >
>> >> >> >> > > --
>> >> >> >> > > Carlos Rovira
>> >> >> >> > >
>> >> >>https://na01.safelinks.protection.outlook.com/?url=
>> >> http%3A%2F%2Fabout.me%
>> >> >>2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
>> >> 7C335f9e4addc14bb6bbb708
>> >> >>d58380469b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
>> >> 7C63655950931905369
>> >>
>> >>>>0&sdata=%2FNmOa%2BKcyD93kNDolxbReQZMhVrgPTzrzk
>> l%2FYwSRGTs%3D&reserved=0
>> >> >> >> > >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > --
>> >> >> >> >
>> >> >> >> > Piotr Zarzycki
>> >> >> >> >
>> >> >> >> > Patreon:
>> >> >>*https://na01.safelinks.protection.outlook.com/?url=
>> >> https%3A%2F%2Fwww.pat
>> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
>> >> %7C335f9e4addc1
>> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
>> >> cee1%7C0%7C0%7C6365595
>> >> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
>> >> Y6k6l9ER6rkZ4%3D&reserved
>> >> >>=0
>> >> >> >> >
>> >> >><https://na01.safelinks.protection.outlook.com/?url=
>> >> https%3A%2F%2Fwww.pat
>> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
>> >> %7C335f9e4addc1
>> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
>> >> cee1%7C0%7C0%7C6365595
>> >> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
>> >> Y6k6l9ER6rkZ4%3D&reserved
>> >> >>=0>*
>> >> >> >> >
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> --
>> >> >> >> Carlos Rovira
>> >> >> >>
>> >> >>https://na01.safelinks.protection.outlook.com/?url=
>> >> http%3A%2F%2Fabout.me%
>> >> >>2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
>> >> 7C335f9e4addc14bb6bbb708
>> >> >>d58380469b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
>> >> 7C63655950931905369
>> >>
>> >>>>0&sdata=%2FNmOa%2BKcyD93kNDolxbReQZMhVrgPTzrzk
>> l%2FYwSRGTs%3D&reserved=0
>> >> >> >>
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > --
>> >> >> >
>> >> >> > Piotr Zarzycki
>> >> >> >
>> >> >> > Patreon:
>> >> >>*https://na01.safelinks.protection.outlook.com/?url=
>> >> https%3A%2F%2Fwww.pat
>> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
>> >> %7C335f9e4addc1
>> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
>> >> cee1%7C0%7C0%7C6365595
>> >> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
>> >> Y6k6l9ER6rkZ4%3D&reserved
>> >> >>=0
>> >> >> >
>> >> >><https://na01.safelinks.protection.outlook.com/?url=
>> >> https%3A%2F%2Fwww.pat
>> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
>> >> %7C335f9e4addc1
>> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
>> >> cee1%7C0%7C0%7C6365595
>> >> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
>> >> Y6k6l9ER6rkZ4%3D&reserved
>> >> >>=0>*
>> >> >> >
>> >> >>
>> >> >>
>> >> >>
>> >> >> --
>> >> >>
>> >> >> Piotr Zarzycki
>> >> >>
>> >> >> Patreon:
>> >> >>*https://na01.safelinks.protection.outlook.com/?url=
>> >> https%3A%2F%2Fwww.pat
>> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
>> >> %7C335f9e4addc1
>> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
>> >> cee1%7C0%7C0%7C6365595
>> >> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
>> >> Y6k6l9ER6rkZ4%3D&reserved
>> >> >>=0
>> >> >>
>> >> >><https://na01.safelinks.protection.outlook.com/?url=
>> >> https%3A%2F%2Fwww.pat
>> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
>> >> %7C335f9e4addc1
>> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
>> >> cee1%7C0%7C0%7C6365595
>> >> >>09319063694&sdata=o76Gym4fOsBicseiddsVm1FQHtzgLu
>> >> zQ5MkEqFyBckI%3D&reserved
>> >> >>=0>*
>> >> >>
>> >> >
>> >> >
>> >> >
>> >> >--
>> >> >Carlos Rovira
>> >> >https://na01.safelinks.protection.outlook.com/?url=
>> >> http%3A%2F%2Fabout.me%2
>> >> >Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
>> >> 7C335f9e4addc14bb6bbb708d5
>> >> >8380469b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
>> >> 7C636559509319063694&s
>> >> >data=7moxBd2GSpHpn7AAtOwOD9MZSKIvjLai7e%2B5WK5BeOA%3D&reserved=0
>> >>
>> >>
>> >
>> >
>> >--
>> >Carlos Rovira
>> >https://na01.safelinks.protection.outlook.com/?url=
>> http%3A%2F%2Fabout.me%2
>> >Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
>> 7C90d36aa7b58d4a8f037a08d5
>> >839081a1%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
>> 7C636559579033937825&s
>> >data=50jZM6zOSthV%2FLV2ATtlQR3ymCzo3eKGGhk6ccYp3Fs%3D&reserved=0
>>
>>
>
>
>--
>Carlos Rovira
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2
>Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%7Cd529a696163d4105e0f608d5
>83a4d4e1%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636559666333752025&s
>data=MR%2BipgM59CJpHxtty1Yut1PeBobh5mgZ318%2FXAN4Ttw%3D&reserved=0
Re: How to inject html with a theme class
Posted by Carlos Rovira <ca...@apache.org>.
Hi Alex,
more near, but still fails. I put the quotes failed, then I figured that I
put in jewel package similar to lib, so I changed to :
fonts: ClassReference("org.apache.royale.jewel.JewelThemeFontInject");
this failed in similar way:
[INFO] Executing MXMLC in tool group Royale with args:
[-load-config=/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/royale/JewelExample/target/compile-app-
config.xml,
-js-output=/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/royale/JewelExample/target/javascript,
-compiler.targets=JSRoyale,SWF,
/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/royale/JewelExample/src/main/royale/
App.mxml]
/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/royale/JewelExample/JewelTheme-
0.9.2-SNAPSHOT.swc:defaults.css(29): col: 10 Error:
org.apache.royale.jewel.JewelThemeFontInject is not defined.
I recheck all files but can see what's could be wrong
2018-03-06 19:51 GMT+01:00 Alex Harui <ah...@adobe.com.invalid>:
> I missed that ClassReference puts the class in quotes. Try:
>
> fonts: ClassReference("JewelThemeFontInject") ;
>
>
> HTH,
> -Alex
>
> On 3/6/18, 10:31 AM, "carlos.rovira@gmail.com on behalf of Carlos Rovira"
> <carlos.rovira@gmail.com on behalf of carlosrovira@apache.org> wrote:
>
> >Hi Alex,
> >
> >the 4 method seems ok but I'm getting this error:
> >
> >[INFO] Executing MXMLC in tool group Royale with args:
> >[-load-config=/Users/carlosrovira/Dev/Royale/
> Source/royale-asjs/examples/r
> >oyale/JewelExample/target/compile-app-
> >config.xml,
> >-js-output=/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/
> roya
> >le/JewelExample/target/javascript,
> >-compiler.targets=JSRoyale,SWF,
> >/Users/carlosrovira/Dev/Royale/Source/royale-asjs/
> examples/royale/JewelExa
> >mple/src/main/royale/
> >App.mxml]
> >/Users/carlosrovira/Dev/Royale/Source/royale-asjs/
> examples/royale/JewelExa
> >mple/JewelTheme-
> >0.9.2-SNAPSHOT.swc:defaults.css(28): col: 11 Error: ewelThemeFontInjec is
> >not defined.
> >
> >if I unzip the theme -js.swc I can see JewelThemeFontInject.js file inside
> >in the out folder (in its own package), so I think the theme SWC is ok.
> >
> >I put the declaration in
> >
> >.royale *, . royale *:before, . royale *:after {
> > -moz-box-sizing: border-box;
> > -webkit-box-sizing: border-box;
> > box-sizing: border-box;
> >
> > fonts: ClassReference(JewelThemeFontInject) ;
> >}
> >
> >so this is getting notice.
> >
> >but the error show the name of the class without first letter Error:
> >ewelThemeFontInjec is not defined
> >
> >any thoughts?
> >
> >thanks!
> >
> >
> >2018-03-06 18:26 GMT+01:00 Alex Harui <ah...@adobe.com.invalid>:
> >
> >> Only <inject_html> from classes actually linked into the final
> >>application
> >> will be used.
> >>
> >> I think there are a few choices:
> >> 1) require everyone use a particular html-template
> >> 2) require some bead be used
> >> 3) require a different Application subclass
> >> 4) try to hack it in as follows:
> >>
> >> In the defaults.css for Jewel, add
> >>
> >> .Jewel { fonts: ClassReference(JewelInjectHTML) }
> >>
> >> And create a JewelInjectHTML class with the desired <inject_html> on the
> >> constructor.
> >>
> >> That will have a bit of extra overhead, but might work.
> >>
> >> HTH,
> >> -Alex
> >>
> >> On 3/6/18, 8:35 AM, "carlos.rovira@gmail.com on behalf of Carlos
> Rovira"
> >> <carlos.rovira@gmail.com on behalf of carlosrovira@apache.org> wrote:
> >>
> >> >Hi Piotr,
> >> >
> >> >no, that's that I want to get in the resultant html file. I don't
> >>think I
> >> >understand your question, that's exactly what I'm asking, why that
> >>line is
> >> >not in the final HTML file, I suppose that is because is a theme file
> >>and
> >> >maybe the JewelThemeClasses.as is not used, but don't know how to make
> >>it
> >> >work
> >> >
> >> >thanks
> >> >
> >> >2018-03-06 17:06 GMT+01:00 Piotr Zarzycki <pi...@gmail.com>:
> >> >
> >> >> Link once again: <link
> >>
> >>>>href="https://na01.safelinks.protection.outlook.
> com/?url=https%3A%2F%2F
> >>>>na01.safelinks.protection.outlook&data=02%7C01%7Caharui%40adobe.com
> %7C9
> >>>>0d36aa7b58d4a8f037a08d5839081a1%7Cfa7b1b5a7b34438794aed2c178de
> cee1%7C0%
> >>>>7C0%7C636559579033937825&sdata=5puVvWSyXU5Lh1gy9f9gJ1iEl0N1sp
> EXJza%2FJG
> >>>>m6Xug%3D&reserved=0.
> >> com/?url=https%3A%2F%2Ffo
> >> >>nts.googleapis.com%2Fcss%3Ffamily%3DLato&data=02%7C01%7Caharui%
> >> 40adobe.co
> >> >>m%7C335f9e4addc14bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
> >> cee1%7
> >> >>C0%7C0%7C636559509319053690&sdata=yA7%2Bh88X94JpycunvMJSNuCflIoOkddb
> >> ODAux
> >> >>creWGM%3D&reserved=0"
> >> >> rel="stylesheet">
> >> >>
> >> >> 2018-03-06 17:06 GMT+01:00 Piotr Zarzycki
> >><pi...@gmail.com>:
> >> >>
> >> >> > I meant here something else. Do you have in your head something
> >>like
> >> >>that
> >> >> > after compilation in the html files ?
> >> >> >
> >> >> > <link
> >>
> >>>>href="https://na01.safelinks.protection.outlook.
> com/?url=https%3A%2F%2F
> >>>>na01.safelinks.protection.outlook&data=02%7C01%7Caharui%40adobe.com
> %7C9
> >>>>0d36aa7b58d4a8f037a08d5839081a1%7Cfa7b1b5a7b34438794aed2c178de
> cee1%7C0%
> >>>>7C0%7C636559579033937825&sdata=5puVvWSyXU5Lh1gy9f9gJ1iEl0N1sp
> EXJza%2FJG
> >>>>m6Xug%3D&reserved=0.
> >> com/?url=https%3A%2F%2Ffo
> >> >>nts.googleapis.com%2Fcss%3Ffamily%3DLato&data=02%7C01%7Caharui%
> >> 40adobe.co
> >> >>m%7C335f9e4addc14bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
> >> cee1%7
> >> >>C0%7C0%7C636559509319053690&sdata=yA7%2Bh88X94JpycunvMJSNuCflIoOkddb
> >> ODAux
> >> >>creWGM%3D&reserved=0"
> >> >> > rel="stylesheet">
> >> >> >
> >> >> > 2018-03-06 17:01 GMT+01:00 Carlos Rovira <carlosrovira@apache.org
> >:
> >> >> >
> >> >> >> Hi Piotr,
> >> >> >>
> >> >> >> I introduced a new line in Application.as in Jewel UI set to start
> >> >> >> implementing responsiveness in mobile:
> >> >> >>
> >> >> >> <meta name="viewport" content="width=device-width,
> >>initial-scale=1,
> >> >> >> minimum-scale=1, maximum-scale=1">
> >> >> >>
> >> >> >> this line is ok at that level since all jewel apps could be
> >> >>responsive
> >> >> >>
> >> >> >> that line appears ok in final html
> >> >> >>
> >> >> >> but the one in the theme, is not appearing in the html
> >> >> >>
> >> >> >> the rest seems ok with the normal script generated by Royale
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> 2018-03-06 16:47 GMT+01:00 Piotr Zarzycki
> >> >><pi...@gmail.com>:
> >> >> >>
> >> >> >> > Hi Carlos,
> >> >> >> >
> >> >> >> > How looks like HTML output when you compile things using that
> >> >>stuff ?
> >> >> >> >
> >> >> >> > Thanks, Piotr
> >> >> >> >
> >> >> >> > 2018-03-06 16:40 GMT+01:00 Carlos Rovira
> >><carlosrovira@apache.org
> >> >:
> >> >> >> >
> >> >> >> > > Hi
> >> >> >> > >
> >> >> >> > > I want the theme define the typography to use, to get this I'm
> >> >>using
> >> >> >> the
> >> >> >> > > inject_html tag in the constructor
> >> >> >> > >
> >> >> >> > > The only class I have in the theme is the following
> >> >> >> > >
> >> >> >> > >
> >> >> >> > > package
> >> >> >> > > {
> >> >> >> > >
> >> >> >> > > /**
> >> >> >> > > * @private
> >> >> >> > > * This class is used to link additional classes into
> >> >>JewelTheme.swc
> >> >> >> > > * beyond those that are found by dependecy analysis starting
> >> >> >> > > * from the classes specified in manifest.xml.
> >> >> >> > > */
> >> >> >> > > internal class JewelThemeClasses
> >> >> >> > > {
> >> >> >> > > /**
> >> >> >> > > * constructor.
> >> >> >> > > *
> >> >> >> > > * <inject_html>
> >> >> >> > > * <link
> >>
> >>>>href="https://na01.safelinks.protection.outlook.
> com/?url=https%3A%2F%2F
> >>>>na01.safelinks.protection.outlook&data=02%7C01%7Caharui%40adobe.com
> %7C9
> >>>>0d36aa7b58d4a8f037a08d5839081a1%7Cfa7b1b5a7b34438794aed2c178de
> cee1%7C0%
> >>>>7C0%7C636559579033937825&sdata=5puVvWSyXU5Lh1gy9f9gJ1iEl0N1sp
> EXJza%2FJG
> >>>>m6Xug%3D&reserved=0.
> >> com/?url=https%3A%2F%2Ffo
> >> >>nts.googleapis.com%2Fcss%3Ffamily%3DLato&data=02%7C01%7Caharui%
> >> 40adobe.co
> >> >>m%7C335f9e4addc14bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
> >> cee1%7
> >> >>C0%7C0%7C636559509319053690&sdata=yA7%2Bh88X94JpycunvMJSNuCflIoOkddb
> >> ODAux
> >> >>creWGM%3D&reserved=0
> >> >> "
> >> >> >> > > rel="stylesheet">
> >> >> >> > > * </inject_html>
> >> >> >> > > *
> >> >> >> > > * @langversion 3.0
> >> >> >> > > * @playerversion Flash 10.2
> >> >> >> > > * @playerversion AIR 2.6
> >> >> >> > > * @productversion Royale 0.9.2
> >> >> >> > > */
> >> >> >> > > public function JewelThemeClasses()
> >> >> >> > > {
> >> >> >> > > super();
> >> >> >> > > }
> >> >> >> > > }
> >> >> >> > >
> >> >> >> > > }
> >> >> >> > >
> >> >> >> > > But this is not working since I don't get anything injected in
> >> >>the
> >> >> >> html
> >> >> >> > >
> >> >> >> > > anyone knows what could be the problem?
> >> >> >> > >
> >> >> >> > > thanks
> >> >> >> > >
> >> >> >> > >
> >> >> >> > > --
> >> >> >> > > Carlos Rovira
> >> >> >> > >
> >> >>https://na01.safelinks.protection.outlook.com/?url=
> >> http%3A%2F%2Fabout.me%
> >> >>2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
> >> 7C335f9e4addc14bb6bbb708
> >> >>d58380469b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
> >> 7C63655950931905369
> >>
> >>>>0&sdata=%2FNmOa%2BKcyD93kNDolxbReQZMhVrgPTzrzk
> l%2FYwSRGTs%3D&reserved=0
> >> >> >> > >
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> > --
> >> >> >> >
> >> >> >> > Piotr Zarzycki
> >> >> >> >
> >> >> >> > Patreon:
> >> >>*https://na01.safelinks.protection.outlook.com/?url=
> >> https%3A%2F%2Fwww.pat
> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
> >> %7C335f9e4addc1
> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
> >> cee1%7C0%7C0%7C6365595
> >> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
> >> Y6k6l9ER6rkZ4%3D&reserved
> >> >>=0
> >> >> >> >
> >> >><https://na01.safelinks.protection.outlook.com/?url=
> >> https%3A%2F%2Fwww.pat
> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
> >> %7C335f9e4addc1
> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
> >> cee1%7C0%7C0%7C6365595
> >> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
> >> Y6k6l9ER6rkZ4%3D&reserved
> >> >>=0>*
> >> >> >> >
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> --
> >> >> >> Carlos Rovira
> >> >> >>
> >> >>https://na01.safelinks.protection.outlook.com/?url=
> >> http%3A%2F%2Fabout.me%
> >> >>2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
> >> 7C335f9e4addc14bb6bbb708
> >> >>d58380469b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
> >> 7C63655950931905369
> >>
> >>>>0&sdata=%2FNmOa%2BKcyD93kNDolxbReQZMhVrgPTzrzk
> l%2FYwSRGTs%3D&reserved=0
> >> >> >>
> >> >> >
> >> >> >
> >> >> >
> >> >> > --
> >> >> >
> >> >> > Piotr Zarzycki
> >> >> >
> >> >> > Patreon:
> >> >>*https://na01.safelinks.protection.outlook.com/?url=
> >> https%3A%2F%2Fwww.pat
> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
> >> %7C335f9e4addc1
> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
> >> cee1%7C0%7C0%7C6365595
> >> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
> >> Y6k6l9ER6rkZ4%3D&reserved
> >> >>=0
> >> >> >
> >> >><https://na01.safelinks.protection.outlook.com/?url=
> >> https%3A%2F%2Fwww.pat
> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
> >> %7C335f9e4addc1
> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
> >> cee1%7C0%7C0%7C6365595
> >> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
> >> Y6k6l9ER6rkZ4%3D&reserved
> >> >>=0>*
> >> >> >
> >> >>
> >> >>
> >> >>
> >> >> --
> >> >>
> >> >> Piotr Zarzycki
> >> >>
> >> >> Patreon:
> >> >>*https://na01.safelinks.protection.outlook.com/?url=
> >> https%3A%2F%2Fwww.pat
> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
> >> %7C335f9e4addc1
> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
> >> cee1%7C0%7C0%7C6365595
> >> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
> >> Y6k6l9ER6rkZ4%3D&reserved
> >> >>=0
> >> >>
> >> >><https://na01.safelinks.protection.outlook.com/?url=
> >> https%3A%2F%2Fwww.pat
> >> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
> >> %7C335f9e4addc1
> >> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
> >> cee1%7C0%7C0%7C6365595
> >> >>09319063694&sdata=o76Gym4fOsBicseiddsVm1FQHtzgLu
> >> zQ5MkEqFyBckI%3D&reserved
> >> >>=0>*
> >> >>
> >> >
> >> >
> >> >
> >> >--
> >> >Carlos Rovira
> >> >https://na01.safelinks.protection.outlook.com/?url=
> >> http%3A%2F%2Fabout.me%2
> >> >Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
> >> 7C335f9e4addc14bb6bbb708d5
> >> >8380469b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
> >> 7C636559509319063694&s
> >> >data=7moxBd2GSpHpn7AAtOwOD9MZSKIvjLai7e%2B5WK5BeOA%3D&reserved=0
> >>
> >>
> >
> >
> >--
> >Carlos Rovira
> >https://na01.safelinks.protection.outlook.com/?url=
> http%3A%2F%2Fabout.me%2
> >Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
> 7C90d36aa7b58d4a8f037a08d5
> >839081a1%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
> 7C636559579033937825&s
> >data=50jZM6zOSthV%2FLV2ATtlQR3ymCzo3eKGGhk6ccYp3Fs%3D&reserved=0
>
>
--
Carlos Rovira
http://about.me/carlosrovira
Re: How to inject html with a theme class
Posted by Alex Harui <ah...@adobe.com.INVALID>.
I missed that ClassReference puts the class in quotes. Try:
fonts: ClassReference("JewelThemeFontInject") ;
HTH,
-Alex
On 3/6/18, 10:31 AM, "carlos.rovira@gmail.com on behalf of Carlos Rovira"
<carlos.rovira@gmail.com on behalf of carlosrovira@apache.org> wrote:
>Hi Alex,
>
>the 4 method seems ok but I'm getting this error:
>
>[INFO] Executing MXMLC in tool group Royale with args:
>[-load-config=/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/r
>oyale/JewelExample/target/compile-app-
>config.xml,
>-js-output=/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/roya
>le/JewelExample/target/javascript,
>-compiler.targets=JSRoyale,SWF,
>/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/royale/JewelExa
>mple/src/main/royale/
>App.mxml]
>/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/royale/JewelExa
>mple/JewelTheme-
>0.9.2-SNAPSHOT.swc:defaults.css(28): col: 11 Error: ewelThemeFontInjec is
>not defined.
>
>if I unzip the theme -js.swc I can see JewelThemeFontInject.js file inside
>in the out folder (in its own package), so I think the theme SWC is ok.
>
>I put the declaration in
>
>.royale *, . royale *:before, . royale *:after {
> -moz-box-sizing: border-box;
> -webkit-box-sizing: border-box;
> box-sizing: border-box;
>
> fonts: ClassReference(JewelThemeFontInject) ;
>}
>
>so this is getting notice.
>
>but the error show the name of the class without first letter Error:
>ewelThemeFontInjec is not defined
>
>any thoughts?
>
>thanks!
>
>
>2018-03-06 18:26 GMT+01:00 Alex Harui <ah...@adobe.com.invalid>:
>
>> Only <inject_html> from classes actually linked into the final
>>application
>> will be used.
>>
>> I think there are a few choices:
>> 1) require everyone use a particular html-template
>> 2) require some bead be used
>> 3) require a different Application subclass
>> 4) try to hack it in as follows:
>>
>> In the defaults.css for Jewel, add
>>
>> .Jewel { fonts: ClassReference(JewelInjectHTML) }
>>
>> And create a JewelInjectHTML class with the desired <inject_html> on the
>> constructor.
>>
>> That will have a bit of extra overhead, but might work.
>>
>> HTH,
>> -Alex
>>
>> On 3/6/18, 8:35 AM, "carlos.rovira@gmail.com on behalf of Carlos Rovira"
>> <carlos.rovira@gmail.com on behalf of carlosrovira@apache.org> wrote:
>>
>> >Hi Piotr,
>> >
>> >no, that's that I want to get in the resultant html file. I don't
>>think I
>> >understand your question, that's exactly what I'm asking, why that
>>line is
>> >not in the final HTML file, I suppose that is because is a theme file
>>and
>> >maybe the JewelThemeClasses.as is not used, but don't know how to make
>>it
>> >work
>> >
>> >thanks
>> >
>> >2018-03-06 17:06 GMT+01:00 Piotr Zarzycki <pi...@gmail.com>:
>> >
>> >> Link once again: <link
>>
>>>>href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2F
>>>>na01.safelinks.protection.outlook&data=02%7C01%7Caharui%40adobe.com%7C9
>>>>0d36aa7b58d4a8f037a08d5839081a1%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%
>>>>7C0%7C636559579033937825&sdata=5puVvWSyXU5Lh1gy9f9gJ1iEl0N1spEXJza%2FJG
>>>>m6Xug%3D&reserved=0.
>> com/?url=https%3A%2F%2Ffo
>> >>nts.googleapis.com%2Fcss%3Ffamily%3DLato&data=02%7C01%7Caharui%
>> 40adobe.co
>> >>m%7C335f9e4addc14bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
>> cee1%7
>> >>C0%7C0%7C636559509319053690&sdata=yA7%2Bh88X94JpycunvMJSNuCflIoOkddb
>> ODAux
>> >>creWGM%3D&reserved=0"
>> >> rel="stylesheet">
>> >>
>> >> 2018-03-06 17:06 GMT+01:00 Piotr Zarzycki
>><pi...@gmail.com>:
>> >>
>> >> > I meant here something else. Do you have in your head something
>>like
>> >>that
>> >> > after compilation in the html files ?
>> >> >
>> >> > <link
>>
>>>>href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2F
>>>>na01.safelinks.protection.outlook&data=02%7C01%7Caharui%40adobe.com%7C9
>>>>0d36aa7b58d4a8f037a08d5839081a1%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%
>>>>7C0%7C636559579033937825&sdata=5puVvWSyXU5Lh1gy9f9gJ1iEl0N1spEXJza%2FJG
>>>>m6Xug%3D&reserved=0.
>> com/?url=https%3A%2F%2Ffo
>> >>nts.googleapis.com%2Fcss%3Ffamily%3DLato&data=02%7C01%7Caharui%
>> 40adobe.co
>> >>m%7C335f9e4addc14bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
>> cee1%7
>> >>C0%7C0%7C636559509319053690&sdata=yA7%2Bh88X94JpycunvMJSNuCflIoOkddb
>> ODAux
>> >>creWGM%3D&reserved=0"
>> >> > rel="stylesheet">
>> >> >
>> >> > 2018-03-06 17:01 GMT+01:00 Carlos Rovira <ca...@apache.org>:
>> >> >
>> >> >> Hi Piotr,
>> >> >>
>> >> >> I introduced a new line in Application.as in Jewel UI set to start
>> >> >> implementing responsiveness in mobile:
>> >> >>
>> >> >> <meta name="viewport" content="width=device-width,
>>initial-scale=1,
>> >> >> minimum-scale=1, maximum-scale=1">
>> >> >>
>> >> >> this line is ok at that level since all jewel apps could be
>> >>responsive
>> >> >>
>> >> >> that line appears ok in final html
>> >> >>
>> >> >> but the one in the theme, is not appearing in the html
>> >> >>
>> >> >> the rest seems ok with the normal script generated by Royale
>> >> >>
>> >> >>
>> >> >>
>> >> >> 2018-03-06 16:47 GMT+01:00 Piotr Zarzycki
>> >><pi...@gmail.com>:
>> >> >>
>> >> >> > Hi Carlos,
>> >> >> >
>> >> >> > How looks like HTML output when you compile things using that
>> >>stuff ?
>> >> >> >
>> >> >> > Thanks, Piotr
>> >> >> >
>> >> >> > 2018-03-06 16:40 GMT+01:00 Carlos Rovira
>><carlosrovira@apache.org
>> >:
>> >> >> >
>> >> >> > > Hi
>> >> >> > >
>> >> >> > > I want the theme define the typography to use, to get this I'm
>> >>using
>> >> >> the
>> >> >> > > inject_html tag in the constructor
>> >> >> > >
>> >> >> > > The only class I have in the theme is the following
>> >> >> > >
>> >> >> > >
>> >> >> > > package
>> >> >> > > {
>> >> >> > >
>> >> >> > > /**
>> >> >> > > * @private
>> >> >> > > * This class is used to link additional classes into
>> >>JewelTheme.swc
>> >> >> > > * beyond those that are found by dependecy analysis starting
>> >> >> > > * from the classes specified in manifest.xml.
>> >> >> > > */
>> >> >> > > internal class JewelThemeClasses
>> >> >> > > {
>> >> >> > > /**
>> >> >> > > * constructor.
>> >> >> > > *
>> >> >> > > * <inject_html>
>> >> >> > > * <link
>>
>>>>href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2F
>>>>na01.safelinks.protection.outlook&data=02%7C01%7Caharui%40adobe.com%7C9
>>>>0d36aa7b58d4a8f037a08d5839081a1%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%
>>>>7C0%7C636559579033937825&sdata=5puVvWSyXU5Lh1gy9f9gJ1iEl0N1spEXJza%2FJG
>>>>m6Xug%3D&reserved=0.
>> com/?url=https%3A%2F%2Ffo
>> >>nts.googleapis.com%2Fcss%3Ffamily%3DLato&data=02%7C01%7Caharui%
>> 40adobe.co
>> >>m%7C335f9e4addc14bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
>> cee1%7
>> >>C0%7C0%7C636559509319053690&sdata=yA7%2Bh88X94JpycunvMJSNuCflIoOkddb
>> ODAux
>> >>creWGM%3D&reserved=0
>> >> "
>> >> >> > > rel="stylesheet">
>> >> >> > > * </inject_html>
>> >> >> > > *
>> >> >> > > * @langversion 3.0
>> >> >> > > * @playerversion Flash 10.2
>> >> >> > > * @playerversion AIR 2.6
>> >> >> > > * @productversion Royale 0.9.2
>> >> >> > > */
>> >> >> > > public function JewelThemeClasses()
>> >> >> > > {
>> >> >> > > super();
>> >> >> > > }
>> >> >> > > }
>> >> >> > >
>> >> >> > > }
>> >> >> > >
>> >> >> > > But this is not working since I don't get anything injected in
>> >>the
>> >> >> html
>> >> >> > >
>> >> >> > > anyone knows what could be the problem?
>> >> >> > >
>> >> >> > > thanks
>> >> >> > >
>> >> >> > >
>> >> >> > > --
>> >> >> > > Carlos Rovira
>> >> >> > >
>> >>https://na01.safelinks.protection.outlook.com/?url=
>> http%3A%2F%2Fabout.me%
>> >>2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
>> 7C335f9e4addc14bb6bbb708
>> >>d58380469b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
>> 7C63655950931905369
>>
>>>>0&sdata=%2FNmOa%2BKcyD93kNDolxbReQZMhVrgPTzrzkl%2FYwSRGTs%3D&reserved=0
>> >> >> > >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > --
>> >> >> >
>> >> >> > Piotr Zarzycki
>> >> >> >
>> >> >> > Patreon:
>> >>*https://na01.safelinks.protection.outlook.com/?url=
>> https%3A%2F%2Fwww.pat
>> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
>> %7C335f9e4addc1
>> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
>> cee1%7C0%7C0%7C6365595
>> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
>> Y6k6l9ER6rkZ4%3D&reserved
>> >>=0
>> >> >> >
>> >><https://na01.safelinks.protection.outlook.com/?url=
>> https%3A%2F%2Fwww.pat
>> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
>> %7C335f9e4addc1
>> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
>> cee1%7C0%7C0%7C6365595
>> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
>> Y6k6l9ER6rkZ4%3D&reserved
>> >>=0>*
>> >> >> >
>> >> >>
>> >> >>
>> >> >>
>> >> >> --
>> >> >> Carlos Rovira
>> >> >>
>> >>https://na01.safelinks.protection.outlook.com/?url=
>> http%3A%2F%2Fabout.me%
>> >>2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
>> 7C335f9e4addc14bb6bbb708
>> >>d58380469b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
>> 7C63655950931905369
>>
>>>>0&sdata=%2FNmOa%2BKcyD93kNDolxbReQZMhVrgPTzrzkl%2FYwSRGTs%3D&reserved=0
>> >> >>
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> >
>> >> > Piotr Zarzycki
>> >> >
>> >> > Patreon:
>> >>*https://na01.safelinks.protection.outlook.com/?url=
>> https%3A%2F%2Fwww.pat
>> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
>> %7C335f9e4addc1
>> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
>> cee1%7C0%7C0%7C6365595
>> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
>> Y6k6l9ER6rkZ4%3D&reserved
>> >>=0
>> >> >
>> >><https://na01.safelinks.protection.outlook.com/?url=
>> https%3A%2F%2Fwww.pat
>> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
>> %7C335f9e4addc1
>> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
>> cee1%7C0%7C0%7C6365595
>> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
>> Y6k6l9ER6rkZ4%3D&reserved
>> >>=0>*
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >>
>> >> Piotr Zarzycki
>> >>
>> >> Patreon:
>> >>*https://na01.safelinks.protection.outlook.com/?url=
>> https%3A%2F%2Fwww.pat
>> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
>> %7C335f9e4addc1
>> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
>> cee1%7C0%7C0%7C6365595
>> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
>> Y6k6l9ER6rkZ4%3D&reserved
>> >>=0
>> >>
>> >><https://na01.safelinks.protection.outlook.com/?url=
>> https%3A%2F%2Fwww.pat
>> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
>> %7C335f9e4addc1
>> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
>> cee1%7C0%7C0%7C6365595
>> >>09319063694&sdata=o76Gym4fOsBicseiddsVm1FQHtzgLu
>> zQ5MkEqFyBckI%3D&reserved
>> >>=0>*
>> >>
>> >
>> >
>> >
>> >--
>> >Carlos Rovira
>> >https://na01.safelinks.protection.outlook.com/?url=
>> http%3A%2F%2Fabout.me%2
>> >Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
>> 7C335f9e4addc14bb6bbb708d5
>> >8380469b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
>> 7C636559509319063694&s
>> >data=7moxBd2GSpHpn7AAtOwOD9MZSKIvjLai7e%2B5WK5BeOA%3D&reserved=0
>>
>>
>
>
>--
>Carlos Rovira
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2
>Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%7C90d36aa7b58d4a8f037a08d5
>839081a1%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636559579033937825&s
>data=50jZM6zOSthV%2FLV2ATtlQR3ymCzo3eKGGhk6ccYp3Fs%3D&reserved=0
Re: How to inject html with a theme class
Posted by Carlos Rovira <ca...@apache.org>.
Hi Alex,
the 4 method seems ok but I'm getting this error:
[INFO] Executing MXMLC in tool group Royale with args:
[-load-config=/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/royale/JewelExample/target/compile-app-
config.xml,
-js-output=/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/royale/JewelExample/target/javascript,
-compiler.targets=JSRoyale,SWF,
/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/royale/JewelExample/src/main/royale/
App.mxml]
/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/royale/JewelExample/JewelTheme-
0.9.2-SNAPSHOT.swc:defaults.css(28): col: 11 Error: ewelThemeFontInjec is
not defined.
if I unzip the theme -js.swc I can see JewelThemeFontInject.js file inside
in the out folder (in its own package), so I think the theme SWC is ok.
I put the declaration in
.royale *, . royale *:before, . royale *:after {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
fonts: ClassReference(JewelThemeFontInject) ;
}
so this is getting notice.
but the error show the name of the class without first letter Error:
ewelThemeFontInjec is not defined
any thoughts?
thanks!
2018-03-06 18:26 GMT+01:00 Alex Harui <ah...@adobe.com.invalid>:
> Only <inject_html> from classes actually linked into the final application
> will be used.
>
> I think there are a few choices:
> 1) require everyone use a particular html-template
> 2) require some bead be used
> 3) require a different Application subclass
> 4) try to hack it in as follows:
>
> In the defaults.css for Jewel, add
>
> .Jewel { fonts: ClassReference(JewelInjectHTML) }
>
> And create a JewelInjectHTML class with the desired <inject_html> on the
> constructor.
>
> That will have a bit of extra overhead, but might work.
>
> HTH,
> -Alex
>
> On 3/6/18, 8:35 AM, "carlos.rovira@gmail.com on behalf of Carlos Rovira"
> <carlos.rovira@gmail.com on behalf of carlosrovira@apache.org> wrote:
>
> >Hi Piotr,
> >
> >no, that's that I want to get in the resultant html file. I don't think I
> >understand your question, that's exactly what I'm asking, why that line is
> >not in the final HTML file, I suppose that is because is a theme file and
> >maybe the JewelThemeClasses.as is not used, but don't know how to make it
> >work
> >
> >thanks
> >
> >2018-03-06 17:06 GMT+01:00 Piotr Zarzycki <pi...@gmail.com>:
> >
> >> Link once again: <link
> >>href="https://na01.safelinks.protection.outlook.
> com/?url=https%3A%2F%2Ffo
> >>nts.googleapis.com%2Fcss%3Ffamily%3DLato&data=02%7C01%7Caharui%
> 40adobe.co
> >>m%7C335f9e4addc14bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
> cee1%7
> >>C0%7C0%7C636559509319053690&sdata=yA7%2Bh88X94JpycunvMJSNuCflIoOkddb
> ODAux
> >>creWGM%3D&reserved=0"
> >> rel="stylesheet">
> >>
> >> 2018-03-06 17:06 GMT+01:00 Piotr Zarzycki <pi...@gmail.com>:
> >>
> >> > I meant here something else. Do you have in your head something like
> >>that
> >> > after compilation in the html files ?
> >> >
> >> > <link
> >>href="https://na01.safelinks.protection.outlook.
> com/?url=https%3A%2F%2Ffo
> >>nts.googleapis.com%2Fcss%3Ffamily%3DLato&data=02%7C01%7Caharui%
> 40adobe.co
> >>m%7C335f9e4addc14bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
> cee1%7
> >>C0%7C0%7C636559509319053690&sdata=yA7%2Bh88X94JpycunvMJSNuCflIoOkddb
> ODAux
> >>creWGM%3D&reserved=0"
> >> > rel="stylesheet">
> >> >
> >> > 2018-03-06 17:01 GMT+01:00 Carlos Rovira <ca...@apache.org>:
> >> >
> >> >> Hi Piotr,
> >> >>
> >> >> I introduced a new line in Application.as in Jewel UI set to start
> >> >> implementing responsiveness in mobile:
> >> >>
> >> >> <meta name="viewport" content="width=device-width, initial-scale=1,
> >> >> minimum-scale=1, maximum-scale=1">
> >> >>
> >> >> this line is ok at that level since all jewel apps could be
> >>responsive
> >> >>
> >> >> that line appears ok in final html
> >> >>
> >> >> but the one in the theme, is not appearing in the html
> >> >>
> >> >> the rest seems ok with the normal script generated by Royale
> >> >>
> >> >>
> >> >>
> >> >> 2018-03-06 16:47 GMT+01:00 Piotr Zarzycki
> >><pi...@gmail.com>:
> >> >>
> >> >> > Hi Carlos,
> >> >> >
> >> >> > How looks like HTML output when you compile things using that
> >>stuff ?
> >> >> >
> >> >> > Thanks, Piotr
> >> >> >
> >> >> > 2018-03-06 16:40 GMT+01:00 Carlos Rovira <carlosrovira@apache.org
> >:
> >> >> >
> >> >> > > Hi
> >> >> > >
> >> >> > > I want the theme define the typography to use, to get this I'm
> >>using
> >> >> the
> >> >> > > inject_html tag in the constructor
> >> >> > >
> >> >> > > The only class I have in the theme is the following
> >> >> > >
> >> >> > >
> >> >> > > package
> >> >> > > {
> >> >> > >
> >> >> > > /**
> >> >> > > * @private
> >> >> > > * This class is used to link additional classes into
> >>JewelTheme.swc
> >> >> > > * beyond those that are found by dependecy analysis starting
> >> >> > > * from the classes specified in manifest.xml.
> >> >> > > */
> >> >> > > internal class JewelThemeClasses
> >> >> > > {
> >> >> > > /**
> >> >> > > * constructor.
> >> >> > > *
> >> >> > > * <inject_html>
> >> >> > > * <link
> >>href="https://na01.safelinks.protection.outlook.
> com/?url=https%3A%2F%2Ffo
> >>nts.googleapis.com%2Fcss%3Ffamily%3DLato&data=02%7C01%7Caharui%
> 40adobe.co
> >>m%7C335f9e4addc14bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
> cee1%7
> >>C0%7C0%7C636559509319053690&sdata=yA7%2Bh88X94JpycunvMJSNuCflIoOkddb
> ODAux
> >>creWGM%3D&reserved=0
> >> "
> >> >> > > rel="stylesheet">
> >> >> > > * </inject_html>
> >> >> > > *
> >> >> > > * @langversion 3.0
> >> >> > > * @playerversion Flash 10.2
> >> >> > > * @playerversion AIR 2.6
> >> >> > > * @productversion Royale 0.9.2
> >> >> > > */
> >> >> > > public function JewelThemeClasses()
> >> >> > > {
> >> >> > > super();
> >> >> > > }
> >> >> > > }
> >> >> > >
> >> >> > > }
> >> >> > >
> >> >> > > But this is not working since I don't get anything injected in
> >>the
> >> >> html
> >> >> > >
> >> >> > > anyone knows what could be the problem?
> >> >> > >
> >> >> > > thanks
> >> >> > >
> >> >> > >
> >> >> > > --
> >> >> > > Carlos Rovira
> >> >> > >
> >>https://na01.safelinks.protection.outlook.com/?url=
> http%3A%2F%2Fabout.me%
> >>2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
> 7C335f9e4addc14bb6bbb708
> >>d58380469b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
> 7C63655950931905369
> >>0&sdata=%2FNmOa%2BKcyD93kNDolxbReQZMhVrgPTzrzkl%2FYwSRGTs%3D&reserved=0
> >> >> > >
> >> >> >
> >> >> >
> >> >> >
> >> >> > --
> >> >> >
> >> >> > Piotr Zarzycki
> >> >> >
> >> >> > Patreon:
> >>*https://na01.safelinks.protection.outlook.com/?url=
> https%3A%2F%2Fwww.pat
> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
> %7C335f9e4addc1
> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
> cee1%7C0%7C0%7C6365595
> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
> Y6k6l9ER6rkZ4%3D&reserved
> >>=0
> >> >> >
> >><https://na01.safelinks.protection.outlook.com/?url=
> https%3A%2F%2Fwww.pat
> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
> %7C335f9e4addc1
> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
> cee1%7C0%7C0%7C6365595
> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
> Y6k6l9ER6rkZ4%3D&reserved
> >>=0>*
> >> >> >
> >> >>
> >> >>
> >> >>
> >> >> --
> >> >> Carlos Rovira
> >> >>
> >>https://na01.safelinks.protection.outlook.com/?url=
> http%3A%2F%2Fabout.me%
> >>2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
> 7C335f9e4addc14bb6bbb708
> >>d58380469b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
> 7C63655950931905369
> >>0&sdata=%2FNmOa%2BKcyD93kNDolxbReQZMhVrgPTzrzkl%2FYwSRGTs%3D&reserved=0
> >> >>
> >> >
> >> >
> >> >
> >> > --
> >> >
> >> > Piotr Zarzycki
> >> >
> >> > Patreon:
> >>*https://na01.safelinks.protection.outlook.com/?url=
> https%3A%2F%2Fwww.pat
> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
> %7C335f9e4addc1
> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
> cee1%7C0%7C0%7C6365595
> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
> Y6k6l9ER6rkZ4%3D&reserved
> >>=0
> >> >
> >><https://na01.safelinks.protection.outlook.com/?url=
> https%3A%2F%2Fwww.pat
> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
> %7C335f9e4addc1
> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
> cee1%7C0%7C0%7C6365595
> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
> Y6k6l9ER6rkZ4%3D&reserved
> >>=0>*
> >> >
> >>
> >>
> >>
> >> --
> >>
> >> Piotr Zarzycki
> >>
> >> Patreon:
> >>*https://na01.safelinks.protection.outlook.com/?url=
> https%3A%2F%2Fwww.pat
> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
> %7C335f9e4addc1
> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
> cee1%7C0%7C0%7C6365595
> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
> Y6k6l9ER6rkZ4%3D&reserved
> >>=0
> >>
> >><https://na01.safelinks.protection.outlook.com/?url=
> https%3A%2F%2Fwww.pat
> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
> %7C335f9e4addc1
> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
> cee1%7C0%7C0%7C6365595
> >>09319063694&sdata=o76Gym4fOsBicseiddsVm1FQHtzgLu
> zQ5MkEqFyBckI%3D&reserved
> >>=0>*
> >>
> >
> >
> >
> >--
> >Carlos Rovira
> >https://na01.safelinks.protection.outlook.com/?url=
> http%3A%2F%2Fabout.me%2
> >Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
> 7C335f9e4addc14bb6bbb708d5
> >8380469b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
> 7C636559509319063694&s
> >data=7moxBd2GSpHpn7AAtOwOD9MZSKIvjLai7e%2B5WK5BeOA%3D&reserved=0
>
>
--
Carlos Rovira
http://about.me/carlosrovira
Re: How to inject html with a theme class
Posted by Alex Harui <ah...@adobe.com.INVALID>.
Only <inject_html> from classes actually linked into the final application
will be used.
I think there are a few choices:
1) require everyone use a particular html-template
2) require some bead be used
3) require a different Application subclass
4) try to hack it in as follows:
In the defaults.css for Jewel, add
.Jewel { fonts: ClassReference(JewelInjectHTML) }
And create a JewelInjectHTML class with the desired <inject_html> on the
constructor.
That will have a bit of extra overhead, but might work.
HTH,
-Alex
On 3/6/18, 8:35 AM, "carlos.rovira@gmail.com on behalf of Carlos Rovira"
<carlos.rovira@gmail.com on behalf of carlosrovira@apache.org> wrote:
>Hi Piotr,
>
>no, that's that I want to get in the resultant html file. I don't think I
>understand your question, that's exactly what I'm asking, why that line is
>not in the final HTML file, I suppose that is because is a theme file and
>maybe the JewelThemeClasses.as is not used, but don't know how to make it
>work
>
>thanks
>
>2018-03-06 17:06 GMT+01:00 Piotr Zarzycki <pi...@gmail.com>:
>
>> Link once again: <link
>>href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ffo
>>nts.googleapis.com%2Fcss%3Ffamily%3DLato&data=02%7C01%7Caharui%40adobe.co
>>m%7C335f9e4addc14bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178decee1%7
>>C0%7C0%7C636559509319053690&sdata=yA7%2Bh88X94JpycunvMJSNuCflIoOkddbODAux
>>creWGM%3D&reserved=0"
>> rel="stylesheet">
>>
>> 2018-03-06 17:06 GMT+01:00 Piotr Zarzycki <pi...@gmail.com>:
>>
>> > I meant here something else. Do you have in your head something like
>>that
>> > after compilation in the html files ?
>> >
>> > <link
>>href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ffo
>>nts.googleapis.com%2Fcss%3Ffamily%3DLato&data=02%7C01%7Caharui%40adobe.co
>>m%7C335f9e4addc14bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178decee1%7
>>C0%7C0%7C636559509319053690&sdata=yA7%2Bh88X94JpycunvMJSNuCflIoOkddbODAux
>>creWGM%3D&reserved=0"
>> > rel="stylesheet">
>> >
>> > 2018-03-06 17:01 GMT+01:00 Carlos Rovira <ca...@apache.org>:
>> >
>> >> Hi Piotr,
>> >>
>> >> I introduced a new line in Application.as in Jewel UI set to start
>> >> implementing responsiveness in mobile:
>> >>
>> >> <meta name="viewport" content="width=device-width, initial-scale=1,
>> >> minimum-scale=1, maximum-scale=1">
>> >>
>> >> this line is ok at that level since all jewel apps could be
>>responsive
>> >>
>> >> that line appears ok in final html
>> >>
>> >> but the one in the theme, is not appearing in the html
>> >>
>> >> the rest seems ok with the normal script generated by Royale
>> >>
>> >>
>> >>
>> >> 2018-03-06 16:47 GMT+01:00 Piotr Zarzycki
>><pi...@gmail.com>:
>> >>
>> >> > Hi Carlos,
>> >> >
>> >> > How looks like HTML output when you compile things using that
>>stuff ?
>> >> >
>> >> > Thanks, Piotr
>> >> >
>> >> > 2018-03-06 16:40 GMT+01:00 Carlos Rovira <ca...@apache.org>:
>> >> >
>> >> > > Hi
>> >> > >
>> >> > > I want the theme define the typography to use, to get this I'm
>>using
>> >> the
>> >> > > inject_html tag in the constructor
>> >> > >
>> >> > > The only class I have in the theme is the following
>> >> > >
>> >> > >
>> >> > > package
>> >> > > {
>> >> > >
>> >> > > /**
>> >> > > * @private
>> >> > > * This class is used to link additional classes into
>>JewelTheme.swc
>> >> > > * beyond those that are found by dependecy analysis starting
>> >> > > * from the classes specified in manifest.xml.
>> >> > > */
>> >> > > internal class JewelThemeClasses
>> >> > > {
>> >> > > /**
>> >> > > * constructor.
>> >> > > *
>> >> > > * <inject_html>
>> >> > > * <link
>>href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ffo
>>nts.googleapis.com%2Fcss%3Ffamily%3DLato&data=02%7C01%7Caharui%40adobe.co
>>m%7C335f9e4addc14bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178decee1%7
>>C0%7C0%7C636559509319053690&sdata=yA7%2Bh88X94JpycunvMJSNuCflIoOkddbODAux
>>creWGM%3D&reserved=0
>> "
>> >> > > rel="stylesheet">
>> >> > > * </inject_html>
>> >> > > *
>> >> > > * @langversion 3.0
>> >> > > * @playerversion Flash 10.2
>> >> > > * @playerversion AIR 2.6
>> >> > > * @productversion Royale 0.9.2
>> >> > > */
>> >> > > public function JewelThemeClasses()
>> >> > > {
>> >> > > super();
>> >> > > }
>> >> > > }
>> >> > >
>> >> > > }
>> >> > >
>> >> > > But this is not working since I don't get anything injected in
>>the
>> >> html
>> >> > >
>> >> > > anyone knows what could be the problem?
>> >> > >
>> >> > > thanks
>> >> > >
>> >> > >
>> >> > > --
>> >> > > Carlos Rovira
>> >> > >
>>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%
>>2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%7C335f9e4addc14bb6bbb708
>>d58380469b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C63655950931905369
>>0&sdata=%2FNmOa%2BKcyD93kNDolxbReQZMhVrgPTzrzkl%2FYwSRGTs%3D&reserved=0
>> >> > >
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> >
>> >> > Piotr Zarzycki
>> >> >
>> >> > Patreon:
>>*https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.pat
>>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com%7C335f9e4addc1
>>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365595
>>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzFY6k6l9ER6rkZ4%3D&reserved
>>=0
>> >> >
>><https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.pat
>>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com%7C335f9e4addc1
>>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365595
>>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzFY6k6l9ER6rkZ4%3D&reserved
>>=0>*
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> Carlos Rovira
>> >>
>>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%
>>2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%7C335f9e4addc14bb6bbb708
>>d58380469b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C63655950931905369
>>0&sdata=%2FNmOa%2BKcyD93kNDolxbReQZMhVrgPTzrzkl%2FYwSRGTs%3D&reserved=0
>> >>
>> >
>> >
>> >
>> > --
>> >
>> > Piotr Zarzycki
>> >
>> > Patreon:
>>*https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.pat
>>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com%7C335f9e4addc1
>>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365595
>>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzFY6k6l9ER6rkZ4%3D&reserved
>>=0
>> >
>><https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.pat
>>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com%7C335f9e4addc1
>>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365595
>>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzFY6k6l9ER6rkZ4%3D&reserved
>>=0>*
>> >
>>
>>
>>
>> --
>>
>> Piotr Zarzycki
>>
>> Patreon:
>>*https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.pat
>>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com%7C335f9e4addc1
>>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365595
>>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzFY6k6l9ER6rkZ4%3D&reserved
>>=0
>>
>><https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.pat
>>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com%7C335f9e4addc1
>>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365595
>>09319063694&sdata=o76Gym4fOsBicseiddsVm1FQHtzgLuzQ5MkEqFyBckI%3D&reserved
>>=0>*
>>
>
>
>
>--
>Carlos Rovira
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2
>Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%7C335f9e4addc14bb6bbb708d5
>8380469b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636559509319063694&s
>data=7moxBd2GSpHpn7AAtOwOD9MZSKIvjLai7e%2B5WK5BeOA%3D&reserved=0
Re: How to inject html with a theme class
Posted by Carlos Rovira <ca...@apache.org>.
Hi Piotr,
no, that's that I want to get in the resultant html file. I don't think I
understand your question, that's exactly what I'm asking, why that line is
not in the final HTML file, I suppose that is because is a theme file and
maybe the JewelThemeClasses.as is not used, but don't know how to make it
work
thanks
2018-03-06 17:06 GMT+01:00 Piotr Zarzycki <pi...@gmail.com>:
> Link once again: <link href="https://fonts.googleapis.com/css?family=Lato"
> rel="stylesheet">
>
> 2018-03-06 17:06 GMT+01:00 Piotr Zarzycki <pi...@gmail.com>:
>
> > I meant here something else. Do you have in your head something like that
> > after compilation in the html files ?
> >
> > <link href="https://fonts.googleapis.com/css?family=Lato"
> > rel="stylesheet">
> >
> > 2018-03-06 17:01 GMT+01:00 Carlos Rovira <ca...@apache.org>:
> >
> >> Hi Piotr,
> >>
> >> I introduced a new line in Application.as in Jewel UI set to start
> >> implementing responsiveness in mobile:
> >>
> >> <meta name="viewport" content="width=device-width, initial-scale=1,
> >> minimum-scale=1, maximum-scale=1">
> >>
> >> this line is ok at that level since all jewel apps could be responsive
> >>
> >> that line appears ok in final html
> >>
> >> but the one in the theme, is not appearing in the html
> >>
> >> the rest seems ok with the normal script generated by Royale
> >>
> >>
> >>
> >> 2018-03-06 16:47 GMT+01:00 Piotr Zarzycki <pi...@gmail.com>:
> >>
> >> > Hi Carlos,
> >> >
> >> > How looks like HTML output when you compile things using that stuff ?
> >> >
> >> > Thanks, Piotr
> >> >
> >> > 2018-03-06 16:40 GMT+01:00 Carlos Rovira <ca...@apache.org>:
> >> >
> >> > > Hi
> >> > >
> >> > > I want the theme define the typography to use, to get this I'm using
> >> the
> >> > > inject_html tag in the constructor
> >> > >
> >> > > The only class I have in the theme is the following
> >> > >
> >> > >
> >> > > package
> >> > > {
> >> > >
> >> > > /**
> >> > > * @private
> >> > > * This class is used to link additional classes into JewelTheme.swc
> >> > > * beyond those that are found by dependecy analysis starting
> >> > > * from the classes specified in manifest.xml.
> >> > > */
> >> > > internal class JewelThemeClasses
> >> > > {
> >> > > /**
> >> > > * constructor.
> >> > > *
> >> > > * <inject_html>
> >> > > * <link href="https://fonts.googleapis.com/css?family=Lato
> "
> >> > > rel="stylesheet">
> >> > > * </inject_html>
> >> > > *
> >> > > * @langversion 3.0
> >> > > * @playerversion Flash 10.2
> >> > > * @playerversion AIR 2.6
> >> > > * @productversion Royale 0.9.2
> >> > > */
> >> > > public function JewelThemeClasses()
> >> > > {
> >> > > super();
> >> > > }
> >> > > }
> >> > >
> >> > > }
> >> > >
> >> > > But this is not working since I don't get anything injected in the
> >> html
> >> > >
> >> > > anyone knows what could be the problem?
> >> > >
> >> > > thanks
> >> > >
> >> > >
> >> > > --
> >> > > Carlos Rovira
> >> > > http://about.me/carlosrovira
> >> > >
> >> >
> >> >
> >> >
> >> > --
> >> >
> >> > Piotr Zarzycki
> >> >
> >> > Patreon: *https://www.patreon.com/piotrzarzycki
> >> > <https://www.patreon.com/piotrzarzycki>*
> >> >
> >>
> >>
> >>
> >> --
> >> Carlos Rovira
> >> http://about.me/carlosrovira
> >>
> >
> >
> >
> > --
> >
> > Piotr Zarzycki
> >
> > Patreon: *https://www.patreon.com/piotrzarzycki
> > <https://www.patreon.com/piotrzarzycki>*
> >
>
>
>
> --
>
> Piotr Zarzycki
>
> Patreon: *https://www.patreon.com/piotrzarzycki
> <https://www.patreon.com/piotrzarzycki>*
>
--
Carlos Rovira
http://about.me/carlosrovira
Re: How to inject html with a theme class
Posted by Piotr Zarzycki <pi...@gmail.com>.
Link once again: <link href="https://fonts.googleapis.com/css?family=Lato"
rel="stylesheet">
2018-03-06 17:06 GMT+01:00 Piotr Zarzycki <pi...@gmail.com>:
> I meant here something else. Do you have in your head something like that
> after compilation in the html files ?
>
> <link href="https://fonts.googleapis.com/css?family=Lato"
> rel="stylesheet">
>
> 2018-03-06 17:01 GMT+01:00 Carlos Rovira <ca...@apache.org>:
>
>> Hi Piotr,
>>
>> I introduced a new line in Application.as in Jewel UI set to start
>> implementing responsiveness in mobile:
>>
>> <meta name="viewport" content="width=device-width, initial-scale=1,
>> minimum-scale=1, maximum-scale=1">
>>
>> this line is ok at that level since all jewel apps could be responsive
>>
>> that line appears ok in final html
>>
>> but the one in the theme, is not appearing in the html
>>
>> the rest seems ok with the normal script generated by Royale
>>
>>
>>
>> 2018-03-06 16:47 GMT+01:00 Piotr Zarzycki <pi...@gmail.com>:
>>
>> > Hi Carlos,
>> >
>> > How looks like HTML output when you compile things using that stuff ?
>> >
>> > Thanks, Piotr
>> >
>> > 2018-03-06 16:40 GMT+01:00 Carlos Rovira <ca...@apache.org>:
>> >
>> > > Hi
>> > >
>> > > I want the theme define the typography to use, to get this I'm using
>> the
>> > > inject_html tag in the constructor
>> > >
>> > > The only class I have in the theme is the following
>> > >
>> > >
>> > > package
>> > > {
>> > >
>> > > /**
>> > > * @private
>> > > * This class is used to link additional classes into JewelTheme.swc
>> > > * beyond those that are found by dependecy analysis starting
>> > > * from the classes specified in manifest.xml.
>> > > */
>> > > internal class JewelThemeClasses
>> > > {
>> > > /**
>> > > * constructor.
>> > > *
>> > > * <inject_html>
>> > > * <link href="https://fonts.googleapis.com/css?family=Lato"
>> > > rel="stylesheet">
>> > > * </inject_html>
>> > > *
>> > > * @langversion 3.0
>> > > * @playerversion Flash 10.2
>> > > * @playerversion AIR 2.6
>> > > * @productversion Royale 0.9.2
>> > > */
>> > > public function JewelThemeClasses()
>> > > {
>> > > super();
>> > > }
>> > > }
>> > >
>> > > }
>> > >
>> > > But this is not working since I don't get anything injected in the
>> html
>> > >
>> > > anyone knows what could be the problem?
>> > >
>> > > thanks
>> > >
>> > >
>> > > --
>> > > Carlos Rovira
>> > > http://about.me/carlosrovira
>> > >
>> >
>> >
>> >
>> > --
>> >
>> > Piotr Zarzycki
>> >
>> > Patreon: *https://www.patreon.com/piotrzarzycki
>> > <https://www.patreon.com/piotrzarzycki>*
>> >
>>
>>
>>
>> --
>> Carlos Rovira
>> http://about.me/carlosrovira
>>
>
>
>
> --
>
> Piotr Zarzycki
>
> Patreon: *https://www.patreon.com/piotrzarzycki
> <https://www.patreon.com/piotrzarzycki>*
>
--
Piotr Zarzycki
Patreon: *https://www.patreon.com/piotrzarzycki
<https://www.patreon.com/piotrzarzycki>*
Re: How to inject html with a theme class
Posted by Piotr Zarzycki <pi...@gmail.com>.
I meant here something else. Do you have in your head something like that
after compilation in the html files ?
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
2018-03-06 17:01 GMT+01:00 Carlos Rovira <ca...@apache.org>:
> Hi Piotr,
>
> I introduced a new line in Application.as in Jewel UI set to start
> implementing responsiveness in mobile:
>
> <meta name="viewport" content="width=device-width, initial-scale=1,
> minimum-scale=1, maximum-scale=1">
>
> this line is ok at that level since all jewel apps could be responsive
>
> that line appears ok in final html
>
> but the one in the theme, is not appearing in the html
>
> the rest seems ok with the normal script generated by Royale
>
>
>
> 2018-03-06 16:47 GMT+01:00 Piotr Zarzycki <pi...@gmail.com>:
>
> > Hi Carlos,
> >
> > How looks like HTML output when you compile things using that stuff ?
> >
> > Thanks, Piotr
> >
> > 2018-03-06 16:40 GMT+01:00 Carlos Rovira <ca...@apache.org>:
> >
> > > Hi
> > >
> > > I want the theme define the typography to use, to get this I'm using
> the
> > > inject_html tag in the constructor
> > >
> > > The only class I have in the theme is the following
> > >
> > >
> > > package
> > > {
> > >
> > > /**
> > > * @private
> > > * This class is used to link additional classes into JewelTheme.swc
> > > * beyond those that are found by dependecy analysis starting
> > > * from the classes specified in manifest.xml.
> > > */
> > > internal class JewelThemeClasses
> > > {
> > > /**
> > > * constructor.
> > > *
> > > * <inject_html>
> > > * <link href="https://fonts.googleapis.com/css?family=Lato"
> > > rel="stylesheet">
> > > * </inject_html>
> > > *
> > > * @langversion 3.0
> > > * @playerversion Flash 10.2
> > > * @playerversion AIR 2.6
> > > * @productversion Royale 0.9.2
> > > */
> > > public function JewelThemeClasses()
> > > {
> > > super();
> > > }
> > > }
> > >
> > > }
> > >
> > > But this is not working since I don't get anything injected in the html
> > >
> > > anyone knows what could be the problem?
> > >
> > > thanks
> > >
> > >
> > > --
> > > Carlos Rovira
> > > http://about.me/carlosrovira
> > >
> >
> >
> >
> > --
> >
> > Piotr Zarzycki
> >
> > Patreon: *https://www.patreon.com/piotrzarzycki
> > <https://www.patreon.com/piotrzarzycki>*
> >
>
>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>
--
Piotr Zarzycki
Patreon: *https://www.patreon.com/piotrzarzycki
<https://www.patreon.com/piotrzarzycki>*
Re: How to inject html with a theme class
Posted by Carlos Rovira <ca...@apache.org>.
Hi Piotr,
I introduced a new line in Application.as in Jewel UI set to start
implementing responsiveness in mobile:
<meta name="viewport" content="width=device-width, initial-scale=1,
minimum-scale=1, maximum-scale=1">
this line is ok at that level since all jewel apps could be responsive
that line appears ok in final html
but the one in the theme, is not appearing in the html
the rest seems ok with the normal script generated by Royale
2018-03-06 16:47 GMT+01:00 Piotr Zarzycki <pi...@gmail.com>:
> Hi Carlos,
>
> How looks like HTML output when you compile things using that stuff ?
>
> Thanks, Piotr
>
> 2018-03-06 16:40 GMT+01:00 Carlos Rovira <ca...@apache.org>:
>
> > Hi
> >
> > I want the theme define the typography to use, to get this I'm using the
> > inject_html tag in the constructor
> >
> > The only class I have in the theme is the following
> >
> >
> > package
> > {
> >
> > /**
> > * @private
> > * This class is used to link additional classes into JewelTheme.swc
> > * beyond those that are found by dependecy analysis starting
> > * from the classes specified in manifest.xml.
> > */
> > internal class JewelThemeClasses
> > {
> > /**
> > * constructor.
> > *
> > * <inject_html>
> > * <link href="https://fonts.googleapis.com/css?family=Lato"
> > rel="stylesheet">
> > * </inject_html>
> > *
> > * @langversion 3.0
> > * @playerversion Flash 10.2
> > * @playerversion AIR 2.6
> > * @productversion Royale 0.9.2
> > */
> > public function JewelThemeClasses()
> > {
> > super();
> > }
> > }
> >
> > }
> >
> > But this is not working since I don't get anything injected in the html
> >
> > anyone knows what could be the problem?
> >
> > thanks
> >
> >
> > --
> > Carlos Rovira
> > http://about.me/carlosrovira
> >
>
>
>
> --
>
> Piotr Zarzycki
>
> Patreon: *https://www.patreon.com/piotrzarzycki
> <https://www.patreon.com/piotrzarzycki>*
>
--
Carlos Rovira
http://about.me/carlosrovira
Re: How to inject html with a theme class
Posted by Piotr Zarzycki <pi...@gmail.com>.
Hi Carlos,
How looks like HTML output when you compile things using that stuff ?
Thanks, Piotr
2018-03-06 16:40 GMT+01:00 Carlos Rovira <ca...@apache.org>:
> Hi
>
> I want the theme define the typography to use, to get this I'm using the
> inject_html tag in the constructor
>
> The only class I have in the theme is the following
>
>
> package
> {
>
> /**
> * @private
> * This class is used to link additional classes into JewelTheme.swc
> * beyond those that are found by dependecy analysis starting
> * from the classes specified in manifest.xml.
> */
> internal class JewelThemeClasses
> {
> /**
> * constructor.
> *
> * <inject_html>
> * <link href="https://fonts.googleapis.com/css?family=Lato"
> rel="stylesheet">
> * </inject_html>
> *
> * @langversion 3.0
> * @playerversion Flash 10.2
> * @playerversion AIR 2.6
> * @productversion Royale 0.9.2
> */
> public function JewelThemeClasses()
> {
> super();
> }
> }
>
> }
>
> But this is not working since I don't get anything injected in the html
>
> anyone knows what could be the problem?
>
> thanks
>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>
--
Piotr Zarzycki
Patreon: *https://www.patreon.com/piotrzarzycki
<https://www.patreon.com/piotrzarzycki>*