Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D849A200CBF for ; Sat, 8 Jul 2017 21:57:40 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D6AF716B357; Sat, 8 Jul 2017 19:57:40 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0171A16B355 for ; Sat, 8 Jul 2017 21:57:39 +0200 (CEST) Received: (qmail 73537 invoked by uid 500); 8 Jul 2017 19:57:39 -0000 Mailing-List: contact dev-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list dev@flex.apache.org Received: (qmail 73525 invoked by uid 99); 8 Jul 2017 19:57:38 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Jul 2017 19:57:38 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 35772180BD3 for ; Sat, 8 Jul 2017 19:57:38 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.916 X-Spam-Level: X-Spam-Status: No, score=0.916 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.796, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id b3Xk7w4sARwq for ; Sat, 8 Jul 2017 19:57:35 +0000 (UTC) Received: from mail-wr0-f179.google.com (mail-wr0-f179.google.com [209.85.128.179]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 0B5D75FAF3 for ; Sat, 8 Jul 2017 19:57:35 +0000 (UTC) Received: by mail-wr0-f179.google.com with SMTP id r103so88764804wrb.0 for ; Sat, 08 Jul 2017 12:57:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=0x2UbcCYoPyP8jMr+8HE11A2MT3RdVjpqIONMBL7l1U=; b=onwxWtx24lbcNQ9hhAROXIBofIQQxeCg1UfsHqUIIuP3NMca0bCyYfQ/qZI4CtTXIf e3JjdHwJAVwKKGDvz2xnsh7lxkAa8fcyXmHOvVhRaXIv3pDqNy+Tkq93RnXgLklgLNnf mM4GsXKWfJOih7NO6I7ZtHXuP9Xtmu8eMpWDjSxZfNma0huN7ze1BnQOfgs9wSQGiJwc NJQ+XDN04UKRlGhJBJ9i3SyDjIblFd5fqQiYsDMq1EJUlnkqSX6uUb+lGjshoWM5Fjx1 e+bZX/QeMMRnOdctmEUn02iNwoTbqFnYPbCdybcj9i+ftSbmXdvyr7iw/8kw7rM1+C/6 J5Tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=0x2UbcCYoPyP8jMr+8HE11A2MT3RdVjpqIONMBL7l1U=; b=H0nXD5dEKtNb2OOglgGepqGU69CLfeOGxsBCgWolFZB6OJc1dn506VDVdusSNymYl3 fhBKKSdjyweCwK7HIzoI4/PIEIkHbG1AQzMq5C9q5BpIUNr170lPEvAgpSBlM1dnq+lE LNYZVTY3aQfMF0q01OIkghGBV36crHpo5kXnRR6YyeF09MqJKaT2bzcCR+NWRGMG7d+V R7fKb6qsk3FbBdmhtlf2tDUSb+FU9c7rzUyEi5KP+bY/lX2nbOFdynGMD61cLehdPazX SYhKxn56zcFIHNj+FLmFBkRmM3EKmWEP50VSvMVC4t2rElX+U0lKCDuPNdQcFEnuqZt7 gc/g== X-Gm-Message-State: AIVw111Z11CTJregXDkIamARHLcQ8AOunXRZ3wLoRSgVtgfZ846SXPrP yVddngFrbXtJBSULbGkiPVsYMWxMbg== X-Received: by 10.80.158.199 with SMTP id a65mr6358455edf.169.1499543853757; Sat, 08 Jul 2017 12:57:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.177.211 with HTTP; Sat, 8 Jul 2017 12:57:32 -0700 (PDT) Received: by 10.80.177.211 with HTTP; Sat, 8 Jul 2017 12:57:32 -0700 (PDT) In-Reply-To: References: <1499365916687-62886.post@n4.nabble.com> <1499504266765-62960.post@n4.nabble.com> From: Greg Dove Date: Sun, 9 Jul 2017 07:57:32 +1200 Message-ID: Subject: RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS To: dev@flex.apache.org Content-Type: multipart/alternative; boundary="94eb2c1a0a62ba7d5e0553d3c254" archived-at: Sat, 08 Jul 2017 19:57:41 -0000 --94eb2c1a0a62ba7d5e0553d3c254 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I just glanced back at your mxml. Not sure if this will help... but you could try moving the fx:Script tag outside the HContainer tag so it is top level inside your mxml. This seems more conventional although I am not sure whether it is the cause of the compiler issues you are seeing or not. -Greg [sent from my phone] On 9/07/2017 6:32 AM, "Allen YANG" wrote: Hi Alex, I am leaving SearchBox.mxml compiler issue aside for now since I have no idea how to solve it. Following the MyInitialView.mxml example, I was finally able to convert a Flex 3 MXML file called UpdateResources.mxml which starts with and has a Canvas with HBox, VBox and Buttons inside. The result is a very slimmed down version of FlexJS implementation which starts with and includes a with HContainer, VContainer, and TextButtons inside. I lost most of the formatting of the pages because many attributes are not there anymore. Could you comment whether that's about right, or I have completely got it wrong? (The complied result could run but certainly I lost most of the original UI's screen formatting due to many of the properties not being supported.) Thanks and Regards, Allen -----Original Message----- From: Alex Harui [mailto:aharui@adobe.com.INVALID] Sent: Saturday, July 08, 2017 10:42 AM To: dev@flex.apache.org Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS Hi Allen, These are great questions. Many examples have a MyInitialView.mxml file with js:View as the top tag. You might want to refer to those examples. The current Panel does have an optional close button so it can substitute as TitleWindow, but I am currently refactoring it for 0.9.0 to be more pay-as-you-go. Unless you need more than one floating window, you shouldn't need PopUpManager (which is why it doesn't exist in FlexJS yet). Instead use code like: var host:IPopUpHost; host =3D UIUtils.findPopUpHost(this); // this is the main view IPopUpHost(host).addElement(popUp as IChild); HGroup or HContainer can swap in for HBox. Use Group or Container instead of Canvas. Good luck, -Alex On 7/8/17, 6:00 AM, "Allen YANG" wrote: >Hi Yishay, >You are right. I rechecked the demo.zip file and panelview.as is not >there. Maybe I was trying to learn about TitleWindow replacement and >break the code into a separate file, ended up leaving it there. >No luck yet in converting my MXML file for TitleWindow equivalent >because it also has PopUpManager and uses HBox and Canvas in the same MXML file. >I cannot get a simple MXML file (less than 40 lines) to compile. > >I am confused why the same code compiles and works when it is part of >the MXML file inside of but when I tried to create a >separate MXML file for a panel inside of a View it doesn't compile. >In other words, >will be fine inside but cannot be standalone. This must >be another newbie question. >Regards, >Allen > >-----Original Message----- >From: yishayw [mailto:yishayjobs@hotmail.com] >Sent: Saturday, July 08, 2017 4:58 AM >To: dev@flex.apache.org >Subject: RE: [FlexJS] question about porting an Adobe Flex 3 project to >HTML+JS > >I don't see panelview.as in the sources. But anyway, I don't remember >it being part of the demo so you can ignore it for now. Any luck with >creating a TitleWindow equivalent? > > > >-- >View this message in context: >https://na01.safelinks.protection.outlook.com/?url=3Dhttp%3A%2F%2Fapache- >fle >x-development.2333347.n4.nabble.com%2FFlexJS-question-about-porting-an- >Ado >be-Flex-3-project-to-HTML-JS-tp62698p62960.html&data=3D02%7C01%7C%7C547b2 >515 >c4244d1105d608d4c6014a6d%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6 >363 >51156227326642&sdata=3DVwy%2BU1qoAoMSD1R1jN3t%2BZLAjrCtOS1%2BMXjgdnWzUI8% >3D& >reserved=3D0 >Sent from the Apache Flex Development mailing list archive at Nabble.com. > >________________________________ > >Ce message, ainsi que tous les fichiers joints =C3=A0 ce message, peuvent >contenir des informations sensibles et/ ou confidentielles ne devant >pas =C3=AAtre divulgu=C3=A9es. Si vous n'=C3=AAtes pas le destinataire de = ce message >(ou que vous recevez ce message par erreur), nous vous remercions de le >notifier imm=C3=A9diatement =C3=A0 son exp=C3=A9diteur, et de d=C3=A9truir= e ce message. >Toute copie, divulgation, modification, utilisation ou diffusion, non >autoris=C3=A9e, 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 =C3=A0 ce message, peuvent contenir des informations sensibles et/ ou confidentielles ne devant pas =C3=AAtre divulgu=C3=A9es. Si vous n'=C3=AAtes pas le destinataire de ce me= ssage (ou que vous recevez ce message par erreur), nous vous remercions de le notifier imm=C3=A9diatement =C3=A0 son exp=C3=A9diteur, et de d=C3=A9truire ce messa= ge. Toute copie, divulgation, modification, utilisation ou diffusion, non autoris=C3=A9e, di= recte 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. --94eb2c1a0a62ba7d5e0553d3c254--