  | |  | Problems controlling windows media player from flash?? | Problems controlling windows media player from flash??
2004-02-17 - By studioclassics
Back I 'm having trouble controlling a windows media player movie using the getURL
action in flash. Here is how I have it set up:
1. I 've embedded a media player in the html and have named it "MediaPlayer ".
2. Then I created a number of javascript functions to control the player.
The mute function looks like this:
function muteVideo(){
MediaPlayer.settings.mute = true;
}
3. In the actionscript of the flash controller, I call the function this
way:
getURL( "javascript: muteVideo() ");
4. However, when I trigger this, it mutes the video but it also stops
playback.
When I call the same function from a link on the html page itself, the works
mute correctly and does not stop playback.
I have a similar problem when I try to pause and then resume playback. I
suspect that it has to do with how the flash player is communicating with
the javascript function, but since it’s the same function being called in
both cases (from the .html and from flash) why does it execute in different
ways?
Has anyone run across this and/or found a workaround?
Thanks,
Brian
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:104545
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)
|
|
 |