Here is the code as you seein Frame1 creates something and converts it to symbol , button type , for examplein InstanceName type any name you like , I will take "slider"now press F9 to open ActionPaneland type these code ( know it Case sensitive with function )slider.onPress = function(){startDrag("slider");}slider.onRelease = function(){stopDrag();}that finishpress Ctrl + Enter to test movie
ok , we have to notice one thing when write action script , that is the script is for frame ( Frame1 like above )or script for button "slider" , if the script is for slider then you will get those error messageso lets click frame 1 and open Action Panel and paste the code , you will see "alpha sign"in the frame 1