Hi:
I tried 2 ways to use a swf file on notes, when i have the swf on the server or like a file resource on a page or form everything works on IE, but when i tried to execute on Notes Client, it show me an error:
“An error has occurred while processind a request on an object.”
“Cannot locate specified OLE object within document.”
When i tried to embedded a using a swf file show me an error:
“Object not Loaded.”
I can make to work it on notes client.
For your help and attention
Thank You
Daniel Sanchez Marquez
Subject: Re: Viewing swf file in Notes Client
Hello Daniel,
it is possible to run flash files in your notes native client. In documents and even in mails.
Your clients must have flash installed. But i sink all win PC’s with a browser have it.
Create a Form and create a Flash Object inside. After you do this you have to modify the
event “Initialize” of the Flash Control.
Select “Control” and use “Macromedia Flash Paper” = Flash8.ocx
Sub Initialize
Dim w As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Dim doc As NotesDocument
Set uidoc = w.CurrentDocument
Set doc = uidoc.Document
Dim myFlash As Variant
'Sleep(5)
Set myFlash = uidoc.GetObject("Flash")
myFlash.LoadMovie 0,"http://images.flashkit.com/tutorials/Interactivity/Creating-Eddie_Ca-60/button_label.swf"
'Call uidoc.FieldSetText("SendTo","Markus Helm")
doc.SendTo="John Doe"
doc.Form="ft"
Call doc.Send(True)
End Sub
(Sorry I have no rights to post with the Notes Client. So I can’t use syntax highlighting now)
The only trick is to load the Movie — > with myFlash.LoadMovie
myFlash load the swf self.
The other code in my example is only to resend the form to John Doe each time he reopen the mail.
If the Form is open the Flash ocx load the movie and start palying.
Regards
Mark
http://domino.blogdns.org
Subject: RE: Re: Viewing swf file in Notes Client
Hi Markus:
Thanks for your example, but in your example the swf file is out of the dabase, if a put the swf like a resource file, how can i modify the call of the movie?
or swf files can be embedded like objects from a file or using a control?
For your help
Thank you
Daniel Sanchez Marquez
Subject: RE: Re: Viewing swf file in Notes Client
Hi Daniel,
if you have the web task running on your domino server
you can load the swf as a resource file with the http request.
Take a look on the developer help file:
OpenFileResource
Allows you to open a file resource in an application.
Syntax
http://Host/Database/FileResourceName?OpenFileResource
Where:
FileResourceName is the name of the file being accessed.
Examples
http://www.mercury.com/leads.nsf/JSLibrary.js?OpenFileResource
The other way is to save the file on the client temp directory
and use the file:// url.
Maybe the Flash object support also streams. In this case
you can make a Notes Stream form the file.
Here some proberties of the Flash:
Property MovieData As String
Member of ShockwaveFlashObjectsCtl.ShockwaveFlash
property MovieData
Sub Play()
Member of ShockwaveFlashObjectsCtl.ShockwaveFlash
method Play
Regards
Mark
http://domino.blogdns.org
Subject: RE: Re: Viewing swf file in Notes Client
Hi Markus:
I tried this:
Dim w As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set uidoc = w.CurrentDocument
Dim myFlash As Variant
Set myFlash = uidoc.GetObject(“Shockwave Flash Object”)
myFlash.LoadMovie 0,“http://server/flash/cannon.swf”
and this:
Dim w As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set uidoc = w.CurrentDocument
Dim myFlash As Variant
Set myFlash = uidoc.GetObject(“Shockwave Flash Object”)
myFlash.LoadMovie 0,“http://server/apps/pruebas/pruebas.nsf/Prueba.swf?OpenFileResource”
and none of them work, on IE don’t show anything, and on Lotus Notes show ot the error “Cannot locate specified OLE Object within the document”
What i’m doing wrong?
Thank you
Daniel
Subject: RE: Re: Viewing swf file in Notes Client
Hi Daniel,
the error means that you don’t have a Component on your Form or the name is wrong.
Take a look on my home page. Here is a example working DB:
http://domino.blogdns.org/content/view/39/34/
Important:
I don’t test it with the IE. I think my solution is for Notes native client only. On IE html embedded ist ok.
Regards
Markus
Subject: RE: Re: Viewing swf file in Notes Client
Hi Markus:
I checkit and it works, i make the correcctions on my code and it works too, as you say only works on Notes Client and that’s what i need.
Thank you
Daniel
Subject: Viewing swf file in Notes Client
Hi DanielDo you know you can’t run swf files in Lotus Notes Client Form.
But there is way you can embedded these using lotus script but basically you database should support HTTP Task
Thanks
Jana
cts_janardan@yahoo.com
Subject: RE: Viewing swf file in Notes Client
Hi:
How do i know that my database support HTTP task?
swf files can be embedded like objects from a file or using a control?
Thank you
Daniel Sanchez Marquez