Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-01-2005, 05:52 PM
Member
 
Join Date: Oct 2005
Posts: 87
Default Hows to change ActiveX size/pos in FFish script?

in your media example:
.....
if (player == null)
{
player = createControl("MediaPlayer.MediaPlayer.1", 305,85,680,365);
player.activex.ShowControls = false;
}
player.activex.Open(path);

player.window.show();
.....


the MediaPlayer ocx window boundary defined by
2 coords (305,85,680,365)

but how can I change it in FFish?

sometime I need to change size/posintion of the ActiveX control, how can I do that?


thank's !
Reply With Quote
  #2 (permalink)  
Old 12-02-2005, 01:11 AM
Member
 
Join Date: Oct 2005
Posts: 87
Default Re:Hows to change ActiveX size/pos in FFish script?

I've tried
1 player.activex.x y top left width ....
2 palyer.windows.x y top left width ....
dont' work properly

I've checked MSDN, cant' find answer

I need heeeeeeeeeeeeeeelp!

zak's
Reply With Quote
  #3 (permalink)  
Old 12-02-2005, 01:16 AM
Member
 
Join Date: Oct 2005
Posts: 87
Default Re:Hows to change ActiveX size/pos in FFish script?

by the way
I want to know detail of ActiveX event handle in FFish.
for MediaPlayer, I want be noticed when player reached a marker. because I need sync other Flash element on stage when video playhead reach different marker!

any idea?

cheers!

Reply With Quote
  #4 (permalink)  
Old 12-02-2005, 01:31 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Hows to change ActiveX size/pos in FFish script?

player.window

The "window" property is of "Window" type. The createControl method returns an object that contains two properties, "activex" and "window". "activex", an ActiveXObject object, represents the dispatch interface of created ActiveX control by "createControl". By using "activex", you can access the methods, properties and events of the ActiveX control. And "window", a Window object, represents the Window of the ActiveX control. To change the window size or position, just call the relevant methods or properties:

play.window.move(...);
Reply With Quote
  #5 (permalink)  
Old 12-02-2005, 06:21 AM
Member
 
Join Date: Oct 2005
Posts: 87
Default Re:Hows to change ActiveX size/pos in FFish script?

your methed move/resize the ActiveX's window properly,
but I need resize the content (video) correspondly, it seems cliped the content, I want the content of the window (ie. video here) be "stretched" instead of "cliped"!

how can I do that?

thanks!
Reply With Quote
  #6 (permalink)  
Old 12-02-2005, 06:35 AM
Member
 
Join Date: Oct 2005
Posts: 87
Default Re:Hows to change ActiveX size/pos in FFish script?

I've checked MediaPlayer control's properties in my FFish script, and resulted as follow:

AllowChangeDisplaySize: true;
AutoSize:true;(default false/ i set to True);


How to stretch the content of the window ?
I means fit the video size to the window that size/pos is given by my FFish script?
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:05 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.