Notice the following sample swf , Press the center of the text and Drag , you can view Nice String text effect.
Like it!. well let me explain step by step to create this.
Download source code from here
Like it!. well let me explain step by step to create this.
- Create new Flash File (File->New or Ctrl + N) and Name it as string text.
- Create one Movie clip called CIZ and inside create the Text like "CIZ" . Note The font should be Bolder one.
- Now Break (Ctrl+B) , until it becomes as an vector image.
- Now its like an image . so inner and stroke color with 50% of alpha .Please look at the below image.
- Now came back to stage , and give Instance name as "ciz0".
- Create one invisible circle button and place this in center of the "CIZ" Movieclip.
- And again select the Movieclip and Paste following code in its Actionscript layer
onClipEvent (enterFrame) {
_x = _root.drag_A._x + factor*(_root.drag_B._x - _root.drag_A._x);
_y = _root.drag_A._y + factor*(_root.drag_B._y - _root.drag_A._y);
rspeed = rspeed+3;
_rotation = _x/3 +_x/5+rspeed;
_xscale = 10+ (_y/300)*180;
_yscale = 190- (_x/300)*180;
}
onClipEvent (load)
{
thisNum = number(_name.substr(3,length(_name)-3));
factor = thisNum/_root.totalClips;
}
- Now select the invisible button and paste the following code .
on (press) {
startDrag("", true, 0, 0, 300, 300);
}
on (release, releaseOutside) {
stopDrag();
} - And create new Layer called Action and make continuous 3 keyframes in this , and paste the following codes on each frame accordingly
In Frame 1
totalClips = 20;
clipNum = 0;
In Frame 2
while (++clipNum <= totalClips) { duplicateMovieClip("ciz0", "ciz"+clipNum, clipNum); }
In Frame 3
stop();
- Now you finsh, just run and Press the center of the text and Drag , you will get the nice string effect.
Download source code from here
