Advertisement

06.06.2008 at 06:37PM PDT, ID: 23465502
[x]
Attachment Details

Error message in Action Script for volume slider

Asked by gabrielPennyback in Macromedia Flash

I'm trying to follow a tutorial on creating a volume slider in Flash, and I'm getting an error message in the first function. The tutorial shows two slightly different syntaxes for the function, so I've tried both and they both produce error messages. Here's the code I've got, and below is an image of the error message.


slider_mc.onPress = function () {
      this.startDrag(false,
                        _root.groove_mc._x,
                        _root.groove_mc._y - 100,
                        _root.groove_mc._x,
                        _root.groove_mc._y;     //this is line 6 that gets the error message
};

slider_mc.onRelease = function () {
      stopDrag();
};

Thanks,

JohnStart Free Trial
Attachments:
 
error message
error message
 
 
Loading Advertisement...
 
[+][-]06.06.2008 at 11:29PM PDT, ID: 21734452

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Macromedia Flash
Sign Up Now!
Solution Provided By: kishoregp
Participating Experts: 1
Solution Grade: A
 
 
[+][-]06.07.2008 at 12:51PM PDT, ID: 21736618

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628