FORUMS: list search recent posts

Anyone good with coding? Struggling with a couple minor errors in my script!

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
John Castelli
Anyone good with coding? Struggling with a couple minor errors in my script!
on Apr 22, 2008 at 3:36:50 pm

Hi All,
I am working on a scrolling thumbnail panel for my website, and was going through a creative cow tutorial to help me do it. I followed the directions of the tutorial to a T (I double and triple checked), and yet while the preview worked for the tutorial, it would not work for me! I recieved 4 or 5 error messages about things being undefined, and I managed to get rid of all of the error messages with the exception of 1. The messages was that my xmouse and y mouse were not defined, also that _root was undefined.

I am working on Flash CS3 with Actionscript 3.0. I have hilighted the code I have added that was not in the tutorial in BOLD (just in case that is wrong too!) and I have highlighted the line that is still giving me the error in BOLD ITALICS. Any info you could give me would be a huge help. Thanks in advance and I appreciate you guys taking time to help!


//Start Code for Scrolling thumbnail panel
panel.onRollOver = panelOver;
function panelOver() {
this.onEnterFrame = scrollPanel;
delete this.onRollOver;
var _xmouse = stroke.x = 0;
var _ymouse = stroke.y = 0;

var b = stroke.getBounds(_root);

function scrollPanel() {
if(_xmouseb.xMax || _ymouseb.yMax) {
this.onRollOver = panelOver;
delete this.onEnterFrame;

var xdist = _xmouse.stroke - 360;
var ydist = _ymouse.stroke - 71.95;

panel._x += -xdist / 7;

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved