PDA

View Full Version : How Did They Do That???


firstborn
02-12-2002, 06:38 PM
ok..check out www.eminem.com (http://www.eminem.com) ...i was wondering what the action script would be for..well basicaly when you click on "discography"or "biography" there is a text box which appears (motion tween)..well i know how to do the whole motion thing...my problem is getting the button (actionscript) to do that..if anyone has any idea..please let me know....

jimburton
02-12-2002, 09:50 PM
the dynamic text field is nested within a movieclip - on the button release you attach the movieclip and animate the slide into place. One way to do this would be, if you had exported the mc "biography" with a linkage name, you could put this on the button:


on (release) {
_root.attachMovie("biography","biography"+topLevel,topLevel);
_root["biography"+topLevel]._x = 100;//or whatever
_root["biography"+topLevel]._y = 100;//or whatever
topLevel++;
}


then, on process clip within the attached mc:

onClipEvent (enterFrame) {
if (_parent._x > 20) {//or whatever
_parent._x += 5;
}
}


which would scroll it into place. Lots of other ways of doing it...