Is it possible to use mx.controls in ActionScript class?

I am very new to Flex, with a very small amount of experience in ActionScript so forgive me if the answer to this is obvious. I've tried searching and haven't found a conclusive solution to my problem.
I have a Flex project that I am building in Flex Builder 3. The main application is in mxml, but most of the classes I'm using are in ActionScript.
The general purpose of the application is to create a flowchart that accepts certain inputs on the elements in the charts. The chart components are all ActionScript classes. I am attempting to add a combobox to a component, but despite not getting any errors or warnings I can't get the combobox to show up.
Here's a simplified version of the code within the class (I've left out the stuff that doesn't directly relate to my issue):
    import mx.controls.ComboBox;
          newComboBox = new ComboBox();
          newComboBox.initialized = true;
          newComboBox.alpha = 1;
          newComboBox.dataProvider = valueArray;
          newComboBox.x = 5;
          newComboBox.y = -5;
          newComboBox.height = 20;
          newComboBox.width = width - 60;
          newComboBox.visible = true;
          addChild(newComboBox);

Just realized I hadn't thanked anyone for the suggestions yet. I appreciate it.
Srirangan wrote:
Few points I can think of:
1. Try without the ".initialized = true;" property being set
2. Check if the x & y property values for the ComboBox are valid
3. Check if any styles are being applied that set the top, right, bottom or left properties thru CSS
Removing (or alternately adding) the ".initialized = true" doesn't make a difference. It was actually a last ditch effort to try to make it draw it and wasn't meant to stay in the code.
The x and y property values are valid as far as I know. The code for the positioning and sizing of the combobox was taken from the textfield below which I ended up moving down when I decided to add the combobox. The textfield has always drawn correctly.
I looked through the CSS and it doesn't appear to set top, right, bottom or left anywhere. The only CSS in the project is from the Degrafa library that I'm using to draw components.
Michael Borbor wrote:
What's the val of the variable  width?
Width is set to 150, which is the width of the Constant component.
ATIF FAROOQ wrote:
can you show the hierarchy of your flowchart component
I'm not 100% sure this is what you mean, but it's:
Sprite > Graphic (Degrafa class) > GeometryGroup (Degrafa class) > ComponentGroup > Constant
and just for reference the component's being drawn onto:
UIComponent > Surface (Degrafa class) > SurfaceComponent

