Archived:How to play a SWF file from your Symbian application?
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.
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
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;


It could be a good solution to avoid the annoying prompt of 'save swf' when user exit the FlashLite application.
--sangramp@cybage.com 07:45, 15 September 2009 (UTC)