Made a Flash on the MC mobile control, the code is very simple:) _flash as

Source: Internet
Author: User
Copy Code code as follows:

Inside created 4 MC, respectively is ZZCN_TOP_MC ZZCN_END_MC ZZCN_LEFT_MC zzcn_right_mc.

It's very simple. We can refer to the following OH. Oh..

var place_x:number = _xmouse;
var place_y:number = _ymouse;
var sulv:number = 6;
Zzcn_top_mc.onenterframe = function () {
This._x + = (place_x-this._x)/sulv;
place_x = _xmouse;
};
Zzcn_end_mc.onenterframe = function () {
This._x + = (place_x-this._x)/sulv;
place_x = _xmouse;
};
Zzcn_left_mc.onenterframe = function () {
This._y + = (place_y-this._y)/sulv;
place_y = _ymouse;
};
Zzcn_right_mc.onenterframe = function () {
This._y + = (place_y-this._y)/sulv;
place_y = _ymouse;
};


http://www.zzcn.net/blog/attachments/month_0612/l2006121018639.swf

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.