Return-Path: X-Original-To: apmail-flex-users-archive@www.apache.org Delivered-To: apmail-flex-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F0F2B10034 for ; Thu, 13 Mar 2014 15:30:52 +0000 (UTC) Received: (qmail 79849 invoked by uid 500); 13 Mar 2014 15:30:52 -0000 Delivered-To: apmail-flex-users-archive@flex.apache.org Received: (qmail 79816 invoked by uid 500); 13 Mar 2014 15:30:51 -0000 Mailing-List: contact users-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@flex.apache.org Delivered-To: mailing list users@flex.apache.org Received: (qmail 79808 invoked by uid 99); 13 Mar 2014 15:30:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Mar 2014 15:30:51 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FRT_ADOBE2,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of flashflexpro@gmail.com designates 209.85.216.175 as permitted sender) Received: from [209.85.216.175] (HELO mail-qc0-f175.google.com) (209.85.216.175) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Mar 2014 15:30:47 +0000 Received: by mail-qc0-f175.google.com with SMTP id e16so1321115qcx.34 for ; Thu, 13 Mar 2014 08:30:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Nt1yXjSebFFcpGsJujOEX7/xCDECHzIIVBpbXGIHTeU=; b=mdW6ADH/IUvmfljh4IQ5bUR7U4WiQ6frb+BUzi4iAlk+utFS/vRWxesrcCPrg8GLyW fkr4osDTEJ++9il8ZY9wUf+eiiASGp2H2sV9LThMSD9aBmUpukdyo+L/Rve95qQQVOX4 g3Jic/Ml2AFaedWOG/mkLdNIoBfxd/3Z7uzF5K9mO1O959kSp7eIjmmHiLjMIkF6f2uE +06Iw3BvH4NL+BQb1q3Tlh07kL8yoB7yo+m/WPzioJLDyYG4FtUw5n7TzCwUtAY/0PrD FOD7hPXeMuAaGAPNarFaY7pjCMW4AC4ruXG/U6r0QbPdzak1TqjLqU4bzE91rLnEBIA1 lIRg== MIME-Version: 1.0 X-Received: by 10.224.57.81 with SMTP id b17mr3146564qah.44.1394724625275; Thu, 13 Mar 2014 08:30:25 -0700 (PDT) Received: by 10.224.54.1 with HTTP; Thu, 13 Mar 2014 08:30:25 -0700 (PDT) Received: by 10.224.54.1 with HTTP; Thu, 13 Mar 2014 08:30:25 -0700 (PDT) In-Reply-To: <2095F5EBE04D59409DFCE91FFCEBF7AFAF2D3190@EXMBX05.netplexity.local> References: <2095F5EBE04D59409DFCE91FFCEBF7AFAF2D3190@EXMBX05.netplexity.local> Date: Thu, 13 Mar 2014 11:30:25 -0400 Message-ID: Subject: RE: Flex App swf initialization failure when working as an Android worker!!!! From: Gary Yang To: users@flex.apache.org Content-Type: multipart/alternative; boundary=089e0141a902d95f0404f47ea1d2 X-Virus-Checked: Checked by ClamAV on apache.org --089e0141a902d95f0404f47ea1d2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I tried, without Application remoteclass meta won't work. On Mar 13, 2014 11:14 AM, "Maurice Amsellem" wrote: > Would it work to extend the app from MovieClip ? > > I have seen that is pure AS projects (games). > > Maurice > > -----Message d'origine----- > De : Alex Harui [mailto:aharui@adobe.com] > Envoy=E9 : jeudi 13 mars 2014 16:06 > =C0 : users@flex.apache.org > Objet : Re: Flex App swf initialization failure when working as an Androi= d > worker!!!! > > Spark Application is not designed to be a Worker. It is designed to have > UI children. > > mx:SimpleApplication has fewer assumptions and might work. Please try it= . > > -Alex > > On 3/13/14 7:58 AM, "Gary Yang" wrote: > > >I am using Spark Application > >On Mar 13, 2014 10:51 AM, "Alex Harui" wrote: > > > >> Did you try using mx:SimpleApplication instead of Application? > >> > >> On 3/13/14 6:45 AM, "Gary Yang" wrote: > >> > >> >I already have it working perfect in Flash Player >=3D11.5 ! I am > >>excited > >> >about workers in Android and IOS( coming according to roadmap )! > >> > > >> >I am not using any display list features in worker. > >> > > >> >I am building a reactive model with Flex using its binding, meta tag > >> >processing, collection classes, PropertyChangeEvent .... > >> > > >> >The way I see it, Flash/Flex is the only way to build complex logic > >> >in browsers, and that's one of the core values,( the other one is > >> >the > >>unified > >> >API ). > >> > > >> >Please let Flex swf running as a worker on all platform!!! > >> > > >> > > >> >-Gary > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> >On Wed, Mar 12, 2014 at 10:00 PM, Alex Harui wrote= : > >> > > >> >> It would be interesting to see an example of how it could work. > >>There > >> >>is > >> >> the class mx.core.SimpleApplication that you can try to use as the > >>base > >> >> for a Worker. If that doesn't work it might be possible to create > >> >> a variant that behaves within the constraints of a Worker. > >> >> > >> >> -Alex > >> >> > >> >> On 3/12/14 2:55 PM, "Sean Thayne" wrote: > >> >> > >> >> >Sounds like a very strange way to use workers. > >> >> > > >> >> >-Sean Thayne > >> >> > > >> >> > > >> >> >On Wed, Mar 12, 2014 at 3:18 PM, Alex Harui > >>wrote: > >> >> > > >> >> >> So really, what you want is to use MXML to define a SWF that > >> >> >> can > >>be > >> >>used > >> >> >> as a Worker, right? > >> >> >> > >> >> >> On 3/12/14 1:23 PM, "Gary Yang" wrote: > >> >> >> > >> >> >> >Greg, > >> >> >> > > >> >> >> >I agree with you on the display list thing. > >> >> >> > > >> >> >> >But I am not using any display list features in worker, I am > >>trying > >> >>to > >> >> >> >build a reactive model with Flex's binding, meta tag > >> >> >> >processing, collection classes, PropertyChangeEvent. This > >> >> >> >reactive model will pass > >>changes > >> >>to > >> >> >>the > >> >> >> >main UI thread to drive UI, and user input will be passed back > >> >> >> >to > >> >> >>reactive > >> >> >> >model as a trigger input. > >> >> >> > > >> >> >> >For long run, the best solution would be divide Flex into > >>different > >> >> >> >modules, https://issues.apache.org/jira/browse/FLEX-34138; > >> >> >> >But for now, please just make it usable. > >> >> >> > > >> >> >> >Thanks. > >> >> >> > > >> >> >> >Thanks. > >> >> >> > > >> >> >> >-Gary > >> >> >> > > >> >> >> > > >> >> >> > > >> >> >> > > >> >> >> > > >> >> >> > > >> >> >> >On Wed, Mar 12, 2014 at 4:05 PM, Greg Dove > >> >> >> > > >> >> wrote: > >> >> >> > > >> >> >> >> I can't imagine using a flex application as a worker. I > >> >> >> >> don't > >> >>think > >> >> >> >>Workers > >> >> >> >> can access the main display list/stage, and a flex > >> >> >> >>application > >> >> >>expects > >> >> >> >>to > >> >> >> >> do so. It may be because of this that you are seeing the > >> >> >> >>error > >> >> >>because > >> >> >> >> ContextMenu is not available on Android, and that part is > >>nothing > >> >>to > >> >> >>do > >> >> >> >> with Flex. > >> >> >> >> > >> >> >> >> > >> >> >> >> > >> >> >> >> > >> >> >> > >> >> >> > >> >> > >> >> > >> > >>http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/fla > >>sh/ > >> >> >> >>ui/ContextMenu.html > >> >> >> >> *AIR profile support:* This feature is not supported on > >> >> >> >>mobile > >> >> >>devices > >> >> >> >>or > >> >> >> >> AIR for TV devices. > >> >> >> >> > >> >> >> >> > >> >> >> >> > >> >> >> >> > >> >> >> >> > >> >> >> >> > >> >> >> >> > >> >> >> >> > >> >> >> >> On Thu, Mar 13, 2014 at 8:14 AM, Gary Yang > >> >> > >> >> >> >>wrote: > >> >> >> >> > >> >> >> >> > You have to support it!!! > >> >> >> >> > > >> >> >> >> > Flex's binding, [remote class], collection data models are > >> >>critical > >> >> >> >>for > >> >> >> >> > building reacting model which is a key for complex > >>application > >> >>and > >> >> >> >>this > >> >> >> >> is > >> >> >> >> > Flex's core value! > >> >> >> >> > > >> >> >> >> > It's already working for Flash Player in browsers, if you > >> >> >> >> > can > >> >>add a > >> >> >> >>few > >> >> >> >> > lines to make sure > >> >> >> >> > > >> >> >> >> > var defaultMenu:ContextMenu =3D new ContextMenu(); > >> >> >> >> > > >> >> >> >> > won't kill the initialization process, it will be good for > >>now!! > >> >> >> >> > > >> >> >> >> > For the future, I would like to recommend to take a look > >> >> >> >> > at > >>Java > >> >> >> >>Spring's > >> >> >> >> > growth. > >> >> >> >> > > >> >> >> >> > Please!! > >> >> >> >> > > >> >> >> >> > > >> >> >> >> > > >> >> >> >> > > >> >> >> >> > On Wed, Mar 12, 2014 at 2:49 PM, Alex Harui > >> > >> >> >>wrote: > >> >> >> >> > > >> >> >> >> > > You're trying to run a Flex SWF as a worker and not the > >>main > >> >> >>app? I > >> >> >> >> > doubt > >> >> >> >> > > that is supported. > >> >> >> >> > > > >> >> >> >> > > -Alex > >> >> >> >> > > > >> >> >> >> > > On 3/12/14 8:43 AM, "Gary Yang" > >> >>wrote: > >> >> >> >> > > > >> >> >> >> > > >https://issues.apache.org/jira/browse/FLEX-34137 > >> >> >> >> > > > > >> >> >> >> > > > > >> >> >> >> > > >On Wed, Mar 12, 2014 at 10:26 AM, Gary Yang > >> >> >> >> > >> >> >> >> > > >wrote: > >> >> >> >> > > > > >> >> >> >> > > >> Error: Error #3731: This feature is not available > >> >> >> >> > > >> within > >> >>this > >> >> >> >> context. > >> >> >> >> > > >> at > >> >> >> >> > > >> > >> >> >> >> > > > >> >> >> >> > > >> >> >> >> > >> >> >> > >> >> > >> > >>>>>>>>>>spark.components::Application/initContextMenu()[/Users/justinm > >>>>>>>>>>cle > >>>>>>>>>>an > >> >>>>>>>>/D > >> >> >>>>>>oc > >> >> >> >>>>um > >> >> >> >> > > > >> >> >> >> > > >> >> >> >> > >> >> >> > >> >> > >> > >>>>>>>>>>ents/ApacheFlex4.12.0/frameworks/projects/spark/src/spark/comp > >>>>>>>>>>one > >>>>>>>>>>nt > >> >>>>>>>>s/ > >> >> >>>>>>Ap > >> >> >> >>>>pl > >> >> >> >> > > >>ication.as:1832] > >> >> >> >> > > >> at > >> >> >> >> > > >> > >> >> >> >> > > > >> >> >> >> > > >> >> >> >> > >> >> >> > >> >> > >> > >>>>>>>>>>spark.components::Application/initialize()[/Users/justinmclean > >>>>>>>>>>/Do > >>>>>>>>>>cu > >> >>>>>>>>me > >> >> >>>>>>nt > >> >> >> >>>>s/ > >> >> >> >> > > > >> >> >> >> > > >> >> >> >> > >> >> >> > >> >> > >> > >>>>>>>>>>ApacheFlex4.12.0/frameworks/projects/spark/src/spark/component > >>>>>>>>>>s/A > >>>>>>>>>>pp > >> >>>>>>>>li > >> >> >>>>>>ca > >> >> >> >>>>ti > >> >> >> >> > > >>on.as:1385] > >> >> >> >> > > >> at AppMain/initialize() at > >> >> >> >> > > >> > >> >> >> >> > > > >> >> >> >> > > >> >> >> >> > >> >> >> > >> >> > >> > >>>>>>>>>>mx.managers.systemClasses::ChildManager/childAdded()[/Users/ju > >>>>>>>>>>sti > >>>>>>>>>>nm > >> >>>>>>>>cl > >> >> >>>>>>ea > >> >> >> >>>>n/ > >> >> >> >> > > > >> >> >> >> > > >> >> >> >> > >> >> >> > >> >> > >> > >>>>>>>>>>Documents/ApacheFlex4.12.0/frameworks/projects/framework/src/m > >>>>>>>>>>x/m > >>>>>>>>>>an > >> >>>>>>>>ag > >> >> >>>>>>er > >> >> >> >>>>s/ > >> >> >> >> > > >>systemClasses/ChildManager.as:197] > >> >> >> >> > > >> at > >> >> >> >> > > >> > >> >> >> >> > > > >> >> >> >> > > >> >> >> >> > >> >> >> > >> >> > >> > >>>>>>>>>>mx.managers.systemClasses::ChildManager/initializeTopLevelWind > >>>>>>>>>>ow( > >>>>>>>>>>)[ > >> >>>>>>>>/U > >> >> >>>>>>se > >> >> >> >>>>rs > >> >> >> >> > > > >> >> >> >> > > >> >> >> >> > >> >> >> > >> >> > >> > >>>>>>>>>>/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/f > >>>>>>>>>>ram > >>>>>>>>>>ew > >> >>>>>>>>or > >> >> >>>>>>k/ > >> >> >> >>>>sr > >> >> >> >> > > >>c/mx/managers/systemClasses/ChildManager.as:367] > >> >> >> >> > > >> at > >> >> >> >> > > >> > >> >> >> >> > > > >> >> >> >> > > >> >> >> >> > >> >> >> > >> >> > >> > >>>>>>>>>>mx.managers::SystemManager/initializeTopLevelWindow()[/Users/j > >>>>>>>>>>ust > >>>>>>>>>>in > >> >>>>>>>>mc > >> >> >>>>>>le > >> >> >> >>>>an > >> >> >> >> > > > >> >> >> >> > > >> >> >> >> > >> >> >> > >> >> > >> > >>>>>>>>>>/Documents/ApacheFlex4.12.0/frameworks/projects/framework/src/ > >>>>>>>>>>mx/ > >>>>>>>>>>ma > >> >>>>>>>>na > >> >> >>>>>>ge > >> >> >> >>>>rs > >> >> >> >> > > >>/SystemManager.as:3065] > >> >> >> >> > > >> at mx.managers::SystemManager/ > >> >> >> >> > > >> > >> >> >> >> > > >> > >> >> >> >> > > > >> >> >> >> > > >> >> >> >> > >> >> >> >> > >> >> >> > >> >> >> > >> >> > >> >> > >> > >>http://www.adobe.com/2006/flex/mx/internal::kickOff()[/Users/justinmcl > >>ean > >> >> >> >> > > > >> >> >> >> > > >> >> >> >> > >> >> >> > >> >> > >> > >>>>>>>>>>/Documents/ApacheFlex4.12.0/frameworks/projects/framework/src/ > >>>>>>>>>>mx/ > >>>>>>>>>>ma > >> >>>>>>>>na > >> >> >>>>>>ge > >> >> >> >>>>rs > >> >> >> >> > > >>/SystemManager.as:2851] > >> >> >> >> > > >> at mx.managers::SystemManager/ > >> >> >> >> > > >> > >> >> >> >> > > >> > >> >> >> >> > > > >> >> >> >> > > >> >> >> >> > >> >> >> >> > >> >> >> > >> >> >> > >> >> > >> >> > >> > >>http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler( > >>)[/ > >> >> >> >> > > > >> >> >> >> > > >> >> >> >> > >> >> >> > >> >> > >> > >>>>>>>>>>Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/proje > >>>>>>>>>>cts > >>>>>>>>>>/f > >> >>>>>>>>ra > >> >> >>>>>>me > >> >> >> >>>>wo > >> >> >> >> > > >>rk/src/mx/managers/SystemManager.as:2731] > >> >> >> >> > > >> at > >>flash.events::EventDispatcher/dispatchEventFunction() > >> >> >> >> > > >> at flash.events::EventDispatcher/dispatchEvent() > >> >> >> >> > > >> at > >> >> >> >> > > >> > >> >> >> >> > > > >> >> >> >> > > >> >> >> >> > >> >> >> > >> >> > >> > >>>>>>>>>>mx.preloaders::Preloader/timerHandler()[/Users/justinmclean/Do > >>>>>>>>>>cum > >>>>>>>>>>en > >> >>>>>>>>ts > >> >> >>>>>>/A > >> >> >> >>>>pa > >> >> >> >> > > > >> >> >> >> > > >> >> >> >> > >> >> >> > >> >> > >> > >>>>>>>>>>cheFlex4.12.0/frameworks/projects/framework/src/mx/preloaders/ > >>>>>>>>>>Pre > >>>>>>>>>>lo > >> >>>>>>>>ad > >> >> >>>>>>er > >> >> >> >>>>.a > >> >> >> >> > > >>s:572] > >> >> >> >> > > >> at flash.utils::Timer/_timerDispatch() > >> >> >> >> > > >> at flash.utils::Timer/tick() > >> >> >> >> > > >> > >> >> >> >> > > > >> >> >> >> > > > >> >> >> >> > > >> >> >> >> > >> >> >> > >> >> >> > >> >> > >> >> > >> > >> > > --089e0141a902d95f0404f47ea1d2--