Web Hosting Forum | Lunarpages
News: October 6, 2008 - Submit Your Site for the October 2008 Site of the Month!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 11, 2008, 12:48:55 AM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: onClipEvent issue  (Read 450 times)
absolutezero3424
Spaceship Navigator
*****
Offline Offline

Posts: 99


WWW
« on: February 04, 2007, 12:21:16 PM »

OK, I have Flash MX and the book I have "ActionScript for Flash MX" says this code should work, why doesn't it is the question?  This is the code on a movie clip:

Code:
onClipEvent(load) {

this.onRollOver = doCommand();
}

and the function is defined on main timeline (_root) in Frame 1 as follows:

Code:
function doCommand() { trace("hi"); }

furthermore, why do I even need the "onClipEvent" code?  the way the book suggests is that I should only need to say "this.onRollOver = doCommand();" on the movie clip, but I get an error if I don't put it within the "onClipEvent"Huh  anybody?
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC

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