Hi Om,

I started with Alex's overlay approach and it goes well to start seeing a
concrete snapshot in time, but as I tried to develop with that setup I find
it was very difficult, so I end creating projects for FlexJSUI
(at flex-asjs/frameworks/as level and creating a launch configuration for
build.xml that consider the compile-config.xml here and the env variables),
and for each example I want to test or contribute. For each example I
create my own pair (SWF-JS) of external run/debug tool configuration so I
can get a build with just one click.

I downloaded Sublime Text 2 for javascript/createjs (for the latest there's
a Syntax plugin for Sublime Text 2).

Right now it seems a convenient environment now that I'm entering this
stuff...I have builds for various examples, and al is working right but
HTML5 example in JS mode, that is failing for me with the following error:

Finding file for class: flash.events.Event

Could not find file for class: flash.events.Event

java.io.FileNotFoundException:  (No such file or directory)

at java.io.FileInputStream.open(Native Method)

at java.io.FileInputStream.<init>(FileInputStream.java:120)

at java.io.FileInputStream.<init>(FileInputStream.java:79)

at
org.apache.flex.compiler.internal.graph.GoogDepsWriter.getDirectDependencies(GoogDepsWriter.java:343)

at
org.apache.flex.compiler.internal.graph.GoogDepsWriter.addDeps(GoogDepsWriter.java:111)

at
org.apache.flex.compiler.internal.graph.GoogDepsWriter.addDeps(GoogDepsWriter.java:122)

at
org.apache.flex.compiler.internal.graph.GoogDepsWriter.addDeps(GoogDepsWriter.java:122)

at
org.apache.flex.compiler.internal.graph.GoogDepsWriter.buildDB(GoogDepsWriter.java:72)

at
org.apache.flex.compiler.internal.graph.GoogDepsWriter.generateDeps(GoogDepsWriter.java:51)

at
org.apache.flex.compiler.internal.codegen.mxml.flexjs.MXMLFlexJSPublisher.publish(MXMLFlexJSPublisher.java:139)

at org.apache.flex.compiler.clients.MXMLJSC.compile(MXMLJSC.java:413)

at org.apache.flex.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:253)

at org.apache.flex.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:211)

at org.apache.flex.compiler.clients.MXMLJSC.main(MXMLJSC.java:173)

Finding file for class: models.MyModel

I was trying to find a reference to flash.events.Event that would make this
error happens but I can't.



2013/5/3 Alex Harui <aha...@adobe.com>

> You should be able to run ant in asjs/frameworks/as which will generate a
> new SWC in asjs/frameworks/libs.
>
> Then shutdown FB and replace the SWC in the frameworks/libs of your
> overlaid
> SDK and restart FB.
>
> If you are doing development on the source in the SWC you can create a FB
> project for the FlexJSUI.swc and link that SWC into your app's project like
> normal SWC development.   Just remember that, like all SWC development,
> some
> structural changes like changes to the manifests and css may not be picked
> up without restarting FB.
>
>
> On 5/2/13 10:40 PM, "OmPrakash Muppirala" <bigosma...@gmail.com> wrote:
>
> > I see the change in develop, but I am not able to build using develop.
>  Can
> > you push out a overlay zip file build?
> >
> > If this is not a sustainable workflow, maybe we can figure out how to fix
> > the build for me first?
> >
> > Thanks,
> > Om
> >
> > On Thu, May 2, 2013 at 10:04 PM, Alex Harui <aha...@adobe.com> wrote:
> >
> >> OK, I pushed some changes that make the button show up and should allow
> you
> >> to make progress.
> >>
> >>
> >> On 5/2/13 4:41 PM, "Alex Harui" <aha...@adobe.com> wrote:
> >>
> >>> 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+Flas
> >>>>
> >> h
> >>>> +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\FlexJSTes>
> >> >>
> >> t
> >>>>>>>
> >>>>> _
> >>>>>>>> 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+Statusunder
> >>>>> 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
> >>
> >>
>
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>
>


-- 
Carlos Rovira
Director de TecnologĂ­a
M: +34 607 22 60 05
F:  +34 912 94 80 80
http://www.codeoscopic.com
http://www.directwriter.es
http://www.avant2.es

Reply via email to