Using a BitmapImage in a mobile skin

Hello,
Is there a way to use a BitmapImage as a skin part in a mobile skin? Since it does not inherit from DisplayObject, I cannot add it using the addChild method in the skin.
I tried the following:
override protected function createChildren():void
     this.imageDisplay = new BitmapImage();
     this.addChild(this.imageDisplay.displayObject);
But I get:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
     at mx.core::UIComponent/addChild()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UI Component.as:7137]
...as it appeards displayObject is null at this point.
Any ideas?
Thanks!

Stupid me! I didn't think to just look at the ImageSkin source in the mobiletheme. 
override protected function createChildren():void
    // create container for holding the currently displayed image
    imageHolder = new Group();
    addChild(imageHolder);
    // required skin part; the Image component will set this directly
    imageDisplay = new BitmapImage();
    imageDisplay.left = 0;
    imageDisplay.right = 0;
    imageDisplay.top = 0;
    imageDisplay.bottom = 0;
    imageHolder.addElement(imageDisplay);
Looks like they just wrap it in a Group first.

Similar Messages

  • Example of mobile Skin

    Hi,
    From what I read, Flex hero mobile theme has been built using FXG skins written in AS.
    Actually, I'm looking at a quick sample of how to build custom lightweight mobile skins.
    I've looked at the mobile theme given with hero SDK but it's only a SWC file so I can't see the source code.
    This is how I would build a mobile skin :
    1) Create an AS class that extends SparkSkin/Skin (depends if I plan to use styles)
    2) Define SkinState with AS3 metadata
    3) Create and add the required skinparts to the display list (createChildren method?)
    4) Add FXG elements in AS (something like that : http://saturnboy.com/2010/11/programmatic-skinning-in-flex-4-an-fxg-clock/). Where should I do that, updateDisplayList method?
    Please tell me if I'm wrong or anything
    Thanks

    Any tips?

  • HT1871 Hello i have one IPhone 4S and I use 3G net in my mobile sometime I have problem with temperature in my phone at the SIM card or battery how can I fix this problem. By update or version of 6.1.3

    Hello i have one IPhone 4S and I use 3G net in my mobile sometime I have problem with temperature in my phone at the SIM card or battery how can I fix this problem. By update or version of 6.1.3

    Could it be because the SIM card got damaged while I cut it to fit the IPhone?
    Very likely. Hard to believe the carrier in Mexico doesn't have a micro-SIM card available.
    Or somehow the Chinese carrier found out and locked it?
    No, which is not possible.
    What can I do? Get a new SIM and see if it works again?
    Get a micro-SIM from the carrier in Mexico that you don't have to manually cut down. If that carrier doesn't provide one, switch to another carrier that is not so low-budget.

  • Error while using AIR 2.7 in Mobile applicaton

    hi,
    when i am trying to use AIR2.7 in Flex mobile project, it shows the error.
    Process terminated unexpectedly.
    invalid application descriptor: Unknown namespace: http://ns.adobe.com/air/application/2.7
    Launch command details:  "C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.5\sdks\4.5.1\bin\adl.exe" -runtime "C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.5\sdks\4.5.1\runtimes\air\win" -profile mobileDevice -screensize 600x986:600x1024 -XscreenDPI 168 -XversionPlatform AND D:\WSFlexPremium4.5\VCCheckMobile\bin-debug\VCCheckMobile-app.xml D:\WSFlexPremium4.5\VCCheckMobile\bin-debug
    AIR 2.7 is important for me because i want to use 'Echo Cancellation' feature in Mobile.
    i tried all things, now i giveup.
    Please help me out
    best regards,
    Vishal Sood

    Thank you for the info. We are developing videoconference app with versions for android and web. In android we have a lot of problems with echo cancellation.
    We have tested different codecs (speex, nellymoser), and also different mic gains, noise level sounds... but not achieved an reasonable quality.
    Any recommendation about the best combination of parameters ?
    Any idea if echo cancellation for mobile will be in Air 3.2 for android ?
    Thank you

  • TS1398 I can no longer sign in to my home fi (bt hub) with my iphone 4. Yet I can get on wireless with my laptop so the hub is working. The only thing Ive done different recently is download and use an app called Onavo mobile ltd which Ive now deleted, he

    I can no longer sign in to my home fi (bt hub) with my iphone 4. Yet I can get on wireless with my laptop so the hub is working. The only thing Ive done different recently is download and use an app called Onavo mobile ltd which Ive now deleted, help pls?

    Read another post in the forum about this and it appears this app also installs a profile with a proxy service that you will have to try and delete as well. Check that out.

  • HT204302 i get a message when I plug in my ipod to my laptop saying "cannot use this ipod because apple mobile device is not started" can any one help me with this...I have never had this happen before

    Hello anyone
    I get a message when i plug in my ipod touch saying "cannot use this ipod because apple mobile service is not started" can anyone please help me with this problem...I had this message once before but I forgot how to correct it

    From the More Like This section on the right:
    I get error message when I plug in iPhone 4s saying "This iPhone cannot be used because the Apple Mobile Device service is not started"
    can't get my ipod to connect to tunes error message "cannot be used because the apple mobile device service is not started"  fixes? Using Win XP
    im trying to connect my ipod to itunes and its saying it cannot connect because the "Apple Mobile Device is not started" help
    Or see: iPhone, iPad, iPod touch: How to restart the Apple Mobile Device Service (AMDS) on Windows

  • Keep getting an error message when trying to send some texts to valid numbers, "Error Invalid Number. Please re-send using a valid 10 digit mobile number or valid short code.

    Does anyone know why I keep getting an error  message, "Error invalid number. Please re-send using a valid 10 digit mobile number or valid short code.  The numbers I'm texting to, are valid numbers.

    Did you ever get resolution to this problem?
    My coworker has the identical issue, including the number (+1 (1)(216)116-11) in the error reply.

  • Hi i have an iphone 4 that needs to be updated but my phone is using the cellular company simple mobile via gsm chip and my phone isnt jailbroken will this mess up my phone.

    hi i have an iphone 4 that needs to be updated but my phone is using the cellular company simple mobile via gsm chip and my phone isnt jailbroken will this mess up my phone.

    If your iPhone is truly unlocked - purchased as unlocked through Apple
    or through wireless provider that sells unlocked iPhones or unlocked
    by a wireless provider, then the update should not mess up your iPhone.
    If your iPhone was jailbroken or hacked to change wireless providers,
    then the update will relock it to the original wireless provider if you are lucky
    or turn it into a useless brick if unlucky.
    Back up first to protect against glitches or other problems.

  • Can I use 1 of my existng mobile numbers (that I'm...

    Hi, I'm wondering if anybody knows if I can I use 1 of my existing mobile numbers (I'm going to retire the phone) to forward that number to my new cell number? Rogers in Canada won't let me use it because it's a number from California. Yes, I know. It's silly and aggravating.

    nope, sorry, no can do
    Regards,
    Neil

  • Can I use the iPhone 6 t-mobile version with straight talk?

    Can I use the iPhone 6 t-mobile version with straight talk?

    All,
    I have read and understand most of the post (s) on this: Apple Support Community:
    It looks like the long way around my elbow approach: (piecing together an iPhone 6+ with a Straight Talk AT&T /T Mobile; Compatible Nano SIM Card) may yet work, just a bit gun shy on the $949.00 cost for the iPhone 6+ from Apple.
    I live in Hawaii on the island of Oahu (north shore), and have  an iPhone 4 8gb cdma iPhone which is on Verizon's network rebranded by TFW / Straight Talk for several years. It works fine but I need an iPhone with more storage.
    I have had a talk / chat with both sides Apple & Straight Talk, neither have real answers to support using the iPhone 6+ with Straight Talk as a carrier.
    On the Apple site: " http://www.apple.com/iphone/LTE/ ". It is clear that Straight Talk has certified their LTE network with iPhone 6/6+ to meet basic standards.
    I / we need all of the successful trail braisers on this community to post what works & what does not work.
    What I plan / have to purchase / buy:
    Direct from Apple:
    1. Contract-free iPhone 6 Plus 128GB Space Gray (GSM) T-Mobile. (pending research to ensure it will work). Apple confirms, without the T Mobile nano sim that this iPhone is unlocked.
    Direct from Straight Talk:
    2. AT&T /T Mobile; Compatible Nano SIM Card. (GSM; on its way)
    Would have purchased a Verizon Nano SIM Card from Straight Talk but they do not seem to have one.
    All support, advice & information is greatly appreciated.
    V/R
    Rick from Hawaii

  • Is it possible to use a WVC80N on Virgin Mobiles Mifi2000 Hotspot?

    Anyone know if it is possible to use a WVC80N on Virgin Mobiles Mifi2000 Hotspot?  I live out in the country and the only network connection we have is via the Mifi2000 3G portable Wifi Hotspot.
    So far I have not had any luck setting this up, mainly due to the fact that I can have one device talk to another device locally across the hotspot, so all setup would have to be done on a dummy / closed network.  I tried this but wasn't successful in getting it to accept the Mifi2000 wireless access point.  It saw it and recongnized that it had WPA but after entering the key and complelying what i thought was the last step of the wireless config, it just fails to connect. 
    Of course, the mifi2000 also automatically passes out dynamic ips, so i have to use a DDNS service...but can't get that far.
    Anyone know?
    -Cox

    How many computers do you have in the network?
    What is the IP address and default gateway number on your computer?
    In order to connect to the wireless network, WVC80N should get valid IP address from the access point.
    If the access point has capacity to assign a private IP address to the computers and devices then I think you can use WVC80N.

  • "Mobile" Skin and 508

    Captivate 7 has a "Mobile" skin which provides substantially larger buttons for mLearning content.  Unfortunately, there is no closed caption button.  Can we turn on captions by default and can someone tell me how in V7 because when enabling it as an action I am having issues.

    After doing a Captivate 7 Update, the CC button is included now.  7.0.1.237 is the version where it now publishes correctly!

  • When I use update software from my mobile it take long time for checking update software and no thing happened to update my IOS software

    When I use update software from my mobile it take long time for checking update software and no thing happened to update my IOS software

    Servers have been swamped. Keep trying and be patient. Wait a few days.

  • As I heard, If i get an unlocked iphone 5s, I can use it with my Wind Mobile which i have to have a $40 monthly plan for it. So, I want to buy an Iphone 5s that I can use it here with Wind Mobile and in turkey with my turkish line tht supoprts Iphone.

    As I heard, If i get an unlocked iphone 5s, I can use it with my Wind Mobile which i have to have a $40 monthly plan for it. So, I want to buy an Iphone 5s that I can use it here with Wind Mobile and in turkey with my turkish line that supports Iphone. So, is it possible that I can purchase an Iphone 5s that will be usable within Canada and Turkey? Im asking because, In Turkey, you need to register the Imei of the phone on your Passport to use it. Also, if i buy an unlocked Iphone 5s, will I be down to use it anywhere with any line?

    I dont know if you know the procedure in Canada and Turkey. Wind mobile wasnt supporting Iphones until they decided to let people use Iphone 5s with their $40 plan.And as i know, Turkey is the only country that asks you to register the imei on your passport to use it. So, most of people did not know it. so procedures are changing country by country. Are you sure that If I buy an Iphone 5s from a canadian apple store, use it with my wind mobile line and the turkish line in Turkey?

  • Error Invalid Number. Please re-send using a valid 10 digit mobile number or valid short code

    Hey, so my friend got a Galaxy s6 edge yesterday and gave me his new number. When I tried texting it I received this immediately after:
    Error Invalid Number. Please re-send using a valid 10 digit mobile number or valid short code. Hey
    I can receive messages from this number as well as calls. I've become aggravated and am not sure what to do. Please help, thanks!

    Hi there
    I’d be happy to help with this messaging error! This will be due to the device storing the number incorrectly. Please do the following to resolve the issue:
    Delete texts from both old number and new
    Delete any call logs including these numbers
    Delete old number from contacts
    Delete new number from contacts
    Restart device
    Send text to the new number directly (do not save as contact)
    Once the text sends successfully, you can then save as a new contact
    I hope this helps!
    Charise

Maybe you are looking for

  • Camera raw not enabled

    I get this message when I try to open cr2 images in bridge camera raw is not  enabled. Camera raw requires that  a qualifying  product has been launched at least once to enable this feature. I also noticed that the thumnail previews are not sharp eve

  • Itunes store not opening with 10.5

    Problem with Itunes store not opening since I installed version 10.5 ? 

  • EDitorKit development -- XMLEditorKit

    Does anyone know if future versions of Java will include a XMLEditorKit, or is something like this available elsewhere? I am attempting to build a simple text editor capable of highlighting XML tags, elements, attributes, etc. with different colors t

  • T'bird 31.1.1: When I open a menu there is no text in it. The menu border appears but is empty. What to do?

    I upgrade Tbird to the latest version 31.1.1. And now when I open a menu there is no text in it. Sometimes the menu items appear after some time. However when I click in the empty menu it functions normally and the action of the menu item takes place

  • Why can't I find my contacts in mail on iPad 2

    I have linked my gmail account o my mail on iPad 2, I can receive mail ok but I cannot find my contacts, am I missing something, I am sure it is something ample.  Pls help a newbie.  Thanks