Web Hosting Forum | Lunarpages
News: July 14, 2008 - New Contest! - Submit Your WordPress Theme Designs, Win BIG!
June 30, 2008 - Submit Your Site for the July 08 Site of the Month Award!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 25, 2008, 05:19:11 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: weird problem...  (Read 456 times)
absolutezero3424
Spaceship Navigator
*****
Offline Offline

Posts: 99


WWW
« on: February 03, 2007, 06:25:00 AM »

OK, I am testing some code I got from "ActionScript for Flash MX: The Definitive Guide" (good book).  It is attached to a movie clip, which does have an instance name and this is it:

Code:
this.onMouseDown = function () {
trace("hi");
}

and I get this error message:

Code:
Scene=Scene 1, Layer=folder1, Frame=1: Line 3: Statement must appear within on/onClipEvent handler
     this.onMouseDown = function () {

I got the code right from the book and it's applied in the right context (ie. on a movie clip w/ instance name) and the book is designed for ActionScript for Flash MX, which I have!  any ideas why this isn't working?
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM