  | |  | Media Playback Component and setMedia() not working...? | Media Playback Component and setMedia() not working...? 2004-02-07 - By thotskee
Back Flashcoders,
I have a textfield and a Media Playback component.
When clicking my link with the asfunction on it the component won't play my video. Any thoughts as to what I am doing wrong here? My component and text field are both named appropriately. The video does exist and I have confirmed it will play by manually setting the URL field of the Media Playback component in the Component Inspector.
TL = _root; TL.vidPlayer.autoPlay = false; function playVideo(vid) { TL.vidPlayer.setMedia(vid, "FLV"); TL.vidPlayer.totalTime = 103.40; TL.vidPlayer.play(0); }
vidText_txt.htmlText = "<a href='asfunction:TL.playVideo, qbert_01.flv'>Snippet 01</a>";
Thanks!
thotskee
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Supported by Fig Leaf Software -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Lower Prices for Certified Training! Check out new lower prices for Certified Macromedia Training from Fig Leaf Software. Expand your skill set with courses in ColdFusion, Flash, Rich Internet Applications and .NET in the new year. Fig Leaf Software provides the highest caliber instruction at our training centers in Washington D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location.
Get the details at http://training.figleaf.com/ -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected) For additional commands, e-mail: flashnewbie-help@(protected)
Earn $52 per hosting referral at Lunarpages.
|
|
 |