Killersites Community: Flash Action Script3 - Killersites Community

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Flash Action Script3

#1 User is offline   khassl@yahoo.com 

  • View blog
  • Group: New Members
  • Posts: 2
  • Joined: 14-February 10

Posted 13 March 2010 - 07:53 PM

Hi

I need show the page2 when I click the button1 I have the error # 1061,

Please advise.


My function below.

function button1_clicked(e:MouseEvent):void{
gotoAndStop("page2");
}

button1.addEventListener(MouseEvent.CLICK, button1_clicked);


1061: Call to a possibly undefined method addEventListener through a reference with static type Class
0

#2 User is offline   Ben 

  • View blog
  • Group: Administrators
  • Posts: 5,409
  • Joined: 19-December 08
  • LocationChico, CA

Posted 14 March 2010 - 12:46 PM

I don't know a huge amount about Flash, to be honest. According to:

http://www.adobe.com...ing_as3_02.html

It looks like you're doing the right thing (again though, I'm not completely sure). However, you might want to look at a couple posts in forums with people that have the same error. Perhaps the issue isn't with this specific code, but where the code is placed.

http://www.gotoandle...hp?f=29&t=15907
http://www.newground...bs/topic/868123
http://www.actionscr...d.php3?t=190328

There aren't a lot of members here that work with flash. You may get better answers by posting on the Adobe Flash forums or similar -- a forum dedicated specifically to Flash.
Benjamin Falk | Falken Creative : Twitter : KillerSites Screencast Blog
Skills: Photoshop, Illustrator, HTML, CSS, jQuery, PHP and CodeIgniter
0

#3 User is offline   marry_outsource project 

  • View blog
  • Group: New Members
  • Posts: 3
  • Joined: 21-May 10

Posted 21 May 2010 - 01:17 PM

I am may be talking at wrong place. But i want to say that I hate Action script. Can I work on flash without this?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users