0 Replies - 1020 Views - Last Post: 13 May 2012 - 05:40 PM

#1 NTh9  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 13-May 12

Actionscript 3 image and text viewer movie clip

Posted 13 May 2012 - 05:40 PM

To begin with I am stuck completely on this insame project!!!! . Making matters worse I stay up all night to finish this flash project.
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.

Is This A Good Question/Topic? 0
  • +

Page 1 of 1