The new forums will be named Coin Return (based on the most recent vote)! You can check on the status and timeline of the transition to the new forums here.
Please vote in the Forum Structure Poll. Polling will close at 2PM EST on January 21, 2025.

Flash AS2 - Loading external FLVs and buttons... [SOLVED]

Sharp101Sharp101 TorontoRegistered User regular
edited July 2009 in Help / Advice Forum
Ok, this should be easy enough. I have a swf, in that swf I have a video object. I have two buttons, if you click these buttons a video plays.

My problem? The same video plays no matter which of the two buttons you press! Insanity!
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
video_player.attachVideo(ns);

button_niki.onMouseUp = function() {
	ns.close(); 
	ns.play("Testimonial_Niki_Web_mask.flv");
	//ns.play("/flash/testimonials/Testimonial_Niki_Web_mask.flv");
}



button_terry.onMouseUp = function() {
	ns.close(); 
	ns.play("Testimonial_Terry_Web_mask.flv");
}

Help?

Sharp101 on

Posts

  • Sharp101Sharp101 TorontoRegistered User regular
    edited July 2009
    How about that. I spend 2 hours trying to fix it, then 5 minutes after I post for help I find out that it's because I used onMouseUp instead of onRelease.

    Close this please! :D

    Sharp101 on
Sign In or Register to comment.