Can a spark custom component inherit from another custom component?

Hi everybody!!
I must develop an application which has several "panel" components. Each "panel" will be different, but will share some basic characteristics with the others(round corners, a  linear gradient, two buttons which dispatch events, and so on).
What I thought to do is to develop a base "panel" component  and then create all the other components basing them upon this base component.
Once created the base component I attempted to create another component (file->new mxml component) and filled out all the fields. On the "Based on" field I clicked "browse" and then selected the component I created (which resides under components.panel). The wizard completed successfully, but when I enter in the new component , supposed to be based on the other one, nothing of the base component is displayed. I thought was a problem of flash builder, but even if I run the project nothing is displayed
Both the base and derived component are mxml component.
Am I missing something?
I can't using just a skin because I also need the buttons to be present and dispatch events in order to capture them in the child component and handle them differently accordingly to what the component is supposed to do.So I don't need to ineherit just visual appeareance but also functionality
Any idea???????
Thanks in advance for the attention.
Best regards
Luke

If you extend an MXML container the elements in the base class will be replaced by the elements in the sub class.
Sounds like you want to consider extending SkinnableComponent or Panel to add some skin parts.  This document should be a good starting point: http://www.adobe.com/devnet/flex/articles/flex4_skinning.html
This post demonstrates how to extend TitleWindow to add a skin part (which is very similar to Panel): http://flexponential.com/2010/01/10/resizable-titlewindow-in-flex-4/

