Hello. I have been looking on google alot for this. Looks like a simple problem but wow i can’t find any thread on it.
Here i have my Stage containing 2 Movieclip “vidclip” and “buttonclip”
“vidclip” is only an empty movieclip that will receive a .flv to be played.
“buttonclip” is a movieclip containing a button.
The problem is , inside the buttonclip , in its first frame i have a script like this:
function tata(event:MouseEvent):void {
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
ns.client = new Object();
ns.play("test.flv");
var vid:Video = new Video(640, 480);
vid.attachNetStream(ns);
this(parent).vidclip.addChild(vid);
}
thebtn.addEventListener(MouseEvent.CLICK, tata);
indeed i have a problem. The thing starts proprely but when i press the button it says:
TypeError: Error #1006: value is not a function.
at movieclipaccess_fla::Symbol2_3/tata()
I am trying to learn to go back and access other movieclip but i can’t find exactly what i need on google…