A couple of things to look at:
1) Make sure you have the import statement in your project:
2) Make sure you add the AkamaiBasicStreamingPlugin folder to your Flex Build Path (right click project, select "properties", then "Flex Build Path", in "Source Path" you need to add the plugin folder).
3) If you are still getting Error #1065, you can try a trick where you force the swf compiler to pull in the class:
private static const loadTestRef:AkamaiBasicStreamingPluginInfo = null;
Now you should be able to use getDefinitionByName to load the plugin:
var pluginInfoRef:Class = flash.utils.getDefinitionByName(className) as Class;
pluginResource = new PluginClassResource(pluginInfoRef);
Hope that helps,
I have added the AkamaiBasicStreamingPlugin folder to my Flex Build Path (right click project, select "properties", then "Flex Build Path", in "Source Path" you need to add the plugin folder). I also added "import com.akamai.osmf.AkamaiBasicStreamingPluginInfo" in my project. But the main error is from "1172: not defined com.akamai.osmf:AkamaiBasicStreamingPluginInfo".
Can you give some advises?
Can you take a look at the AkamaiPluginSample Flex project and see if that works for you? It loads the Akamai plugin dynamically or statically.
Looking at your post it looks like you missed the most important step that Charles mentioned. You have to force the compiler to include the class that you are looking to load dynamically at runtime. The import statement alone will nott do it. You have to reference the class somewhere in your code.
private var akamaiClass: AkamaiBasicStreamingPluginInfo;
Do we need to do the same for the MAST Plugins in Strobe Media Player?
Eager to get your response.