Hi Alex and Josh,
Sorry for my dumb question below:  I immediately googled FlexJS Express when I 
saw Josh's answer; but I didn't find something can explains what Express is.  
Could you give me an URL where I can learn about it?
Best Regards,
Allen

-----Original Message-----
From: Alex Harui [mailto:aha...@adobe.com.INVALID]
Sent: Friday, June 30, 2017 10:58 AM
To: dev@flex.apache.org
Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

That's a great suggestion.  It would be great to see what the learning curve is 
when using Express.

In theory, Allen should be able to replace:

   xmlns:mx="http://www.adobe.com/2006/mxml";


With these two lines:

   xmlns:fx="http://ns.adobe.com/mxml/2009";
   xmlns:mx="library://ns.apache.org/flexjs/express"


And replace:

   mx:Script

With:

   fx:Script

Same for any mx:Styles.
And also replace:

   import mx.controls

With:

   import org.apache.flex.html

Then just try to compile it.  There might be a lot of errors, but then we can 
discuss how to migrate to resolve those errors.

-Alex

On 6/30/17, 6:36 AM, "Josh Tynjala" <joshtynj...@gmail.com> wrote:

>If you use the new Express components in FlexJS 0.8, binding beads
>should be added automatically, so that's one place where things might
>not necessarily be too different!
>
>- Josh
>
>On Fri, Jun 30, 2017 at 5:48 AM, Harbs <harbs.li...@gmail.com> wrote:
>
>> I suggest you watch the getting started video by Yishay and the VS
>> Code video by Josh.
>>
>> Don’t try to port to Flex 4 first. It should not be significantly
>>different porting from Flex 3 or Flex 4. If anything, porting from
>>Flex
>>3
>> should be more straight-forward because the architecture is simpler.
>>
>> To set some expectations:
>>
>> You cannot expect to just copy your UI code as-is. You will need to
>>rewrite your view using FlexJS components. Many of them will be simple
>>replacements (i.e. <js:Label/> instead of <mx:Label/> etc. but the
>>event  subsystem is different, and binding is different (you need to
>>declare which  kind of binding you need), skinning is different and
>>much of the  functionality is different. Layout is definitely
>>different.
>>
>> You will need to wrap your head around strands and beads. (Basically,
>>you  have a list of beads which defines what look and behavior your
>>components
>> have.)
>>
>> We’re here to help.
>>
>> Good luck!
>> Harbs
>>
>> > On Jun 30, 2017, at 3:19 PM, Allen YANG <allen.y...@raritan.com>
>>wrote:
>> >
>> > Hi Team,
>> > I have a Flex 3 project that was built on Adobe Flash Builder 3.6
>> > (SDK
>> Flex 3.6A); it needs to be ported to support a non-flash environment.
>>This
>> program was not originally written by me; but I have software
>>development  experience.
>> > I installed a trial version of Flash Builder 4.7 on my Windows 7
>> machine, then installed JDK 1.8.0_131 and replaced the Flash
>>Builder's JRE  with the new JRE version; installed FlexJS 0.8.0 using
>>FlexFlex SDK  installer, and successfully built and ran the example
>>project, thanks to  Alex Harui's  [Using FlexJS with Adobe Flash
>>Builder]<
>>
>>https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki
>>.ap
>>ache.org%2Fconfluence%2Fdisplay%2FFLEX%2F&data=02%7C01%7C%7Cdb3892d732
>>684
>>44b90b308d4bfbd1e8d%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C63634
>>426
>>6362069929&sdata=IQRMFcTFZ6aF5jO1OXvH8%2F7DDniLk18oZflTZ%2FZ4ZJ8%3D&re
>>ser
>>ved=0
>> Using+FlexJS+with+Adobe+Flash+Builder> wiki page.  I have also gone
>> Using+FlexJS+with+Adobe+Flash+Builder> over
>> the Youtube video of [Migrating from Flex to
>>FlexJS<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%
>>2Fw
>>ww.youtube&data=02%7C01%7C%7Cdb3892d73268444b90b308d4bfbd1e8d%7Cfa7b1b
>>5a7
>>b34438794aed2c178decee1%7C0%7C0%7C636344266362069929&sdata=R5ZXrvVdPaU
>>Uxy WrUYHXyVB5xpWpq1qPlmdUEUW3%2Fek%3D&reserved=0.
>> com/watch?v=-FcLs0O-BWQ&list=PLbzoR-pLrL6pLDCyPxByWQwYT>] by Harbs (I
>>have to admit that video is a bit over my head now)
>> >
>> > I am looking for advices what will be the best approach for me to
>> > do
>>the
>> porting. Questions I have are:
>> >
>> > (a)    Should I start by converting the project from Flex 3 to Flex 4
>> first using Flash Builder 4.7's own Flex 4.6.0 SDK; and if it is
>>successful, then convert the Flex 4 project to HTML+JS using FlexJS SDK?
>> Or it is better to directly migrate from Flex 3 to HTML+JS using
>>FlexJS SDK?
>> >
>> > (b)    If I convert to Flex 4 first, then I am trying to prepare my
>> browsers for debugging in a Flash environment. My most frequently
>> used browser is Google Chrome.  I found that there is no easy way to
>> replace Chrome's flash player, starting Chrome version 57, by the
>> debug version downloadable from Adobe.  Could anyone advise me how to
>> set that up for debugging?
>> >
>> > (c)    Could someone recommend the URLs that will help me to get
>> prepared and educated about porting an existing Flex project by
>> FlexJS, especially regarding the name spaces and comboBox.
>> >
>> > One of my MXML files looks like:
>> > <?xml version="1.0" encoding="utf-8"?> <mx:Application
>> > xmlns:mx="http://www.adobe.com/2006/mxml";
>> >       xmlns:net="flash.net.*"
>> >       verticalAlign="middle" horizontalAlign="center"
>>layout="absolute"
>> >       xmlns:dropdown="components.*"
>> >       xmlns:controls="com.iwobanas.controls.*"
>> >       xmlns:local="*"
>> >    xmlns:dataGridClasses="com.iwobanas.controls.dataGridClasses.*"
>> >    applicationComplete="appInit();">
>> >
>> > <mx:Script >
>> >       <![CDATA[
>> >             import mx.effects.RemoveItemAction;
>> >             import mx.collections.ICollectionView;
>> >           include "deallist.as";
>> >
>> >       ]]>
>> > </mx:Script>
>> > ...
>> >
>> > Thanks and Regards,
>> > Allen
>> >
>> > Allen Yang
>> > Raritan, Inc.
>> >
>> >
>> >
>> >
>> >
>> > ________________________________
>> >
>> > Ce message, ainsi que tous les fichiers joints ? ce message,
>> > peuvent
>> contenir des informations sensibles et/ ou confidentielles ne devant
>>pas  ?tre divulgu?es. Si vous n'?tes pas le destinataire de ce message
>>(ou que  vous recevez ce message par erreur), nous vous remercions de
>>le notifier  imm?diatement ? son exp?diteur, et de d?truire ce
>>message. Toute copie,  divulgation, modification, utilisation ou
>>diffusion, non autoris?e, directe  ou indirecte, de tout ou partie de
>>ce message, est strictement interdite.
>> >
>> >
>> > This e-mail, and any document attached hereby, may contain
>>confidential
>> and/or privileged information. If you are not the intended recipient
>>(or  have received this e-mail in error) please notify the sender
>>immediately  and destroy this e-mail. Any unauthorized, direct or
>>indirect, copying,  disclosure, distribution or other use of the
>>material or parts thereof is  strictly forbidden.
>>
>>


________________________________

Ce message, ainsi que tous les fichiers joints à ce message, peuvent contenir 
des informations sensibles et/ ou confidentielles ne devant pas être 
divulguées. Si vous n'êtes pas le destinataire de ce message (ou que vous 
recevez ce message par erreur), nous vous remercions de le notifier 
immédiatement à son expéditeur, et de détruire ce message. Toute copie, 
divulgation, modification, utilisation ou diffusion, non autorisée, directe ou 
indirecte, de tout ou partie de ce message, est strictement interdite.


This e-mail, and any document attached hereby, may contain confidential and/or 
privileged information. If you are not the intended recipient (or have received 
this e-mail in error) please notify the sender immediately and destroy this 
e-mail. Any unauthorized, direct or indirect, copying, disclosure, distribution 
or other use of the material or parts thereof is strictly forbidden.

Reply via email to