allora sono per la mia prima volta in as3 e mi sa sto facendo un casino
l'errore è questo
TypeError: Error #1006: value non è una funzione.
at provamouse_fla::MainTimeline/provamouse_fla::frame1()
e as è questo
frame 1
frame 2codice:Template.visible(false); Mouse.hide(true); followercount = 30; Dummy.StartDrag(true); n = 1; while (Number(n)<=Number(followercount)) { MovieClip("/Template", "Follower" (add (n)) , n); Follower(add(n)).visible(true); Follower(add(n)).alpha(100 / n + 4); "Follower"(add (n)) (add ("/:k")).(4); "Follower"(add (n)) (add ("/:b")).(6); n = n+1; }
frame 3codice:n = 1; while (Number(n)<=Number(followercount)) { thisobject = "follower" (add (n)); previousobject = "follower" (add ((n-1))); if (Number(n) == 1) { dx = dummy._x; dy = dummy._y; } else { dx = previousobject._x; dy = previousobject._y; } fx = thisobject._x; fy = thisobject._y; distancex = fx-dx; distancey = fy-dy; springiness = thisobject (add ("/:k")); dampingx = - (thisobject (add ("/:b"))) * (thisobject (add ("/:vx"))); dampingy = - (thisobject (add ("/:b"))) * (thisobject (add ("/:vy"))); set(thisobject (add ("/:ax")), Number(-(springiness*distancex))+Number(dampingx)); set(thisobject (add ("/:ay")), Number(-(springiness*distancey))+Number(dampingy)); set(thisobject (add ("/:vx")), (thisobject (add ("/:vx")) + (thisobject (add ("/:ax"))))); set(thisobject (add ("/:vy")), (thisobject (add ("/:vy")) + (thisobject (add ("/:ay"))))); thisobject._x( fx + (thisobject (add ("/:vx")))); thisobject._y( fy + (thisobject (add ("/:vy")))); Follower(add(n)).visible(true); n = Number(n)+1; }
prevFrame();
play();
in pratica è un cursore che in teoria dovrebbe rilasciare una scia con dump...
vi prego help

Rispondi quotando
)
