Component definition

I am looking at code from a book example. A symbol is called
from the library and used on the stage. The class appears to be
dynamic because a reference to a variable called cardface appears
out of nowhere in the as file (fla is set to STRICT). When
debugging, the variable doesn't exist until the line where it is
used. After this the variable can be seen. I am thinking to myself
that the library right-click option "Component definition" would
allow me to set the variable so that it is available in the Class.
Unfortunately there is no guidance in the help system on this. I am
required to endlessly search to try and get help (not yet found).
Why does Adobe not give us this essential help - i.e. how to use
their dialog boxes? I am such a fan of Flash (AS3) but there are
some part of the system still painfully inadequate.
Any pointers would be appeciated.

you can assign a variable's default value in the component
definition dialog box, but you must initialize the variable in your
class definition and you must define what that variable does in
your class definition.

Similar Messages

  • RT Build Specifications: Component Definition Category is unresponsive

    Hi,
    I am using LabVIEW 2013 SP1 f2, with Real-Time 13.0.1
    When I open the Properties page for a Real-Time Application build specification (to run on a cRIO-9075), and select the Component Definition category, I find that the following occurs:
     - LabVIEW becomes unresponsive, and thinks for a while. It takes approximately 20-30 seconds or so to finally show the Component Defintion page.
     - When I click on Create a component definition file (.cdf), nothing happens. As I write this, I see "Required software components", and then these are greyed out: "Software component description", and "Software version" - but there is nothing to select or change?
     - If I click on another category, it takes in the order of 20 seconds to finally show this category.
     - To close the build spec (by pressing OK), it also takes a long time (more than 60 seconds). 
     - Things are fine with the build spec if I never enter the Component Definition category.
    Is anyone else experiencing this?
    Any help would be appreciated.
    Christopher Farmer
    Certified LabVIEW Architect
    Certified TestStand Developer
    http://wiredinsoftware.com.au
    Solved!
    Go to Solution.

    Hey Chris,
    I believe the following patch is the fix that you are looking for.
    LabVIEW Real-Time Module 2013 SP1 Application Builder Patch Details
    http://digital.ni.com/public.nsf/allkb/D72B45C6905D327A86257CC800547992?OpenDocument
    There's a link to download the patch at the bottom of that page.
    Regards,
    Ryan

  • Component Definition and Arrays in 8

    Is there any way to get the component inspector window to
    display the numbers next to items in an array? It's rediculous that
    they won't appear, is it a bug? I'm on a Mac G5 OS 10.4.5.
    Dan P.

    you can assign a variable's default value in the component
    definition dialog box, but you must initialize the variable in your
    class definition and you must define what that variable does in
    your class definition.

  • Edit Component Definition button not working

    Hello,
    I am using Studio Edition Version 11.1.1.4.0 (Build JDEVADF_11.1.1.4.0_GENERIC_101227.1736.5923) and have a little problem with the property inspector.
    I've created a JSF page and added an ADF Mater Table, Detail Table section.
    When I click on either of the tables I can see the properties in the property inspector but when I click on the Edit Component Definition button nothing happens, no error, no new window.
    Any idea what could be wrong?
    Cheers,
    Andy

    And suddenly it started to work. Not sure what happend.
    --Andy                                                                                                                                                                                               

  • Does creating a component definition in UI write to tables or schema ?

    When I create a custom component in the UI in Enterprises > Component Definitions - let's say a Workflow Monitor Agent - and I activate it, I understand it will update the enterprise gateway store (siebns.dat). Will this also write to any tables in the database or update the siebel schema in any way?
    We are in the middle of an upgrade from 8.1.1.3 SEA to 8.1.1.9 SIA. Currently our application stack is at release 8.1.1.9 SIA GA but our repository is still at 8.1.1.3 SEA. We want to create the header custom component definitions in the application UI to match what is in Dev to prepare for a cfgmerge after the upgphys is completed. Our concern is the risk of doing this while the app tier is not at the same release level as the repository. If we are only dealing with updates to the siebns.dat then I think we should be ok, and the cfgmerge will take care of it. But if we are writing to tables when I create these custom components in the UI then we have potential issues.
    Thanks for any feedback!
    Regards,
    Michael Smith
    Siebel Administrator
    Strategic Technology Group
    Gartner Group
    Office: 1-203-964-0096 ext. 3450
    Mobile: 1-505-720-7385

    I checked the Business Component in Tools and see it is based on virtual table (V_SRS_COMP) and not on a physical table.
    So it looks like it doesn't write to the DB.

  • Getting "Join in business component definition 'CG Opportunity My Accounts' has source fields that come from tables 'S_OPTY' and 'S_ORG_EXT'(SBL-DAT-00452)" error after upgradating to siebel Open UI 8.1.1.11

    Hello Team,
    We have upgraded from Siebel 8.1.1.3 to Siebel Open UI  8.1.1.11.
    But after up-gradation we are getting the below error in   "My Account Opportunity" View.
    We detected an Error which may have occurred for one or more of the following reasons:
    Join in business component definition 'CG Opportunity My Accounts' has source fields that come from tables 'S_OPTY' and 'S_ORG_EXT'(SBL-DAT-00452).
    Thanks,
    Tirupati Nanda
    Mob:-9742404115

    Hello Team,
    We have upgraded from Siebel 8.1.1.3 to Siebel Open UI  8.1.1.11.
    But after up-gradation we are getting the below error in   "My Account Opportunity" View.
    We detected an Error which may have occurred for one or more of the following reasons:
    Join in business component definition 'CG Opportunity My Accounts' has source fields that come from tables 'S_OPTY' and 'S_ORG_EXT'(SBL-DAT-00452).
    Thanks,
    Tirupati Nanda
    Mob:-9742404115

  • Faces-config.xml Component definition exception

    Hello,
    I have a taglib file with the following content :
    <component>
      <description>
          <p>Represents an HTML <code>input</code> element
          of type <code>text</code> with built-in completion.</p>
        </description>
        <display-name>Completion Text Field</display-name>
        <component-type>bpcatalog.ajax.AjaxTextField</component-type>
        <component-class>com.sun.j2ee.blueprints.bpcatalog.ajax.components.AjaxTextField</component-class>
        &uiinput-props;
        &core-props;
        &events-props;
        &focus-props;
        &i18n-props;
        &input-props;
        &text-props;
        <component-extension>
         <!-- TODO - can I specify HtmlInputText as the parent here? -->
          <base-component-type>javax.faces.Input</base-component-type>
          <renderer-type>AjaxTextField</renderer-type>
        </component-extension>
      </component>And when I launch my webapp, I have the following exception :
    Element type "base-component-type" must be declared
    The entity "input-props" was referenced, but not declaredCan someone explain me what is the cause of this ?
    Thanks in advance.
    bgOnline

    Sounds like you're missing definitions like:
    <!ELEMENT base-component-type (#PCDATA)>
    <!ENTITY input-props SYSTEM "input-props.xml">
    (one for each of the references)
    These definitions need to be nested in the DOCTYPE
    declaration like so:
    <!DOCTYPE faces-config PUBLIC
    "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
    "http://java.sun.com/dtd/web-facesconfig_1_1.dtd" [
    (definitions)
    ]>

  • Standard Component Definition Class Change

    Hello Experts
    1) STD. UI Component: FICACMP_WLI
        1st Viewset screen -> Search
                                    -> Search result
                 When i press 'Continue' button on the serach result view, it will take me to next screen with worklist details
        2nd Viewset Screen -> Worklist Details
                When i press 'Workitem + Interact' on the worklist details view, it will take me to next screen with 'Actions'
       3rd Viewset Screen -> Action List
    Requirement       
       1) I need to prepare Custom 'Search' View and 'Search result' view as per custom requirement, As per requirment I need to change Query_Result method also.
       2) When i press 'Continue' button on the 'Search Result' view then it must take screen directly to 3rd screen 'Action list'
       3) From ' Action List' standard functionality has to work.
    Options:
    I am planning to enhance Standard UI Component 'FICACMP_WLI' to do my requirement
    or
    do I need to prepare my custom component and i need to add component Usuage in standard UI component?
    If i add custom component then there is a small problem, standard QUERY_RESULT method is populating so many attributes which are using in next screens, when i use my custom BOL QUERY_RESULT method i can't populate the standard attributes method, because they all are protected.
    Note: Everything must be standard functionality , only i need to change 'Search' and 'Search result' , 'Query_result' method  and Navigation from 1st screen to 3rd screen.
    Just i need to skip 2nd screen.
    Please guide me.
    Thanks & Regards,
    Sarath Kothuri

    Hi Sarat,
    In my view, First enhance the UI component and then enhance the Search and Search Result view and put your custom logic there by redefining the existing methods. Then find out the event handler method for "Continue" and 'Workitem + Interact'  buttons, now redefine the event handler for "Continue" button and write the Copy paste the code from 'Workitem + Interact' event handler method. Please note I am assuming that all the views discussed in the query is in the same component.
    Regards
    Ajay

  • SMSY//Logical component definition - multiple roles for one system?

    Dear all,
    as our client has a divided system landscape (three-tier operational line as well as two-tier development line) some systems have more than one role to fill. The development system on development line is source system for all developments, as well as post-processing system for retrofit purpose from operational line. The maintenance system on operational line is target system for developments from development line, as well as source system for maintenance activities on operational line.
    --> What are the consequences of assigning multiple roles to one system?
    --> Is there anonther option than assigning multiple roles?
    Best regards
    Nick

    We have Event Manger 7.0 installed into a stand-alone SCM 7.0 system. When trying to set this up in SMSY, the only options given for setting up the Logical System is to associate with with EHP3 or EHP4 for in ECC 6.0.
    Obviously we have not installed EM into ECC. So where are the other appropriate entries in SMSY for recognizing that EM is installed in SCM?
    1) This system must be maintained as SCM 7.0 in SMSY and not as SAP ERP 6.0 or EHPX for SAP ERP 6.0, this is the reason as you can see this system SCM 7.0 can be assigned just to SAP ERP 6.0 or EHPX for SAP ERP 6.0.
    2) There's no Main Instance available to be selected when you have a SAP SCM 7.0. You must select one or more of the following main instances below.
    BI Content
    SCM Server
    cFolders on SCM Server
    GEOCODING
    Portal Content
    SAP LiveCache
    SAP NW - Adobe Docu. Service
    SCM Optimizer
    SCM WCL
    XI Content
    These are the main instances available to SCM 7.0

  • SMD: Wrong system component definition from SMSY

    Hi!
    I am using SOLMAN 7.0 EhP1 and have successfully set up SMD functionility.
    Among other I have a SAP Enterprise Portal 7.0 that of course has only J2EE stack.
    When I look into SMSY SOLMAN addes for my Portal with only J2EE stack additionaly ABAP stack.
    This setting troubles the SMD set up via http://server:port/smd because I do not have any ABAP stack within my Portal.
    Does some one know some workaround for this problem?
    Thank you very much!
    Jürgen

    Hi Jürgen,
    there are 2 possible causes for this problem:
    1. Your PPMS data is outdated: Note 1283307 https://service.sap.com/sap/support/notes/1283307
    2. Implement the following note on your system: 1301106 https://service.sap.com/sap/support/notes/1301106
    You can also use the central correction note 1172948 for EhP1 which contains all known issues for the basic scenarios in EhP1 (this includes Diagnostics)
    Best regards
    Michael

  • Can't override Button component methods

    I've got a custom class that extends the Button UIComponent. I'm trying to override the drawEmphasized() function and a few public get/set functions. I get "1020: Method marked override must override another method." for each thing I try to override. The SWF that uses the custom button will compile and work, but I don't know if the failure is creating some of the strange behavior I see. The errors appear when I drag a component onstage, or save the FLA. This seems related: http://bugs.adobe.com/jira/browse/SDK-13877  but I don't know, I can't understand the fix. Any ideas? Thanks.

    I found a workaround. Do not use the same class for Component Definition. Make a different class for use as a Component Definition. Make sure the same Inspectable tag and var declaration are in each class. So for the above extended button class, if you wanted to add a "myvar" inspectable variable, the code would be in another class as follows.
    package
        import fl.controls.Button;
        public class testButtonDEF extends Button 
    [Inspectable(name="myvar", variable="myvar", type="String", defaultValue="")]
    public var myvar:String = "";
    Also see my related thread about Inspectable properties: http://forums.adobe.com/thread/453659

  • Creating Graphics Component in Forte with GUI's

    I have created a JFrame with 2 JPanels in it that are placed side by side. However, I want to access these JPanels with Graphics...but I have no idea how to do that within Forte...I am using a Mouse Click on an Evaluate button to trigger the event...in normal java programming, from what I have seen, people create the JPanel class extends, etc. and then they put a paint() method within it...but in the Forte environment, I have no idea how to access either panel because Forte duzznt init it as a class but as just a component...I tried using Canvas instead of JPanel but that got me no where...can what I want be done within Forte or must I do this by my own editing, etc? thank you....jerry blimbaum panama city, fl

    I managed to get it work at the end...
    First, the components directory was at this location:
    C:\Users\<username>\AppData\Local\Adobe\Flash CS5\en_US\Configuration\Components
    Then, to make a component out of a MovieClip, right click on the MovieClip in the library and select "Component Definition" and check the checkbox "Display in Components Panel". What I did then was to right click on the MovieClip and selected export swc file, and saved it in the directory above. This exported only one Component, which was fine for me. Probably it would be possible to do something similar to save a library of components as a .fla or .scw or so, but I don't know the details.

  • Creating flash cs3 component

    Hi,
    There is great and easy way to create flash based component
    in flash cs3 using action script 3.0.
    I am going to make a simple My button component which will
    behave likely same as flash native button component.
    You can modify this according your requirement this is just
    you give an idea about how we can go for creating a component in
    flash cs3.
    Follow these steps…
    1. Create a fla file and save this file with any name
    2. Create a movieClip and draw a rectangle shape on first
    frame.
    3. Right click on movieclip in library, select linkage
    4. Provide class name in text field area [MyButton] (you can
    use any name here which should matched with your class)
    5. Click Ok button
    6. Write class [MyButton]
    (you can copy and use this)
    * author @ sanjeev rajput
    * [email protected]
    * A flash action script 3.0 based component without extending
    UIComponent class
    package {
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.events.MouseEvent;
    import flash.events.Event;
    import fl.motion.Color;
    public class MyButton extends Sprite{
    private var _tf:TextField;
    private var _Label:String="My Button";
    private var _bgColor:uint=0xCCCCCC;
    private var _rollOverColor:uint=0xFFCCCC;
    private var _borderColor:uint=0x000000;
    private var _borderThickness:int=1;
    private var _width:Number = 100;
    private var _height:Number =100;
    private var _background:Sprite;
    public function MyButton() {
    init();
    createChildren();
    initEventListeners();
    draw();
    //-------------property section [Start]
    [Inspectable]
    public function set Label(lbl:String){
    _Label=lbl;
    draw();
    public function get Label(){
    return _Label
    [Inspectable]
    public function set bgColor(color:uint):void{
    _bgColor=color;
    draw();
    [Inspectable]
    public function set borderColor(color:uint):void{
    _borderColor=color;
    draw();
    [Inspectable]
    public function set borderThickness(thickness:int):void{
    _borderThickness=thickness;
    [Inspectable]
    public function set rollOverColor(color:uint):void{
    _rollOverColor=color;
    //-------------property section [End]
    private function init():void {
    trace('welcome');
    _width = width;
    _height = height;
    scaleX = 1;
    scaleY = 1;
    removeChildAt(0);
    private function initEventListeners():void{
    addEventListener(MouseEvent.MOUSE_OVER, eventHandler);
    addEventListener(MouseEvent.MOUSE_OUT, eventHandler);
    private function eventHandler(event:Event):void{
    if(event.type == MouseEvent.MOUSE_OVER){
    toggleColor(_rollOverColor);
    if(event.type == MouseEvent.MOUSE_OUT){
    toggleColor(_bgColor)
    private function createChildren():void {
    _background = new Sprite();
    _tf = new TextField();
    _tf.autoSize = "center";
    _tf.selectable=false;
    addChild(_background);
    addChild(_tf);
    protected function draw():void {
    toggleColor(_bgColor);
    _tf.text = _Label;
    _tf.x = Math.floor((_width - _tf.width)/2);
    _tf.y = Math.floor((_height - _tf.height)/2);
    //width = _tf.width;
    private function toggleColor(color:uint):void{
    _background.graphics.clear();
    _background.graphics.beginFill(color, 1);
    _background.graphics.lineStyle(_borderThickness,
    _borderColor, 1);
    _background.graphics.drawRoundRect(0, 0, _width, _height,
    10, 10);
    _background.graphics.endFill();
    public function setSize(w:Number, h:Number):void {
    _width = w;
    _height = h;
    draw();
    7. Now right click again on your movieclip in library and
    select component definition.
    8. In class name text field provide same class name
    [MyButton]
    9. Click on ok button
    10. Right click again on movieClip in library and select
    Export SWC file.
    11. Same your exported SWC file in (For window only)
    [c:\Documents and Settings\$user\Local Settings\Application
    Data\Adobe\Flash CS3\en\Configuration\Commands\
    12. Now just open another new flash file open component
    panel/window reload component you will your component in component
    panel with MyButton name.
    13. Drag your custom component on stage provide inputs form
    property window and text it.
    Enjoy!

    Lt.CYX[UGA] wrote:
    > if anyone is using Flash CS3, try creating a flash
    movie, using the FLVPlayer
    > component to play an flv video and make it an executable
    projector. Run it
    > fullscreen and watch how the screen just stays black
    when the video should
    > appear. If you stay windowed, it works fine.
    >
    >
    steps to reproduce:
    > 1. create flash movie
    > 2. put an FLVPlayer component on a frame that's not the
    first (for testing
    > purposes)
    > 3. before the projector reaches the frame with the
    FLVPlayer component, change
    > it to fullscreen (by script or CTRL+F)
    >
    >
    observed behaviour:
    > not only the video doesn't play, but the whole screen is
    black until the
    > player goes back to windowed mode
    >
    >
    expected behaviour:
    > video should play
    >
    >
    remarks:
    > if you skip step 3, video plays correctly
    >
    Works just fine.
    Made new movie, on frame 2 places Full screen action, on
    frame 5 placed video component
    and stop(); action attached to frame. Projector pops large
    following by video playing
    just fine.
    I tried variety, first frame, many frames, all on one. Not
    able to reproduce your problem.
    Works on first go.
    Best Regards
    Urami
    Beauty is in the eye of the beer holder...
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Runtime Sharing & Component Inspector Bug

    I'm not sure if this is a bug with Flash or me doing something wrong. Here are the steps to reproduce:
    1) Create "Source.fla"
    draw a box on the stage and convert it to a movie clip. Call it "Component"
    export Component for actionscript. Give make the class name "Component"
    also, check "Export for runtime sharing" and put "Source.swf" in the URL. Click OK.
    Next, right click the Component in the library and select "Component Definition..."
    click the "+" button to add a parameter, give it the name "label" with type "String". Click OK
    Save and test the movie so "Source.swf" is compiled out.
    2) Create "Destination.fla" in the same directory
    close Source.fla
    go to File > Import > Open External Library...
    select Source.fla. Click OK
    you should see another Library panel show up with the Component symbol in it.
    drag the Component symbol from that library onto the stage
    save and run it. Everything should be fine: you should see your Component symbol from Source.fla should up on Destination.fla's stage.
    3) The Bug!
    now, click the imported Component symbol on Destination.fla's stage. And go to the component inspector.
    you should see the "label" property we created earlier in step 1
    change the value to something other than the default
    save and run it.
    you should see this compile time error: "Scene 1    1046: Type was not found or was not a compile-time constant: Component."
    What's up with that eh? Seems like a Flash bug to me. Unless I'm missing something.
    FYI: I'm using Adobe Flash Professional CS5 (11.0.2.489)
    Message was edited by: RovertNnud

    Yep, the problem definitely still exists in CS6 12.0.2.529.   I have hundreds of source files for lessons being used by students from PA to TX, and this BUG is making it impossible to work with the files.
    First of all, if a library object is imported for runtime sharing, then it shoudl be loaded from that external source when the file is opened, and flash should keep a file system watcher on the source RSL file so that when it changes, it automatically updates the library definition.
    Furthermore, the "Authortime Sharing" seems to handle these updates automatically, but it requires a source FLA file, and once you set one, there's no way to unlink from it.  If you decide you don't want to use Authortime Sharing, and just use the "import for runtime sharing" option instead, you're screwed.  There is no way to unassociate a file from a source FLA once you choose one.  This needs to be fixed immediatly, or RSL and Authortime sharing are useless in Flash CS6.
    Did you guys somehow patch CS5.5, without carrying the fixes forward to CS6?  lol.  This is confusing.

  • Icon for a Custom Component

    Hi --
    I am building a custom component and I have tried to create
    the icon for the
    component using
    [IconFile("iconMaskInput.png")]
    but its not working. Can someone help me out?
    Rich

    Hi --
    I followed your instructions and updated the icon for the
    movie clip inside
    my FLA file that I compiled into a SWC file. However, when I
    installed the
    SWC file the icon did not update in the palette. Is this
    because I had
    already installed the component once? Or did I do something
    wrong?
    Thanks
    Rich
    "gnfontaine" <[email protected]> wrote in
    message
    news:fm4dqs$or1$[email protected]..
    > You need to add it to the component inspector first,
    then copy it into the
    > same
    > folder where you create the install package.
    >
    > 1.) Under the component definition found in the library,
    click the default
    > icon You will be present with a list, the last choice is
    custom.
    > 2.)Check the box display in components panel.
    > 3.)If you are going to distribute the component using
    mxp package, make
    > sure a
    > copy of the component is in the same folder as the mxi
    file and that you
    > add it
    > to the files node in the mxi definition.
    >
    > Hope this helps
    >

Maybe you are looking for