Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-28-2007, 07:42 PM
sos sos is offline
Junior Member
 
Join Date: Jan 2007
Posts: 4
Default Embedding ActiveX control

Hi I have an activeX control that I need to be Embed into the main projector window

the control has no width or height properties to set from the FFish script.

thank you for your help
Reply With Quote
  #2 (permalink)  
Old 01-30-2007, 05:44 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Embedding ActiveX control

First please use the createControl method to embed the activex control, and then please use the window property to set its size and postion:

Code:
var ax = createControl(...);
// The "window" property will return a Window object
var wnd = ax.window;
wnd.left = 0;
wnd.top = 0;
wnd.width = 50;
wnd.height = 100;
...
Reply With Quote
  #3 (permalink)  
Old 01-30-2007, 10:32 AM
sos sos is offline
Junior Member
 
Join Date: Jan 2007
Posts: 4
Default Re:Embedding ActiveX control

Thank you very much now all is working fine....
Reply With Quote
  #4 (permalink)  
Old 01-30-2007, 06:08 PM
sos sos is offline
Junior Member
 
Join Date: Jan 2007
Posts: 4
Default Re:Embedding ActiveX control

Another question I have ...please:

I tried using :

Code:
on (release) {
import SWFKit.*;
var player =  createControl("MediaPlayer.MediaPlayer.1", 0,0,600,300);
}
inside flash 8 actionscript with now success , the debug window shows worrying : using undefined variable "player"

I have set the class path in Flash 8 as described in your tutorial

Also I tried other scripts like
Code:
var fil = "video files(*.avi;*.wmv)|*.avi;*.wmv";
var res = Dialogs.fileOpen(fil, "", "", true);
var path = res[0];
And it works with now problem.
dose that mean that calling activeX objects from actionscript is not supported

Any one to help with this !!!!!

Thank you in advance
Reply With Quote
  #5 (permalink)  
Old 02-01-2007, 11:59 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Embedding ActiveX control

It should be
Code:
var player =  Global.createControl("MediaPlayer.MediaPlayer.1", 0,0,600,300);
Reply With Quote
  #6 (permalink)  
Old 02-02-2007, 02:26 AM
sos sos is offline
Junior Member
 
Join Date: Jan 2007
Posts: 4
Default Re:Embedding ActiveX control

Thanks for the big Help....I used the help documentation example pattern
...I hope you can update SWFKit help documentation depending on collective data form this forum.

in other words look into what is the subjects most users are asking for help about.then update help documentation accordingly....this will reduce pressure on this forum and at the same time makes things easer for your customers.


Reply With Quote
  #7 (permalink)  
Old 02-05-2007, 02:18 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Embedding ActiveX control

Thank you very much for your kind advice. We will do that.
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 04: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.