Mailing List
Home
Flash Pro
Extending Flash
Flash Macromedia Developer
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
Problems controlling windows media player from flash??

Problems controlling windows media player from flash??

2004-02-17       - By studioclassics

 Back
Reply:     1     2  

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)