Be a Supporter!

onClipEvent(mouseMove)...

  • 1,202 Views
  • 26 Replies
New Topic Respond to this Topic
Celoz
Celoz
  • Member since: Dec. 29, 2005
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
onClipEvent(mouseMove)... 2006-02-18 22:39:05 Reply

Well, i have a mouse cursor script, and i want to upgrade it: this is animated, but i want to do this: on every mouse moves, it duplicated itself, and then alpha slowly turns to 0%, when alpha is 0%, it removes itself... what scrpit will be good for this?

PS: i have flash trial 6.0

onClipEvent(mouseMove)...

Celoz
Celoz
  • Member since: Dec. 29, 2005
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to onClipEvent(mouseMove)... 2006-02-18 22:42:18 Reply

At 2/18/06 10:39 PM, Celoz wrote: Well, i have a mouse cursor script, and i want to upgrade it: this is animated, but i want to do this: on every mouse moves, it duplicated itself, and then alpha slowly turns to 0%, when alpha is 0%, it removes itself... what scrpit will be good for this?

PS: i have flash trial 6.0

damn, mistakeded word :D

not duplicated, i mean duplicates

Darkaxl
Darkaxl
  • Member since: Oct. 23, 2004
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
Response to onClipEvent(mouseMove)... 2006-02-18 22:45:02 Reply

Here ya go AS:MAIN


BBS Signature
Celoz
Celoz
  • Member since: Dec. 29, 2005
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to onClipEvent(mouseMove)... 2006-02-18 22:52:03 Reply

I don't understand it :D... I'm not best in english, and in understanding ActionScript too...

Darkaxl
Darkaxl
  • Member since: Oct. 23, 2004
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
Response to onClipEvent(mouseMove)... 2006-02-18 22:53:40 Reply

we'll its gonna be action script oriantated so learn :P


BBS Signature
Celoz
Celoz
  • Member since: Dec. 29, 2005
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to onClipEvent(mouseMove)... 2006-02-18 23:02:33 Reply

so how will this script be?

johnfn
johnfn
  • Member since: Aug. 16, 2003
  • Offline.
Forum Stats
Member
Level 20
Blank Slate
Response to onClipEvent(mouseMove)... 2006-02-18 23:10:55 Reply

Sorta like this.

var mc = duplicateMovieClip(stuff)

mc.onEnterFrame = function() {
this._alpha -=4;
if (this._alpha <= 0)
{
removeMovieClip(this);
}
};

Funny thing, I was doing pretty much this exact thing earlier today :P


[6,11,4,10,2,10,-68,5,15,-68,16,4 ,1,-68,-2,1,15,16,-67].map(function(v){ return String.fromCharCode(v + 100) }).join(""); // updated for web 2.0!

BBS Signature
Celoz
Celoz
  • Member since: Dec. 29, 2005
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to onClipEvent(mouseMove)... 2006-02-18 23:15:53 Reply

what does mean var mc? it's instance name? :D

Celoz
Celoz
  • Member since: Dec. 29, 2005
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to onClipEvent(mouseMove)... 2006-02-18 23:20:00 Reply

Scene=Scene 1, Layer=Layer 1, Frame=1: Line 5: Wrong number of parameters; duplicateMovieClip requires exactly 3.
var mc = duplicateMovieClip()
and question no. 2: what i have to write in () ? CURSOR SURSOR CURSOR but with , ; or "?

Celoz
Celoz
  • Member since: Dec. 29, 2005
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to onClipEvent(mouseMove)... 2006-02-18 23:25:51 Reply

and as i thought, it didn't work... but what is wrong?

onClipEvent (mouseMove) {
startDrag("_root.CURSOR", true);
Mouse.hide();

var mc = duplicateMovieClip("CURSOR", "CURSOR", 5);

mc.onEnterFrame = function() {
this._alpha -=5;
if (this._alpha <= 0)
{
removeMovieClip(this);
}
};
}
aaaaaarghh!

Celoz
Celoz
  • Member since: Dec. 29, 2005
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to onClipEvent(mouseMove)... 2006-02-18 23:43:27 Reply

what is wrong?

Celoz
Celoz
  • Member since: Dec. 29, 2005
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to onClipEvent(mouseMove)... 2006-02-18 23:45:54 Reply

ok, everything is all right now, but it don't duplicates itself ;(

Celoz
Celoz
  • Member since: Dec. 29, 2005
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to onClipEvent(mouseMove)... 2006-02-18 23:55:26 Reply

please, help, i need this fast!

Joelasticot
Joelasticot
  • Member since: Feb. 14, 2003
  • Offline.
Forum Stats
Supporter
Level 46
Game Developer
Response to onClipEvent(mouseMove)... 2006-02-18 23:59:14 Reply

There, just paste this code on the movie clip you want duplicated :

