Mailing List
Home
Forum Home
Flash Pro
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.
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.