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 }