Dear Ian,

I understand your use-case, I also needed something similar

Let me do a quick experiment and get back to you on this

Regards,
Arul

www.shockwave-india.com/blog/



  ----- Original Message ----- 
  From: Ian Thomas 
  To: [email protected] 
  Sent: Monday, October 22, 2007 10:43 PM
  Subject: [flexcoders] Take two: dynamic asset creation


  Here's an easier way to explain the problem I posted about earler.

  If I create some BitmapAssets manually rathern than using embed:

  var b1:BitmapAsset=new BitmapAsset(someBitmapData1);
  var b2:BitmapAsset=new BitmapAsset(someBitmapData2); 
  var b3:BitmapAsset=new BitmapAsset(someBitmapData3);

  How do I then pass them to something like a TileList, which expects an icon 
property of type Class:

  var rowData:Object={label:"Some Label",icon:WhatGoesHere}; 

  Where WhatGoesHere can't be BitmapAsset (that just produces an empty bitmap). 
Nor can it be b1, because that's not of type Class.

  The goal here is to achieve this without creating a new ItemRenderer. 

  Thanks in advance,
      Ian


   

Reply via email to