|
|||
|
hi, I just want to know if i can include an especific target for the meda player activex instead of the coordinates
you know you put something like var var1 = createControl("MediaPlayer.MediaPlayer.1", 0, 0, 200, 200); well instead of 0,0,200,200 i can tell it to go to a target i want to do this beacuse i have a full screen presentation and it moves from it's place and beacuse i run it in differente screen resolutions thanks |
|
|||
|
1. make the media player fit the main window
Code:
var wnd = getMainWnd();
var var1 = createControl("MediaPlayer.MediaPlayer.1", 0, 0, wnd.width, wnd.height);
Provides the name of the MovieClip is "mymovie". Get the placement of the MovieClip in the Action Script: Code:
var pos = mymovie.getBounds(); Code:
FlashPlayer.bindData("pos.xMin", "pos.yMin", "pos.xMax", "pos.yMax");
FlashPlayer.updateData(true);
var rect = FlashPlayer.movieToWindow(FlashPlayer.pos.xMin, FlashPlayer.pos.xMax,
FlashPlayer.pos.yMin, FlashPlayer.pos.yMax);
var mp = createControl("MediaPlayer.MediaPlayer.1", rect.left, rect.top, rect.right, rect.bottom);
|
|
|||
|
Hi topcmm, i tried the script but it loads the mediaplayer in the top left part of the window, the size is the same of the movieclip but, it doesnīt loads on it
- What am I doing wrong? - I have to put this code in Flash or swfkit? var pos = mymovie.getBounds(); - and the name "mymovie" is for the movieclip or for itīs instance? - Last, i'm loading the movie with this command at the end of the script is it right? mp.activex.Open(path + "one.mpg"); |
|
|||
|
|
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|