Namespaces
Variants
Actions

Archived:How to play a SWF file from your Symbian application?

Jump to: navigation, search
Archived.png
Archived: 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

Article
Created: ekhoo (13 Jul 2007)
Last edited: hamishwillee (14 May 2013)

The new flashlite player in S60 3rd edition FP1 devices (e.g. 6110 or 6120) has a new feature to allow user to save the SWF in the flashlite directory upon exit. If you do not want the flashlite player to prompt user to save the SWF, you can try the method below. If you get a permission error by using the method below, you will have to reflash your device to the latest firmware. I do not have the exact version of the firmware at this moment but i will update this page again once i get the information.

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 07:37.
137 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved