An AS component doesn't appear in a flex app

The following AS draws a line and works in its own right,
package components {
import flash.display.Sprite;
import flash.display.Shape;
public class DrawTest1 extends Sprite {
public function DrawTest1() {
var shape:Shape = new Shape();
shape.graphics.lineStyle(0,0x0000FF, 1);
shape.graphics.lineTo(100,100);
addChild(shape);
It was then included in a flex app as
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
xmlns:custom="components.*"
layout="horizontal">
<custom:DrawTest1 />
</mx:Application>
but only a blank screen (i.e. without the line) was displayed
when the flex app was executed (no error message was given during
compilation). Please help.

Flex containers (incluing Application) can contain only
components which are derived from UIComponent or implement
IUIComponent interface.
To get your component to display in the application create a
UIComponent as child and add the DrawTest1 component as a child to
it.
<mx:UIComponent id="p1"
creationComplete="p1.addChild(t1)"/>
<custom:DrawTest1 id="t1"/>

Similar Messages

  • My iPhone4 doesn't appear to have "FacTime" (App), yet when I "ring" it from my iPad's FaceTime, I hear a faint ringing tone but nowhere to answer the call? Anyone out there suggest what's wrong? (going to the App Store and searching "FaceTime" brings iPa

    My iPhone4 doesn't appear to have "FacTime" (App), yet when I "ring" it from my iPad's FaceTime, I hear a faint ringing tone but nowhere to answer the call? Anyone out there suggest what's wrong? (going to the App Store and searching "FaceTime" brings apps that have icons different to that of my iPads!)

    Yeah, I know I can restore it, but I might as well go ahead and try. I just finished a backup for icloud and itunes to make sure, I'll go ahead and restore it and set it up as new and see how that works. Seems like I have no other options at this point, I'd still like to know what they did with the Download tab in itunes store, if they removed it or if I'm just overlooking it.

  • I purchased an app and it doesn't appear in my iTunes app list. How do I get it to appear?

    I purchased an app and it doesn't appear in my iTunes app list when synced. Where can I find it? How do I get it available for my other iphone and my ipad?

    Audiobooks are currently a one-time only download from the store, so if you download it again then you will be charged - I believe that they are all supplied to Apple by audible.com, so I assume that it's them that are requiring the one-time only download.
    Is it still on the device that you downloaded it on (if it was on your iPhone then it should be in the Music app), or do you have a copy on your computer and/or on a backup ? If not then you can try contacting iTunes support and see if they will grant you a re-download : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page

  • Dynamic rendered component doesn't appear in source file! How to get hold

    I have three select components on my page, the 1st one is selectOneRadio2, the 2nd one is selectManyCheckbox1, and the 3rd one is selectOneRadio3. The selectManayCheckbox1 and selectOneRadio3 do not display at the same time. Their rendered properties are dynamically set in the managed bean depending on the choice of the selectOneRadio2. It toggles between those two components just fine when I set the rendered property in the managed bean dynamically in a value change event, however when I tried to retrive the value from the 3rd component selectOneRadio3 which was not rendered initially (or by default), I get nothing. When I viewed the source file after the component is rendered on the page, that component is not in the source file at all, and I saw the default rendered 2nd component (selectManyCheckbox1) instead!!! How can I get hold of the later rendered component (selectOneRadio3)???
    <tr:selectOneRadio value="#{bindings.expenseTypeList1.inputValue}"
    label="Expense Type"
    binding="#{backing_eef_expense.selectOneRadio2}"
    id="selectOneRadio2"
    valueChangeListener="#{backing_eef_expense.expenseTypeChange}"
    autoSubmit="true">
    <f:selectItems value="#{bindings.expenseTypeList1.items}"
    binding="#{backing_eef_expense.selectItems2}"
    id="selectItems2"/>
    </tr:selectOneRadio>
    <tr:panelGroupLayout binding="#{backing_eef_expense.panelGroupLayout3}"
    id="panelGroupLayout3"
    partialTriggers="selectOneRadio2">
    <tr:selectManyCheckbox label="Multi Choice"
    rendered="#{backing_eef_expense.renderMultiChoice}"
    binding="#{backing_eef_expense.selectManyCheckbox1}"
    id="selectManyCheckbox1"
    valuePassThru="true">
    <f:selectItems binding="#{backing_eef_expense.selectItems4}"
    id="selectItems4"
    value="#{backing_eef_expense.itemList2}"/>
    </tr:selectManyCheckbox>
    </tr:panelGroupLayout>
    <tr:panelGroupLayout binding="#{backing_eef_expense.panelGroupLayout4}"
    id="panelGroupLayout4"
    partialTriggers="selectOneRadio2">
    <tr:selectOneRadio label="Single Choice"
    rendered="#{!backing_eef_expense.renderMultiChoice}"
    binding="#{backing_eef_expense.selectOneRadio3}"
    id="selectOneRadio3" valuePassThru="true">
    <f:selectItems binding="#{backing_eef_expense.selectItems3}"
    id="selectItems3"
    value="#{backing_eef_expense.itemList2}"/>
    </tr:selectOneRadio>
    </tr:panelGroupLayout>
    I use Trinidad components because it's a migrated application from 10g to 11g. I'm using 11g now.
    Edited by: SophiaM on Feb 3, 2011 10:23 AM

    Hi Joonas, Thank you for your replay. I don't know the answer to your question.
    First, I have no idea if that will cause any problem, or the libraries would have conflict or not if I use both within the same application. We are very careful about that becaue we had a lot trouble when we did the migration. A LOT of things were broken after the migration and some of the issues were caused by conflict on libraries. That's why although I am creating new pages in the application, I still carefully stay with Trinidad components.
    Second, out of curiosity from your suggestion, I tried to add ADF library and technology into my project, I still don't see the ADF components avaiable in my Component Palette panel, even after I restarted JDeveloper. So I don't know how to switch it even if I dare.
    I just read something like this, seems apply to my situation:
    Your correct in the fact that rendered=false is useless. However, that is not how it's typically used. Typically this will be bound to a backing bean which will allow you to turn the component on/off. You should use a hidden input field and a switcher if you need to keep the value in the form submission. Adam is totally correct in that it will break a bunch of stuff if we all of a sudden just "turned it on" because people have come to expect the current behavior.
    Do you know what a switcher is?

  • Library doesn't appear in iPhone development app

    I've built a multi-folio app for iPad+iPhone and my target platform is iPhone.
    Development app (ipa file) has installed successfully on my iPhone with iTunes.
    There are 2 folios published for my app. Both are visible in Adobe Viewer on iPhone.
    When the app starts first time after installation it displays library for a very short time, downloads one folio and opens it.
    After that the app displays only that folio when it starts. I can't find any way to display library and therefore to open another folio.
    Also when I update the visible folio it doesn't update in the app (but updates in Viewer). After reinstalation the app displays updated folio.
    "Always Open Background Downloaded Issue" option was not selected.

    Are you positive you don't have the "Always download latest entitled issue" setting checked in App Builder? That's the only way we'll auto-download an issue in the library after install.
    Tapping in your folio in a region that isn't covered with an overlay will bring up our menu, and from there you can navigate back to the library.
    Neil

  • Lightroom doesn't appear via creative cloud app

    I have lightroom installed but it doesn't show as a creative cloud app and I have the option to install it via the creative cloud app/installer. How can I move my lightroom installation so that it's integrated in the creave cloud updating/installing system? Thanks
    https://www.dropbox.com/s/hd96g7lbvyimev6/Screenshot%202014-04-18%2011.41.27.png

    Do you mean that you have the Lightroom perpetual-licence version installed?  As you've found, the CC app isn't smart enough to detect that.  There is no difference between the perpetual-licence version and the CC version except the licence, but if you want to switch to the CC version, you will have to install it again via the CC installer, and yes, it will download the whole G byte of code, and install the identical code over your existing installation, keeping your existing catalog, preferences etc but changing the licence.  As the code is identical, it doesn't make any difference whether you switch to the CC version (which I did) or stay with the perpetual-licence version.  It will matter only when LR6 comes, which will be free with CC but which you'll have to pay for with the perpetual licence. 
    Some people have reported that you have to remove the perpetual-licence version before installing with the CC app, but I didn't. 
    Once you've done that, then you can update it (if there are any further 5.x updates) either by downloading and installing the perpetual-licence version or via the CC app, and it keeps the CC licence. 
    No, it doesn't really make sense to me either.  What you need to remember is that the CC app and installer, and indeed the whole infrastructure behind CC is a bit hokey.  I think it was written by an intern. 

  • HT1296 I updated my ipod touch with IOS 6, then downloaded You tube onto my computer then tries to synch it with my ipod. The you tube app icon is present on the computer but doesn't appear on ipod. the app store states that it is installed but it isn't.

    Help! I updated my son's ipod touch with the IOS 6 update. Then i downloaded the new You tube app onto my itunes on the computer. When i synched my ipod the computer showa You Tube on the ipod but it isn't there and i cannot get it reinstalled. please help. This is very frusterating because there is obviously a glitch and i can't fix it. Any suggestions?

    Have you tired using the Spotlight search? Maybe you just can't find it.
    Do you have Restrictions on that would hid the app? Settings>General>Restrictions.

  • My music doesn't appear in Music app

    I sync all of my itunes library and iphone has over 5000 music. But it doesn't appear in iphone music app. Only 6 musicians appear.
    All music actually exists in my iphone now. I can use spotlight in iphone and listen to music that dosen't appear in music app.

    iphone 3gs and it's not fixed yet.
    After restoring it's fixed for a while, but same problem happens again after using two or three days.

  • Shipping tab doesn't appear in PO

    Hi MM experts,
    When I am creating returns PO (return box checked), the shipping tab is not coming in item detail. System gives below error.
    "Not possible to determine shipping point for item"
    The most common reason this shipping tab doesn't appear in PO is because a Returns Vendor customer account number has not been maintained on vendor master.  But in this case I have checked the vendor and found that Vendor customer account number has been maintained. And the material also has been extended to sales org xxxx, distr.channel xx.
    I have checked TVSTZ table, eveything seems to be OK.
    Error descr: Message no. 06855, Diagnosis "The system was not able to determine a shipping point for the combination shipping condition , loading group xxx, plant xxxx in the case of item xx."
    System Response
    It is not possible to create a delivery in the Sales and Distribution component without specifying a shipping point.
    I do not know what to do or what is missing??
    Can anyone suggest how to proceed to create return PO.
    Thanks in advacne
    Suresh.

    Hi,
    Please refer SAP note- 831469 - Customer, Shipping Point for Storage Location incorrect for the same.
    Also check wether Sales views are maintained for that Material you are using for the STO, Check and maintain the loading group and shipping conditons in MMR sales: General/Plant View for receiving plant
    Also Check created SD customer(vendor) by you in system by XD01.
    and check for the complete STO config settings
    SPRO - MM -- Purchasing -- Purchase order --- Set up stock transport order -- define shipping data for plants
    Regards,
    Sandesh Sawant

  • CR 8.0 pie chart/graph doesn't appear in web browser

    Post Author: kevind
    CA Forum: Charts and Graphs
    Hi,
    I am using a CR 8.0 report (containing data in tabular format and Pie/Bar graph) with Web component Server.
    In design mode (by entering the parameters) when i view my report through the CR IDE then i can view my report perfectly with the pie and bar graphs.
    However,once i call the same report through the web component server, by my JSP page, the report appears with the data but the page containing the piechart/Bar graph doesn't appear. (i am using the ActiveXViewer)
    When i remove the chart/graph, then all the pages are displayed in my browser (IE) properly, but if i add back the pie chart then the page on which this should appear -  doesnt display.
    Has anyone faced a similar issue? In design it displays with data but once called through webcomponent server it fails?
    Thanks,
    Kevin D

    Hello Subramaya,
    currently I am working on a small article in the Wiki area of the ITS (Wiki, ITS HowTos): <a href="https://wiki.sdn.sap.com/wiki/display/HOME/UsingSAPGUIforHTMLinsteadofanIAC">Using SAP GUI for HTML instead of an IAC or EWT service</a>.
    Also see notes 1010519, "SAP GUI for HTML: Simplified Title Area Without Menu and OK Code" and 959417, "Integrated ITS, Closing Session When Transaction Ends". I am pretty sure that this is exactly what you are looking for.
    With best regards,
      TJ

  • Transport Request doesn't appear in File System

    Hello everybody,
    i want to Transport a Request via File System. If i release the Request it doesn't appear in File System. The Logfile looks like this:
    1 ETP199X######################################
    1 ETP183 EXPORT PREPARATION
    1 ETP101 transport order     : "DA5K900033"
    1 ETP102 system              : "DA5"
    1 ETP108 tp path             : "tp"
    1 ETP109 version and release : "380.03.58" "720"
    1 ETP198
    2 EPU230XExecution of the export pre-processing methods for request "DA5K900033"
    4 EPU111    on the application server: "SRV64"
    4 EPU138    in client                            : "100"
    2 EPU235XStart: Version creation of the objects of the request "DA5K900033"
    3 EPU237 Version creation started as update request
    2 EPU236 End: Version creation of the objects of the request "DA5K900033"
    2 EPU231XStart: Adjusting the object directory for the objects of the request "DA5K900033"
    2 EPU232 End:  Adapting the object directory for the objects of the request "DA5K900033"
    2 ETN085 "Adding component vector" " " " " " "
    2 ETN085 "Finished." " " " " " "
    1 ETP183 EXPORT PREPARATION
    1 ETP110 end date and time   : "20140519103034"
    1 ETP111 exit code           : "0"
    1 ETP199 ######################################
    I've allready granted Everyone Full Control to the \trans Directory for testing purposes.
    OS: Windows Server 2008 R2
    DB: MS SQL Server 2008 R2
    Any suggestions?
    Best regards
    Dominik

    Hi Dominik
    What is the target of this transport request? Are you sure it's not marked as "local" in transaction SE01 for example? Because if it is a local transport request, it will not generate a file.
    Best regards
    Tom

  • GUI/swing application doesn't appear under W2K

    Hi, all,
    I wrote a Java GUI application with JDK1.4.1_01, when I run it on Win2K Professional (SP3) the
    GUI doesn't appear without any exception.
    But when I ran the same application under XP and Win98, the GUI application run ok and the GUI appears.
    What is the problem?
    regards,
    Adam

    First I thought you had several jre's installed and windows used the wrong one when you type java ...
    Now I think it has to be someting wrong in your code.
    Can you try someting that should work?
    Compile and run the following code:
    javac testPanel.java
    java testPanel
    import javax.swing.*;
    import java.awt.*;
    public class testPanel extends Thread{
         public static void main(String[] args) {
              try{
                   // get out of the static context
                   new testPanel().start();
                   new testPanel().start();
                   new testPanel().start();
              }catch(Exception e){
                   e.printStackTrace();
         public void run(){
              // Create a container with a flow layout, which arranges its children
              // horizontally
              Panel panel = new Panel();
              // A container can also be created with a specific layout
              panel = new Panel(new FlowLayout(FlowLayout.RIGHT));
              // Add several buttons to the container
              panel.add(new Button("A"));
              panel.add(new Button("B"));
              panel.add(new Button("C"));
              // Create frame with a text area in the center
              Frame frame = new Frame();
              Component comp = new TextArea();
              frame.add(comp, BorderLayout.CENTER);
              // Add the container to the bottom of the frame
              frame.add(panel, BorderLayout.SOUTH);
              // Show the frame
              int width = 300;
              int height = 300;
              frame.setSize(width, height);
              frame.setVisible(true);
    }

  • I installed a mxp and it doesn't appear in components panel

    Hi,
    I have a new Mac Pro, an Adobe Master Suite and when I installed a mxp component it doesn't appears in components panel.
    The Adobe Extension Manager is the latest too.
    All is in engliish.
    I installed also the Flex Component Kit and the same occurs.
    Teoricly it is so simple.... just double click the mxp file and Adbe Extension Manager opens and register.
    How can I fix it?

    What book?
    An ibook?
    Or an audiobook?

  • Afficher le menu contextuel doesn't appear

    Hello everybody
    Who wants to help a little swiss ladies who doesn't now the
    English translations for the command of Dreamweather?
    The problem is that "Afficher le menu contextuel" doesn't
    appear in the "comportements" although I had selected the link.
    Thank you in advance,
    Cheers,
    Estelle

    Hello,
    It seems i could have the same problem.
    Do you mean the menu button when using viewMenuItems component ?
    on mu Galaxy tab, it appears when i build with flex sdk 4.5 and not more with sdk 4.6.

  • After upgrading to IOS5, iphone doesn't appear on Itunes, and i cann't transfer pjhotos on iphoto, .., after upgrading to IOS5, iphone doesn't appear on Itunes, and i cann't transfer pjhotos on iphoto, ..

    after upgrading my iphone 4 to IOS5, it doesn't appear on "Itunes", and also i cann't transfer photos on "iphoto", .., so i cant load, save or erased anything now! 

    They are now in the videos app!

Maybe you are looking for

  • Error message: Can't open the illustration. The illustration contains an illegal or misplaced operator.

    Hi, I was working on an Illustrator file and saving as I went. It all seemed to be working properly. When I was finished I saved it one last time and then also saved a PDF of the file. I closed the program momentarily while I typed an email that I wa

  • SATA 3 disk wont work in my Optibay

    When I bought my MBP 2011 I removed the superdrive and put in a HDD caddy into the optibay. I placed an SSD SATA3 in the primary slot and the original disk in the optibay. This worked fine. Last week I bought a 2TB disk which is 15mm and as such need

  • PhotoShop CS4 Feather Effect

    Windows Ultimate PhotoShop CS4 Dear friends I have a picture , which is cut from one side and I wanna smoothen the cut side by adding a "feather Effect" to make it look more natural I did this many times befor , but for some reason I can't remember h

  • Expression languages and indexed properties

    If I have an indexed property of a JavaBean(TM), can I access it via the expression language? For example, class MyBean public X getFoo(int n) { . . . } public void setFoo(int n, X x) { . . . } It seems logical that mybean.foo[0] should call myBean.g

  • Changing maximized window drag sensitivity

    While I love the new snapping features Windows 7 has, I find that it's too sensitive to drags when clicking titlebar of maximized windows - I often click a maximized window's titlebar, only to see the whole screen flicker as the window is restored, a