After some experimentation, I could not get the RC1 0.5.0 candidate to work 
properly.
Following your threads on the RC1, I think I know why, so I moved on to the 
0.0.2 alpha to learn the fundamentals.

I have success to report: 

1) I installed PhoneGap Desktop and created the CordovaCameraExample project 
(just structure, nothing in it).
2) I installed PhoneGap Developer on the iPad-2 from iTunes
3) I installed cordova via npm
4) I was able to build the flexjs 0.0.2 alpha and use that SDK (after ant 
install) for FlashBuilder 4.7 (launch of falcon compiles example projects 
properly, except cordova).
5) I followed the readme for the cordova example and did the command-line 
instead
 --> On a windows box, the cordova-build.xml needs to be edited so that 
"cordova" is not executed, but cmd.exe executes cordova:

Examples:

    <target name="create" unless="app.dir.exists">
        <!-- create the project -->
                <exec executable="cmd.exe" dir="${target.dir}">
                        <arg value="/C"/>
                        <arg value="cordova"/>
                        <arg value="create" />
                        <arg value="${project.name}" />
                        <arg value="org.apache.flex.mobile" />
                        <arg value="${project.name}" />
                </exec>

                <!-- add in the platforms -->
                <exec executable="cmd.exe" dir="${app.dir}">
                        <arg value="/C"/>
                        <arg value="cordova"/>
                        <arg value="platform" />
                        <arg value="add" />
                        <arg value="iOS" />
                </exec>
    </target>
 ...
    <target name="build" depends="copyfiles">
                <!-- build the app -->
                <exec executable="cmd.exe" dir="${app.dir}">
                        <arg value="/C"/>
                        <arg value="cordova"/>
                        <arg value="build" />
                </exec>
    </target>

6) This command worked from the PhoneGap created "CordovaCameraExample" project 
directory:

ant -f cordova-build.xml -DPROJECT_NAME=CordovaCameraExample 
-DTARGET_DIR=C:\Users\tom\CordovaProjects\CordovaCameraExample -DPROJECT_DIR=C: 
\ApacheFlex\apache-flex-flexjs-0.0.2-bin\examples\CordovaCameraExample\

All I had to do at that completed was click the "Start/Play" button on the 
PhoneGap desktop UI for that project, and on the iPad2 run the PhoneGap 
Developer app, click Connect, and voila!
The CordovaCameraExample app was running on the iPad2! How freaking cool is 
that????

So, I took a picture of myself through the app I just deployed on the iPad, 
smiling at success, and mailed it to my team. 

I would like to thank Alex and team for their tireless work on Flexjs. I am not 
sure people realize how incredible Flexjs will be when used with rapid 
test/deployment platforms like Cordova/PhoneGap.

Now that I have this all figured out I am looking forward to the RC being 
released so I can build a great app -- and using phoneGap deploy for all target 
platforms rapidly.

Thanks again,

Tom

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of OmPrakash 
Muppirala
Sent: Wednesday, November 04, 2015 2:24 PM
To: [email protected]
Subject: Re: Question about Flexjs and Mobile

Potentially, we can run
1. the flash version on AIR
2. the HTML version on AIR via StageWebView 3.  the HTML version on Phonegap

One way or the other, mobile support will be there :-)

Thanks,
Om

On Wed, Nov 4, 2015 at 12:13 PM, Peter Ent <[email protected]> wrote:

> Hi,
>
> We have the MobileTrader example in the flex-asjs/examples/flexjs 
> directory. This demonstrates the initial Mobile package. This will run 
> on the desktop, but if you deploy it to your phone using Apache 
> Cordova, it will work there, too - iOS and Android.
>
> Peter Ent
> Adobe Systems
>
> On 11/4/15, 2:39 AM, "Tom Brazil" <[email protected]> wrote:
>
> >I have seen the examples for Flexjs for desktop, which are nice. Do 
> >you have any examples for mobile yet?
> >Looking forward to the upcoming beta.
> >
> >Tom
> >
>
>

Reply via email to