Is there a way to expose properties or styles from a skin part to the host component?

For example, I have this skin that contains a border around an image. I would like to be able to let the user set the cornerRadius.
Skin:
<fx:Metadata>
<![CDATA[
[HostComponent("spark.components.Image")]
[Style(name="cornerRadius", inherit="inherit", type="int")]
]]>
</fx:Metadata>
</code>
I would like to see that style show up in code complete in a UIComponent that uses this skin,
<s:Image x=”10″ y=”30″ width=”50″ cornerRadius=”12″ skinClass=”ScaleImageSkin” height=”50″ source=”avatar.png”/>
However the style “cornerRadius” throws an error at compile time.

The only way I've found to pass properties or styles to a skin is through CSS or extending the host component and adding the styles or properties onto it. However this seems like a hack. Shouldn't the skin expose it's configuration to the host component? I think that is what Flex themes are doing.

Similar Messages

  • HT3529 Is there a way to block a certin number from imessaging you without turning off the imessage?

    Is there a way to block a certin number from imessage without turning off the imessage?

    Sorry, but no. Tell Apple you would like such a feature: https://www.apple.com/feedback/iphone.html

  • Is there a way to selectively edit a conversation in iMessages instead of clearing the entire conversation? Like you can do on the iPhone for instance.

    Is there a way to selectively edit a conversation in iMessages instead of clearing the entire conversation? Like you can do on the iPhone for instance.

    Did you find an answer to your question?
    Would it also apply to Mountain Lion's Messages?
    Thanks

  • Is there a way to create a password protected folder for pictures or lock the photos app? For Ipad Air and Iphone 5s.

    Is there a way to create a password protected folder for pictures or lock the photos app? I want to do this for Ipad air and Iphone 5s. I have other family members that use my Ipad and Iphone and do not want some pictures to be able to be viewed.
    Thanks

    Use 3rd party apps like Photo Manager Pro.

  • Is there a way to open a new window from the "Go" menu in Mavericks?

    Before Mavericks, I was able to go from the Finder to the top menu "Go" -> "Utilities", or Applications or Home… and a new window would open.
    Now I have to manually open a new window to avoid loosing my existing window.
    Is there a way to open a new window from the "Go" menu?

    Before Mavericks, I was able to go from the Finder to the top menu "Go" -> "Utilities", or Applications or Home… and a new window would open.
    Now I have to manually open a new window to avoid loosing my existing window.
    Is there a way to open a new window from the "Go" menu?
    First, as others have already stated.....make sure the checkbox is deselected for "open folders in tabs instead of windows" in Finder Preferences.
    If you're like me and don't like tabs very much, there is a way to make folders always open in windows with a simple click (I'm using Mavericks 10.9.5).  Go to a root folder (for example, the Documents Folder), open it, and select View > Hide Toolbar, then all folders within that root folder will open in a new window.
    As an alternative method, any folder can be opened in a new window by holding down either Command Key while clicking the folder. But sooner or later you will forget to hold down that key, and then clicking on a folder will open in a tab (which will automatically resize the window and cause much aggravation).
    The Hide Toolbar trick will also work with any folder present on the Desktop. It will make all folders inside that folder open in new windows.
    To make the Applications Folder open in a new window when opening it from the menu bar at the top of the screen, you will have to open the main hard drive folder and use the Hide Toolbar trick. This will cause all folders inside it to open in new windows.
    Hope this helps.

  • My daughter has an iPod touch using my apple ID, I just purchased an iPhone with the same ID. Is there a way to keep my stuff seperate from her ipod but still share the iTunes account?

    My daughter has an iPod touch using my apple ID, I just purchased an iPhone with the same ID. Is there a way to keep my stuff seperate from her ipod but still share the iTunes account? I was looking through the photo section on my iPhone and found pics my daughter has taken from her iPod. I do not want my pics, emails, etc to show up on her iPod. Is there a way to stop this from happening or do I have to create a different Apple ID for her to use instead?

    If you have iOS 8 on all devices then:
    If under 13 years create a new ID for her by:
    Family Sharing and Apple IDs for kids - Apple Support
    The use family sharing to share apps
    http://www.apple.com/ios/ios8/family-sharing/
    Family purchases and payments - Apple Support
    If underage and not i)S on all devices then you have to create an ID for here under your name and supervise it use:
    Create a NEW account using these instructions so yo do not have to use a credit card.
    Make sure you follow the instructions. Many do not and if you do not you will not get the None option. You must use an email address that you have not used with Apple before. Make sure you specify a birthdate that results in being at least 13 years old
      Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card
    More details of how:
    http://ipadhelp.com/ipad-help-tips-tricks/how-to-get-free-apps-from-the-app-stor e-without-a-credit-card/
    Use the new ID on her iPod but only for:
    Settings>Messages>Send and Receive
    Settings>FaceTime
    Settings>GameCenter
    and Settings>iCloud if you want her to have separate Contacts Calendar and some other things.   
    Continue to use the same/common Apple ID for Settings>iTunes and App stores so you can share purchases.

  • My parent's IPad is SUPER outdated and I'm trying to buy an app for my brother for Christmas. However, the computer that was connected to the IPAD, we no longer have. So is there any way I can update it on my mac without erasing all the photos and videos?

    My parent's IPad is SUPER outdated and I'm trying to buy an app for my brother for Christmas. However, I can't buy the app because it says we need to update the software. The thing is, the computer that was connected to the IPAD, we no longer have. So is there any way I can update it on my mac without erasing all the photos and videos?

    HELPPP ME BEFORE CHRISTMASS MORNING!!

  • I have lost my phone IMEI  Number 012546005322381, Serial Number 87******A4S, is there a way it can be tracked? Also, how can one remove the device from the itunes account

    I have lost my phone IMEI  Number 012546005322381, Serial Number 87******A4S, is there a way it can be tracked? Also, how can one remove the device from the itunes account
    <Serial Number Edited By Host>

    If you enabled Find my iPhone then you should use that. If not, I'm afraid you're out of luck for finding it. 
    To manage your devices, go to Your Account in iTunes.

  • Is there a way to delete more than one photo at a time in the Photo application?

    Is there a way to delete more than one photo at a time in the application Photos in the iPad? Thanks.

    The links below have instructions for deleting photos.
    iOS and iPod: Syncing photos using iTunes
    http://support.apple.com/kb/HT4236
    iPad Tip: How to Delete Photos from Your iPad in the Photos App
    http://ipadacademy.com/2011/08/ipad-tip-how-to-delete-photos-from-your-ipad-in-t he-photos-app
    Another Way to Quickly Delete Photos from Your iPad (Mac Only)
    http://ipadacademy.com/2011/09/another-way-to-quickly-delete-photos-from-your-ip ad-mac-only
    How to Delete Photos from iPad
    http://www.wondershare.com/apple-idevice/how-to-delete-photos-from-ipad.html
    How to: Batch Delete Photos on the iPad
    http://www.lifeisaprayer.com/blog/2010/how-batch-delete-photos-ipad
    (With iOS 5.1, use 2 fingers)
    How to Delete Photos from iCloud’s Photo Stream
    http://www.cultofmac.com/124235/how-to-delete-photos-from-iclouds-photo-stream/
     Cheers, Tom

  • I just bought an ipad2, is there a way to transfer all my apps from my old ipad to my new?

    I just bought an ipad2, is there a way to transfer all my apps from my old ipad to my new?

    Backup the old iPad.
    Restore the backup to the new one.
    tt2

  • My iTunes got deleted off a (no longer working) computer. Is there a way I can transfer all content from my iPhone onto iTunes on a new computer? I want to update my phone, but do not want to lose any music off it when syncing it.

    My iTunes got deleted off a (no longer working) computer. I have lost all music & data that was on this original itunes. Is there a way I can transfer all content from my iPhone (music & photos) onto iTunes on a new computer? I want to update my iphone (3GS), but do not want to lose any music off it when syncing it. Help please!!

    By design, the iphone will sync itunes content with one computer at a time. Any attempt to sync such content with a second computer will result in ALL itunes content being first erased from your phone & then replaced with the content from the second computer. This is a design feature and cannot be overridden. Because you are using a new computer, your phone will see this computer as a "new" computer. The itunes content sync is one way: computer to phone. If you have photos that were synced to your phone or music ripped on your own that were not backed up, you will first have to extract them from your phone using third party software, before you do anything else, as Apple makes no provision to do so:
    http://www.wideanglesoftware.com/touchcopy/index.php
    Once you've done that, do the following in the order specified:
    1. Disable auto sync when an iPod/iPhone is connected under iTunes>Preferences(under the edit menu if using Windows)>Devices in itunes.
    2. Make sure you have one contact & one event in the supported applications(Address Book & iCal or Outlook, Windows Address Book) on your computer. These entries can be fake, doesn't matter, the important point is that these programs not be empty.
    3. Connect your phone, iTunes running, DO NOT SYNC at this point.
    4. Store>Authorize this computer.
    5. File>Transfer Purchases(To make sure all purchased content on your phone will be in your itunes library).
    6. Right click in the device pane & select reset warnings.
    7. Right click again and select backup.
    8. Right click again & select restore from backup, select the backup you just made. When prompted to create another backup, decline.
    9. This MUST be followed by a sync to restore your itunes content, which you select from the various tabs, You'll get a popup regarding your contacts & calendars asking to merge or replace, select merge.
    You should be good to go.

  • Is there any way I can view / remove pictures from Camera Roll on the iPhone, on a Mac, without actually importing the files?

    Is there any way I can view / remove pictures from Camera Roll on the iPhone, on a Mac, without actually importing the files? I just want to view / delete files without importing them.
    For instance I have 1200 photos on my iPhone Camera Roll. Some of these are shots, that I've taken multiple times, some good, some bad. I just want to clean up my Camera Roll, but going through the pictures on the iPhone's small screen is tedious. I'd much rather look at the camera roll's photo's on my Mac, and then decide which files I'd like to keep, and which to delete.
    I don't want to import the files, as when I import the files, and delete them from Camera Roll, now the Photo's are not on my phone, and the only way to get them back on my Phone is to Import them back in using iTunes, and then they go into the Picture Library and not the Camera Roll.
    In the same way as I can view Pics from my digital camera's SD card on a Mac without having to actually copy them to my computer, is there any app out there that will let me view my iPhone pics without importing them.

    gsharp01 wrote:
    Is there any way I can view / remove pictures from Camera Roll on the iPhone, on a Mac, without actually importing the files? I just want to view / delete files without importing them.
    The short answer is yes.
    Connect your iPhone to your computer.
    Open Image Capture application.
    Click on the 4 little squares at bottom to view them as photos, not a list.
    Select the photos them click the No Entry icon at bottom to delete.

  • Is there a way to link or create a widget that links back to the iTunes U app on your iPad from your iBook?

    Is there a way to link or create a widget that links back to the iTunes U app on your iPad from your iBook?
    I have already found the Apple Widget Builder (http://widgets.itunes.apple.com/builder/) and that works fine if you want to link to the "App Store", but I want to know if there is a way to "open an app" that is already installed on the iPad instead of double tapping the home button to switch between apps. (I know using the home button is very simple, but I am trying to find an even easier way to just "tap a widget" or "link" that will open iTunes U right up) I am only asking if this is possible for people who may have a hard time running an iPad at the beginning.
    I appreciate any help, thanks!

    I appreciate your help, but I had already looked at LinkMaker and I thought that was my answer, but as far as I could tell that still only links to an app in the app store. Yes it will link to iTunes U in the app store and you can then hit Open, but that is too drawn out of a process. We would like to know a way to just open the app directly.
    Thank you!

  • HT201269 If we set up a device as new, is there a way to go back and restore from the previous phone?

    If we set up an iPhone 5 as a new device, is there a way to go back and restore from the previous iPhone 4?

    See  How to Restore from a Backup  Here  >  http://support.apple.com/kb/ht1766

  • Is there any way I can get back to ios6 on my iPad? The new ios7 is a major disappointment, especially visually, and would love to "downgrade" back to ios6. Any advice how to do this?

    Is there any way to downgrade back to ios6 from the new ios7? I made a major mistake in downloading the new operating system. It is a major disappointment, particularly visually, and would love to get back to the more user friendly ios6 on my iPad. Last time I experienced a similar disappointment was when I tested the new Microsoft 8. In that case I was luckily able to stick to the previous operating system.

    Thanks. Pitty, seems like Apple suddenly created more competition for itself. The edge is gone and Apple is also now into "art for art's sake".

Maybe you are looking for

  • How do I move my old iPhoto library from my external hard drive to my new Mac?

    Hi guys! I recently bought a new MacBook Air as my MacBook Pro was on its last legs... I have my backup for my old MacBook Pro on an external hard drive and I'm trying to put a selection of albums from my old iPhoto onto my new MacBook Air iPhoto. I

  • Is there any way to combine multiple Apple IDs for the same individual?

    I have two Apple IDs, one of which has a .mac email address. Both have the same name and physical address. With the new iTunes and the coming iCloud, it would be convenient to combine the two for purchase history and access, app updates, etc. How can

  • All of a sudden I can no longer watch videos I have rented they will not stream

    I have iPad 2 and Have had my apple Tv 2 for about a month. Everything has been working great. Rented movies on the iPad and have watched them thru my Apple TV with no problems. then yesterday I had trouble streaming, the movies will start playing on

  • Detect changes in an instance

    Hello, how can I detect changes in an instantiated object? I could serialize the object and write it into a file. After some minutes I could write it a second time into a file. Now I could compare the two files. But I thing this is not the best way f

  • Turn pdf docs into a continuous document

    I have a continuous document feeder for scanning, but I need to know how to merge the continuous pdf's into one continuous document so I'm not sending 35 separate pdfs to my client.  Can someone tell this green pdf person how to do this? thank you!