Hello.
I have developed app which open FlashLite movie by CDocumentHandler::OpenFileEmbeddedL.
App will be run in landscape orientation always.
I wrote code:
CFlashAppView has member CDocumentHandler and open Flash in ConstructL method:PHP Code:void CFlashAppUi::ConstructL()
{
BaseConstructL(CAknAppUi::EAknEnableSkin | CAknAppUi::EAppOrientationLandscape);
// ...
// SetOrientationL(CAknAppUiBase::EAppUiOrientationLandscape);
iAppView = CFlashAppView::NewL(ApplicationRect());
// SetOrientationL(CAknAppUiBase::EAppUiOrientationLandscape);
}
StartFlash() method's code:PHP Code:void CFlashAppView::ConstructL(const TRect& aRect)
{
CreateWindowL();
SetExtentToWholeScreen();
ActivateL();
StartFlash();
}
I see app created in landscape orientation, but flash - in portraitPHP Code:void CFlashAppView::StartFlash()
{
_LIT(KLitSwfFileToLaunch, "\\Other\\flash.swf");
TFileName fileName(KLitSwfFileToLaunch);
CompleteWithAppPath(fileName);
RFs fs;
RFile sh_file;
User::LeaveIfError(fs.Connect());
CleanupClosePushL(fs);
User::LeaveIfError(fs.ShareProtected());
User::LeaveIfError(sh_file.Open(fs, KLitSwfFileToLaunch, EFileShareReadersOnly));
CleanupClosePushL(sh_file);
iHandler = CDocumentHandler::NewL((CEikProcess*)iEikonEnv->Process());
iHandler->SetExitObserver(this);
TDataType dType;
iHandler->OpenFileEmbeddedL(sh_file, dType);
CleanupStack::PopAndDestroy(2); // fs, sh_file
}
I tried insert "SetOrientationL(CAknAppUiBase::EAppUiOrientationLandscape)" before and after creating AppView, but it doesn't help.
If i use slider - app and flash change orientation normally.
How i can force open flash in landscape orientation?
Thanks.
p.s.> Nokia N95.







