Playing Flash movies (like FusionCharts) in the Notes Client? Not that simple…

Years ago, I was wondering if it was possible to play Flash content in the Notes Client. But the interest for it disappeared, because it didn’t serve any real purpose then. Until I saw IntelliPRINT’s Dashboard Reporting: they use FusionCharts, the tool I spoke about earlier, to display its amazing charts in the client.

Now thàt is something great! Just imagine you sending an email to your boss with an impressive chart in it. But then it seems the boss is not so happy with the figures. You just act surprised, change the figures in the background, tell him he must have been mistaken, he reopens the mail to check back et voilà, an updated chart is shown! :-)

FusionCharts in Lotus Notes Client

I updated the Charts demo database to include this Notes Client example. Do a preview of the form NotesClient in the client to see the result (but do a preview of the Charts page in the browser first to start a websession)

While this sounds like a good idea, there are some issues out there: some of them I found answers for, others are unresolved.

I also googled around and saw that others walked the same path in the past. Some of the honey I got from these articles:

I mixed the honey, and added some of my own experiences and footnotes.

Dropping a Flash movie in the Notes Client

I wished it was as easy as drag-and-drop. But nevertheless here’s an attempt to make it as painless as possible.

  1. On a form or page, choose Create – Object – Control – Macromedia Flash Paper (that’s right, Flash Paper, don’t ask me why).
    Create Object - Control - Macromedia Flash Paper
  2. Change height and width in the properties, and (optionally) the name.
    Flash Player Object Properties
  3. Add your swf movie in the file resources.
  4. Now you need a handle to the object to assign the source movie to it. Other webposts mention the Initialize event of the object itself to set the object, but I experienced timing problems, which gave me an “Object variable not set” with the GetObject. Even a Sleep didn’t help. To avoid these messages, I prefer to use the PostOpen event of the form and this seems to do the job:
    Sub Postopen(Source As Notesuidocument)
      Dim FlashMovie As Variant
      Set FlashMovie = Source.GetObject("FlashObject") 'The object's name
      FlashMovie.LoadMovie 0,"http://host/dbname.nsf/movie.swf"	
    End Sub
  5. Make sure the movie is in a database running on a server with http enabled. If you run it locally nhttp.exe needs to run (the easiest way to invoke this, is by previewing a design element from a local database in the browser).
  6. Test the form or page.

One step further – dropping a FusionChart in the Notes Client

Apart from the steps above, some additional steps are needed to suck the xml data in the chart:

  1. In the page properties (or form) from the data file, set as content type Other – text/xml.
    Content type - Other - text/xml
  2. In the LoadMovie parameter you need to add the path-to-the-data with the suffix dataURL, f.e.

A big issue

As from Flash Player 9 this doesn’t work any longer! Previous versions showed ShockwaveFlash.ShockwaveFlash.1 as the object’s class property, now it’s ShockwaveFlash.ShockwaveFlash.9 and in this version some properties and methods have changed and disappeared.

A possible workaround (but not a good one) is to uninstall version 9 of the player, then install version 8 from Adobe’s site.

Anybody out there who has some experience with this version issue? Anyway, I’ll add it to my list of things to investigate


  1. The best option is to use the Web Control so your embedding a browser rather than the Flash Object.

    This means you can use standard Javascript to control the parameters for the movie.


  2. I agree with the WebBrowser Control suggestion as well, as it’s more flexible than being tied to older versions of the flash player.

    Another fun thing about it is that you can pass javascript-commands (think bookmarklets) to the live WebControl-object/page (in your case, the flash-file). Example of use, “View Bar Chart”, “View Pie chart”.
    (^Not sure if this is what Mark was getting at)

    Example of running JS-commands to a WebControl object on the “Entering” event of a field:

    Great looking charts, btw!

  3. Thanks for the suggestion, Mark and Tommy. Definitely a route to walk as well, I’ll give it a try. The only disadvantage I can think of now, is that it’s an IE only solution, so maybe it doesn’t has the same Flash player version issues, but it depends on IE.
    Btw, Tommy, nice website you have there. Worthwile exploring when I have some spare time.

  4. Martin – your right about the IE problem – in fact its a windows only solution.

    I have an example database which I can let you see if you want. I brought the developer licenses for Fusion Gadgest & Charts so I have a Gantt chart being populated from a task tracking Notes DB – displayed within a Notes form.

    I did the graphs for the Stats page for Idea Jam -


  5. Hi Mark,
    Yes, I would be interested in seeing it work, if you want, you can mail me an example ( Most of the time I’m dealing with Windows/IE customers anyway :-).
    Are you the man behind the ideajam stats? I already figured they were FusionCharts. Neat implementation you did there!

  6. Martin & Others,
    I have working copies of the fusion charts using all notes client. No need to have a server with HTTP or starting any web service. They will run in the client using all lotus script. Drop me a line if you want a sample database. I would be glad to contribute.



  7. Hi Bill,

    Hmmm sounds very interesting! I’d loooove to see a sample database of this! Thanks for wanting to share this!

  8. bill , i will be very interested for a demo db with Fusion Charts ..

    Thanks in advance

  9. Hi Bill, I also would love to have a look at the sample database you talked about. How may I get a copy? Thanks a lot.

  10. Oh, if anyone who got Bill’s database, can you please share with me? Thank a lot, I really need this. =)

  11. William, send me your contact info.
    to: Lotus.Developer at yahoo dot com

  12. Hi Bill, I emailed you. Let me know if you get my email. Thanks again.

  13. There is a piece of code that was remarked out in this database that is preventing it from working. In the dbDashboard form there is a function called generateChart. in this function there is an else statement that is remarked out. remove this remark and the database should work fine. Sorry. my fault.

    here is the working function:
    Function generateChart(chartType As String, lyr As Integer)

    Set myFlash = uidoc.GetObject(“FlashFile1″)

    tempDrive$ = Curdrive$()
    Set pdoc = view.GetDocumentByKey(chartType)
    If Not pdoc.HasEmbedded Then Exit Function
    Set body = pdoc.GetFirstItem(“rtAttachments”)
    REM Get attachments
    Forall att In body.EmbeddedObjects
    If att.Type = EMBED_ATTACHMENT Then
    filepath$ = tempDrive$ & “\” & att.Source
    If FileExists(filepath$) Then

    Call att.ExtractFile(filepath$)
    ‘Print filepath$ & ” extracted”
    End If
    End If
    End Forall

    myFlash.FlashVars = “&dataXML=” & doc.ChartVariables(0) & doc.ChartData(0) & doc.ChartClose(0) & “&chartWidth=1200&chartHeight=700″
    myFlash.LoadMovie lyr,filepath$
    End Function



  1. Macromedia Flashpaper 2 - Macromedia Flashpaper 2... An interesting post by a bloger made me......

Leave a Reply to William Cancel reply

Your email address will not be published. Required fields are marked *

− 1 = 5

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>