Help! So, i made some code, right? But its giving me an error on the first line. help. heres the code. (1.19.3 btw)
onClipEvent (load) ;{
startDrag("", true);
Mouse.hide();
}
(note: ill be needing quite a few more action to java conversions.)
WickEditor uses javascript. Those lines are more actionscript. Look for javascript tutorials online on youtube.
It looks like you’re trying to make a mouse drag/hide script
Make a load script with the add script button, then input the hideCursor(); code
Then make a mousedrag script and put in this code
this.x=mouseX;
this.y=mouseY;
it isnt working :/
Did you put it in the clip or the frame?
Make your object a clip and put the code there
You didn’t tell us what you’re trying to do, so I’m only guessing what’s supposed to happen based on the code:
Assuming that you’re trying to make a custom cursor using Actionscript and didn’t know how to write in in JS, It’s not something too difficult for you to do… hopefully…
So you just make an object a clip, then you click it and edit its default script with the following code:
Then you add an update script to the clip and type out this code in there:
this.x = mouseX;
this.y = mouseY;
Which will result in your very own cursor!
Simple Cursor.wick (3.6 KB)
and also please don’t call Javascript “Java”, because that is a completely different language… use the abbreviation JS instead!