I haven't tested the html5 set, so there could just be a bug there, but otherwise, yes, it should work. I'll try it this evening if you haven't figured it out. It might have to do with the defaults.css in the FlexJSUI.swc.
-Alex On 5/2/13 4:33 PM, "OmPrakash Muppirala" <bigosma...@gmail.com> wrote: > Okay, I switched to using the FB 4.7 based on the instructions here: > https://cwiki.apache.org/confluence/display/FLEX/Using+FlexJS+with+Adobe+Flash > +Builder. > It > worked fine for me. > > After getting the basic example working on both the swf and js side, I am > trying to do something like this: > > <basic:ViewBase xmlns:fx="http://ns.adobe.com/mxml/2009" > xmlns:basic="library://ns.apache.org/flexjs/basic" > xmlns:html5="library://ns.apache.org/flexjs/html5"> > <html5:TextButton text="Start Timer" x="100" y="75" /> > </basic:ViewBase> > > Nothing shows up on the screen. > > > Whereas this works fine: > > <basic:ViewBase xmlns:fx="http://ns.adobe.com/mxml/2009" > xmlns:basic="library://ns.apache.org/flexjs/basic" > xmlns:html5="library://ns.apache.org/flexjs/html5"> > <basic:TextButton text="Start Timer" x="100" y="75" /> > </basic:ViewBase> > > > Before I go about debugging, is this even a valid approach? Should I > expect to see a html5 based button in the first snippet? > > Thanks, > Om > > > On Wed, May 1, 2013 at 5:22 PM, Alex Harui <aha...@adobe.com> wrote: > >> I haven't tried Cygwin either. Are you planning on making compiler >> changes? >> If so, try getting set up in Eclipse. Otherwise, can you try the >> FlexJSOverlay instructions and run from FB? >> >> >> On 5/1/13 4:53 PM, "OmPrakash Muppirala" <bigosma...@gmail.com> wrote: >> >>> On Wed, May 1, 2013 at 4:47 PM, Alex Harui <aha...@adobe.com> wrote: >>> >>>> The .bat file is out of date. Peter and I are on Macs. Erik too, I >> think. >>>> I think you'll be able to fix it if you compare it to the Mac script and >>>> make the appropriate changes. >>>> >>> >>> Do you mean the "mxmlc" file when you say "Mac script"? >>> >>> I tried the mxmlc script in Cygwin and I am getting this error now: >>> >>> ==================================================================== >>> Command: >>> omuppira@omuppira >> /c/p/flex_os/workspace/flexroot/git/flex-falcon/compiler.jx >>> $ mxmlc -js-output-type=FLEXJS >>> -closure-lib="C:\p\flex_os\workspace\googleclosu >>> re" >>> >> -sdk-js-lib="C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\js\Fl >>> exJS\src" >>> -library-path+="C:\p\flex_os\workspace\flexroot\git\flex-asjs\framewo >>> rks\as\libs" >>> "C:\p\flex_os\workspace\flexroot\git\flex-asjs\examples\FlexJSTest >>> _SVG\src\FlexJSTest_again.mxml" >>> >>> Result: >>> Apache Flex Compiler (mxmlc) >>> Version 4.10.0 build 0 >>> Copyright 2012 The Apache Software Foundation. >>> >>> command line: Error: unknown configuration variable 'js-output-type' >>> >>> Use 'mxmlc -help' for information about using the command line. >>> ==================================================================== >>> >>> Perhaps the wiki page is out of date as well? >>> >>> Thanks, >>> Om >>> >>> >>> >>>> >>>> >>>> On 5/1/13 4:39 PM, "OmPrakash Muppirala" <bigosma...@gmail.com> wrote: >>>> >>>>> I am trying to test my SVG based controls using compiler.jx and FlexJS. >>>>> Here is the error I am seeing: >>>>> >>>>> Command: >>>>> >>>>> C:\p\flex_os\workspace\flexroot\git\flex-falcon\compiler.jx\bin>mxmlc >>>>> -js-output >>>>> -type=FLEXJS -closure-lib="C:\p\flex_os\workspace\googleclosure" >>>>> -sdk-js-lib="C: >>>>> \p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\js\FlexJS\src" >>>>> -library-p >>>>> ath+="C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\libs" >>>>> "C:\p\fl >>>>> >>>> >> >> ex_os\workspace\flexroot\git\flex-asjs\examples\FlexJSTest_SVG\src\FlexJSTest >> >> >> _ >>>>> ag >>>>> ain.mxml" >>>>> >>>>> Result: >>>>> >>>>> Using Falcon codebase: >>>>> C:\p\flex_os\workspace\flexroot\git\flex-falcon\compiler. >>>>> jx\bin\.. >>>>> Using Flex SDK: C:\p\flex_os\workspace\flexroot\sdk\branches\develop >>>>> command line >>>>> unknown configuration variable 'closure-lib'. >>>>> >>>>> I am following the steps listed here: >>>>> >>>>> https://cwiki.apache.org/confluence/display/FLEX/FlexJS+Status under >> the >>>>> MXML -> JS section. >>>>> >>>>> What am I doing wrong? >>>>> >>>>> Thanks, >>>>> Om >>>> >>>> -- >>>> Alex Harui >>>> Flex SDK Team >>>> Adobe Systems, Inc. >>>> http://blogs.adobe.com/aharui >>>> >>>> >> >> -- >> Alex Harui >> Flex SDK Team >> Adobe Systems, Inc. >> http://blogs.adobe.com/aharui >> >> -- Alex Harui Flex SDK Team Adobe Systems, Inc. http://blogs.adobe.com/aharui