Google
 
Webnews.only-4-geeks.com
Interesting places
news.only-4-geeks.com Forum Index » Flash - ActionScript

MC connection ease dynamic presentation (as2.0)

 
Jump to:  
 
Guest
PostPosted: Sun Aug 31, 2008 4:15 am    Post subject: MC connection ease dynamic presentation (as2.0)
       
ReadMore:http://imjohnny.cn/


///==================MC connection ease dynamic presentation (as2.0)
=============
///============================= JOHNNY
===========================
//copyright@www.imjohnny by johnny 2008.5.10
Stage.scaleMode = noScale;
var mytxtarray:Array = new Array($B!I(BAS1.0$B!m(B, $B!H(BAS2.0$B!m(B, $B!H(BAS3.0$B!m(B, $B!H(BAIR$B!I(B,
$B!H(BLITE$B!I(B, $B!H(BFLEX$B!I(B, $B!H(BRIA$B!I(B, $B!H(BASK$B!I(B, $B!H(BFORUM$B!I(B, $B!H(BSOURCE$B!I(B);
//Copy 10 to MC on the scene and given its parameters
for (var i:Number = 0; i<10; i++) {
_root.attachMovie($B!I(Bmc$B!I(B,$B!I(Bmc$B!I(B+i,i+1);
_root["mc"+i]._x = 30+40*i;
_root["mc"+i]._y = 100+30*Math.random(10)*i;
_root["mc"+i].mytxt.text = mytxtarray[i];
_root["mc"+i].onPress = function() {
m = false;
startDrag(this);
getmc_x = this._x;
getmc_y = this._y;
};
_root["mc"+i].onRelease = function() {
m = true;
stopDrag();
this.onEnterFrame = function() {
if (m == true) {
this._x += ((getmc_x-this._x)*0.6)/0.35;
this._y += ((getmc_y-this._y)*0.6)/0.35;//2 ease moving
} else {
delete this.onEnterFrame;
}
};
};
}
//Drawing a line connecting all MC
_root.createEmptyMovieClip($B!I(Bline$B!I(B,0);
_root.line.onEnterFrame = function() {
this.clear();
this.lineStyle(1,0$B!_(B000000,100);
this.moveTo(mc0._x,mc0._y);
for (var j:Number = 1; j<10; j++) {
this.lineTo(_root["mc"+j]._x,_root["mc"+j]._y);
}
};
 

Page 1 of 1 .:.

Google
 
Webnews.only-4-geeks.com

Windows Update | C++ | C | PHP | JavaScript | Photoshop | Programming | Windows 2000 | Python | Windows XP | Object | Flash | Flash - ActionScript | Paint Shop Pro | Excel | PowerPoint | Access | Word | Windows 98 | Internet Explorer 6.0 | CorelDraw12 | Java | XML | asm x86 | Linux Mandrake | Linux RedHat | Outlook |  | news from newsgroups |_ | s

Web Templates

Awesome Website Templates ©

platforma obywatelska rumia 21 darmowe mp3 allianz katowice mieszkania BiaƂystok