单元文件:unit Unit1;interfaceuses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, OleCtrls, ShockwaveFlashObjects_TLB, ExtCtrls;type
TForm1 = class(TForm)
Panel1: TPanel;
ShockwaveFlash1: TShockwaveFlash;
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;var
Form1: TForm1;implementation{$R *.dfm}procedure TForm1.FormCreate(Sender: TObject);
begin
left := 0;
top := 0;
width := screen.Width;
height := screen.height;
ShockWaveFlash1.Movie := 'c:\test.swf';
ShockWaveFlash1.Play;
end;end.×××××××××××××××××××××××××××
窗体文件:
object Form1: TForm1
Left = 198
Top = 107
BorderStyle = bsNone
Caption = 'Form1'
ClientHeight = 453
ClientWidth = 688
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
OldCreateOrder = False
OnCreate = FormCreate
PixelsPerInch = 96
TextHeight = 13
object Panel1: TPanel
Left = 0
Top = 0
Width = 688
Height = 453
Align = alClient
Caption = 'Panel1'
TabOrder = 0
object ShockwaveFlash1: TShockwaveFlash
Left = 1
Top = 1
Width = 686
Height = 451
Align = alClient
TabOrder = 0
ControlData = {
67556655000300001B470000D22E000008000200000000000800020000000000
080002000000000008000E000000570069006E0064006F00770000000B00FFFF
0B00FFFF08000A0000004800690067006800000008000200000000000B00FFFF
080002000000000008000E00000061006C007700610079007300000008001000
0000530068006F00770041006C006C0000000B0000000B000000080002000000
00000800020000000000}
end
end
end××××××××××××××××××××××××××××
这两个文件你研究不研究无所谓,就几行代码有用而已。
在自己设一下属性就是 了。
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, OleCtrls, ShockwaveFlashObjects_TLB, ExtCtrls;type
TForm1 = class(TForm)
Panel1: TPanel;
ShockwaveFlash1: TShockwaveFlash;
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;var
Form1: TForm1;implementation{$R *.dfm}procedure TForm1.FormCreate(Sender: TObject);
begin
left := 0;
top := 0;
width := screen.Width;
height := screen.height;
ShockWaveFlash1.Movie := 'c:\test.swf';
ShockWaveFlash1.Play;
end;end.×××××××××××××××××××××××××××
窗体文件:
object Form1: TForm1
Left = 198
Top = 107
BorderStyle = bsNone
Caption = 'Form1'
ClientHeight = 453
ClientWidth = 688
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
OldCreateOrder = False
OnCreate = FormCreate
PixelsPerInch = 96
TextHeight = 13
object Panel1: TPanel
Left = 0
Top = 0
Width = 688
Height = 453
Align = alClient
Caption = 'Panel1'
TabOrder = 0
object ShockwaveFlash1: TShockwaveFlash
Left = 1
Top = 1
Width = 686
Height = 451
Align = alClient
TabOrder = 0
ControlData = {
67556655000300001B470000D22E000008000200000000000800020000000000
080002000000000008000E000000570069006E0064006F00770000000B00FFFF
0B00FFFF08000A0000004800690067006800000008000200000000000B00FFFF
080002000000000008000E00000061006C007700610079007300000008001000
0000530068006F00770041006C006C0000000B0000000B000000080002000000
00000800020000000000}
end
end
end××××××××××××××××××××××××××××
这两个文件你研究不研究无所谓,就几行代码有用而已。
在自己设一下属性就是 了。
应该会有别的办法解决的。
大家在试试吧************
* 努力学习 *
* 全为 *
*¥人民币¥*
************
设置最大化
begin
//***********************图片加载*******************************************//
MainFlash.Movie:=FormMain.ApplicationPath+'images\FormMain\main.swf';
end;procedure TFormFrontSelect.FormResize(Sender: TObject);
begin
SendMessage(Button1.Handle,wm_keydown,vk_space,1);
SendMessage(Button1.handle,wm_keyup,vk_space,1);
MainFlash.Refresh;
end;procedure TFormFrontSelect.Button1Click(Sender: TObject);
begin
sendmessage(MainFlash.handle,wm_lbuttondown,0,0);
sendmessage(MainFlash.handle,wm_lbuttonup,0,0);
end;