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 26, 2008, 05:02:51 AM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: onClipEvent issue  (Read 426 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.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


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