0 Replies - 1162 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);


function onclick(e:MouseEvent):void {

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;
var myFile:String;

this.addEventListener(MouseEvent.CLICK, onclick);

function onclick(evt:MouseEvent):void {

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:

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