View Single Post
07-02-2013, 03:46 AM
#1
hildajuwanto is offline hildajuwanto
Status: I'm new around here
Join date: Jul 2013
Location: Indonesia
Expertise: design
Software: all adobe
 
Posts: 1
iTrader: 0 / 0%
 

hildajuwanto is on a distinguished road

  Old  urgent: help to correction my action script to move movie clip

it's for my college project.
button in movie clip(1) to move movie clip(2) in scene1.
i wrote this:
_root.onEnterFrame=function(){
big_mc._x+=(posisix-big_mc._x)/5;
big_mc._y+=(posisiy-big_mc._y)/5;
}


_root.onEnterFrame.b1.onRelease=function(){
posisix=275-(big_mc.ako_mc._x*big_mc._xscale/100);
posisiy=200-(big_mc.ako_mc._y*big_mc._yscale/100);}


~ big_mc is the movie clip i want move
ako_mc in big_mc.

~b1 is the button to move big_mc

if the button and movie clip(big_mc) in sampe scene, the script works. but when movie clip(big_mc) in scene1, and the button inside movie clip- the script can't work

Reply With Quote