flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com.INVALID>
Subject Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS
Date Sat, 08 Jul 2017 05:18:34 GMT
Hi Allen,

You might want to try the Express components by changing:

    xmlns:js="library://ns.apache.org/flexjs/basic"

To:

    xmlns:js="library://ns.apache.org/flexjs/express"

Then the components should have more APIs built-in.

If you hit a null pointer exception, please post the stack trace so we can
try to see what the cause was.

You may need to grab the source for ISearchable and include it in your
project so it gets cross-compiled, or build a FlexJS SWC from the
ISearchable source.

Good luck,
-Alex

On 7/7/17, 12:48 PM, "Allen YANG" <allen.yang@raritan.com> wrote:

>Hi Team:
>I was trying to compile a SearchBox.mxml file in VS Code + Maven, after
>the compiler ran for 5 minutes (typically only takes a few seconds) the
>compiler hit a null pointer exception.  I don't know why but I guess it
>has something to do with
>import com.iwobanas.core.ISearchable;
>The reason for me to compile this MXML file is that I need to convert it
>from Flex 3 to FlexJS, I tried to use HContainer to replace HBox.  Could
>anyone take a look at my MXML file and advise how I can make it compile?
>Thanks,
>Allen
>
><?xml version="1.0" encoding="utf-8"?>
><js:View 
>xmlns:fx="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2F
>ns.adobe.com%2Fmxml%2F2009&data=02%7C01%7C%7C3e87837b8bb140bf152208d4c5712
>b7b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636350537231426907&sdata=
>bUQrjzoYXl4XL5XNjRUUnsYBwZvgUPit%2FiYAN629XpY%3D&reserved=0"
>          xmlns:js="library://ns.apache.org/flexjs/basic"
>  xmlns:ns="library://ns.apache.org/flexjs/svg>
><js:HContainer
><fx:Script>
><![CDATA[
>import com.iwobanas.core.ISearchable;
>
>[Bindable]
>public var target:ISearchable;
>
>]]>
></fx:Script>
><js:Label text="Search:" />
><js:TextInput id="searchInput"
>change="{target.find(searchInput.text)}"
>backgroundColor="{!target.searchString || target.found ?
>0xffffff:0xff0000}"
>enter="{target.findNext()}"
>toolTip="Live search" width="207"/>
><js:Button id="previousButton" enabled="{target.searchString != null}"
>label="&lt;" click="{target.findPrevious()}" toolTip="Previous" />
><js:Button id="nextButton" enabled="{target.searchString != null}"
>label="&gt;" click="{target.findNext()}" toolTip="Next" />
></js:HContainer>
></js:View
>
>-----Original Message-----
>From: Allen YANG
>Sent: Friday, July 07, 2017 2:51 PM
>To: 'dev@flex.apache.org'
>Subject: RE: [FlexJS] question about porting an Adobe Flex 3 project to
>HTML+JS
>
>Hi Yishay,
>
>I played further with your demo_for_presentation example, I realized that
>the source file panelview.as in src/beads is probably not used because I
>could remove it and rebuild without affecting the build and run.  Could
>you tell me what that file is for?
>
>Thanks,
>Allen
>
>
>________________________________
>
>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.

Mime
View raw message