Skip to Main Content

Oracle Forms

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

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

398653Jun 6 2007 — edited Apr 19 2011

Hello All,

To Embed Animated Flash Object (Shockwave *.swf File) in Oracle Forms, Please 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
ocp_waseem@hotmail.com
mwaseem_haroon@yahoo.com
waseemharoon@gmail.com

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 17 2011
Added on Jun 6 2007
6 comments
3,092 views