We have three movie clips: the closer whose code goes like:
this.addEventListener(MouseEvent.CLICK, onclick, false, 0, true);
this.buttonMode=true;
//this.mouseChildren=false;
function onclick(e:MouseEvent):void {
MovieClip(this.parent).die();
}
I think at least this one is programmed all right.
Next the other movie clip is called Butt1 and has the code:
var myText:String;
keimeno.text=myText;
var myFile:String;
this.addEventListener(MouseEvent.CLICK, onclick);
function onclick(evt:MouseEvent):void {
MovieClip(this.parent).loadPhoto(myFile);
Now here I believe I haven't finished it correctly. I tried to make a function called loadPhoto but the thing is that however I program it it always gets a mistake like:
Symbol1_19/onclick()
TypeError: Error #1006: loadPhoto is not a function.
at final_fla::Symbol1_19/onclick()
The third movie clip's code has no code because it is the viewer.
Please I reguire help pronto.

New Topic/Question
Reply


MultiQuote


|