Triggering playback of swf file

hackhack

Active Member
Licensed User
Longtime User
I have an swf file on the device (like so "file.swf") - if I 'click' on this (in a file manager) it launches the Adobe player and it plays fine.

Can I somehow trigger this from B4A? Ie, not run in interface or anything, just use the app as a launcher of this file.
 

hackhack

Active Member
Licensed User
Longtime User
Seems this is how you do it:


B4X:
Dim Intent1 As Intent
Intent1.Initialize(Intent1.ACTION_VIEW,"file:///sdcard/video/filename.swf")
intent1.SetType("application/x-shockwave-flash")
StartActivity(Intent1)
 
Upvote 0
Top