Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-08-2003, 03:21 PM
Junior Member
 
Join Date: Jan 2003
Posts: 5
Default Close Media Player

I Have a problem using media player with flash in swf kit
i load a media player movie with swf kit then in flash i have button that close or change to other thing, well I put a script to that button to close the media player
I'm using this script

if (mp != null)
{
mp.activex.Stop();
mp.window.hide();
mp=null;
mp.window.close();
}


but this just hide the medi player window it doesen't close it. I know it beacuse when I close the application
and if I press CNTRL + ALT + Shift, in the tab of process I see the name of the application still running

How can I solve this problem

Thanks
Miguel


Reply With Quote
  #2 (permalink)  
Old 02-08-2003, 09:13 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: Close Media Player

The
Code:
mp=null;
sets the variable "mp" to null, then the "mp.window.close()" expession is meaningless.

Please do like this...
Code:
if (mp != null) 
{ 
 mp.activex.Stop(); 
 //mp.window.hide(); 
 //mp=null; 
  mp.window.close(); 
}

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 03:32 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.