From dev-return-7363-archive-asf-public=cust-asf.ponee.io@royale.apache.org Fri Oct 26 16:09:55 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 67B4B180647 for ; Fri, 26 Oct 2018 16:09:53 +0200 (CEST) Received: (qmail 33592 invoked by uid 500); 26 Oct 2018 14:09:52 -0000 Mailing-List: contact dev-help@royale.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@royale.apache.org Delivered-To: mailing list dev@royale.apache.org Received: (qmail 33564 invoked by uid 99); 26 Oct 2018 14:09:51 -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; Fri, 26 Oct 2018 14:09:51 +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 47C441812DE for ; Fri, 26 Oct 2018 14:09:51 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.339 X-Spam-Level: *** X-Spam-Status: No, score=3.339 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, KAM_LINEPADDING=1.2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01, URIBL_BLOCKED=0.001] 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 Xgf-XivnH9XF for ; Fri, 26 Oct 2018 14:09:37 +0000 (UTC) Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 494DA5F494 for ; Fri, 26 Oct 2018 14:09:37 +0000 (UTC) Received: by mail-pl1-f175.google.com with SMTP id p5-v6so567941plq.8 for ; Fri, 26 Oct 2018 07:09:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=DBSM9rxFwUTNqA9ix/34PKP5/mR9JBhxkxVPcegXbHs=; b=EDgOouK/qsJPidrAvMonGOHe6ZJQrD9N1g+z607+klSlPY5nfWWLqMHpzq7wES5qBI exD51R7IhPaDVc6BLshnhe4IrUVpw6LU1pKJ3OWixqAcPqrX9rhtpuzYayh5WRLPOrEV KMwTuoNi6EUM3xR4Ebdzm1vL4dHyXv6DfKK1e9goc38zaZDfEuZNBs8Upt7lvGPdgiNm 4/D5ZEUBqmlf7k8VH/5oDctV3+/6piiP8JnSPxTY/t1wGCZlA9wtyIeCdWZz/6JdsucO VD4eQW4HhrTvY94lZ5qZ1L80j1Rv4EZNHDMQiN+v2Sa3MJn1aOsxdCki3JC766VzqkKL 87YQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=DBSM9rxFwUTNqA9ix/34PKP5/mR9JBhxkxVPcegXbHs=; b=pa0MYW0bbS+IefDYF0v1c0IBtQ+WU0TfrJ2bUZW9JVIHZ18Z+edbqMrWvNgS18czH/ JV6e6ZvreUp/TRbWUKgVorA8wLQhsg6ZNfmKD5y7wghv/98Gha5KlSut93ONaffiwyG6 0FpTOX46caah36fVhPhZ0LbFdCDDjNJNxYla0pSf9cfUtqRj0tYoiDdGsH1BBKn/VZJx 5XH/qHJGI1tpbcXxyaYvolsO0G4zJrU8zjuSBlbkES5oQKGVQ/ewJdrtCGSra4PEOq9i o2pPUYaKNs4rvIRnYB6EvhOhjuQANeR7yOCNTSVuVHiaWQprbSiVvSfN24RiFZg1EE7+ qmaA== X-Gm-Message-State: AGRZ1gLS3qgKBgOnSToGfRB57uppJ56WKI6SYYEcnvjuQhibOvGfCi+q 4it/LHaCSG/DiBbus9Hfq5WtQEOD4Fiq30agcDX/7w== X-Google-Smtp-Source: AJdET5ccHkNUtZJAsua/wUDOpgl4/U9qEUogkTbz0ii4uKAIQJqaK3psr5o4UxJgaUq2t/YjX06Lg+kprpkoZ5j24Yc= X-Received: by 2002:a17:902:8e8a:: with SMTP id bg10-v6mr3724298plb.214.1540562975667; Fri, 26 Oct 2018 07:09:35 -0700 (PDT) MIME-Version: 1.0 References: <007201d45ee4$47af4410$d70dcc30$@d-bz.com> <26D8EEC2-84F0-4968-BB4A-057B33D58E45@adobe.com> <006f01d46123$835ce580$8a16b080$@d-bz.com> <35FD1238-0326-4DCC-9D34-233E4FDC3F4B@adobe.com> <00b701d46449$207cff80$6176fe80$@d-bz.com> <00c101d4645b$73fda030$5bf8e090$@d-bz.com> <00c201d46460$c8cf16c0$5a6d4440$@d-bz.com> <00c301d46466$72316ab0$56944010$@d-bz.com> <98817489-E7E1-4DDB-BF0B-4D9A50561CF9@adobe.com> <004201d46514$f1adaf70$d5090e50$@d-bz.com> <06F24059-6F1C-4827-9D20-4A34C1DFA93C@adobe.com> <78E3025E-CB46-4689-8A63-7E9DF77F7305@adobe.com> <000001d46d17$902387b0$b06a9710$@d-bz.com> <000001d46d27$d55c38d0$8014aa70$@d-bz.com> In-Reply-To: <000001d46d27$d55c38d0$8014aa70$@d-bz.com> From: Piotr Zarzycki Date: Fri, 26 Oct 2018 16:09:21 +0200 Message-ID: Subject: Re: Getting An Emulation Component To Run To: dev@royale.apache.org Content-Type: multipart/alternative; boundary="000000000000eb4bdc0579224401" --000000000000eb4bdc0579224401 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Alina, Just to help a bit with all of that. Do you see any output in the Web Browser Console when you running your application ? If yes provide it here. Thanks, Piotr pt., 26 pa=C5=BA 2018 o 14:42 Alina Kazi napisa=C5=82= (a): > Hi Alex, > We have 3 files in our Project > Files Path is : > [1]Project -> applications.mxml (main file) > [2]Project ->shmApplication.as extends mx.core.Application > [3]Project-> AppView_ERP.mxml > > As MX ViewStack , Canvas are working controls. > > AppView_ERP.mxml has initial tag mx:Canvas > > applications.mxml has initial tag cc:shmApplication and > We have method in applications.mxml > private function fn_roBasicConfRH(e:ResultEvent):void > { > var appViewStack:ViewStack =3D new > ViewStack(); > > appViewStack.percentWidth =3D 100; > appViewStack.percentHeight =3D 100; > this.addElement(appViewStack); > > var compERPView:Canvas =3D new AppView_ER= P() > as Canvas; > > compERPView.id =3D "appView_ERP"; > appView =3D compERPView; > appViewStack.addElement(compERPView); > > mx.external.ExternalInterface.call("function > setWinStatus(){window.status=3D'" + iniFileParams.CompanyName + "';}"); > > } > Application is compiled Successfully but nothing shows in output. > If you need more details. I can create an example Project. > > Thanks in Advance, > Alina Kazi > > -----Original Message----- > From: Alina Kazi [mailto:alina.kazi@d-bz.com] > Sent: Friday, October 26, 2018 3:35 PM > To: dev@royale.apache.org > Subject: RE: Getting An Emulation Component To Run > > Hi Alex, > > We have replaced import spark.components.Application with import > mx.core.Application in our whole Application. After this change we are > still able to compile our Application successfully. > Are you using SWFLoader to load other applications? Again, your API > Report did not mention this. > We are not using SWFLoader anywhere in our Application. We are using > ModuleLoader only. > What do you mean by needing Spark Application many times? > Sorry, import spark.components.Application is written multiple times in > src code but used once. > > That means now we don't need Spark Application. > Thanks for Helping us. > > -Alina Kazi > > -----Original Message----- > From: Alex Harui [mailto:aharui@adobe.com.INVALID] > Sent: Friday, October 26, 2018 12:45 PM > To: dev@royale.apache.org > Subject: Re: Getting An Emulation Component To Run > > Hi Alina, > > Where did you use mx:Application in your application? Somehow it got int= o > the report. > > What do you mean by needing Spark Application many times? Are you using > SWFLoader to load other applications? Again, your API Report did not > mention this. > > Getting Application to work can be significant amount of work as it has a > lot of things to do. One approach you could take is to step through your > example with mx:Application and compare it to the Spark Application and > make changes to the Spark Application until it works, but I'm concerned > that you can't always copy code from mx:Application. > > If you want to take on a big challenge like getting Appilcation to work > that is fine, but I guess I can delay my work on Charts and get Spark > Application to work. Let me know what you decide. But I am very concern= ed > about the accuracy of the data you have provided. I'm wondering what els= e > you are using that we don't know about. > > I'm done for today. I will see what you decide in my morning. > > -Alex > > =EF=BB=BFOn 10/26/18, 12:22 AM, "Alina Kazi" wrote: > > Hi Alex , > I am using skinClass 2 times overall in my Application. I can skip > that if it takes a lot of time. > I don't know How API report skip some API's. > We need SparkApplication at many places in our Application. > If you can explain more in [1] , we want to also participate in > getting emulation component to run. > > Like Spark TextInput is now working as MX TextInput, We have copied > some source from MX TextInput to Spark TextInput after reading [1] and = it > worked. > > [1] > https://na01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fgithub= .com%2Fapache%2Froyale-asjs%2Fwiki%2FEmulation-Components%23getting-an-emul= ation-component-to-run&data=3D02%7C01%7Caharui%40adobe.com%7C7c6b818c69= de4dbb9f6908d63b13d563%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6367613= 53707149252&sdata=3DwEZxyawLMz0VF3Jb7fVcA2bHtBCRz0UzUG4E1l1qXAU%3D&= reserved=3D0 > > Thanks in Advance, > Alina Kazi > > -----Original Message----- > From: Alex Harui [mailto:aharui@adobe.com.INVALID] > Sent: Friday, October 26, 2018 11:50 AM > To: dev@royale.apache.org > Subject: Re: Getting An Emulation Component To Run > > Hi Alina, > > In your API report, only mx.core.Application was referenced. I don't > understand why Spark Application was not referenced, yet you are using it > now. We have not spent any time getting Spark Application to run. If > that's really what you need, I would start copying code from > mx.core.Application. if you don't have custom skins for Application, you > can probably skip the skinning-related code. > > Good luck, > -Alex > > On 10/25/18, 11:10 PM, "Alina Kazi" wrote: > > Hi , > > We are able to compile our Application and Library Projects > successfully. Application Launch file uses a file that extends Spark > Application.as file. This Spark Application.as file is present in Apach= e > Royale SDK repo and has been emulated. But when we run the application, N= o > visual output is shown in index.html (i.e output file) > > Spark Application extends SkinnableContainer in Flex SDK > default.css for SkinnableContainer is: > SkinnableContainer > { > skinClass: > ClassReference("spark.skins.spark.SkinnableContainerSkin"); > } > > > In Flex mx:Application extends LayoutContainer extends Container > in Flex SDK default.css for Container is > > Container > { > borderSkin: > ClassReference("mx.skins.spark.ContainerBorderSkin"); > borderStyle: "none"; > cornerRadius: 0; > } > > You have added in MXRoyale default.css > > Container > { > IBeadView: > ClassReference("org.apache.royale.html.beads.ContainerView"); > IBeadLayout: > ClassReference("org.apache.royale.html.beads.layouts.BasicLayout"); > IViewport: > ClassReference("org.apache.royale.html.supportClasses.ScrollingViewport")= ; > IViewportModel: > ClassReference("org.apache.royale.html.beads.models.ViewportModel"); > } > > And mx:Application shows output. > > For Example : > > [1] Nothing in Output > https://na01.safelinks.protection.outlook.com/?url=3Dhttp%3A%2F%2Fns.adob= e.com%2Fmxml%2F2009&data=3D02%7C01%7Caharui%40adobe.com%7C7c6b818c69de4= dbb9f6908d63b13d563%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6367613537= 07149252&sdata=3DRQwMJaTLRNGo48o0BNsRqAP814fWlszWo%2BCslBKOzOY%3D&r= eserved=3D0" > > > xmlns:s=3D"library://ns.apache.org/royale/spark" > > xmlns:mx=3D"library://ns.apache.org/royale/mx" height =3D "100%" width = =3D > "100%" > > > id=3D"searchBtn" label=3D"Search"/> > > > > [2] It shows Button in output file > https://na01.safelinks.protection.outlook.com/?url=3Dhttp%3A%2F%2Fns.adob= e.com%2Fmxml%2F2009&data=3D02%7C01%7Caharui%40adobe.com%7C7c6b818c69de4= dbb9f6908d63b13d563%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6367613537= 07149252&sdata=3DRQwMJaTLRNGo48o0BNsRqAP814fWlszWo%2BCslBKOzOY%3D&r= eserved=3D0" > > > xmlns:s=3D"library://ns.apache.org/royale/spark" > > xmlns:mx=3D"library://ns.apache.org/royale/mx" height =3D "100%" width = =3D > "100%" > > > id=3D"searchBtn" label=3D"Search"/> > > > > How can I get Spark Application working as MX Application ? > > Thanks, > Alina > > > -----Original Message----- > From: Alex Harui [mailto:aharui@adobe.com.INVALID] > Sent: Monday, October 22, 2018 10:04 PM > To: dev@royale.apache.org > Subject: Re: Getting An Emulation Component To Run > > Hi Alina, > > Again, I cannot help you as efficiently if you do not provide > important details. > > You are showing some part of the console for building the > application. But did the compiler hang, or did it think it finished? Wh= at > does your build.xml look like? What was the full console output? I woul= d > want to see what command you typed and all output up to and including the > command prompt after it finished. As I mentioned in prior emails, use > paste.apache.org if necessary for large quantities of console output. > > From the one line you pasted below, it implied the build did not > finish, yet you are saying that you tried to run it and nothing showed up= . > Why would you try to run it if the build did not finish? If the build di= d > finish, did you get the expected output files? If the build did not > finish, try stripping down what is in the Module until it works, or compa= re > the build.xml settings against examples/mxroyale/tourdeflexmodules. > > There are so many ways things can go wrong, especially when > developing new code. You must learn how to work efficiently in these > conditions. > > Another technique is to compare working against non-working. > Examples/mxroyale/tourdeflexmodules is able to compile and load modules. > You can set breakpoints in the tourdeflexmodules code and follow how it > works and set breakpoints in similar places in your code and follow how i= t > works and compares. > > Thanks, > -Alex > > On 10/22/18, 1:12 AM, "Alina Kazi" wrote: > > Hi Alex, > > This time I told you about folders hierarchy its same as > examples/royale/ModuleExample. > js:UIModuleLoader is replaced with mx:ModuleLoader url > property is added in ModuleLoader and extra properties are removed, > js:UIModule is replaced with mx:Module > js:Application is replaced with mx:Application > namespace is replaced with mx namespace > > Console output stopped at : > [mxmlc] 109142 bytes written to > D:\apache-royale-0.9.3-bin-js-swf\royale-asjs\examples\royale\ModuleExamp= le\Module\bin-debug\Module.swf > in 3.220 seconds > > How else I can explain it in a better way. > Simply I just want same working like > examples/royale/ModuleExample with Mx Controls. > I am not using TitleWindow in my current example. > > > Thanks, > Alina Kazi > > > -----Original Message----- > From: Alex Harui [mailto:aharui@adobe.com.INVALID] > Sent: Monday, October 22, 2018 12:40 PM > To: dev@royale.apache.org > Subject: Re: Getting An Emulation Component To Run > > Hi Alina, > > Again, half a world away, I cannot know what your folder > structure and build files look like, or what you tried or didn't try. An= d > now, I have to stop working and we missed an opportunity to help you > because the important information was not provided in your earlier email. > I wrote some techniques in this email: > > > https://na01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Flists.= apache.org%2Fthread.html%2Fe6f3aa4010dca8c9bdbe2828a89295039d05d23806a5fe03= ae18dbe4%40%253Cdev.royale.apache.org%253E&data=3D02%7C01%7Caharui%40ad= obe.com%7C7c6b818c69de4dbb9f6908d63b13d563%7Cfa7b1b5a7b34438794aed2c178dece= e1%7C0%7C0%7C636761353707149252&sdata=3DL%2BE30bCLEQ1bNZZmN00nxfIbz3CqE= JSBCzN%2Fqu6uLTs%3D&reserved=3D0 > > In your next email, I expect you see evidence that you have > understood and tried the techniques in the email I linked. You will be > expected to provide console output or information about the tree of > elements. And this might be a good opportunity for you to try the debugg= er > and set breakpoints in various places. Even if you don't actually solve > the problem you are facing, you are going to have to become an expert in > debugging JavaScript output from the Royale Compiler. > > Please reserve the time to write a really good email with the > important information and questions. It will save all of us time. > > Thanks, > -Alex > > On 10/21/18, 11:39 PM, "Alex Harui" wrote: > > Hi Alina, > > The key piece for modules is getting the output in the > right place. Flex/Flash has some interesting rules around how URLs got > loaded. I haven't found a practical way to replicate that in the Browser= , > so for now, it is up to you to put the output where you are telling > ModuleLoader to load it. > > If you look at the Ant build.xml for royale/ModuleExample= , > the Module/build.xml assumes the MainApp has been built first and copies > its output files into the MainApp's output folders. > > If you look at the build.xml for > mxroyale/touredeflexexamples, it uses the -module-output compiler option = to > redirect the output. > > If you look in the Browser console, I expect you will see > errors that it couldn=E2=80=99t find a particular JS file for the module.= Pay > attention to the folders and adjust your build script to place the output > in the right place (or adjust where you tell ModuleLoader to find the > module. > > HTH, > -Alex > > On 10/21/18, 11:22 PM, "Alina Kazi" > wrote: > > Hi Alex, > > Created an example contains two files : > 1. Module.mxml > https://na01.safelinks.protection.outlook.com/?url=3Dhttp%3A%2F%2Fns.adob= e.com%2Fmxml%2F2009&data=3D02%7C01%7Caharui%40adobe.com%7C7c6b818c69de4= dbb9f6908d63b13d563%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6367613537= 07149252&sdata=3DRQwMJaTLRNGo48o0BNsRqAP814fWlszWo%2BCslBKOzOY%3D&r= eserved=3D0 > " > xmlns:mx=3D"library:// > ns.apache.org/royale/mx"> > > > in the module" /> > > > 2. MainApp.mxml > https://na01.safelinks.protection.outlook.com/?url=3Dhttp%3A%2F%2Fns.adob= e.com%2Fmxml%2F2009&data=3D02%7C01%7Caharui%40adobe.com%7C7c6b818c69de4= dbb9f6908d63b13d563%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6367613537= 07149252&sdata=3DRQwMJaTLRNGo48o0BNsRqAP814fWlszWo%2BCslBKOzOY%3D&r= eserved=3D0 > " > xmlns:mx=3D"library:// > ns.apache.org/royale/mx" > > > > > "Module.swf" /> > > > > No visual output shown . I want it to work like > examples\royale\ModuleExample > > > Thanks in Advance , > Alina Kazi > > -----Original Message----- > From: Alex Harui [mailto:aharui@adobe.com.INVALID] > Sent: Tuesday, October 16, 2018 9:33 PM > To: dev@royale.apache.org > Subject: Re: Getting An Emulation Component To Run > > Hi Alina, > > I think there is a misunderstanding somewhere. > > How has your company built the Flex app over the past > years? Is it all from an IDE or do you have some sort of script or build > tool? > > Whatever you are using to build the Flex app should b= e > translated to the Ant script. What is currently in the Ant script you > copied from tourdeflexmodules is custom designed for tourdeflexmodules. = It > presumes lots of little applications that don't use custom libraries. > > The mxmlc task in Ant is just like running mxml from > the command line or having an Application project in an IDE. > The compc task in Ant is just like running compc from > the command line or having a Library project in an IDE. > > You can see from the build.xml files in the > royale-asjs repo that we build SWCs by having a build.xml in each library > folder and calling them from a build.xml in a parent folder. You might > find that pattern useful. > > You will need to understand the -source-path and > -library-path and -external-library-path and other compiler options that > were used to build the Flex app and copy probably all of those options in= to > the right place in the Ant scripts. > > It would be uncommon to compile a file called shmUtil > with mxmlc. shmUtil sounds like a file in a library, not a standalone > application. I'll bet it comes from a library that should be compiled wi= th > compc along with a lot of other files. > > > If you are having trouble with Ant, also try the > command-line, then others may be able to help you see the differences > between your Ant script and what worked on the command-line. If you use = an > IDE to build the Flex app, you will need to find out all of the compiler > options the IDE sets up for you. I think others can help you with that a= s > well. > > -Alex > > On 10/16/18, 2:17 AM, "Alina Kazi" < > alina.kazi@d-bz.com> wrote: > > Hi Alex, > > Created a mxmlc task directly in build.xml still > an error is occured : > Added to Build.xml : > https://na01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fpaste.= apache.org%2FwBDm&data=3D02%7C01%7Caharui%40adobe.com%7C7c6b818c69de4db= b9f6908d63b13d563%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636761353707= 149252&sdata=3DCyQofwZXxRS2RZPSxPaAaR2OPGkeLIjB2ZdXuOXExKA%3D&reser= ved=3D0 > Error : > https://na01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fpaste.= apache.org%2FOXFT&data=3D02%7C01%7Caharui%40adobe.com%7C7c6b818c69de4db= b9f6908d63b13d563%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636761353707= 159256&sdata=3DRcNxd8Vc4s4ks3P%2BY8zwAmJ97plf6P7XAbAFZ3bUg%2FI%3D&r= eserved=3D0 > > Thanks, > Alina Kazi > > > > -----Original Message----- > From: Alex Harui [mailto:aharui@adobe.com.INVALID= ] > > Sent: Tuesday, October 16, 2018 11:46 AM > To: dev@royale.apache.org > Subject: Re: Getting An Emulation Component To Ru= n > > Hi Alina, > > The example in > examples/mxroyale/RemoteObjectAMFTest is working and accesses the server > that is in examples/amf/ SampleAmfWebApp. Theoretically, your old > mx:RemoteObject code should work untouched. Try it without touching it a= nd > tell us what kinds of errors you are getting. If you are getting runtime > errors, see how the RemoteObjectAMFTest uses "casting" to be explicit abo= ut > the types of the RemoteObject expressions. You'll see "as Operation" to > indicate that an mx:method in an mx:RemoteObject is an Operation. > > The compile-mxml macro is in the build.xml file. > It has certain expectations of the structure of the source files. Your > source files are likely have a different folder structure. You will need > to add source-paths and other compiler options to the macro, or stop usin= g > the macro and call the mxmlc ant task directly. That is up to you. This > is a good opportunity to get to know Ant and the compiler better. > > HTH, > -Alex > > On 10/15/18, 11:07 PM, "Alina Kazi" < > alina.kazi@d-bz.com> wrote: > > Hi Alex & Carlos, > I haven't tested my ported Application with > server side functionality yet. > Can you please share an Example that I can > follow to get my mx:RemoteObject working as FLEX. > > I have another question > > I am working on my Application and it has two > different directories like com->shm->modules->AP and > com->shm->modules->components and I want to compile a file inside > com->shm->modules->AP->abc.mxml and it uses a file inside > com->shm->modules->components->xyz.mxml. > I have added folder=3D"/com/shm/modules/AP/" example=3D" abc"/> to build.xml. > unable to access xyz inside abc. > > Like > D:\apache-royale-0.9.3-bin-js-swf\royale-asjs\examples\mxroyale\tourdefle= xmodules\src\spark\components\ > VideoPlayerExample.mxml is using VideoPlayer.mxml in my case > VideoPlayer.mxml is not is the same directory. > > Thanks, > Alina Kazi > > -----Original Message----- > From: Carlos Rovira [mailto: > carlosrovira@apache.org] > Sent: Tuesday, October 16, 2018 12:26 AM > To: dev@royale.apache.org > Subject: Re: Getting An Emulation Component T= o > Run > > Hi Alex, > > yes, I added those classes when worked trying > to make it work in net RO, but I found a wall at that time. I think DSK > objects had a different code when deserialized, and our AMF implementatio= n > was not able to handle that. > I was not able to know how to deal with that > so I had to abandon. At least I could pass that disabling small messages = on > BlazeDS. > > I don't think Small Messages are very > important, don't know how "small" > will be, so I think we can go to other things > more important. If I found some problem as I start to grow my application > that could be related to small messages I'll report. Hope not find any is= sue > > The only drawback could be people coming that > must know they need to disable small messages on their BlazeDS. > > I think it will be more important later since > IExternalizable in itself seems an important addition. > > Thanks > > Carlos > > > > El lun., 15 oct. 2018 a las 20:21, Alex Harui > () > escribi=C3=B3: > > > The classes that represent DSK, DSA and DSC > are in the MXRoyale and > > Network projects, but it looks like they > implement IExternalizable. I > > don't see any evidence that the JS AMF > support currently handles > > IExternalizable. > > > > I'm not clear on how important SmallMessage= s > and IExternalizable are. > > If it isn't that important, there are plent= y > of other things to work > > on. If it is important, do we have a test > case that uses IExternalizable? > > > > -Alex > > > > On 10/15/18, 10:55 AM, "Carlos Rovira" < > carlosrovira@apache.org> wrote: > > > > Yes, > > > > I tried today (with code > pre-callProperty, that I think does not make > > difference for this). > > There's small message support in RPC > classes, but when I looked at that > > code when I investigate it, I think mus= t > be accompanied from some AMF > > serialization/deserialization support. = I > couldn't find any resources on > > this in the internet about how to handl= e > DSK, DSA or DSC. Maybe > > you can ask > > internally in Adobe how to deal with > that. My guess is that this > > was added > > to Flash plugin AMF serialization > capabilities. > > > > > > > > > > El lun., 15 oct. 2018 a las 19:03, Alex > Harui > > () > > escribi=C3=B3: > > > > > Carlos, > > > > > > Have you verified that small messages > do not work with the MX > > > RemoteObject? I thought I saw Small > Message support when I was > > migrating > > > the code. > > > > > > Thanks, > > > -Alex > > > > > > On 10/15/18, 10:01 AM, "Carlos Rovira= " > > > wrote: > > > > > > Hi Alina, > > > > > > just for if you don't know. If yo= u > use BlazeDS Java server, > > remember > > > to set > > > up small messages to false, or yo= u > RemoteObjects will not work. > > To get > > > small messages we'll need to > upgrade AMF > > serialization-deserialization > > > to > > > know how to handle DSK, DSA, and > DSC RemoteClass aliases. > > > > > > Best > > > > > > Carlos > > > > > > > > > El lun., 15 oct. 2018 a las 18:39= , > Alex Harui > > > () > > > escribi=C3=B3: > > > > > > > Hi Alina, > > > > > > > > Good to know. You (and anybody > working with the emulation > > > components) are > > > > expected to keep track of the > commits to the royale-compiler > > as well > > > as the > > > > royale-asjs repos and stay > updated. We are still finding bugs > > in the > > > > transpiling that may affect you= . > > > > > > > > Thanks, > > > > -Alex > > > > > > > > On 10/15/18, 2:17 AM, "Alina > Kazi" > > wrote: > > > > > > > > Hi Alex, > > > > > > > > Thanks a lot it worked for > me. > > > > > > > > -Alina kazi > > > > > > > > -----Original Message----- > > > > From: Alex Harui [mailto: > aharui@adobe.com.INVALID] > > > > Sent: Monday, October 15, > 2018 2:07 PM > > > > To: dev@royale.apache.org > > > > Subject: Re: Getting An > Emulation Component To Run > > > > > > > > Hi Alina, > > > > > > > > Are you sure you are using > the latest compiler? Try > > compiling > > > > > examples/mxroyale/RemoteObjectAMFTest. It compiles without > > errors > > > for me. > > > > > > > > I have to stop for tonight. > Hopefully others will help > > you. > > > > > > > > -Alex > > > > > > > > On 10/15/18, 1:37 AM, "Alin= a > Kazi" > > wrote: > > > > > > > > Hi Alex, > > > > We are using MX Remote > Object in almost our every > > Class like > > > this: > > > > > > > channelSet=3D"{parentApplication.amfChannelSet}" > > > > id=3D"DataProviderService" > showBusyCursor=3D"true" > > > > > > > > destination=3D"shmBasic" > fault=3D"handleFault(event);" > > > > > > > > result=3D"handleResult(event);= " /> > > > > We get error ASBlocker > subsystem. > > > > When we comment > RemoteObject we need to comment methods > > > those are > > > > using it. > > > > > > > > I agree with that if I > will delete some code for > > compilation > > > I > > > > will face other issues at later > stage. > > > > > > > > Can I replace > mx:remoteObject with : > > > > endpoint=3D" > > > > > > > > > > https://na01.safelinks.protection.outlook.com/?url=3Dhttp%3A%2F%2Fwww.jam= esward.com%2Fcensus2-tests%2Fmessagebroker%2Famf&data=3D02%7C01%7Caharu= i%40adobe.com%7C7c6b818c69de4dbb9f6908d63b13d563%7Cfa7b1b5a7b34438794aed2c1= 78decee1%7C0%7C0%7C636761353707159256&sdata=3D7GJvpDveb5dbyOpOtqwbHnLbi= QLnlrEIwHm8FY7FTRE%3D&reserved=3D0 > > > " > > > > destination=3D"census"/> > > > > > > > > Thanks in Advance, > > > > Alina Kazi > > > > > > > > -----Original > Message----- > > > > From: Alex Harui [mailt= o: > aharui@adobe.com.INVALID] > > > > Sent: Monday, October > 15, 2018 1:16 PM > > > > To: > dev@royale.apache.org > > > > Subject: Re: Getting An > Emulation Component To Run > > > > > > > > Hi Alina, > > > > > > > > I recommend just runnin= g > the compiled application and > > fixing > > > > problems as you run into them. > > > > > > > > If you start copying > code and deleting other code, you > > cannot > > > > guarantee that the results will > run. I'm not even sure > > TitleWindow > > > is a > > > > valid child control of an > Application. Usually it is a popup > > dialog. > > > > > > > > When you run the > application, you will probably find > > > exceptions in > > > > the console. Set a breakpoint, > see if you can figure out why > > it is > > > > generating an exception. Change > the code as needed. > > > > > > > > If you aren=E2=80=99t g= etting > exceptions, then look at the > > element > > > tree. > > > > Either all of the expected > elements have been created or not. > > If > > > not, then > > > > look at the innermost element t= o > see what it is. In the > > properties > > > for the > > > > element is a royale_wrapper > property that points to the > > transpiled > > > AS3 > > > > class. That can help you know > what class didn't create its > > children. > > > > Check the _beads array of that > class to see if it created its > > beads > > > or > > > > not. If not, check the CSS for > that element, or debug into > > its code. > > > > Usually, addedToParent is where > the view bead is added. > > > > > > > > If the elements have > been created, check the sizes. > > Often > > > some of > > > > them will have width or height = =3D > 0. Try to figure why it is > > getting > > > a bad > > > > size. > > > > > > > > If you take this > approach, then if you get stuck you > > can ask > > > a > > > > much more specific question and > we can give you more specific > > > answers. > > > > > > > > Unfortunately, our days > only overlap by a few hours, > > but I > > > hope > > > > other committers can help as > well. It is in their best > > interest to > > > improve > > > > their help and debugging skills= . > > > > > > > > -Alex > > > > > > > > On 10/15/18, 12:59 AM, > "Alina Kazi" < > > alina.kazi@d-bz.com> > > > wrote: > > > > > > > > Hi Alex, > > > > As our whole > application is compiled successfully > > without > > > > error as a part of SparkRoyale > Library. > > > > > > > > Now, We have create= d > a project like > > tourdeflexmodules to > > > > compile and visually see the > application output. > > > > Initially started > with the basic(small) file of our > > > > application that is used by mos= t > of the files of our > > Application. > > > > > > > > We have a file in > our application "Picklist.mxml" > > > > It was actually lik= e > : > > > > [1] > > > > > > > > > > https://na01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fpaste.= apache.org%2FRVtj&data=3D02%7C01%7Caharui%40adobe.com%7C7c6b818c69de4db= b9f6908d63b13d563%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636761353707= 159256&sdata=3DLI7kC1VOo2NpxzAVOR0tu2OrDG9fNeo3Qk0vwD8HOpo%3D&reser= ved=3D0 > > > > > > > > we want to see it > visually as all our mx and spark > > > controls > > > > are already added in Apache > Royale. > > > > Deleted whole code > accept visual controls from src > > file : > > > > [2] > > > > > > > > > > https://na01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fpaste.= apache.org%2FH4Sm&data=3D02%7C01%7Caharui%40adobe.com%7C7c6b818c69de4db= b9f6908d63b13d563%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636761353707= 159256&sdata=3Doi6gY54TyplwWrQ1N%2BmONwdUaLO%2FSY%2FPhecgMqHOGlg%3D&= ;reserved=3D0 > > > > > > > > Nothing shows insid= e > spark BorderContainer & > > TitleWindow. > > > > [3] > > > > > > > > > > https://na01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fpaste.= apache.org%2FEpS8&data=3D02%7C01%7Caharui%40adobe.com%7C7c6b818c69de4db= b9f6908d63b13d563%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636761353707= 159256&sdata=3DddTjjxt1kcfHa3pcewOUa0dyLFhkUhjsq%2FaPZ%2BwjWCc%3D&r= eserved=3D0 > > > > How can we see all > visual controls as they were in > > Flex > > > of > > > > this particular file. > > > > Even spark > BorderContainer default.css is copied > > from > > > Flex > > > > ->Royale. > > > > > > > > Thanks, > > > > Alina Kazi > > > > > > > > -----Original > Message----- > > > > From: Alex Harui > [mailto:aharui@adobe.com.INVALID] > > > > Sent: Monday, > October 15, 2018 11:15 AM > > > > To: > dev@royale.apache.org > > > > Subject: Re: Gettin= g > An Emulation Component To Run > > > > > > > > Hi Alina, > > > > > > > > Different APIs will > have different solutions. > > Pick an > > > API you > > > > want to have work and let's > discuss how to make it work. > > > > > > > > -Alex > > > > > > > > On 10/14/18, 10:48 > PM, "Alina Kazi" < > > alina.kazi@d-bz.com > > > > > > > > wrote: > > > > > > > > Hi Alex, > > > > > > > > All mx and spar= k > class methods those were left > > empty > > > for > > > > the compilation of Application. > > > > Also Module doe= s > not show anything on screen. > > > > > > > > Thanks in > Advance, > > > > Alina > > > > > > > > -----Original > Message----- > > > > From: Alex Haru= i > [mailto: > > aharui@adobe.com.INVALID] > > > > Sent: Thursday, > October 11, 2018 12:32 PM > > > > To: > dev@royale.apache.org > > > > Subject: Re: > Getting An Emulation Component To > > Run > > > > > > > > Hi Alina, > > > > > > > > Which component= s > or properties are you trying > > to get > > > to > > > > run? > > > > > > > > -Alex > > > > > > > > On 10/10/18, > 10:40 PM, "Alina Kazi" < > > > alina.kazi@d-bz.com> > > > > wrote: > > > > > > > > Hi Alex, > > > > > > > > > > > > > > > > What if CSS > for a component is not written > > in > > > Basic / > > > > Express defaults.css? > > > > > > > > And We need > it in MXRoyale / SparkRoyale > > > > > > > > Thanks, > > > > > > > > Alina Kazi > > > > > > > > > > > > > > > > From: Alex > Harui [mailto:aharui@adobe.com] > > > > Sent: > Monday, October 08, 2018 8:40 PM > > > > To: Alina > Kazi > > > > Subject: Re= : > Getting An Emulation > > Component To > > > Run > > > > > > > > > > > > > > > > Hi Alina, > > > > > > > > > > > > > > > > Please ask > these questions on dev@ as > > well. > > > > > > > > > > > > > > > > CSS with > ClassReference is a way to use > > > Composition to > > > > customize components. Copying > code is usually a bad practice > > as it > > > > creates maintenance issues. So= , > in general, the preference > > should > > > be to > > > > use CSS. > > > > > > > > > > > > > > > > HTH, > > > > > > > > -Alex > > > > > > > > > > > > > > > > From: Alina > Kazi > > > > Date: > Monday, October 8, 2018 at 2:02 AM > > > > To: Alex > Harui > > > > Subject: > Getting An Emulation Component To > > Run > > > > > > > > > > > > > > > > Hi Alex, > > > > > > > > We want to > know how can we identify which > > is the > > > right > > > > stub? > > > > > > > > For Example= : > selected property written > > > differently in > > > > CheckBox, RadioButton and > > > > > > > > we want > selected property for Button. How > > can we > > > > identify and pick the right cod= e > for Button? > > > > > > > > > > > > > > > > 1. > copying the little bits of code > > from the > > > > Basic or Express version into > the right stub in the Emulation > > > Component > > > > > > > > 2. > copying the CSS from Basic or > > Express > > > > defaults.css into the MXRoyale > or SparkRoyale defaults.css > > > > > > > > > > > > > > > > > > > > > > > > Thanks in > Advance, > > > > > > > > Alina Kazi > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > Carlos Rovira > > > > > > > > > https://na01.safelinks.protection.outlook.com/?url=3Dhttp%3A%2F%2Fabout.m= e%2Fcarlosrovira&data=3D02%7C01%7Caharui%40adobe.com%7C7c6b818c69de4dbb= 9f6908d63b13d563%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6367613537071= 59256&sdata=3DHFp%2FC4U7r9tvPlhUTcEj2F0DJ0m1f97KgCvyM8%2BX5Xs%3D&re= served=3D0 > > > > > > > > > > > > > -- > > Carlos Rovira > > > > > https://na01.safelinks.protection.outlook.com/?url=3Dhttp%3A%2F%2Fabout. > > me%2Fcarlosrovira&data=3D02%7C01%7Cahar= ui% > 40adobe.com%7C04eb29f37fce > > > 40d3df9908d632c77330%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6367 > > > 52229546474497&sdata=3D7S2M%2BRlyCsWd2pShdvTsjfyJp9xyZ5bdaAc3zZQrilU > > %3D&reserved=3D0 > > > > > > > > -- > Carlos Rovira > > https://na01.safelinks.protection.outlook.com/?url=3Dhttp%3A%2F%2Fabout.m= e%2Fcarlosrovira&data=3D02%7C01%7Caharui%40adobe.com%7C7c6b818c69de4dbb= 9f6908d63b13d563%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6367613537071= 59256&sdata=3DHFp%2FC4U7r9tvPlhUTcEj2F0DJ0m1f97KgCvyM8%2BX5Xs%3D&re= served=3D0 > > > > > > > > > > > > > > > > > > > > > > > > > --=20 Piotr Zarzycki Patreon: *https://www.patreon.com/piotrzarzycki * --000000000000eb4bdc0579224401--