×
Namespaces

Variants
Actions

Archived:SymbianアプリケーションからSWFファイルを起動する方法

From Nokia Developer Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

We do not recommend Flash Lite development on current Nokia devices, and all Flash Lite articles on this wiki have been archived. Flash Lite has been removed from all Nokia Asha and recent Series 40 devices and has limited support on Symbian. Specific information for Nokia Belle is available in Flash Lite on Nokia Browser for Symbian. Specific information for OLD Series 40 and Symbian devices is available in the Flash Lite Developers Library.

Article Metadata
Compatibility
Platform(s): S60 3rd Edition FP1
Symbian
S60 3rd Edition FP1
Article
Translated:
By morisawafnj
Last edited: hamishwillee (14 May 2013)


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;
This page was last modified on 14 May 2013, at 09:36.
67 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×