Create custom components: lack of problem MovieClip

Hi guys,.

I've been creating reusable components customized for a while now, but have noticed a problem with one of my components.

I have two Clips that represent the status of a phone operator, I want to be able to be styled individually; unavailable, available. The two video clips are found in component assets/_private folder in the library, as well as a container that I use for positioning and swapping/addChild/removeChild every two clips. The bin is emptied when the component is loaded, and then depending on the update settings, the relevant clip is loaded in it, using the AS3 class file.

Now on the real state of the component I have positioned available clip, and one not available does not exist on the stage.

When I create the hold and run the MXI to package the component in a distributable ZXP file unavailable clip seems to disappear from the packaging.

Each video clip in the library needs to exist on the stage so that it can be included in the package? Or I can specify which elements should be included.

Would be great for this answer! Because it is a very confusing subject!

I have all of the CBC can send on request, cannot appear to download here.

Concerning

Charlie

OK, I found how to fix this.

All clips must be placed on the stage in one way or another, either inside the container movieclip (should be deleted on common language runtime) or you can simply place all movieclips on the 2nd picture of a layer on the component, as it is disabled when the component is run.

Hope this helps anyone else having this problem

Tags: Adobe Animate

Similar Questions

  • Problem starting UCM 11 G after creating custom components

    Hi all.
    I'm here because according to all my research I have found no solution to my problem. I'm a newbie in the ECM of Oracle, just learn how to create folders and users, so please, don't be angry at my lack of knowledge.

    Here are my specs:
    Host machine: Windows 7 64-bit Enterprise
    VM (using VMWare Workstation): Oracle 5 6 64-bit Linux
    Using Weblogic Server 10.3.6
    Using the database 11.2.0.2 Oracle 64-bit
    With the help of the 7u4 64-bit JDK
    With the help of the remote control 11.1.1.6.0
    Using SOA 11.1.1.6.0

    I have installed all the applications without any problem, can use/see WLS using a browser. Everything works beautifully.
    I created users on the University Complutense of MADRID, records, rules and all the rest.
    And then I created a custom component. But when I try to reboot the server, I get this error:

    ---------------------------------------


    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1872)
    at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3154)
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1518)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:484)
    to weblogic.application.internal.flow.ModuleStateDriver$ 3.next(ModuleStateDriver.java:425)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
    at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
    at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
    to weblogic.application.internal.flow.ModuleStateDriver$ 3.next(ModuleStateDriver.java:425)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
    at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
    to weblogic.application.internal.BaseDeployment$ 2.next(BaseDeployment.java:671)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
    at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:59)
    at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
    at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
    at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
    to weblogic.management.deploy.internal.DeploymentAdapter$ 1.doActivate(DeploymentAdapter.java:51)
    at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:200)
    to weblogic.management.deploy.internal.AppTransition$ 2.transitionApp(AppTransition.java:30)
    at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)
    at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
    at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
    at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180)
    at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)
    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    to weblogic.work.SelfTuningWorkManagerImpl$ WorkAdapterImpl.run (SelfTuningWorkManagerImpl.java:545)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    Caused by: intradoc.common.ServiceException: component 'MyFavorites_Teste' is missing 'version '.
    at intradoc.tools.build.ComponentPackager.stampVersion(ComponentPackager.java:268)
    at intradoc.server.ComponentLoader.load(ComponentLoader.java:423)
    at intradoc.server.IdcSystemLoader.initComponentData(IdcSystemLoader.java:497)
    at intradoc.server.IdcSystemLoader.finishInit(IdcSystemLoader.java:366)
    at intradoc.server.IdcSystemLoader.init(IdcSystemLoader.java:335)
    at intradoc.server.IdcServerManager.init(IdcServerManager.java:120)
    at intradoc.idcwls.IdcServletRequestUtils.initializeServer(IdcServletRequestUtils.java:625)
    at intradoc.idcwls.IdcServletRequestUtils.initializeServer(IdcServletRequestUtils.java:456)
    at intradoc.idcwls.IdcIntegrateWrapper.initializeServer(IdcIntegrateWrapper.java:102)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at idcservlet.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:87)
    at idcservlet.common.ClassHelperUtils.executeMethodEx(ClassHelperUtils.java:305)
    at idcservlet.common.ClassHelperUtils.executeMethodWithArgs(ClassHelperUtils.java:278)
    to idcservlet. ServletUtils.initializeContentServer (ServletUtils.java:1273)
    to idcservlet. ServletUtils.startAndConfigureServer (ServletUtils.java:547)
    to idcservlet. ServletUtils.initializeAllServers (ServletUtils.java:460)
    to idcservlet. IdcFilter.initContentServer (IdcFilter.java:181)
    to idcservlet. IdcFilter.init (IdcFilter.java:156)
    to weblogic.servlet.internal.FilterManager$ FilterInitAction.run (FilterManager.java:343)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.FilterManager.loadFilter(FilterManager.java:96)
    at weblogic.servlet.internal.FilterManager.preloadFilters(FilterManager.java:57)
    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1872)
    at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3154)
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1518)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:484)
    to weblogic.application.internal.flow.ModuleStateDriver$ 3.next(ModuleStateDriver.java:425)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
    at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
    at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
    to weblogic.application.internal.flow.ModuleStateDriver$ 3.next(ModuleStateDriver.java:425)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
    at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
    to weblogic.application.internal.BaseDeployment$ 2.next(BaseDeployment.java:671)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
    at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:59)
    at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
    at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
    at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
    to weblogic.management.deploy.internal.DeploymentAdapter$ 1.doActivate(DeploymentAdapter.java:51)
    at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:200)
    to weblogic.management.deploy.internal.AppTransition$ 2.transitionApp(AppTransition.java:30)
    at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)
    at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
    at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
    at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180)
    at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)
    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    to weblogic.work.SelfTuningWorkManagerImpl$ WorkAdapterImpl.run (SelfTuningWorkManagerImpl.java:545)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    >
    Class of origin IDC Servlet path is /app/oracle/wls/Oracle_ECM1/ucm/idc/jlib/idcserver.jar
    * Deployment of admin Begin IDC
    From IDC admin on BinDir/app/oracle/wls/user_projects/domains/base_domain/ucm/cs/bin
    +++ Reporting ClassLoader object initialized to Wed Jul 11 12:00:57 BRT 2012
    The Protocol servlet layer, ready to receive requests.

    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Server Admin Version 11 GR 1 material - 11.1.1.6.0 - idcprod1 - 111219 T 111403
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    Copyright (C) 1996-2011, Oracle and/or its affiliates. All rights reserved.
    Additional virtual directory for the corresponding model ' / *' to the context root / mapping the path of access/app/oracle/wls/user_projects/domains/base_domain/ucm/cs/weblayout /
    < 11 July 2012 12:00:57 BRT > < error > < ServletContext - > < BEA-000000 > < there is a failed to initialize at the start of the AAU. >
    < 11 July 2012 12:00:57 BRT > < error > < ServletContext - > < BEA-000000 > < could not start server "server" to the URL default web relative root "cs".
    javax.servlet.ServletException: could not start a deployment of servers of IDC.
    to idcservlet. ServletUtils.initializeContentServer (ServletUtils.java:1284)
    to idcservlet. ServletUtils.startAndConfigureServer (ServletUtils.java:547)
    to idcservlet. ServletUtils.initializeAllServers (ServletUtils.java:460)
    to idcservlet. IdcFilter.initContentServer (IdcFilter.java:181)
    to idcservlet. IdcFilter.init (IdcFilter.java:156)
    Truncated. check the log file full stacktrace
    Caused by: java.io.IOException: Oracle WebCenter content could not initialize inside the servlet environment.
    at intradoc.idcwls.IdcIntegrateWrapper.initializeServer(IdcIntegrateWrapper.java:138)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    Truncated. check the log file full stacktrace
    Caused by: intradoc.common.ServiceException:
    at intradoc.server.ComponentLoader.load(ComponentLoader.java:443)
    at intradoc.server.IdcSystemLoader.initComponentData(IdcSystemLoader.java:497)
    at intradoc.server.IdcSystemLoader.finishInit(IdcSystemLoader.java:366)
    at intradoc.server.IdcSystemLoader.init(IdcSystemLoader.java:335)
    at intradoc.server.IdcServerManager.init(IdcServerManager.java:120)
    Truncated. check the log file full stacktrace
    Caused by: intradoc.common.ServiceException: component 'MyFavorites_Teste' is missing 'version '.
    at intradoc.tools.build.ComponentPackager.stampVersion(ComponentPackager.java:268)
    at intradoc.server.ComponentLoader.load(ComponentLoader.java:423)
    at intradoc.server.IdcSystemLoader.initComponentData(IdcSystemLoader.java:497)
    at intradoc.server.IdcSystemLoader.finishInit(IdcSystemLoader.java:366)
    at intradoc.server.IdcSystemLoader.init(IdcSystemLoader.java:335)
    Truncated. check the log file full stacktrace
    >
    < 11 July 2012 12:00:57 BRT > < opinion > < Log Management > < BEA-170027 > < server has established the connection with the Service of diagnosis level domain successfully. >
    < 11 July 2012 12:00:57 BRT > < opinion > < WebLogicServer > < BEA-000365 > < server status changed to ADMIN >
    < 11 July 2012 12:00:57 BRT > < opinion > < WebLogicServer > < BEA-000365 > < Server State has changed for RESUMING >
    < 11 July 2012 12:00:57 BRT > < opinion > < Server > < BEA-002613 > < Channel "[1] by default ' is now listening on 127.0.0.1:16200 for iiop, t3, ldap, snmp, http protocols. >
    < 11 July 2012 12:00:57 BRT > < opinion > < Server > < BEA-002613 > < Channel "Default" is now listening on 192.168.80.129:16200 for iiop, t3, ldap, snmp, http protocols. >
    < 11 July 2012 12:00:57 BRT > < opinion > < WebLogicServer > < BEA-000332 > < started WebLogic Server managed by "UCM_server1" for the domain "base_domain" running in development Mode >
    < 11 July 2012 12:00:58 BRT > < opinion > < WebLogicServer > < BEA-000365 > < Server State has changed in the RACE >
    < 11 July 2012 12:00:58 BRT > < opinion > < WebLogicServer > < BEA-000360 > < server started operation >
    < 11 July 2012 12:10:51 BRT > < WARNING > < oracle.wsm.resources.policyaccess > < WSM-06210 > < an instance of the bean of oracle.wsm.policymanager.IUsageTracker of interface for the local repository at the path "" was not available for the configuration of the repository for the context oracle.wsm.policymanager.accessor.BeanAccessor accessor ' ResourcePattern [model = DOMAIN/weblogic/base_domain, subjectType is MANAGED_DOMAIN, terms = {PLATFORM, weblogic, SUBJECT_TYPE = MANAGED_DOMAIN =]. [{, DOMAIN = base_domain}] "." >
    < 11 July 2012 12:10:51 BRT > < WARNING > < oracle.wsm.resources.policyaccess > < WSM-06210 > < an instance of the bean of oracle.wsm.policymanager.IDocumentManager of interface for the local repository at the path "" was not available for the configuration of the repository for the context oracle.wsm.policymanager.accessor.BeanAccessor accessor ' ResourcePattern [model = DOMAIN/weblogic/base_domain, subjectType is MANAGED_DOMAIN, terms = {PLATFORM, weblogic, SUBJECT_TYPE = MANAGED_DOMAIN =]. [{, DOMAIN = base_domain}] "." >

    ---------------------------------------------

    I have disabled the component, restarted the server of the University Complutense of MADRID but the error still occurs:

    ----------------------------------------------

    Message from the server
    The server is unavailable.

    Please contact the site administrator to report the problem.

    Click here for administration of server process.

    --------------------------------------------

    This component 'MyFavorites_Teste' would show my documents in the Complutense University of MADRID.
    If I remove the server will work right.

    Is there anyway that I could fix it?

    Thank you!

    Fernando Gomes

    In my view, this means that you must set the content server component wizard Compatible Build-> Build-> build-> advanced settings. An example of how to do it can be found here: http://jonathanhult.com/blog/2012/06/remove-fields-from-query-builder-search-form/

    Jonathan
    http://jonathanhult.com
    http://corecontentonly.com

  • ADF faces: the challenge of creating custom components

    Hi all

    My name is Juan Manuel Tamayo, and I start a project in which we will use ADF 11 g as part of our development, unless we find significant reasons not to do so. I don't have much experience with JSF or ADF, so please accept my apology for any obvious question.

    I would like to know your opinion about the declarative elements in ADF Faces. Are they easy to use? are they flexible enough to build all the components required for a large application? In case the declarative elements are not sufficient, what other options do I have for building new, complex visual components?

    I sincerely appreciate your help.

    Kind regards

    Juan Manuel Tamayo

    Published by: juanmtamayo on January 19, 2009 20:48

    Juan,

    If the component can be built out of existing components, so if it's a component of composite, then declarative components is a good and reusable approach. If you can't find what you are looking for your next step would be the Internet to see if you find a component JSF 1.2 compatible UI that you need and that co-exists with the set of components in ADF Faces. In any last resort, you can always write your own custom JSF component.

    Frank

  • Possible bug in custom components

    I think I found a bug when you use custom components. I have a customized TabNavigator which children containers are also custom components. To do this, I can not set properties on custom containers, it fails.
    Here is an example of how do:

    1. create a TabNavigator custom like this: (in this example I'll call her TabN)
    <? XML version = "1.0" encoding = "utf-8"? >
    "< mx:TabNavigator xmlns:mx = ' http://www.adobe.com/2006/mxml" > "
    < / mx:TabNavigator >

    As you can see, there nothing wrong with it, just a custom bar

    2 create a custom like this: (in this example, named reportGrid)
    "" < mx:HBox xmlns:mx = ' http://www.adobe.com/2006/mxml '
    < mx:DataGrid id = "telefonosDG" dataProvider = "{dataGridList}" width="100%"/ >
    < mx:Script >
    <! [CDATA]
    Import mx.collections.ArrayCollection;

    [Bindable]
    public var dataGridList: ArrayCollection collection;
    []] >
    < / mx:Script >
    < / mx:HBox >

    As you can see there's only a dataGrid whose dataProvider is an arrayCollection collection-related.

    3. in your application follow these steps:
    "" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml '
    xmlns:custom = "custom.*".
    creationComplete = "initialize ()" width = "100%" height = "100%" layout = "absolute" > "

    < mx:ArrayCollection id = "testList" / >
    < custom: TabN width = "100%" >
    < custom: reportGrid id = "marketing" dataGridList = "{testList}" width = "100%" height="100%"/ >
    < / custom: TabN >

    < mx:Script >
    <! [CDATA]
    private void inicializar(): void
    {
    var prod1:Object = {};
    var prod2:Object = {};
    prod1. Qty = 1;
    prod1. Index = 1;
    prod2. Qty = 2;
    prod2. Index = 2;
    testList.addItem (prod1);
    testList.addItem (prod2);
    }
    []] >
    < / mx:Script >
    < / mx:Application >


    In theory, when you change the testList these changes should appear in the DataGrid control, but he fails, the DataGrid stays empty.

    Now instead of using the customized TabNavigator (TabN) using a normal component < mx:TabNavigator > and see what is happening, it works perfectly fine, the DataGrid control is populated with the two elements that I added.

    SO, what's the problem here? Is this a bug?

    My friend uses the 2.0.154976 version and on that one, the bug has been fixed

  • Creating custom UIComponent

    Hello

    I want to create a custom user interface controls. What I need is not only the counting or changing the appearance but creating new types of controls (these controls can possibly be skinnable components).

    What I aim to is to have, for example, controls such as a vertical sliders or knobs. I wonder if these could be achieved by a cursor skinning.

    Finally, I would like to a Jog-Wheel or the wheel, with a button in the Center, something like the old ipod.

    I did several searches on custom components or controls interface user etc but so far could not find info on the count.

    Anyone has any experience on the creation of new UIComponents reusable or you know some good examples or tutorials?

    Thank you!

    I'm not sure of the qnx.ui.slider. Personally, I tend to avoid the libs qnx for portability reasons, and as I skinned my components anyway there is little reason to use them.

    Here is my code for the knob on base. Its value is from 0 (completely to the left) to 100 (all the right way). It is not customizable and probably not usable in design mode, but it should help you get started.

    Cheers, - Jon-

    /**
     * TKnob
     * Rotary knob component
     *
     * @author Jon Webb, http://www.webbsites.nl
     * @version 1.0.0 * @date 06-apr-2011
     *
     * Licensed under MPL - Mozilla Public License - http://www.mozilla.org/MPL/
     */
    package components
    {
        import flash.events.Event;
        import flash.events.MouseEvent;
        import flash.filters.DropShadowFilter;
        import flash.geom.Point;
    
        import mx.core.UIComponent;
        import mx.managers.IFocusManagerComponent;
    
        [Event(name="change", type="flash.events.Event")]
    
        public class TKnob extends UIComponent implements IFocusManagerComponent
        {
    
            private const DEGTORAD:Number = Math.PI/180; // used for angle conversion
            private const _maxAngle:Number = 180; // maximum angle
            private const _minAngle:Number = 0; // minimum angle
            private var   _currentAngle:Number = 0; // current angle
            private var   _value:Number = 0; // current value
            private var   _valueChanged:Boolean; // track when value is changed
    
            // constructor
            public function TKnob()
            {
                super();
                this.buttonMode=true;
                this.filters = [new DropShadowFilter(5,70,0, 0.66,4,4,3,3)];
                this.addEventListener(MouseEvent.MOUSE_DOWN, handleMouseDown);
            }
            // value property setter
            public function set value(v:Number):void {
                if(v != _value) { // if changed
                    if(!isNaN(v)) { // if valid
                        _value = v;
                        _valueChanged = true;
                        invalidateProperties();
                        invalidateDisplayList();
                        dispatchEvent(new Event(Event.CHANGE, true, false));
                    }
                }
            }
            // value property getter
            public function get value():Number {
                return _value;
            }
            // mouse event handlers
            protected function handleMouseDown(e:MouseEvent):void {
                stage.addEventListener(MouseEvent.MOUSE_MOVE, handleMouseMove);
                stage.addEventListener(MouseEvent.MOUSE_UP, handleMouseUp);
            }
            protected function handleMouseMove(e:MouseEvent):void {
                _currentAngle = calculateAngle(e);
                value = (calculateValue (_currentAngle)); // use setter
            }
            protected function handleMouseUp(e:MouseEvent):void {
                stage.removeEventListener(MouseEvent.MOUSE_MOVE, handleMouseMove);
                stage.removeEventListener(MouseEvent.MOUSE_UP, handleMouseUp);
            }
            // calculate angle of mouse relative to center point
            private function calculateAngle(e:MouseEvent):Number {
                var cp:Point;
                var mp:Point;
                // get center point
                cp = new Point (this.x+this.width/2, this.y+this.height/2);
                // convert to global
                cp = this.parent.localToGlobal(cp)
                // get mouse point
                mp = new Point(e.stageX, e.stageY);
                // freedom of movement is limited to top half of knob, similar to mixer
                if(mp.y _maxAngle || r < -90) {
                        r = _maxAngle;
                    } else if (r < _minAngle && r > -90) {
                        r = _minAngle;
                    }
                    return r;
                } else {
                    return _currentAngle;
                }
            }
            // convert angle to value
            private function calculateValue(rotation:Number):Number {
                return (_currentAngle - _minAngle) / (_maxAngle - _minAngle) * 100;
            }
            // convert value to angle
            override protected function commitProperties():void {
                if (_valueChanged) {
                    _currentAngle = _value/100 * (_maxAngle - _minAngle);
                    _valueChanged = false;
                }
                super.commitProperties();
            }
            // redraw component
            override protected function updateDisplayList(uw:Number, uh:Number):void {
                super.updateDisplayList(uw, uh);
    
                var hw:Number = this.width/2; // half width
                var hh:Number = this.height/2; // half height
                var sx:Number = Math.cos(_currentAngle*DEGTORAD); // indicator x
                var sy:Number = Math.sin(_currentAngle*DEGTORAD); // indicator y
    
                graphics.clear();
                // draw the knob
                graphics.lineStyle(0,0);
                graphics.beginFill(0xDCDEE7, 1);
                graphics.drawCircle(hw, hh, hw*0.9);
                graphics.endFill();
                // draw the indicator
                graphics.lineStyle(2,0);
                graphics.moveTo(hw-(sx*hw/2), hh-(sy*hh/2));
                graphics.lineTo(hw-(sx*hw), hh-(sy*hh));
    
            }
        }
    }
    
  • Custom components in FXML

    Hello

    I want to set in the FXML a custom component, something like MyTreeItem, which extends from TreeItem. To do this, I created a MyJavaFXBuilderFactory to return the correct constructor (MyTreeItemBuilder). MyTreeItemBuilder returns instances of MyTreeItem.

    Note: Below, I send my courses and my tree.fxml.


    Is it possible to include in the custom components of fxml?



    When I run my application, I got this error:

    com.sun.javafx.fxml.PropertyNotFoundException: "myvalue" property does not exist or is read-only.

    at com.sun.javafx.fxml.BeanAdapter.put (unknown Source)

    at com.sun.javafx.fxml.BeanAdapter.put (unknown Source)

    to javafx.fxml.FXMLLoader$ Element.applyProperty (unknown Source)

    to javafx.fxml.FXMLLoader$ Element.processPropertyAttribute (unknown Source)

    to javafx.fxml.FXMLLoader$ Element.processEndElement (unknown Source)

    to javafx.fxml.FXMLLoader$ ValueElement.processEndElement (unknown Source)

    at javafx.fxml.FXMLLoader.processEndElement (unknown Source)

    at javafx.fxml.FXMLLoader.load (unknown Source)

    at MainWindowTree.start (MainWindowTree.java:33)

    to com.sun.javafx.application.LauncherImpl$ 5.run (unknown Source)

    to com.sun.javafx.application.PlatformImpl$ 4.run (unknown Source)

    to com.sun.javafx.application.PlatformImpl$ 3.run (unknown Source)

    at com.sun.glass.ui.win.WinApplication._runLoop (Native Method)

    in com.sun.glass.ui.win.WinApplication.access$ 100 (unknown Source)

    to com.sun.glass.ui.win.WinApplication$ $2 1.run (unknown Source)

    at java.lang.Thread.run(Thread.java:722)



    Tree.fxml



    <? XML version = "1.0"; Encoding = "UTF-8"? >



    <? import javafx.scene.layout. *? >

    <? import javafx.scene.control. *? >

    <? import javafx.scene. *? >

    <? import javafx.geometry.Side? >;

    <? importdummy.tree.MyTreeItem? >;



    < xmlns:fx VBox = "http://javafx.com/fxml" >

    < children >

    < showRoot TreeView = "false" fx:id = "treeView" >

    < root >

    < TreeItem value = 'Root' >

    < children >

    < MyTreeItem myvalue = "Node1" fx:id = "treeItemNode1" >

    < children >

    < TreeItem value = "none" / >

    < / children >

    < / MyTreeItem >

    < children >

    < / TreeItem >

    < / root >

    < / TreeView >

    < / children >

    < / VBox >



    Classes:



    package package dummy.tree;



    Import javafx.scene.control.TreeItem;



    SerializableAttribute public class MyTreeItem extends TreeItem {}



    public Object getMyvalue() {}

    Return super.getValue ();

    }

    public void setMyvalue (Object value) {}

    super.setValue (value);

    }



    }



    package dummy.tree;



    Import javafx.fxml.JavaFXBuilderFactory;

    Import javafx.util.Builder;

    Import javafx.util.BuilderFactory;



    Import dummy.tree.MyTreeItem;





    / public class MyJavaFXBuilderFactory implements BuilderFactory {}



    private JavaFXBuilderFactory javaFXBuilderFactory = new JavaFXBuilderFactory();



    class MyTreeItemBuilder implements {Builder < MyTreeItem >



    @Override

    public MyTreeItem build() {}

    return new MyTreeItem();

    }



    }



    @Override

    public Builder <>? getBuilder (class <>? clazz) {}

    If (clazz.equals (MyTreeItem.class)) {}

    return new MyTreeItemBuilder();

    }

    Return javaFXBuilderFactory.getBuilder (clazz);

    }



    }



    package dummy.tree;



    import java.io.InputStream;

    import java.net.URL;



    Import javafx.application.Application;

    Import javafx.fxml.FXMLLoader;

    Import javafx.fxml.JavaFXBuilderFactory;

    Import javafx.scene.Scene;

    Import javafx.scene.layout.Pane;

    Import javafx.scene.paint.Color;

    Import javafx.stage.Stage;



    SerializableAttribute public class MainWindowTree extends Application {}



    Public Shared Sub main (String [] args) {}

    Application.Launch (null);

    }



    @Override

    public void start (s phase) {}

    Location of the URL = getClass().getResource("/com/dbn/ui/theme/default/tree.fxml";);

    FXMLLoader fxmlLoader = new FXMLLoader();

    fxmlLoader.setLocation (rental);



    MyJavaFXBuilderFactory fxBuilderFactory = new MyJavaFXBuilderFactory();



    fxmlLoader.setBuilderFactory (fxBuilderFactory);

    InputStream inputStream = null;

    try {}

    inputStream = location.openStream ();

    Root = fxmlLoader.load (inputStream) (component) component;

    Scene = new scene (root, 800, 600, Color.TRANSPARENT);

    s.setScene (scene);

    s.Show ();

    } catch (Exception ex) {}

    ex.printStackTrace ();

    }

    }



    }

    Hello

    When you include the code (and the stack traces) in your forum messages, please include in a tag {code} as shown: https://forums.oracle.com/forums/ann.jspa?annID=1622 this makes it more easy for us all to read.

    Your code is sort of ok, but you have a lot of typos in your FXML and your Java code. Try searching for the code below instead. You don't actually have a constructor or by the way, it will work only without it.

    Try this FXML:

    
    
    
    
    
    
    
    
    
        
            
                
                    
                        
                            
                                
                                    
                                
                            
                        
                    
                
            
        
    
    

    With that for your item custom:

    package dummy.tree;
    
    import javafx.scene.control.TreeItem;
    
    public class MyTreeItem extends TreeItem
    {
        public Object getMyvalue()
        {
            return super.getValue();
        }
    
        public void setMyvalue(Object value)
        {
            super.setValue(value);
        }
    }
    

    And for launch:

    package dummy.tree;
    
    import javafx.application.Application;
    import javafx.fxml.FXMLLoader;
    import javafx.scene.Parent;
    import javafx.scene.Scene;
    import javafx.stage.Stage;
    
    public class TestApp extends Application
    {
        public static void main(String[] args) throws Exception
        {
            launch(args);
        }
    
        public void start(Stage stage) throws Exception
        {
            Parent rootNode = FXMLLoader.load(getClass().getResource("/tree.fxml"));
            Scene scene = new Scene(rootNode, 800, 600);
            stage.setScene(scene);
            stage.show();
        }
    }
    

    Also, I guess it is just a test case, but you don't need to provide your own "myvalue" getters/setters when this is delegated to super. Just use the 'value' property directly in your FXML.

    A view Naming Convention, it should be myValue with getMyValue and setMyValue (e.g. capital 'V'). FXML is case-sensitive too, so if you change, you need to change your FXML for use myValue instead.

    Hope that helps,
    zonski

    Did you find this answer useful? If so, please mark it as 'Correct' or 'useful '.

  • Need help to create custom legends

    Hello smart people.

    I'm trying to create custom text captions, but having a problem encouraging them to behave properly.

    Here is my method:

    1 created a legend in photoshop. Saved as a bmp in the Gallery folder using the appropriate naming convention. (I did great: 400 x 600)

    My problem:

    The legend arises and seems ok. But it's the size, I have created (great!) and does not allow me to scale down. In addition, the text has no margin, and he pushed up against the top left margin.

    I suspect it has something to do with the FCM files that I see in the Gallery folder - but how do I create one? And with what program?

    Thank you!

    Hello

    The issue of size is exactly why when you look at the legends feeding by Captivate, they are quite small. In addition, you cannot move them is less than the size, they are. Take-away from this is that you must create them from the beginning to the smallest size that you want them to be.

    Indeed, the. File FCM, is what regulates the margins. In fact, the extension of the FCM provides a clue about the history of Captivate. (He was originally known as FlashCam and FCM is the FlashCam file margins). You can use Notepad of Windows (or equivalent if Mac on a Mac) to make changes to the files of the FCM.

    See you soon... Rick

    Useful and practical links

    Captivate wish form/Bug report form

    Certified Adobe Captivate training

    SorcerStone blog

    Captivate eBooks

  • Communication between two custom components

    Hello

    I have a problem to get action in a custom component to cause a refresh of another custom component?

    My configuration is:

    < application >

    < component includeIn custom 1 "View1" >

    < component custom 2 id = "custom2" level = "{level}" "view2" includeIn >

    < component custom an includeIn 'View1' >

    < component includeIn custom B "view2" >

    < / application >

    I have a number of custom components load in my main application window.

    In the custom component 1, I have a drop down menu which determines levels 1 to 10.

    When the user chooses a new level, change an event is triggered and the dispathed to the main application that receives it in the UpdateDisplayHandler.

    Component event dispatcher custom 1:

    protected function level_changeHandler(event:IndexChangeEvent):Sub

    {

    var newDisplay:UpdateDisplay = new UpdateDisplay ("UpdateDisplay", level.selectedItem.value);

    dispatchEvent (newDisplay);

    }

    Main application manager:

    protected function updateDisplayHandler(event:UpdateDisplay):Sub

    {

    Level = event.level

    }

    Level information comes to the manager who updates the "level" variable correctly. So far so good.

    The variable "level" is can be linked and analyzed for the custom component 2.

    < components: custom2 id = level "custom2" = "{level}" / >

    The question is how to make my component custom 2 refresh(), reload() then it makes again based on new information of level?

    I will be grateful for any help on this matter.

    Karsten

    Is probably not the cleanest way, but he's going to move you quickly.

    public var levelNumber:int = new int;

    implement

    private var _levelNumber:int;

    public function get levelNumber (): int

    {

    Return _levelNumber;

    }

    public function set levelNumber(value:int):void

    {

    If (value! = _levelNumber)

    {

    _levelNumber = value;

    call the custom here update refresh method

    }

    }

    I don't know your usecase or your architecture so there are probably better ways.

    Maybe like this:

    The main application event handler:

    protectedfunction updateDisplayHandler(event:UpdateDisplay):void

    {//check if there is a change in level and exposes a public service on the part 2}

    If (level! = event.level)

    {

    Level = event.level;

    COMPONENT2.updateOrRefreshBasedOnNewLevelValue (Level);

    }

    }

    HTH,

    Claudiu

  • Disappeared from custom components

    I have some custom components in my app and when I opened Eclipse with the Flex SDK kit it shows red boxes with X inside. I'm going to fashion, the design pane Explorer and it shows the empty custom folder. I have my custom in this namespace. I restarted Eclipse, deleted and recreated the project and nothing. Any ideas?

    turns, I got back my components to another folder. Remove the component in Eclipse, create a new component of the same name in Eclipse. Copy and replace the new file with the backup file. I suppose that Eclipse was not save files for some reason any.

  • Creating custom controls

    Hi guys,.

    I use labview to control test, but normally predispose the user interface as a windows with buttons, indicators, graphic controls program etc...

    But "they" want to be a process diagram that can be used to control and monitor the user interface stuff. Fine.   However, I created custom controls by changing true/false images on radio buttons.

    They work great when the program currently does not work, IE real gives an image, click on it and the image changes, great.  But when I run the software as soon as I move my mouse over the control, on what it shows default image for example a radio button, if I click and then move the mouse, it shows the picture its supposed to, but how can I stop it showing the radio button on a mouse?

    See the attached images.

    Thanks, Zac

    You can find a great video tutorial on how to create a system of buttons on the forums of JKI. For your particular purpose, you might want to look at the DSC Module, which has the commands you seem to be wanting to use.

  • This program is best used to create custom, forms to say double surveys and networks, etc.

    This program is best used to create custom, forms to say double surveys and networks, etc.

    http://answers.Microsoft.com/en-us/Office

  • Cannot create custom themes - change the wallpaper on the evolution of a theme the wallpaper on the other themes without apparent reason.

    Hi all

    I am trying to create a bunch of different themes, with various wallpapers and color schemes.

    I use right click on desktop-> personalization.

    At first, it seemed possible to create different themes by going to the image I want, right click on 'set as wallpaper', then enter right-click-on - desktop-> personalization, right click on the theme "non-registered" now watch the wallpapers, I just chose, then selecting "save us." This appeared to save the theme under personalization-> my themes.

    I got up to 5 different themes under "My themes" by doing this.

    But now, #5 theme, it works all of a sudden is no longer like that.

    Now, when the value a new picture as a wallpaper, it does not change only "Unsaved theme" for new wallpaper, it changes at the same time theme #5 to this wallpaper as well. When I save the new theme theme #6 and then go to change theme #5 to the wallpaper I had originally, it replaces theme #6 as well. It is impossible to change a wallpaper without changing both of them.

    I don't understand why it ehaves in this way. Why can't save just a theme and then not have to worry that it will be crushed randomly if I do something else with a completely different theme?

    Th information in this link can help you.
    http://www.maketecheasier.com/create-custom-Windows-8-themes/

  • can I create custom context menus? Can I use Push technology? With the browser?

    Anyone know if I can create custom context menus? Also, can I use Push technology? I vibrate the device? With the browser?

    Just try to clarify to make sure I understood the question.  The browser does not support the menu adding items to the BlackBerry menu (I don't know how tell - the menu that is displayed when you press the menu key on the BlackBerry). Java applications are.  You could build something in JavaScript (on 4.6 and later) who gave you menus, but it does not fire when the menu button has been pushed.

  • Create custom Armors

    Hello


    I just started to use the fuse (yesterday) and ask yourself how to create custom example Stormtrooper armor / Ironman armour SciFi stuff.

    I looked quickly the .net and all I can find tutorials to create a shirt, sort the UV stuff and how to customize existing clothing.


    If someone can point me in the direction of a workflow tutorial?

    I appreciate the help of people and ideas on that.

    See you soon,.

    NIC Calvert

    Hi Nic!  At the moment we have three tutorials for custom content that go on the body, the clothes and the hair.  The tutorial of clothing is an example of the shirt, but the theory applies to any content that you want to create.  I recommend reading this first overview article, and then the links to individual courses are downstairs.

    Prerequisites and recommendations for the creation of content customized for fuse.

    Creating content for fuse is designed for 3D artists who have access to programs for 3D modeling, sculpture, hob and other knowledge and skills to configure, just like a head!  If you have any questions let me know.

  • Any request for a list of the custom components in system

    Hello

    Is there any question to find the list of the custom components in the system.

    Concerning

    Jagadish

    What is the purpose of a list of custom components?

Maybe you are looking for

  • How to connect to the HP Officejet 6500 wireless printer

    I recently bought the printer portable officejet 6500 from costco. Initially, I have it connected via a USB port on my laptop and follow the instructions in the CD. I also activated the wireless to the printer. Now, I'm trying to connect to the print

  • Toshiba 32AV615DB screen flickers offshore for a split second every few seconds

    Hello I got my toshiba TV to the end of 2009 and have not had any problems until recently. While watching my Virgin + box and while on the game console, the screen flickers offshore for a fraction of a second every few seconds. At first I thought it

  • Somehow I lost the photos of my n

    I lost all my pictures from my new pc.  I got some pictures on my old PC and put it on an external hard drive. I also added some photos I had on a CD and a stick. Then, I downloaded some pictures on my macbook from memory cards. Now I am trying to tr

  • Web Page view

    I changed something and now my web pages do not display very well. Printing is in blue, and in some cases where there is text with a box around it will appear. How to return to the display of web page by default? I tried "accesabilities" with no luck

  • error code 0ex0000100

    Very well: I have a Dell Inspiron E1505 with Windows Vista Home premium 32-bit with Service Pack 2 installed. I got a malware issue and have deleted, but now I'm not showing the restore points.  I ran every diagnosis I can (including chckdsk and he s