Similar Messages

  • Is it possible to do motion control using Lookout

    Is it possible to use activeX controls in Lookout for controlling nuDrive motor drive?

    Hi,
    This doesn't directly answer your question.. but will hopefully give you some ideas to explore. It's more of me thinking aloud..
    Are you familiar with NI's Datalogging and Supervisory Control (DSC) module for LabVIEW? This is an excellent solution for projects involving both, a high number of IO points in an industrial setting and for high-speed measurement and acquisition. You have the benefits of LabVIEW, like DAQ, Motion and Vision, and at the same time have the Supervisory Control features like alarms, historical logging, security, networking, etc., that you want from Lookout. You can get more info' on DSC from:
    http://sine.ni.com/apps/we/nioc.vp?cid=10418〈=US
    I strongly recommend you take a look into this as a solution if your project i
    nvolves Motion along with high number of IO points.
    However, if you HAVE TO use Lookout, another approach would be to use DSC in combination with Lookout. Let the DSC module address Motion issues, and it (DSC) being an OPC Server, can be in turn communicated with Lookout (as an OPC Client).
    Hope this helps,
    Regards,
    Khalid

  • How to use Tree control like a Tree in SAP HANA Live Browser?

    Hello SDN!
    I need a Tree control such as following:
    As I understand, there is no such standard control in SAPUI5 control library. Is it possible to use this control? If yes, how I can embed it in my app?
    Regards,
    Lev

    Hi Sandip!
    Thanks for your tip. I've applied this example to my app. Tree is working now, but this is a little problem - on each expand/collapse and click on treeItem the onAfterRendering() method called. It means that the complete rerender of tree executed which looks not good. How I can avoid this?
    Lev

  • Is it possible to use BAPI-ALE to send an idoc using the message control?

    Hi Guys
    Is it possible to use BAPi-ALE to send an IDOC using a message control?
    I have configured the system to send an IDOC when a outbound delivery is saved in the system.
    I have done the following.
    1). I am using the std BAPI-ALE interface provided by the object type LIKP.
    2). I am using the method SAVEREPLICA for which an interface already exists in BDBG transaction.
    3). I hace created a distribution model in BD64 and added the BAPI - LIKP and SAVEREPLICA
    4). Created a partner profile ( using the generate partner profile option in the BD64 transaction )
    QUESTION:
    1). How do i associate the custom OUTPUT type created for Delivery ?
    2). I tried to associate the custom output type in the Partner profile definition under the message control tab but i am not sure which Process code to be used? Since the partner profile was generated automatically from BD64 it has an entry for SHP_OBDLV_SAVE_REPLICA as a message type in the outbound parameters. and i am unable to find a process code for this Message type in WE41. So what process code should i use in the Message control tab against the custom output type?
    3). Do i need to leave the message control tab empty without making any entry? If yes then how would the system come to know that it needs to trigger this partner profile when the custom output type is proposed by the system?
    will award points for useful answers
    Edited by: Workflow  learner on May 29, 2008 8:49 PM

    "any way"
    Applications such as ScreenRecycler, http://www.screenrecycler.com/ScreenRecycler.html, can do it.

  • Is it possible to use the message control in R/3 to trigger a Proxy?

    Is it possible to use the message control in R/3 to trigger a Proxy? The message control mechanism has some advantages that I want to use E.g. repeat messages with RSNAST00, configuration instead of coding etc.. Does anyone uses SD Invoice message control mechanisms together with XI Proxies?
    Best regards,
    Matthias

    Hi,
    >>>configuration instead of coding etc
    currenly it is not possible to achive it without any coding
    >>>repeat messages with RSNAST00
    RSNAST00 is not used to repeat messages (idocs) but to send them
    try using standard IDOC in your sd invoice scenario
    if you don't want to do any coding
    Regards,
    michal

  • Is it possible to use software limits on 7354 board when switching control modes from open to closed or closed to open loop?

    Is it possible to use software limits on 7354 board when switching control modes from open to closed or closed to open loop?

    Hello Richard,
    When you say 'open loop' and 'closed loop', are you referring to running the application in position and torque mode? If not, how exactly are your controlling a servo motor in open loop? 
    In closed loop mode, the encoder values will be used as reference and the motion VIs can be used to configure the software limit as required. Are you currently losing the software limits? If so, how exactly are you losing these values? I am not sure I understood what exactly is happening with software limits in your program, so any more information on this would be useful. 
    Vivek Nath
    National Instruments
    Applications Engineer
    Machine Vision

  • Can we use LabView controls in VC %3F

    Hi,
    I was wondering if Gauge and Tank controls from LabView can be used in VC++? We have labview installed in our lab and we use the graphic controls as major part of our software. We have one software that is written in VC++. Is it possible to export the controls from Labview to VC++? I know MStudio has all those controls for VC++, but our lab is not willing to spend money on MStudio alone. Any suggestions?
    Thanks
    Vijay

    In a word, no. The controls are drawn by the LabVIEW application itself. They are not standard Windows controls.

  • Is it possible to use old Apple Flat Panel Display (62 watt power adapter) with MacBookPro 13" Mid-2012 running 10.8.4? Tried mini display to VGA cable

    Is it possible to use old Apple Flat Panel Display (62 watt power adapter) with a MacBookPro 13" Mid-2012 laptop?  Would like to use larger screen when working at home.  I have a mini display port to VGA cable and have tried to hook up the old display but it seems not to work.  When I try to activate the screen on the old display-- a window comes up in the MacBookPro and asks me if I want to shut down the computer.  What little I have read it that the MacBookPro had Thunderbolt and the old display may not be compatible?  Any assistance would be appreciated.

    quax88 wrote:
    11.09.12 22:16:06,148 ClamXavSentry[286]: scan email files
    11.09.12 22:16:06,148 ClamXavSentry[286]: I will quarantine infected files
    This doesn't have anything to do with your problem, but it will likely cause other issues with your e-mail.
    Here's my standard recommendation concerting the use of A-V software to deal with potentially infected messages:
    Never use ClamXav (or any other A-V software) to move (quarantine) or delete e-mail. It will corrupt the mailbox index which could cause loss of other e-mail and other issues with functions such as searching. It may also leave the original e-mail on your ISP's e-mail server and will be re-downloaded to your hard drive the next time you check for new mail.
    So, if you choose to "Scan e-mail content for malware and phishing" in the General Preferences, make sure you do not elect to either Quarantine or Delete infected files.
    When possibly infected e-mail files are found:
    Right-click/Control-click on either the infection or file name in the ClamXav window.
    Select "Reveal In Finder" from the pop-up menu.
    When the window opens, double-click on the file to open the message in your e-mail client application.
    Read the message and if you agree that it is junk/spam/phishing then use the e-mail client's delete button to delete it (this is especially important when the word "Heuristics" appears in the infection name).
    If you disagree and choose to retain the message, return to ClamXav and choose "Exclude From Future Scans" from the pop-up menu.
    If this is a g-mail account and those messages continue to show up after you have deleted them in the above manner, you may need to log in to webmail using your browser, go to the "All Mail" folder, find the message(s) and use the delete button there to permanently delete them from the server.
    To fix the corrupted mailbox index(es), highlight each one that was corrupted and choose Rebuild from the appropriate menu.

  • Can I use, and how can I use voice control with my iPad 2?

    Is it possible to use the voice control with my iPad 2? If so, how can I use it? Since there is no siri for iPad yet, I'd like to use something similar to it and I've seen this built in voice control before but I was not sure if it's possible with the iPad.

    Not yet, however you can download the new google app. This offers voice seeking on the net.

  • Is it possible to develop the control charts in WAD.

    Hi Gurus and Experts
    We need your suggestions to go futhure with our requirement.
    Right now KPI's are currently displayed in graphical form with the
    ability to drill down into WO's( Work orders) from the graph page. our
    new requirement is to get exactly the same set of information captured
    and presented in control chart form. This is to be an adjunct. to, not
    replace, the existing graphical set of data. Upper and lower control
    limits will be set initially by the business, and the same drill down
    functionality should be available from the control chart. The charts
    can be displayed seperately from the exisiting set of charts if this
    makes it easier.
    Can you please suggest us whether is it possible to develop the control
    charts and also have the functoinalities of the existing dashboards
    (example drill down of WO's using the control charts) in WAD or through
    viusal composer
    Waiting for your responses..
    Thanks
    Ravi...

    Hello dj_page!
    Thanks for the answer, but I know this already.
    My problem is, that the small picture in the side panel and the histogram in LR5 are bigger than in LR4.
    The two pictures are showing the difference between the versions.
    On the left hand (LR4) you can see a smaller preview and histogram than on the right hand (LR5).
    In each version you can change the size of the side panel only as small as the preview-window is.
    The pictures are also showing the smallest size of the side panel in each version.

  • How to Schedule Job using Database Control for SQLPLUS script?

    Hi All,
    I am using Database version 10.2. I would like to schedule a SQLPLUS script job using Database control (Not using Grid Control!). The following is the script.
    ========================================================
    define OEM_FRIENDLY=1
    define OWB_BACKGROUND=0
    set serveroutput on
    set verify off
    whenever sqlerror exit failure;
    define REPOS_OWNER='&1.'
    define LOCATION_NAME='&2.'
    define TASK_TYPE='&3.'
    define TASK_NAME='&4.'
    define SYSTEM_PARAMS='&5.'
    define CUSTOM_PARAMS='&6.'
    alter session set current_schema = &REPOS_OWNER.;
    set role owb_d_&REPOS_OWNER., owb_o_&REPOS_OWNER.;
    variable exec_return_code number;
    begin
    -- Initialize Return Code
    :exec_return_code := wb_rt_api_exec.RESULT_FAILURE;
    -- Run Task
    :exec_return_code := wb_rt_api_exec.run_task('&LOCATION_NAME.',
    '&TASK_TYPE.',
    '&TASK_NAME.',
    '&CUSTOM_PARAMS.',
    '&SYSTEM_PARAMS.',
    &OEM_FRIENDLY.,
    &OWB_BACKGROUND.);
    end;
    exit :exec_return_code;
    ===========================================================
    Is it possible to schedule SQLPLUS script with 6 different parameters? If yes then how can I schedule for monday to friday or only for Saturday and sundays.
    Please provide brief steps.
    Thanks for your help in advance.
    - Mehul

    Let me explain to you about scheduler.
    You can schedule a pl/sql stored procedure TEST_S as follows...
    Begin
    dbms_scheduler.create_job(
    job_name=>'MY_JOB',
    Job_Type=>'STORED_PROCEDURE',
    job_action=>'TEST_S',
    start_date=>sysdate,
    repeat_interval=>'freq=monthly;BYDAY=MON,TUE,WED,THU,FRI',
    end_date=>null');
    END;
    You can also also execute o/s script like .bat or .sh. For this job type should be EXECUTABLE.
    Example of converting a .sql script in .bat script...
    insert.sql
    insert into dept values(50,'IT','LONDON');
    exit
    insert.bat
    sqlplus scott/tiger @insert.sql
    Executing now...
    C:\Documents and Settings>insert.bat
    C:\Documents and Settings>sqlplus scott/tiger @insert.sql
    SQL*Plus: Release 10.2.0.1.0 - Production on Thu Mar 1 08:01:00 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    1 row created.
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - P
    oduction
    With the Partitioning, OLAP and Data Mining options
    C:\Documents and Settings>
    So first read about DBMS_SCHEDULER and do the work in prompt. Then you can go and schedule it even by database control.
    Scheduling by database control...
    http://www.oracle.com/technology/oramag/oracle/04-jul/o44tech_dba.html
    Scheduler
    http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_sched.htm#CIHEHDHA
    PS: By default each job you created is disable state. Please enable it by enable procedure of DBMS_SCHEDULER package.

  • Is it possible to use the Apple wireless keyboard with the iPhone 6? Will the Magic Mouse work with iMovie on iPhone6 Plus?

    iPhone 6 page says that iMovie is a (free) application available for iPhone 6. When I use it on the desktop I need a mouse. Should I expect all controls to be touch-sensitive, or is it possible to use the wireless Magic Mouse? Similarly, if I want to type an email or a long document, is it possible to use the Mac wireless keyboard to enter text? With the iPhone 6 Plus taking over for laptops (phablet), it seems to me that input tools are relevant. Maybe what I'm asking is whether the iPhone6 (OS8) has drivers for these devices. Please advise.

    Apps that are designed for iOS devices such as the iOS version of iMovie are intended to be used entirely by touch. It's worth noting that iMovie for iOS is not absolutely identical to iMovie for Mac OS.

  • It´s possible to use the "Remote" app with Itunes and a Nokia E72 with Joikuspot installed only? Or I´ll need to buy a modem Wifi?

    It´s possible to use the "Remote" app with Itunes and a Nokia E72 with Joikuspot installed only? Or I´ll need to buy a modem Wifi?
    I was using "remote" with a D-link modem, that works fine at my iPad. But now I´m using only the cell phone as modem 3G, and don´t want to intall a router to put new cables at my notebook.

    What?
    You want to control iTunes on your computer using the Remote app on your iPad?
    And you want to connect the iPad and computer through your Nokia?
    No, this will not work.
    Just create a network with your notebook.

  • Parallel use remote control and touch panel.

    Hi.
    Cisco TelePresence SX20 with firmware TC7.1.4.908e4a9 and was synchronized with touch panel. Can I use remote control when touch panel is enabled. Now remote control is locked.
    Thank's.    

    Hi
    No. When a codec is paired with a Touch controller it is not possible to use the remote control.
    You question number 677 in link bellow
    http://www.cisco.com/c/dam/en/us/td/docs/telepresence/endpoint/articles_doc/telepresence_endpoints_knowledge_base_articles.pdf
    br Oleksandr

  • Excel import export using Office Control

    Hi,
    We have the requirement to provide a feature like an excel uplaod and download in our UI (WD ABAP).Basically we have some WD table view and we need to collect all the data in each cell and then download the data in an excel file.Similarly we need to get the data in the Excel and fill the table view with this data from the excel.
    Is this possible through the Office Control?I checked out the examples in SIOS but my impression was that it more or less embeds office objects(excel,word etc) in Webdynpro container,but does not really get the data to be filled in an internal table.Also I am not sure whether I can download data from my WD table view to an excel file using this.
    Can anyone please tell me if there is some way to do this through an office control.If not what are the options available for me to achieve this functionality.
    Thanks and Regards
    Sourav

    Hi Sourav,
    If you use WDP ALV table, it has an 'Export' functionality which will export the contents of the table into an Excel.
    Regards,
    Wenonah

Maybe you are looking for

  • Need info on who to call or write in order to receive reading of text messages

    I have heard from SEVERAL people that it is possible to get a reading of your text messages from Verizon if you are the account holder.  I have also heard that it may take some persistance in order to get this information & it is available w/o a cour

  • How do I create a ".mailloc" file from an email address?

    Before Snow Leopard I simply would drag an email to a project folder and it would create a ".mailloc" file. Later if I was referencing a contact or needed an email I could simply double click it and it would open a new email to that address. When I u

  • Get VHS tapes onto Macbook then edit on IMovie

    I was wondering how I can get my VHS tapes onto my Macbook. I have a Sony camcorder (model number=DCR-HC30) I read something about using the camcorder as a converter, but I am not sure if it will work. Any suggestions? I want to connect the VCR>CamCo

  • Mixed UCS and MCS cluster

    I know (or am at least sure) that a CUCM 8.5 cluster is supported where three of the five  CUCM servers officially are capable of supporting the version (8.5) in question, while retaining two subscribers on MCS78x5H2's. However, what I am not sure ab

  • Trouble Upgrading to GB 2.0.2

    I'm having trouble upgrading to Garageband version 2.0.2 I downloaded the installer but whenever i click on it a window opens up that says: 'an eligible GarageBand application was not found in /Applications' Any help is greatly appriciated,