You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Gary Yang (JIRA)" <ji...@apache.org> on 2014/03/14 18:38:44 UTC

[jira] [Comment Edited] (FLEX-34137) Flex App swf initialization failure when working as an Android worker!!!!

    [ https://issues.apache.org/jira/browse/FLEX-34137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13935283#comment-13935283 ] 

Gary Yang edited comment on FLEX-34137 at 3/14/14 5:37 PM:
-----------------------------------------------------------

package {
import flash.display.MovieClip;

[Frame(factoryClass="mx.core.FlexApplicationBootstrap")]

public class PureAsWorkerTst extends MovieClip{
    public function PureAsWorkerTst(){
        trace( "public class PureAsWorkerTst extends Sprite{public class PureAsWorkerTst extends Sprite{" );
    }
}
}


Running as an Android worker will die, please see attached:
 PNG File FlexApplicationBootStrap tag kills Android worker.png

But without tag

[Frame(factoryClass="mx.core.FlexApplicationBootstrap")]

It will work good!


was (Author: flashflexpro):
package {
import flash.display.MovieClip;

[Frame(factoryClass="mx.core.FlexApplicationBootstrap")]

public class PureAsWorkerTst extends MovieClip{
    public function PureAsWorkerTst(){
        trace( "public class PureAsWorkerTst extends Sprite{public class PureAsWorkerTst extends Sprite{" );
    }
}
}


Running as an Android worker will die, please see attached.

But without tag
[Frame(factoryClass="mx.core.FlexApplicationBootstrap")]
It will work good!

> Flex App swf initialization failure when working as an Android worker!!!!
> -------------------------------------------------------------------------
>
>                 Key: FLEX-34137
>                 URL: https://issues.apache.org/jira/browse/FLEX-34137
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: .Unspecified - Framework
>    Affects Versions: Apache Flex 4.12.0
>            Reporter: Gary Yang
>         Attachments: FlexApplicationBootStrap tag kills Android worker.png, MXMLWorker.as, SimpleAppTest.mxml
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Flex App swf works perfect as a Flash player worker, but NOT as an Android worker: 
> This is the line caused this error: 
> var defaultMenu:ContextMenu = new ContextMenu(); 
> Error: Error #3731: This feature is not available within this context.
> 	at spark.components::Application/initContextMenu()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/spark/src/spark/components/Application.as:1832]
> 	at spark.components::Application/initialize()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/spark/src/spark/components/Application.as:1385]
> 	at AppMain/initialize()
> 	at mx.managers.systemClasses::ChildManager/childAdded()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/framework/src/mx/managers/systemClasses/ChildManager.as:197]
> 	at mx.managers.systemClasses::ChildManager/initializeTopLevelWindow()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/framework/src/mx/managers/systemClasses/ChildManager.as:367]
> 	at mx.managers::SystemManager/initializeTopLevelWindow()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/framework/src/mx/managers/SystemManager.as:3065]
> 	at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::kickOff()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/framework/src/mx/managers/SystemManager.as:2851]
> 	at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/framework/src/mx/managers/SystemManager.as:2731]
> 	at flash.events::EventDispatcher/dispatchEventFunction()
> 	at flash.events::EventDispatcher/dispatchEvent()
> 	at mx.preloaders::Preloader/timerHandler()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/framework/src/mx/preloaders/Preloader.as:572]
> 	at flash.utils::Timer/_timerDispatch()
> 	at flash.utils::Timer/tick()



--
This message was sent by Atlassian JIRA
(v6.2#6252)