Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-20-2003, 09:34 AM
Junior Member
 
Join Date: Jan 2003
Posts: 5
Default Media Player

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
Reply With Quote
  #2 (permalink)  
Old 01-21-2003, 01:48 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: Media Player

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);
2. place a media player onto a MovieClip

Provides the name of the MovieClip is "mymovie".
Get the placement of the MovieClip in the Action Script:
Code:
var pos = mymovie.getBounds();
Then converts the placement to the windows client coordinates system in the FFish Script:

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);
Reply With Quote
  #3 (permalink)  
Old 01-21-2003, 08:04 AM
Junior Member
 
Join Date: Jan 2003
Posts: 5
Default Re: Media Player

Thank you, you have solved a great doubt i had about movie player, Really thank you

Miguel
Reply With Quote
  #4 (permalink)  
Old 01-21-2003, 09:03 AM
Junior Member
 
Join Date: Jan 2003
Posts: 5
Default Re: Media Player

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");

Reply With Quote
  #5 (permalink)  
Old 01-21-2003, 10:47 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: Media Player

Sorry, the action script should be
Code:
var pos = mymovie.getBounds(_root);
:-[

The name "mymovie" is for the movieclip's instance. The script is right.
Reply With Quote
  #6 (permalink)  
Old 09-16-2005, 08:52 PM
Member
 
Join Date: Sep 2005
Posts: 31
Default Re:Media Player

I tried all this but not successful. CAN U SEND ME THE SAMPLE FILE ???????? because i have problem of playing video in flash and very worried about it.
i hope u will help me
Reply With Quote
  #7 (permalink)  
Old 09-18-2005, 11:28 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Media Player

http://www.swfkit.com/swfkit/samples/videos.html#mp
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 07:47 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.