Re: [flexcoders] Embedding Image from dynamic string

2008-10-12 Thread Haykel BEN JEMIA
Embedding is done at compile time and not run time! You must specify the
source with a literal, you cab't use a variable:

[Embed(source="sources/top2Over. jpg")]
[Bindable]
public var top2Over:Class;



On Sun, Oct 12, 2008 at 5:09 AM, Sajid Hussain <[EMAIL PROTECTED]>wrote:

>
>  Hey Dudes
>
> var a:String="sources/ top2Over. jpg";
>[Bindable]
> [Embed(source= a)] or
> public var top2Over:Class;
>
> I want to create object embed adders to be fetched by string .liek the
> given simple wrong code
>
> Sajid
>
>
>
>  
>



-- 
Haykel Ben Jemia

Allmas
Web & RIA Development
http://www.allmas-tn.com


Re: [flexcoders] Embedding Image from dynamic string

2008-10-11 Thread Sajid Hussain


Hey Dudes

var a:String="sources/ top2Over. jpg";
   [Bindable]
[Embed(source= a)] or 
public var top2Over:Class;

I want to create object embed adders to be fetched by string .liek the given 
simple wrong code 

Sajid 





  

[flexcoders] Embedding Image from dynamic string

2008-10-10 Thread Sajid Hussain
Hey Dudes

var a:String="sources/top2Over.jpg";
   [Bindable]
[Embed(source=a)] or 
public var top2Over:Class;

I want to create object embed adders to be fetched by string .liek the given 
simple wrong code 

Sajid