Adobe Dreamweaver Forums



Last 10 THreads :         Help with navigation (Last Post : Jiva Mukta - Replies : 0 - Views : 1 )           »          Why is this not working!!! (Last Post : Boxing Boom - Replies : 3 - Views : 4 )           »          CSS: Mystery IE and Firefox issue (Last Post : Codesonic - Replies : 0 - Views : 1 )           »          Update scrollbar on text area? (Last Post : Handycam - Replies : 0 - Views : 1 )           »          debugger causing browser to crash (Last Post : thmunson - Replies : 4 - Views : 5 )           »          Passing variable between components (Last Post : Amy Blankenship - Replies : 3 - Views : 4 )           »          Flash Slide Presentation and CS4 motion tween (Last Post : pivovar - Replies : 0 - Views : 1 )           »          Please point me to the correct topic section of thisForum (Last Post : dzedward - Replies : 9 - Views : 10 )           »          Cookies and cflogin (Last Post : idesdema - Replies : 7 - Views : 9 )           »          left join won't work in query of query? (Last Post : Amm85 - Replies : 0 - Views : 1 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Flex
 
Tags:



Reply
  #1 (permalink)  
Old 10-24-2008, 10:54 AM
suv1980
 
Posts: n/a
Diggs:
Default displaying base64 encoded image from an irray

Hello,
I am quiet new to flex and need some help in displaying the base64 encoded
images contained in an array in a horizontal scroll list.

Details:

I have an array which contains base64 encoded strings(images).I want to
display it in a horizontal scroll with some image highlighting that is when i
move the cursor on to the displayed images.

Can anyone help me in this regard.



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-24-2008, 09:17 PM
-Hob
 
Posts: n/a
Diggs:
Default Re: displaying base64 encoded image from an array

You'll have to do something like this:

var decoder:Base64Decoder = new Base64Decoder();
decoder.decode(yourBase64StringHere);
var bytes:ByteArray = decoder.toByteArray();

var bmpData:BitmapData = new BitmapData();
bmpData.setPixels(dimensions, bytes); //Note dimensions is a rectangle that
specifies the dimensions of your bitmap. not sure how you'd figure that out.

var bitmap:Bitmap = new Bitmap(bmpData);

Now you have a bitmap that you can work with like any other DisplayObject.

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 07:50 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Cheap Car Insurance - Compare Motor Insurance
Endsleigh Car Insurance Natwest Car Insurance
More Than Car Insurance Norwich Union Car Insurance
Prudential Car Insurance Zurich Car Insurance
Inactive Reminders By Mished.co.uk