onClipEvent(load){
if(_root.blah==undefined){
_root.blah="fuck"
m=true
}
if(m){
twat=0
}else{
_x=_root._xmouse;
_y=_root._ymouse;
}
}
onClipEvent(enterFrame){
if(m){
_x=_root._xmouse;
_y=_root._ymouse;
duplicateMovieClip(this, twat,twat);
twat++;
}else{
_alpha--;
if(_alpha<0){
removeMovieClip(this);
}
}
}

Paste and never learn :)


ey

BBS Signature
Celoz
Celoz
  • Member since: Dec. 29, 2005
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to onClipEvent(mouseMove)... 2006-02-19 00:08:25 Reply

thanks, but my question is: what to write on text with bold and underline:

onClipEvent (mouseMove) {
startDrag("_root.CURSOR", true);
Mouse.hide();
var mc = duplicateMovieClip("CURSOR", "CURSOR", HERE);
this.onEnterFrame = function() {
this._alpha -= 5;
if (this._alpha<=0) {
removeMovieClip(this);
}
};
}

Celoz
Celoz
  • Member since: Dec. 29, 2005
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to onClipEvent(mouseMove)... 2006-02-19 00:21:10 Reply

yes, you think, I'm noob, but I have flash from 19 days... I know very much about flash like somebody that have flash from 19 days...

onClipEvent(mouseMove)...

Joelasticot
Joelasticot
  • Member since: Feb. 14, 2003
  • Offline.
Forum Stats
Supporter
Level 46
Game Developer
Response to onClipEvent(mouseMove)... 2006-02-19 00:21:10 Reply

The depth of the newly created movie clip. If you want to duplicate the movie clip more than one, you must give each of them a unique depth and name, otherwiser they will constantly replace themselves.


ey

BBS Signature
Celoz
Celoz
  • Member since: Dec. 29, 2005
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to onClipEvent(mouseMove)... 2006-02-19 00:26:09 Reply

1) it's Y and X?
2)what i have to write here?

Celoz
Celoz
  • Member since: Dec. 29, 2005
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to onClipEvent(mouseMove)... 2006-02-19 00:40:39 Reply

what's wrong now?

onClipEvent (mouseMove) {
startDrag("_root.CURSOR", true);
Mouse.hide();
var mc = duplicateMovieClip("CURSOR", "CURSOR_DUPLICATED", CURSOR_DUPLICATED);
this.onEnterFrame = function() {
this._alpha -= 1;
if (this._alpha<=0) {
removeMovieClip(this);
}
};
}

HELP!!!

Celoz
Celoz
  • Member since: Dec. 29, 2005
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to onClipEvent(mouseMove)... 2006-02-19 00:46:08 Reply

can sum1 help me so?I'm still changing new name and depth, but crap is a result :/

Celoz
Celoz
  • Member since: Dec. 29, 2005
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to onClipEvent(mouseMove)... 2006-02-19 01:01:50 Reply

please, help, don't be as hole...

onClipEvent(mouseMove)...

Celoz
Celoz
  • Member since: Dec. 29, 2005
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to onClipEvent(mouseMove)... 2006-02-19 01:12:53 Reply

please, tell me, how it has to be

Celoz
Celoz
  • Member since: Dec. 29, 2005
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to onClipEvent(mouseMove)... 2006-02-19 01:30:44 Reply

i need help VERY VERY VERY fast!!!

Vengeance
Vengeance
  • Member since: Mar. 18, 2005
  • Offline.
Forum Stats
Member
Level 28
Blank Slate
Response to onClipEvent(mouseMove)... 2006-02-19 02:00:17 Reply

ok, here is the whole code to drag your cursor and duplicate:
onClipEvent (load) {
v = 0;
}
onClipEvent (enterFrame) {
if (_name != "cursor") {
_alpha-=3;
}
if (_alpha<=3) {
this.removeMovieClip();
}
}
onClipEvent (mouseMove) {
v++;
if (_name == "cursor") {
_x = _root._xmouse;
_y = _root._ymouse;
this.duplicateMovieClip(_name+v, v);
}
updateAfterEvent()
}
tested


========|| WWWWWWWW>[-[Blog] - [Audio] - [Userpage] - [Flash] - [Last.fm]-]<WWWWWWWW ||========

BBS Signature
Celoz
Celoz
  • Member since: Dec. 29, 2005
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to onClipEvent(mouseMove)... 2006-09-03 06:21:08 Reply

MAN YOU'RE MY MATER!!!

Paranoia
Paranoia
  • Member since: Apr. 22, 2005
  • Offline.
Forum Stats
Member
Level 35
Game Developer
Response to onClipEvent(mouseMove)... 2006-09-03 06:32:34 Reply

At 2/19/06 02:00 AM, -Vengeance- wrote: tested

That is the best script yet, although after a certain number of moves the value of 'v' will get ridiclously high (i.e. above flash's max depth).

To stop this, you'll need a line like this:

v %= 200 // Or whatever the max number of dupes you want is

In the mouseMove script.


BBS Signature
Celoz
Celoz
  • Member since: Dec. 29, 2005
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to onClipEvent(mouseMove)... 2006-09-03 06:32:42 Reply

i mean master :P