Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Pressure

macrumors 603
Original poster
May 30, 2006
5,263
1,654
Denmark
Update: Figured it out :)

Hey, it has been 3 years since I last touched upon Flash, so I am a bit rusty and any help would be appreciated.

I am currently making a flash banner that will stream an external video (.flv) but I seem to have a few problems.

First I need to make it preload like those flash movie trailers that have been on several sites (eg. like the one for Quantum of Solace) and make it play/stream with rollOver and stop with rollOut as seamlessly as those flash trailers seem to do.

I have made an invisible button that contains the following actionscript:

Code:
on (rollOver) {
	var my_nc:NetConnection = new NetConnection();
	my_nc.connect(null);
	var my_ns:NetStream = new NetStream(my_nc);
	my_video.attachVideo(my_ns);
	my_ns.setBufferTime(5);
	my_ns.play("http://home20.inet.tele.dk/pressure/RT.mov");
}
on (release) {
	getURL("http://");
}

The .fla can be downloaded here if you are interested.

Any smarter way to accomplish this?

Thanks for any input and/or help!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.