Similar Messages

  • Creaing Message interface from another software component imported object

    Hi all,
      Will it be possible to creaing Message interface from another software component imported object like i need to create idoc Abstract interface in one software component by using the imported object from other software component
    regards,
    Dhil

    Hi,
    In thise case your SC2 Software Component is dependent on SC1.
    Go  to the SLD, go to the software component SC2 and you will have an option Dependency and as shown in michal's blog make this SC2 dependent on SC1.
    Next, reimport your Software Components SC1 and SC2 in your IR . The old objects will contnue to exists but still clear the SLD cache, and reimport the SC1 and SC2 from the SLD.
    Now in SC2 you will see a new option called BASIS objects under which you can see the message interfaces of SC1.
    Regards
    Bhavesh

  • How can I make an audiobook purchased from another source show up in iTunes as an audiobook and not as music?

    How can I make an audiobook purchased from another source show up in iTunes as an audiobook and not as music?
    They chapters are mp3 files. Changing the genre to "audiobook" or "audiobooks" does help.
    I am sure this question will come up a lot, since the book in question is "Harry Potter and the Deathly Hallows," purchased from Pottermore.com.

    The one thing I would add to the instructions above is that the "Media Kind" menu is on the "Option" pane in the "Get Info" Window. This procedure has allowed me not only to make imported audiobooks show up as audiobooks, but imported podcasts show up as podcasts.

  • Can I access my itunes lib from another comp on my wireless network at home

    How can I access my itunes library from another computer in my home. The computers are on a wireless network. The computer that we have used as our main computer and that has our library on it is running Windows XP. The laptop that I want to use to access the library is running VISTA. ANy ideas?

    You can sign into the iTunes Store on it, but your library won't be automatically put onto it.
    (100361)

  • My ipod touch has a huge collection of music that I don't want to lose or replace but my computer has now crashed beyond recovery. How can I access my itunes account from another computer or transfer my playlists to another computer from my ipod?

    My ipod touch has a huge collection of music that I don't want to lose or replace but my computer has now crashed beyond recovery. How can I access my itunes account from another computer or transfer my playlists to another computer from my ipod?

    You can transfer iTunes purchases to your "new" computer by
    iTunes Store: Transferring purchases from your iPhone, iPad, or iPod to a computer
    You can transfer other stuff by:
    Best iPod to PC
    How to transfer or sync files from iPod to PC - Windows mac iPhone iPod software reviews - Software Wiki

  • How can i transfer a parchase movie from another iPad to my iPad

    How can i transfer a parchase movie from another iPad to my iPad

    Open the iTunes app. Tap the Purchased tab. Tap Movies.

  • Can we call an ODI package from another ODI package within same Project?

    hi All,
    Can we call an ODI package from another ODI package within same Project?

    What you can do is get all the interfaces on the old package that you want to be included in the new package. This way, the new package will have the exact code from the old package.Or generate a scenario out of your ("old") package and drag&drop the scenario in the "new" package.
    That seems easier to me, because you can re-use the scenario as often as you want.
    But you have to take care: If you change your original ("old") package, you have to regenerate the scenario, otherwise the changes do not affect the scenario.
    Edited by: h_elmu_t on 02.07.2009 08:50

  • How can I rent or purchase movies from another country store?

    How can I rent or purchase movies from another country store?

    You need to be in that country and supply a payment method valid there.
    (83400)

  • How can I select to send an from another email account within the inserted gmail account?

    How can I select to send an from another email account within the inserted gmail account?

    The Apple Support Communities are an international user to user technical support forum. As a man from Mexico, Spanish is my native tongue. I do not speak English very well, however, I do write in English with the aid of the Mac OS X spelling and grammar checks. I also live in a culture perhaps very very different from your own. When offering advice in the ASC, my comments are not meant to be anything more than helpful and certainly not to be taken as insults.
    The MAS should use any credits first and then apply the remainder to a listed bank card.

  • How can i install ios 8 downloaded from another source through flash drive?

    how can i install ios 8 downloaded from another source through flash drive?

    You can not download from a flash drive.  You can do over the air, or you can connect your iPhone to your computer and download iOS 8.1 via iTunes.

  • Can multiple users access apps purchased from another Apple ID account?

    I have several iMacs under my control. I need to find a way to download iLife using one Apple ID, so I can have all users on each machine to also have access to the updated iLife suite.
    Is it possible for other users to access an app that was purchased from another Apple ID. If one purchases an app, does the machine allow access to all the users?
    (I know those two last sentences are redundant, but I want to make sure everyone understands problem).
    I've read countless articles on this, and can't seem to catch a break from the problem.

    If this is in a school of some type or a corporate learning center with multipple Mac computers you should contact Apple directly and ask them for help in getting a version that can be installed on multiple Mac with out have to down the updates to each computer individually.

  • How can I include a javaScript files from within jsf component

    Is there any way using which I can include javascript files from my jsf component. Because otherwise I have to write all the javascript commands using writer.write which is very tedious rather than this I just want to include the javascript file which contains all the functions required. Also I want that this file should be included only once irrespective of the number of components included.
    Thanx in advance

    This doesn't depend on JSF. You need to include a script tag, like:
    <script src="/path/script.js"
    language="JavaScript" type="text/javascript"></script>
    If you want to include this only once, make a file included into every page, into which you can put other resources to be included along with this script.
    HTH,
    rs.

  • Can't activate InDesign by clicking from another application

    Hi
    I'm using InDesign 5, using Mac OS 10.7.3.
    When I try to click an open InDesign window from another application the window doesn't activate (InDesign appears top left as the name in the top bar but the window isn't active).
    The same occurs when I use application switcher.
    The only way I can activate the window is to click the top bar (where the title appears).
    I've tried reinstalling but to no avail.
    Any ideas?
    Not debilitating but annoying none the less.
    Thanks
    Andy

    If you upgraded using the MS store, then it is Microsofts responsibilty, they should have given you a new Product key for 8.1.

  • Photoshop 10 can't open image CD's from another Photoshop file.

    My Windows 7 and Photoshop Elements 10 will not open image CD's downloaded from another Photoshop file. Could open them in a previosu Windows XP and older Photoshop. Now get message: &quot;This file does not have a program associated with it for performing action. Please install a program or, if one is already installed, create an association in the Default Program default control panel.&quot;
    There are hundreds of asscociation  files listed.  WHICH ONE DO I CHOOSE????

    Right-click on file and choose properties.
    To the right of “Opens With” click on the change button.
    In the Open With dialog click on the Browse button
    Navigate to:
    Program Files (X86)\Adobe\Photoshop Elements 10
    Select (highlight) PhotoshopElementsEditor.exe
    Click Apply
    Click OK

  • Can I create an icloud account from another user's iphone?

    I lost my iphone and I didn't create an icloud account. Can I create my icloud account from someone else's iphone?

    Too late now, if your intent was to locate your phone. There is no way to locate your phone if you didn't set this stuff up before you lost your phone.

Maybe you are looking for

  • Other family members texts coming to my phone

    Our family upgraded to three iphone 4's today.  My daughter went online and registered her phone and was messing with icloud and a merge feature/function. When she plugged her dad's new phone into the same computer it began syncing and now every text

  • Digital Connection with Audigy 4 and DTS5

    Hallo Everybody I have the same Problem with the nice man in this post. (Felix2) http://forums.creative.com/creativelabs/board/message?board.id=soundblaster&message.id=46632&vie w=by_date_ascending&page= Exactly same problems! I emaild the Support an

  • Idoc to idoc in bpm

    hi experts,     i am getting problem in idoc to idoc scenarios in confriguration part,how many businees system  i have to used in this scenarios.if any examples are there please help me.

  • How do I connect my PC laptop??

    I have a pc laptop that I would like to join to my TC wireless network... the network is closed so it can't be seen... how do I connect the PC? I'm at a loss... thank you!!

  • Can I install lightroom on both a MacBook and a Windows with the same license??

    Can I install lightroom on both a MacBook and a Windows with the same license??