Well, I have some tricks for the bubble, so Iāll keep explaining them as wellā¦ but for the crosshair, do this
create a new movie clip with menu option āInsert/Create new symbolā
Make it a movie clip and give it the name, cursorCrossHair.
I think that you will be brought right to the timeline of that movieClip. If not, open the library and double click on cursorCrossHair.
Select the line tool. In you āStrokeā panel, choose āhairlineā from the drop down menu of line style types. In the stroke swatch on the tool bar, choose a stroke color you like.
Drawn a line from left to right, horizontal. Select it, and in the āTransformā panel, enter a width of 1000.
Hit F8 to make it a movie clip. Call it āLineā and hit enter.
Holding down the CTRL key, click on the line and drag it a little bit down. Drop it, and you should now see TWO instances of the line movie clip.
Select one of them, and in the transform panel, choose āRotationā and give it a value of 90 degrees.
One of your lines should now be vertical, and one should be horizontal.
Open your āActionsā panel with menu option, āWindow/Actionsā.
Select the horizontal line and center it using the Align panel. Do the same with the vertical line. Again, select the horizontal line.
Copy this code below, click on the Action panel in the white area to the right, and hit āPasteā.
onClipEvent(enterFrame){
this._y=_root._ymouse;
}
Select the Vertical line. Copy the following code, select the white area in the right of the action panel, and hit āpasteā.
onClipEvent(enterFrame){
this._x=_root._xmouse;
}
āthisā is a constant that directs the attention of the action script processor what ever object holds the script. In this case, it is a movieClip instance of the ālineā movieClip.
_root. is a constant that directs the attention of the Flash program to the main timeline.
_xmouse is a constant that allows us to find the location of the mouse in relation to a point in space. In this case, the upper left corner of the stage, because we used _root in the first part of the statement.
Now, on the main timeline of whatever you want to use this on, you could just drop the movie clip and it should work. However, your lines will be across the field, and on top of anything that you might not want it on top of. My suggestion to you, at least to try, is this
On the main timeline, create a new layer. Double click on the layer symbol to the left of the name of the layer. In the box that opens, choose āMaskā.
Create a new layer below that layer, double click on itās symbol and choose āMaskedā for itās layer type.
Paste the Movie clip you created in the masked layer.
In the āMaskā layer, make a square the size of the area you want to have showing the cursorCrossHair. (note: to see if a mask is working correctly, you can ālockā both the mask and masked layers and you will see what it will look like after production.)
Back to bubbles in the morning