Flash senior learning skills: picturescroll picture scroll mouse
Mobile sensors use a mouse moving pictures, so the site can be used perhaps a friend on. N previously done more than perhaps do some simple.
Source File Download
In the first frame by adding the following code. Picture for picture editing, dragControl for an empty film clips reference.
Copyright by webstudio.com.cn.author by egoldy.2005-10-30
* /
Stop ();
/ / Video wide high
Var widthx = 400;
Var heighx = 300;
/ / Cycle
OnEnterFrame = function () (
/ / Drag mobile reference, as long as it is to use the coordinates
OnMouseMove = function () (
StartDrag ( "dragControl", true);
)
Trace (_root.dragControl._x);
/ / Mobile picture
_root.picture._x = (DragControl._x * (-1)-picture._x) * 0.2;
/ / End location conditions
If (dragControl._x> = widthx) (
_root.picture._x =- Picture._width;
)
/ / Start conditions position
If (dragControl._x <=- 1) (
_root.picture._x =- 1;
)
)
Tags: css learning, css mouse style, div skills






Leave a Reply