MovieDef::GetResource

MovieDef::GetResource
virtual Resource* GetResource(const char * pexportName) const = 0;
Description

GetResource obtains a resource pointer based on an export name; it is most commonly used to substitute SWF/GFX embedded textures with a render-target alternative. Export name is specified in the Flash studio by right-clicking on the bitmap in the library and modifying its Linkage identifier attribute. The symbol must also be exported for runtime or ActionScript sharing.

Parameters
Parameters 
Description 
const char * pexportName 
A pointer to the export name used for resource lookup. 
Return Value

A Resource pointer if the resource was found, null otherwise. If the resource is not null, developers can use Resource::GetResourceType function to determine the type of the resource it is. Image resources, for example, have resource type of Resource::RT_Image and can be cast to ImageResource.