Referencing Stage From External Class

I have an external class file that extends the MovieClip
class and is linked to a movieClip on the main stage. I need it to
be able to access properties of other movieclips on the main stage.
How could I do this. Here is what my base movieclip class that I
want to access the stage with looks like. Remember, it is linked to
a movieclip on the stage, if that matters...
Obviously there is more code in the class, but I removed it
for the sake of simplicity.

that's what I thought too, but it's not working.
in my document class Main I tried
mc_bg:MovieClip = new mc_background();
then i tried passing the mc_bg MovieClip instance to the Background class.
That gives Error 1180: Call to a Possibly undefined method mc_background.

Similar Messages

  • Reference Flex Stage From AS Class

    I have an AS2 Class that I am converting to AS3. There are
    several functions which used to reference _root to get a list of
    objects from the main "stage". I am having trouble finding a
    reference from the class to the main application.
    Specifically, this is what I would like to do:
    In the AS3 class, I want to reference the main application's
    stage display list and parse through it. For example, if I were
    using the following code from
    http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=L iveDocs_Parts&file=00001853.html
    in an AS3 class, and I wanted to parse through the DisplayList of
    the main application's stage objects, how could I reference the
    main application stage without having to pass the objects through
    from the main application?
    The following code works if it is part of the main
    application, but using 'this' in the function call doesn't work,
    nor does the use of 'stage' if this same code is moved to and AS
    class and imported into the main application.
    function traceDisplayList(container:DisplayObjectContainer,
    indentString:String = ""):void {
    var child:DisplayObject;
    for (var i:uint=0; i < container.numChildren; i++) {
    child = container.getChildAt(i);
    trace (indentString, child, child.name);
    if (container.getChildAt(i) is DisplayObjectContainer) {
    traceDisplayList(DisplayObjectContainer(child), indentString
    + " ")
    traceDisplayList(this);
    Any suggestoins? Am I just approaching this the wrong way?
    Thank you.

    Thank you Peter. This was exactly what I needed. To make it
    work properly I just had to:
    import mx.core.Application
    var tempObj:Object = Application.application;
    traceDisplayList(tempObj);
    It works great! Thank you.

  • Accessing display object on the stage from another class

    I've googled this to no avail, I've only found how to manipulate the stage itself and not a display object on it, and I'm noob enough to not be able to figure it out from there. :/
    I have a movie clip on the main timeline with instance name displayName. I created a button that should change what frame displayName goes to (in order to...did you guess it?! diplay the Name of the button. Awesome. )
    So I am trying to write the code in a reusable fashion and have the buttons all linked to a class called GeoPuzzle. Inside GeoPuzzle I instantiate a touch event and run the code. However, the function has to be able to change displayName in the main part of the timeline and, of course, the compiler says displayName doesn't exist because I'm in a class and I'm talking about the stage.
    Here is the simplified code in the class:
    package  com.freerangeeggheads.puzzleography {
        import flash.display.MovieClip;
        import flash.events.TouchEvent;
        public class GeoPuzzle extends MovieClip {
            //declare variables
            public function setInitial (abbrev:String, fullName:String, isLocked:Boolean):void {
                //set parameters
                this.addEventListener(TouchEvent.TOUCH_BEGIN, geoTouchBeginHandler);
            public function GeoPuzzle (): void {
            public function geoTouchBeginHandler (e:TouchEvent): void {
                   e.target.addEventListener(TouchEvent.TOUCH_END, geoTouchEndHandler);
                   //some other methods
                   nameDisplay.gotoAndStop(e.target.abbrev);
            public function geoTouchEndHandler (e:TouchEvent): void {
                //some other methods
               nameDisplay.gotoAndStop("USA");
    The lines in bold are my problem. Now this code doesn't actually execute as is so if you see an error in it, yeah, I have no idea what the problem is, but it DID execute before and these lines still gave me trouble so I'm trying to troubleshoot on multiple fronts.
    How can I tell displayName to change it's current frame from within display object class?
    Thanks!

    if displayName is a GeoPuzzle instance, use:
    package  com.freerangeeggheads.puzzleography {
        import flash.display.MovieClip;
        import flash.events.TouchEvent;
        public class GeoPuzzle extends MovieClip {
            //declare variables
            public function setInitial (abbrev:String, fullName:String, isLocked:Boolean):void {
                //set parameters
                this.addEventListener(TouchEvent.TOUCH_BEGIN, geoTouchBeginHandler);
            public function GeoPuzzle (): void {
            public function geoTouchBeginHandler (e:TouchEvent): void {
                   e.target.addEventListener(TouchEvent.TOUCH_END, geoTouchEndHandler);
                   //some other methods
                   this.gotoAndStop(this.abbrev);
            public function geoTouchEndHandler (e:TouchEvent): void {
                //some other methods
               this.gotoAndStop("USA");

  • Target object on stage from within Class

    Hi,
    I have a custom class which uses some buttons on the stage. Or at least is trying to.
    say have this code in the customClass.as file
    package{
         import flash.events.*;
         import flash.display.MovieClip
         public class customClass{
              public function customCLass (){
                   btn.addEventListener(MouseEvent.MOUSE_OVER , btnOVER);
              private function btnOVER (e:MouseEvent):void{
                  btn.gotoAndStop('over');
    The Lines marked in red throw me this kind of error:
    1120: Access of undefined property btn.

    I am creating the class in a sepparate file.
    when i create an object in this class i pass another object to the class from the timeline. That returns no errors.
    I create objects from the timeline like this:
    var object:customClass = new customClass();

  • How do I refer to the stage from a class?

    I have a class that places objects on stage with addChild(obj) it allowes me to position objects using pixels( say obj.x = 10; obj.y= 50; ) just fine but if
    I try this:  obj.x = stage.stageWidth / 2;  I get a message that I Cannot access a property or method of a null object reference

    The stage property is only available to objects that are currently on the display list. Your best bet is probably to pass a stage reference to the class when you instantiate it.

  • JSF backing bean accessibility from external class

    I am using JSF in my application. Consider i am assigning a value of the inputtext field to a string in my managed bean. This bean has the getters and setters for the string.
    Now my requirement is to get the value of the string i.e. the string value entered in the input text field in another class file. If "A" is a backing bean, I want a class B to access the values(in this case the inputtext value) from A.
    Thanks in Advance.

    Below is the code where i am using the inputtext tag in the JSP page
    <h:inputText value="#{person.name}" />
    "person" is the backing bean which is declared in the faces-config.xml
    PersonBean code:*
    package jsfExample;
    public class PersonBean {
         private String name;
    public void setName(String name) {
              this.name = name;
    public String getName() {
              return this.name;
    Now i have another class in the same package as shown below.
    package jsfExample;
    public class worker extends PersonBean{
    //this function should use the variable name present in the backing bean//
         public void access(){
         PersonBean person= new PersonBean();
         String str=person.getName();
         System.out.println(str);
    //I am getting null value in the str variable inside here//
    but if i print the variable inside the backing bean(*PersonBean*) it is working fine.

  • Creating new instances of objects from external classes

    Hello!
    I have a number of classes, in particular a 'room' class and a 'player' class. I've just made them as simple classes with a couple of fields and a few accessor and mutator methods.
    I have a 'start' class, and at the moment it has the heading:
    public class start extends room {  This is working fine, as I have been able to create an array of rooms and use the room object's roomName method for each room to name it. But now I also want to create a new player:
    player player1 = new player;But I don't know how to do that. I'm fairly new to Java and have been working from web tutorials and textbooks, but am still not quite used to the very 'universal' format of the code (i.e it just uses generic terms instead of actual examples of real-life situations).
    If someone can help me with a simple way of having both the room and player class available for new object creation I'd be most grateful. My compiler cannot seem to create the new player as there is no direct link to that class.
    Cheers.
    Hussein.
    "Simplicity is appreciated."

    You keep posting these basic questions and asking for simple answers. Well, learning Java is not a simple task. You need to start at the beginning of a long road and take many steps, one at a time. May I suggest one or more of the following:
    Sun's basic Java tutorial
    Sun's New To Java Center. Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    http://javaalmanac.com. A couple dozen code examples that supplement The Java Developers Almanac.
    jGuru. A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch. To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    Bruce Eckel's Thinking in Java (Available online.)
    Joshua Bloch's Effective Java
    Bert Bates and Kathy Sierra's Head First Java.
    James Gosling's The Java Programming Language. Gosling is
    the creator of Java. It doesn't get much more authoratative than this.

  • Access movieclip on stage from class?

    Hi all,
    Is it possible to access a movieclip which has been dragged onto the main stage in my FLA from an external class that i've written? Can i create a variable that refers to the object on the stage? Or does it have to be added dynamically to be accessible?
    Many Thanks
    Matt

    Hi Ned, i'm not instantiating it as such i'm just using it to store quite a large method which is being called from the document class.
    I'm trying to break all my code down into chuncks stored in .as files so that i dont have 2,000 lines of code all in frame one of the main timeline : S
    So this is my document class:
    package  {
              import flash.display.MovieClip;
              import loadXML;
              public class mainClass extends MovieClip {
                        public function mainClass () {
                              loadXML.importXML();
    then this is the class being called from the mainClass:
    package  {
              import flash.display.Stage;
              import flash.net.*;
              import flash.events.ProgressEvent
              import flash.events.Event;
              import flash.text.*;
              public class loadXML {
                        private static var myXML:XML;
                        private static var myLoader:URLLoader = new URLLoader();
                        public function loadXML() {
                        public static function importXML():void{
                                       myLoader.load(new URLRequest("pipeLineData.xml"));
                                       myLoader.addEventListener(Event.COMPLETE, processXML);
                        private static function processXML(e:Event):void {
                                       myXML = new XML(e.target.data);
                                       objectOnStage.text = myXML.TEXT[0];
                                       //etc...
                                       //etc...
    Many thanks
    Matt

  • Calling PL/SQL function from external Java class

    I was wondering if I was able to call a pl/sql function from an external java class? If so, would you be able to tell me briefly on how to go about it. I know I can call java methods that are internally stored in the db from pl/sql, but I was hoping I could call pl/sql from external java. Thanks,
    Kelly

    Ok, I made the changes, but I'm now getting the following error:
    Error code = 1403
    Error message = ORA-01403: no data found
    ORA-06512: at "IOBOARD.GETSTATUS", line 6
    ORA-06512: at line 1
    The ora-01403 I don't understand because there is data for the name Kelly.Brace.
    ora-06512 error: at string line string.
    Here's what the code looks like after I made the changes:
    String sql = "{?=call ioboard.GetStatus(?)}";
          // create a Statement object
          myStatement = myConnection.prepareCall( sql );
          myStatement.setString( 1, "Kelly.Brace" );
          myStatement.registerOutParameter(2, java.sql.Types.LONGVARCHAR );
          // create a ResultSet object, and populate it with the
          // result of a SELECT statement
          ResultSet myResultSet = myStatement.executeQuery();
          // retrieve the row from the ResultSet using the
          // next() method
          myResultSet.next();
          // retrieve the user from the row in the ResultSet using the
          // getString() method
          String status = myResultSet.getString(1);
          System.out.println("Hello Kelly, your status is: " + status);
          // close this ResultSet object using the close() method
          myResultSet.close();Here's what the function looks like:
    CREATE OR REPLACE FUNCTION GetStatus( user_name in varchar2)
    RETURN VARCHAR2
    is
    v_status varchar2(10);
    BEGIN
    select iob_location into v_status
    from ioboard.iob_user
    where iob_username = user_name;
      RETURN( v_status);
    END;This works perfectly in the SQL Window:
    select iob_location
    from ioboard.iob_user
    where iob_username = 'Kelly.Brace';

  • How do I dynamically load a SWF that was compiled from an Fla with a linked external class file

    I am dynamically loading external SWFs in a Main Fla in response to clicks on a menu.
    The loading code is standard and works fine for all of the SWFs except one. When I try to load it I get the following error:
    Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.
    I am certain that the URL to the problem SWF is correct. The SWF itself doesn't load any other SWFs or images.
    The problem SWF is linked to an external class file and compiled with it.
    i.e. in the properties panel of the main timeline of the problem SWF's Fla I have entered the path to the external class.
    1. there is no problem compiling this SWF with the class (it works fine by itself)
    2. if I remove the external class from the properties panel and don't use it the resulting SWF imports without a problem into the Main Fla mentioned before
    So the problem seems to be the fact that the external class is linked in the properties panel. Is this a path problem?
    Would appreciate any suggestions,
    Thanks!

    despite what you say, that loaded swf most likely is loading something and that's the cause of the error.
    you could test that by putting the main swf's embedding html file in the same directory with problematic swf.  if the problem is as explained above, you'll have no problem when the main html is in the same directory with the loaded swf.

  • Referencing external classes in the classes loaded into ORACLE8i

    Hi
    If I have to load a .class file into oracle8i and if it references another class XYZ.class file in the path /export/home/user what should I do to resolve during the loading. What happens if XYZ.class imports from a test.jar.
    Thanx

    Any external class references from classes loaded in ORACLE 8i must also be loaded into the database. The classes loaded into the db must be transitively closed. All external class reference must be either in the CORE Java api's (provided by Oracle) or must be loaded with the class in question.

  • Referencing external classes

    I have a java.jar file its and Instant Messenger program I want the jar file to referance external class files from the same directory that way it can allow people to submit updates and patches and reference them even when they arent in the same jar file.
    Sorry for grammer submitting this from my iPod Touch :)

    The classpath needs to reference the directory that contains the class files for your program to use them.

  • Referencing files from classes

    Hi All,
    could someone help me out with the correct procedure to reference a file (not a java class) from a class? In my situation I have a directory structure for a web app of the form:
    /WEB-INF/my-config.xml
    /WEB-INF/classes/datautils/AppConfig.class
    (the two WEB-INFs being the same directory obviously)
    This structure could end up in any directory, depending on the arrangement of the webserver, or in a jar file for instance. AppConfig.class and my-config.xml will always have the same relative relationship.
    I want something like:
    File file = new File(***PathToFile***);
    In the AppConfig class, the problem is that ***PathToFile*** changes depending on where the app is installed and where its run from in the server.
    Is there a way of say finding out the path of the class AppConfig.class and then using that to construct the path to my-config.xml?
    Cheers
    Matt

    Thanks guys,
    a couple of issues though - first baddar:
    There are methods in the File API to tell me where a File is once I have located a reference to it. In my case I need to know where AppConfig.class is located before I can even find the file my-config.xml and set up a File object that wraps it. So those methods don't help me.
    akalex:
    That method works fine in if I am using these classes in a web app and have a Servlet context to use. I want a technique that doesn't rely on the Servlet api preferably. That way I can use the AppConfig.class in other situations. The name AppConfig.class doesn't sound like a class that would be used elsewhere I know, but in another situation I may have a general class I would like to set its behaviour with a file and use in other applications.
    So the question remains - is there anyway I can find out the path that a class is in when running any kind of Java app - not necessarily in a container, perhaps just on a JVM as a standalone app.
    thanks chaps
    matt

  • Variable from one class to another

    I have a Program that contains a JDesktop Pane, and when the program starts, it creates the "main" window as in JInternal Frame.
    When a certain check box is checked, I call an external class that creates and returns a JInternalFrame. What I need to do is have the external class get a Vector from the main class (I pass it in when i create the object), edit the Vector, then return it to the main class. If i try to create a method in the main class like "returnVector()" or whatever to get the vector back to the main class, I get the error of "Non-static variable cannot be referenced from a non-static context". How can I get around that? The NEXT issue is this: I would like to cause the JInternalFrame that is created from the external class (on the JDesktopPane in the main class) to close itself when a button in it is clicked. I'm guess I'd need a Listener somewhere. Would that listener be in the Main class or in the external one. Does this make sense? Any help would be greatly appreciated.

    Sorry, This might be a bit lengthy, but it works and illustrates my problem. I created it in NetBeans. There are the two classes I'm jusing. The issue is illustrated in the button listener on the 2nd class:
    The First:
    package javaapplication3;
    import java.beans.PropertyVetoException;
    import java.util.Vector;
    import javax.swing.JInternalFrame;
    public class NewJFrame extends javax.swing.JFrame {
        Vector <String> TestVector = new Vector <String> (0); //Vector to move around.
        public NewJFrame() {
            //add some test strings to the Vector
            TestVector.add("String1");
            TestVector.add("String2");
            TestVector.add("String3");
            initComponents();
        // <editor-fold defaultstate="collapsed" desc=" Generated Code ">                         
        private void initComponents() {
            jDesktopPane1 = new javax.swing.JDesktopPane();
            jInternalFrame1 = new javax.swing.JInternalFrame();
            jLabel1 = new javax.swing.JLabel();
            jButton1 = new javax.swing.JButton();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            jInternalFrame1.getContentPane().setLayout(new java.awt.FlowLayout());
            jInternalFrame1.setVisible(true);
            jLabel1.setText("This is a VERY simple example");
            jInternalFrame1.getContentPane().add(jLabel1);
            jButton1.setText("Press this");
            jButton1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    ButtonListen(evt);
            jInternalFrame1.getContentPane().add(jButton1);
            jInternalFrame1.setBounds(10, 10, 350, 120);
            jDesktopPane1.add(jInternalFrame1, javax.swing.JLayeredPane.DEFAULT_LAYER);
            org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(jDesktopPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE)
            layout.setVerticalGroup(
                layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(jDesktopPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 300, Short.MAX_VALUE)
            pack();
        }// </editor-fold>                       
        private void ButtonListen(java.awt.event.ActionEvent evt) {                             
            JInternalFrame newFrame;
            NewJFrame2 roadframe = new NewJFrame2(TestVector);
            newFrame= roadframe.getFrameBack();
            newFrame.setVisible(true);
            jDesktopPane1.add(newFrame);
            try {
                newFrame.setSelected(true);
            } catch (PropertyVetoException ex) {
                ex.printStackTrace();
        //created this in hopes of using it to return the vector from NewJFrame2
        public void returnVector(Vector<String> vectorAgain){
            this.TestVector=vectorAgain;
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new NewJFrame().setVisible(true);
        // Variables declaration - do not modify                    
        private javax.swing.JButton jButton1;
        private javax.swing.JDesktopPane jDesktopPane1;
        private javax.swing.JInternalFrame jInternalFrame1;
        private javax.swing.JLabel jLabel1;
        // End of variables declaration                  
    }The 2nd:
    package javaapplication3;
    import java.util.Vector;
    import javax.swing.DefaultListModel;
    import javax.swing.JInternalFrame;
    public class NewJFrame2 extends javax.swing.JFrame {
        Vector <String> testVector=new Vector<String>(0);
        DefaultListModel model;
        public NewJFrame2(Vector <String> TestVector) {
            this.testVector=TestVector;
            initComponents();
        public JInternalFrame getFrameBack(){
            return jInternalFrame1;
        // <editor-fold defaultstate="collapsed" desc=" Generated Code ">
        private void initComponents() {
            jInternalFrame1 = new javax.swing.JInternalFrame();
            jLabel1 = new javax.swing.JLabel();
            jLabel2 = new javax.swing.JLabel();
            jScrollPane1 = new javax.swing.JScrollPane();
            model=new DefaultListModel();
            for (int a=0; a<testVector.size();a++){
                model.addElement(testVector.get(a));
            jList1 = jList1=new javax.swing.JList(model);
            jButton1 = new javax.swing.JButton();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            jInternalFrame1.setVisible(true);
            jLabel1.setText("This is the 2nd class I was referencing I passed TestVector from NewFrame. It Contains:");
            jInternalFrame1.getContentPane().add(jLabel1, java.awt.BorderLayout.NORTH);
            jLabel2.setText("Now I want to Edit this list here, and then send it back to NewFrame1. The button will attemp.");
            jInternalFrame1.getContentPane().add(jLabel2, java.awt.BorderLayout.SOUTH);
            jScrollPane1.setViewportView(jList1);
            jInternalFrame1.getContentPane().add(jScrollPane1, java.awt.BorderLayout.CENTER);
            jButton1.setText("Return Vector");
            jButton1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    ReturnVectorButtonListener(evt);
            jInternalFrame1.getContentPane().add(jButton1, java.awt.BorderLayout.EAST);
            org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(jInternalFrame1)
            layout.setVerticalGroup(
                layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(jInternalFrame1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
            pack();
        }// </editor-fold>
        private void ReturnVectorButtonListener(java.awt.event.ActionEvent evt) {
        NewJFrame.returnVector(testVector);
        // Variables declaration - do not modify
        private javax.swing.JButton jButton1;
        private javax.swing.JInternalFrame jInternalFrame1;
        private javax.swing.JLabel jLabel1;
        private javax.swing.JLabel jLabel2;
        private javax.swing.JList jList1;
        private javax.swing.JScrollPane jScrollPane1;
        // End of variables declaration
    }

  • Trouble Using DataProvider in External Class

    Hello,
    I am creating a Flash form which will include a drop-down selection menu from which a user may choose their state. I originally accomplished this by adding a ComboBox to the stage and then populated the ComboBox's DataProvider object with an XML listing of all the state names and the corresponding values. Everything works as expected.
    I have decided, however, that it would make the most sense to create an external class to accomplish the same thing. I have attempted to create such a class using the following code:
    package {
    import fl.data.DataProvider;
    import fl.controls.ComboBox;
    public class StateSelectionList extends ComboBox {
    private var xml:XML;
    private var dp:DataProvider;
    private var cb:ComboBox;
    public function StateSelectionList() {
    xml = <states>
    <state name="AL - ALABAMA" value="AL" />
    <state name="AK - ALASKA" value="AK" />
    <state name="AZ - ARIZONA" value="AZ" />
    </states>;
    dp = new DataProvider(xml);
    cb = new ComboBox();
    cb.dataProvider = dp;
    cb.labelField = "name";
    I then attempted to use this class in my Flash file by adding a ComboBox component to my library and then by creating a new StateSelectionList object and adding it the stage using the following code:
    var states:StateSelectionList = new StateSelectionList();
    addChild(states);
    The data provider for the new object is empty, however, as one can find by tracing the length of the object's dataProvider property;
    trace(states.dataProvider.length);
    I am new to creating external class files so I am not sure why the new object is not populated with any data. Thanks in advance for any suggestions.
    P.S. Please feel free to download the complete XML file I created for the states. The file includes all US states and possessions, US military states, and Canadian provinces and territories. http://windhorsemedia.com/private/states.xml

    There is a something tricky:
    first if you extend the combo box ther is no need to create a new instance in its constructor only to pass the data provider. This will work
        var xml:XML =<states>
                <state name="AL - ALABAMA" value="AL" />
                <state name="AK - ALASKA" value="AK" />
                <state name="AZ - ARIZONA" value='AZ' />
                </states>;
                dataProvider=new DataProvider(xml);
    dataProvider is public from base class ComboBox so you can access it anytime. But the properties that are inspactable may be setted with effect only after second frame is passed so try this
    public class StateSelectionList extends ComboBox {
            public function StateSelectionList():void
              addEventListener( Event>ENTER_FRAME, onsecondFrame, false, 0, true )
    private function onsecondFrame( evnt : Event ): void
    removeEventListener( Event>ENTER_FRAME, onsecondFrame
                var xml:XML =<states>
                <state name="AL - ALABAMA" value="AL" />
                <state name="AK - ALASKA" value="AK" />
                <state name="AZ - ARIZONA" value='AZ' />
                </states>;
                dataProvider=new DataProvider(xml);
                labelField="name";
    Note, In my custom components when I extend the UIComponent a set the parameter in afterComponentParameters or CreateUI( I think this was the name ) methods but more fast is just to pass one frame and set the parameturs

Maybe you are looking for

  • Set Production Order to Release status

    Hi, I’m trying to add a new production order through the DI API.  I’m using SAP 2005A SP01 PL 07.  I’m creating it from a sales order.  But if I try to set the status of the Production Order to Release I get a -5002 error.  If I set the status as Pla

  • ConverterTag / ConverterELTag in JSF 1.2

    I am trying to understand how to properly write a converter in JSF 1.2. ConverterTag has been deprecated and "partially" replaced by ConverterELTag. Creating the converter is now "an implementation detail". What does that mean for the hapless JSF pro

  • Cropped a jpg and did a "ctrl s" to save it but everytime I do, it wants to save as a .PSD, why?

    Trying to crop a couple of hundred images.  Was using CS2 to do it but then I thought why not use CS6 to do it.  Opened a jpg, cropped it the way I wanted and did a ctrl s to save it, only to find it wants to save it as a psd.  Not cool.

  • Building a OIBEE Business Model

    Hello , I am looking into building a OBIEE application. I need to following Dashboard reports and their fields: --1-- Carrier Year Cost Country Total Weight Total WeightCosts (Cost*Weight) --2-- Carrier Year Cost Country I was imagining to do the fol

  • Changing Users default Schema

    Hello, I'm trying to add a new user to my DB giving him the Schema of an old user as his default Schema. Can somebody tell me how to change User2's default schema to User1? Thanks in advance, Gregor