Embed Animated Flash Objects (*.swf file) in Oracle Forms.

articles: 

Hello All,

To embed a Macromedia Flash Object (*.swf File) in Oracle Forms, follow the steps below.

1. Draw "ActiveX Control" Item on Canvas with the Name "OCXITM".
2. Select "ActiveX Control" Item & Go to its Properties (By Pressing F4).
3. Select "ShockwaveFlash.ShockwaveFlash" in "OLE Class" Property of "ActiveX Control" Item.
4. Come again to the Canvas.
5. Right Click on "ActiveX Control" Item, Select "Insert Object...".
6. In Control Type List, Select "Sockwave Flash Object" and Press "OK".
7. On Canvas, Select "ActiveX Control" Item, Go to "Program" Menu, Select "Import OLE Library Interfaces...".
8. Select All "Method Package(s)" & "Event Package(s)" for "ShockwaveFlash.ShockwaveFlash.X" & Press "OK".
9. Go to "Object Nevigator" (By Pressing F3) & Expand "Program Unit" to verify that the Packages are Successfully Imported.
10. Compile All the Objects (By Pressing "Ctrl+Shift+K").
11. In "WHEN-NEW-FORM-INSTANCE" Trigger Write the Below Code.

/************************************************************
*************************************************************
** Author   : Muhammad Waseem Haroon                        *
** Dated    : 07-Apr-2005                                   *
** Purpose  : To Call Macromedia Flash Object (*.swf File)  *
** Module   : Logo                                          *
*************************************************************/
DECLARE
	oleitm OLEOBJ;
BEGIN
	oleitm := :item('OCXITM').INTERFACE;
	ShockwaveFlash_IShockwa_0.Movie(oleitm,'d:\movie.swf');--it can be dynamic.
END;

12. Compile, Save & Run Your Form.... and... See the Beauty.

Thanks & Regards

Muhammad Waseem Haroon


Comments

This is an interesting topic in Oracle. I tried to implement the same coding in Apps but I failed. Anybody has ever tried using same code above in Apps?

Kevin Meade's picture

This is nice. But I would like to use fushioncharts to try embedding charts in my forms. This gets me part of the way there. You got any advice on what remains? Here is some Fushion Charts info:

I would have a data file with this text in it (xml data layout for fushioncharts). I had to remove the greaterthan/lessthan characters for the data to show in this post.

Graph caption='Monthly Unit Sales' xAxisName='Month' yAxisName='Units' showNames='1' decimalPrecision='0' formatNumberScale='0'
set name='Jan' value='462' color='AFD8F8'
set name='Feb' value='857' color='F6BD0F'
set name='Mar' value='671' color='8BBA00'
graph

They already provide the .swf file (FCF_Column3D.swf).

How to I get the data file to the object?

Thanks, Kevin.

tamzidulamin's picture

Is this working for Developer10g Rel-1 or 2?