How can one activate full screen video from the new Rich Media Annotation without having to right click on the flashplayer's context menu? I want to do this via a PDF button instead.
I have embedded a swf file that loads an external FLV from a URL.
The swf that loads the flash video uses the AS2 FLVplayback component.
I have successfully set up communication between my embedded swf file and Acrobat using Externalinterface and callAS. I can initiate various actions between the parent PDF and the embedded swf file. But my calls to go full screen fail.
On the Flash side I have the following ActionScript:
import flash.external.ExternalInterface;
function startActions()
{
Stage["displayState"] = "fullScreen";
myTxt.text = "Some changed text"
gotoAndStop(2)
}
var myConnect = ExternalInterface.addCallback("startActions", null, startActions);
And on a PDF button the following Javascript:
var annot = getAnnotsRichMedia(1)[0]; // media is on the second page of the PDF
annot.callAS( "startActions");
All the actions except full screen work.
Other things I have tried which also fail but seem to indicate full screen video can only be initiated on the Acrobat side:
(a) Using AS2 code to add full screen activation into the context menu of the swf file, and then setting "Pass context menu click to flash movie" in the Flash tab of the Rich Media annotations editing panel.
This does bypass Acrobat's default context menu in favor of the swf's native one, but oddly, the full screen item is grayed out as soon as the movie is activated.
(b) Using an AS3 FLVplayback component which has a full screen button already coded into the controller bar. Clicking on it once the swf is brought into Acrobat, however, does nothing.
So. Is it possible to create a PDF button that will put a swf Rich Media Annotation into full screen without having to use Acrobat's right click context menu? How does one accomplish this?
I'm using Flash CS3 and Acrobat Extend Pro. And I prefer to use AS2 for a solution, if possible.