调用AOT的中资源文件

 1 Void click()
 2 {
 3     ResourceNode            resourceNode;
 4     FilePath  imagename;
 5     ;
 6     resourceNode = SysResource::getResourceNode(resourcestr(ResourceName));  
 7     if (resourceNode)
 8     {
 9       resourceNode. AOTload();
10       imagename =  SysResource::saveToTempFile(resourceNode);
11     }
12     else
13     {
14       throw Error("No file exists.")
15     }
16     element.design().imageName(imagename);
17 }
posted @ 2012-08-30 11:36  Sprite.z  Views(143)  Comments(0Edit  收藏  举报