I am working on a flash movie, where I will have a large paragraph of text. The user will have to find specific words in the the body text of the paragraph, and click on them to move forward in this flash movie. If the user correctly clicks on one of the keywords they are moved forward, if they click on another word, that is not a keyword, they get an warning (which at this point could be a different frame on the main timeline or a targeted movie clip). my problems are as follows:
-the keywords cannot have the thumbnail when ‘mousedover’
-if the user clicks on the main navigation, or other parts of the screen besides the text in the paragraph, I do not want my warning to show up.
-i do not want to have a large button the size of my paragraph, that is not an option.
it seems to me that a large invisible button would be the simplest solution
have one button instance that you make on your words with one action (moving them forward) and another with the other action (displaying the warning)
to get rid of the hand, (there may be another way to do this of which i am unaware.
but make a movieclip that looks like an arrow and attach this code to its instance on the main timeline:
onClipEvent (load) {
Mouse.hide();
_x = 0;
_y = 0;
speed = 1;
}
onClipEvent (enterFrame) {
endX = _root._xmouse;
endY = _root._ymouse;
_x += (endX-_x)/speed;
_y += (endY-_y)/speed;
}
this will replace the startDrag(); function so you can use that somewhere else if you choose. this code will also allow you to create mouse trailers by changing the speed variable and deleting the Mouse.hide option.
since you are hiding this mouse and showing only this movie clip, the hand will not appear.
hope this helps
ahhh, that’s no fun, I wanted a little run with some scripting.
oh, and you can use this to hide your “buttonhand” in MX (only).
give your button an instance name and use this:
buttoninstanceName.useHandCursor = false;
Check the asfunction feature. The documentation is pretty good (now that it is finally documented) and I posted a tute that went totally unnoticed in the random section if you want to see a simple example.
pom :cowboy:
Where??