Using non-embedded images in a spark BitmapImage

The spark BitmapImage component only supports embedded images in Flex 4.0. This post shows how you can get around that limitation by loading an image via a SWFLoader and then pushing that bitmap data into the BitmapImage’s source property. Most of the time you will want to use an mx Image instead of the spark [...]

You Might Also Like...

  • Using a bitmap image skin in a Spark Button control in Flex 4

    1071 readersThe following example shows how you can use a series state-aware of bitmap images in a Spark Button control in Flex 4 by creating a custom skin and setting the BitmapImage source property to different images in the various button states. <?xml version="1.0" encoding="utf-8"?> <!-- http://blog.flexexamples.com/2010/03/24/using-a-bitmap-image-skin-in-a-spark-button-control-in-flex-4/ --> <s:Application name="Spark_Button_skinClass_BitmapImage_test" xmlns:fx="http://ns.adobe.com/mxml/2009" [...]

  • Flex 4 Graphics: Display Bitmap Data in a Graphic Element (excerpt from Flex 4 Cookbook)

    426 readersDisplay Bitmap Data in a Graphic Element Problem You want to display a raster image within a graphic element. Solution Use the BitmapImage element or supply a BitmapFill to a FilledElement-based element and set the source property to a value of a valid representation of a bitmap. Optionally, set the fillMode of the graphic to

  • Extending spark:BitmapImage to work like mx:Image

    1075 readersThe Flex 4 <s:BitmapImage> component in the beta 2 release worked pretty much just like an <mx:Image>. You could put in a path/filename in as the source and it would load and display the image. Which is great. But then a few builds later, and now with the gold release, BitmapImage doesn’t actually load [...]

  • Flex 4 :: Spark :: DockBar open source component

    695 readersHello, Teoti Graphix, LLC offers another open source component for those who wish to dive into the new Flex 4 Spark framework. The DockBar component could be considered cliche like, um well reflections on images but, this component shows you a lot about the inner workings of a Flex 4 Spark component. One aspect that

  • Setting the corner radius on a Spark BitmapImage control in Flex 4

    981 readersThe following example shows how you can set the corner radius on a Spark BitmapImage control in Flex 4 by creating a mask with a corner radius (in this case a Spark BorderContainer container with the cornerRadius style set). <?xml version="1.0" encoding="utf-8"?> <!-- http://blog.flexexamples.com/2010/02/07/setting-the-corner-radius-on-a-spark-bitmapimage-control-in-flex-4/ --> <s:Application name="Spark_BitmapImage_cornerRadius_test" xmlns:fx="http://ns.adobe.com/mxml/2009" [...]

  • Loading animation in flex images

    828 readersFlex component to apply a preloading animation in a flex image. The component show a loading spinner until image load is completed or dispatch a broken link error. You can configure spinner size in property spinnerSize. Click with the right button to obtain source code.

  • Creating a simple image gallery using the Spark PopUpAnchor control in Flex 4

    872 readersThe following example shows how you can create a simple image gallery using the Spark PopUpAnchor control in Flex 4 using the PopUpAnchor, BitmapImage, and MX Image controls. <?xml version="1.0" encoding="utf-8"?> <!-- http://blog.flexexamples.com/2010/02/07/creating-a-simple-image-gallery-using-the-spark-popupanchor-control-in-flex-4/ --> <s:Application name="Spark_PopUpAnchor_gallery_test" xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" [...]

  • Setting a bitmap image fill on a Spark Form container in Flex Hero

    245 readersIn a previous example, “Setting a bitmap image fill on a Spark FormHeading control in Flex Hero”, we saw how you could set a bitmap image fill on a Spark FormHeading control in Flex Hero by creating a custom FormHeading skin and creating a repeating BitmapFill object. The following example shows how you can set

  • LCDS Data Push Tip: Sending To Multiple Subtopics

    444 readersNearly a year ago, I wrote a post about Pushing Data Around With Blaze/LCDS, and even earlier than that, I wrote about LCDS Data-Push + Subscription Scenarios. In this post, I'll be supplementing my previous posts with some more information, specifically, pushing data from Java to a Flex client using subtopics.

  • LCDS Data Push Tip: Sending To Multiple Subtopics

    399 readersNearly a year ago, I wrote a post about Pushing Data Around With Blaze/LCDS, and even earlier than that, I wrote about LCDS Data-Push + Subscription Scenarios. In this post, I'll be supplementing my previous posts with some more information, specifically, pushing data from Java to a Flex client using subtopics.

Subscribe to RSS headline updates from: GurusUnleashed
Powered by FeedBurner

  • Design & Career Resources

    Open design job and RFQ/RFP listings for Friday, 10 September Courtesy of Design Jobs Live!
    The latest resources and free stuff (like textures, fonts, Photoshop brushes, scripts, plug-ins, and much more!) from workflowFreelance.com. Read more!
    The latest headlines from workflowFreelance.com. Read more!
  • Popular Search Terms

    Curious what others are searching for? Below are the most popular search terms over the last 30 days.