Home » Developer & Programmer » Forms » Flash movie in forms 6i
Flash movie in forms 6i [message #111386] Tue, 15 March 2005 22:41 Go to next message
rzkhan
Messages: 370
Registered: March 2005
Senior Member
Dear All...Could I play an flash .swf file in forms 6i? Please help me...i need it urgently..please
Khan
Re: Flash movie in forms 6i [message #111401 is a reply to message #111386] Wed, 16 March 2005 03:09 Go to previous messageGo to next message
Maaher
Messages: 7065
Registered: December 2001
Senior Member
Ok, here's how. I've found this document in my 'rarely used but might be useful someday' folder. There are more solutions to this but here's one (I believe it originally came from the Tek-Tips forum).

Make sure Flash is installed.

In Forms:
- Create an ActiveX Control Item (OCX) on your canvas.
- Right click it and select 'Insert Object...'.
- Choose Shockwave Flash Object.
- In the main menu 'Program', choose 'Import OLE Library Interfaces'
- Select ShockwaveFlash.ShockwaveFlash from the list.
- Select both the Method Package(s) and the Event Package(s). Make sure they're highlighted.
- Verify the existance of 5 new objects in your program units:
PACKAGE ShockwaveFlashObject_CONSTANTS (spec only)
PACKAGE ShockwaveFlash_IShockwa_0 (spec and body)
PACKAGE ShockwaveFlash_Shockwav_EVENTS (spec and body)
- Add the following code to your 'when-new-form-instance' trigger:
DECLARE
  var     oleobj;
BEGIN
  var:=:item('your_block.your_activex_item').interface;
  ShockwaveFlash_IShockwa_0.MOVIE(var,'path to the swf file');
END;


HTH,
MHE
Re: Flash movie in forms 6i [message #111419 is a reply to message #111401] Wed, 16 March 2005 05:18 Go to previous messageGo to next message
rzkhan
Messages: 370
Registered: March 2005
Senior Member
I am really thankful to you. I followed the whole procedure. but I get the following error, when I run the form. Plz help me...I need it for my project...thanks
Khan
Re: Flash movie in forms 6i [message #111420 is a reply to message #111401] Wed, 16 March 2005 05:20 Go to previous messageGo to next message
rzkhan
Messages: 370
Registered: March 2005
Senior Member
I am really thankful to you. I followed the whole procedure. but I get the following error, when I run the form.

FRM-40738. Argument 1 to builtin SET_OLE can not be null;

please help me...I need it for my project...thanks
Khan


[EDITED by LF: fixed formatting tags]

[Updated on: Mon, 04 June 2012 03:26] by Moderator

Report message to a moderator

Re: Flash movie in forms 6i [message #113017 is a reply to message #111420] Wed, 30 March 2005 10:18 Go to previous messageGo to next message
fahedakhter
Messages: 39
Registered: March 2005
Location: Pakistan
Member

Hai I am fahedakhter.I am actualy a guy who provide code in TEK-TIPS if you have any problem contact me.
Re: Flash movie in forms 6i [message #128908 is a reply to message #111401] Thu, 21 July 2005 03:11 Go to previous messageGo to next message
shum
Messages: 17
Registered: July 2005
Junior Member
hello


var:=:item('your_block.your_activex_item').interface;
ShockwaveFlash_IShockwa_0.MOVIE(var,'path to the swf file');


will you explain these two lines please

1. ' your_block.your_activex_item'
2. path to the swf file




Re: Flash movie in forms 6i [message #129167 is a reply to message #128908] Fri, 22 July 2005 04:56 Go to previous messageGo to next message
Maaher
Messages: 7065
Registered: December 2001
Senior Member
1. You have created an ActiveX control on your canvas
Replace 'your_block.your_activex_item' by the real names you used.
2. Your flash movie is stored somewhere on the filesystem. Locate it and use that path.

What's hard about that?

MHE
Re: Flash movie in forms 6i [message #133256 is a reply to message #111386] Thu, 18 August 2005 04:49 Go to previous messageGo to next message
tarek200_jo
Messages: 8
Registered: June 2005
Junior Member
Thanks man;
but you know something that hardest part in this is to know what every Procdure & function can do.
then u can go very easy.
Re: Flash movie in forms 6i [message #146962 is a reply to message #111386] Mon, 14 November 2005 22:28 Go to previous messageGo to next message
toufiq_raja
Messages: 39
Registered: May 2005
Location: Islamabad
Member

maheer i tried to do and follwed your steps.....
but there is a problem with it.
it attaches the ocx controll at design time. but at run time its not attached. so i have to manually attach the ocx conroll by ->right clicking on the ocx container-> and then selecting the flash controll. then it runs ....
i want to avoid the run time work.
it should be attached when the form runs.
is it a bug in the form or any thing else have to be done with the form.
Re: Flash movie in forms 6i [message #286908 is a reply to message #111401] Mon, 10 December 2007 07:09 Go to previous messageGo to next message
mohradi
Messages: 6
Registered: December 2007
Location: jordan
Junior Member
thank you i will use this code
Re: Flash movie in forms 6i [message #287134 is a reply to message #111386] Tue, 11 December 2007 03:13 Go to previous messageGo to next message
annu-agi
Messages: 238
Registered: July 2005
Location: Karachi
Senior Member

see the file attachment
  • Attachment: flash1.fmb
    (Size: 132.00KB, Downloaded 2334 times)
Re: Flash movie in forms 6i [message #389140 is a reply to message #111386] Fri, 27 February 2009 06:49 Go to previous messageGo to next message
NoraizOraDev
Messages: 11
Registered: September 2008
Junior Member
I follow all steps to run FLASH movie in Forms 6i.
If give path in test.fmb it runs exactly.

but when i want to create a new form for this purpose.
I got error after doing all as follow.

frm-41344: OLE object not defined for FLASH in the current record

How to debug this error?
Re: Flash movie in forms 6i [message #389888 is a reply to message #389140] Tue, 03 March 2009 23:57 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Open 'test.fmb' and look at the Objects that are associated with the form. Do you have these objects in your form?

Look at the properties of the 'flash' area in the test form. Do you have this in your form?

David
Re: Flash movie in forms 6i [message #502159 is a reply to message #389888] Tue, 05 April 2011 00:36 Go to previous message
adeelali
Messages: 10
Registered: April 2011
Location: Pakistan
Junior Member

Thanks U So Much ... Smile
Previous Topic: Flash Animation in Oracle Forms 6i
Next Topic: Developer 10g and Developer 6i on same machine
Goto Forum:
  


Current Time: Thu Sep 19 15:03:37 CDT 2024