can I add string to embed image?

Software: Away3D 4.x

skahandz, Newbie
Posted: 27 November 2012 05:27 AM   Total Posts: 7

hi guys,

[my code]

[Embed(source=”/../embeds/model.obj”, mimeType=“application/octet-stream”)]
private var HeadModel:Class;

i want to add any string like this
source=”/../embeds” + objName + “.obj”

but it’s give me error

how can i add any strings to embed image,
or can i use this without embed?

Thanks

 

   

Avatar
SharpEdge, Member
Posted: 27 November 2012 09:34 AM   Total Posts: 94   [ # 1 ]

You can’t do this because the compiler need to know the value of “objName” at compile time to be able to insert the file in to swf.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X