This page was last modified 10:14, 6 June 2008.
SymbianアプリケーションからSWFファイルを起動する方法
From Forum Nokia Wiki
原文(英語): How to play a SWF file from your Symbian application?
S60 3rd Edition FP1端末(例.6110, 6120)における新しいFlash Liteプレイヤーは、終了時にFlash LiteディレクトリにSWFファイルを保存する新機能を持っています。SWFファイルを保存する際にFlash Liteプレイヤーでユーザプロンプトを出したくない場合、その方法を試すことができます。下記に示す手法を使用した場合にパーミッションエラーが発生する場合、端末を最新のファームウェアにリフラッシュする必要があります。この段階でファームウェアの正確なバージョンを持っていませんが、何らかの情報が得られたら本ページを再アップデートします。
CDocumentHandler* iDocHandler; iDocHandler = CDocumentHandler::NewL((CEikProcess*)iEikonEnv->Process()); TThreadId id; RApaLsSession ls; User::LeaveIfError(ls.Connect()); CleanupClosePushL(ls); _LIT(KLitSwfFileToLaunch,"C:\\private\\06fd5506\\A.swf"); //this is the private directory of your application TFileName fileName(KLitSwfFileToLaunch); RFs aFs; User::LeaveIfError(aFs.Connect()); CleanupClosePushL(aFs); User::LeaveIfError(aFs.ShareProtected()); RFile flashFile; User::LeaveIfError(flashFile.Open(aFs,fileName, EFileShareReadersOrWriters )); CleanupClosePushL(flashFile); TInt succ = ls.StartDocument(flashFile,id,NULL); CleanupStack::PopAndDestroy(3); aFs.Close(); flashFile.Close(); delete iDocHandler;
