Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 195
  • Last Modified:

How'd they do this?

How is this "blinds" effect done? http://www.advensa.com
0
danieljoo
Asked:
danieljoo
2 Solutions
 
ZefferCommented:
on a new timeline..
just make one movie with a tall shape moving left to right..
drag and drop multiple instances to the main timeline..
and narrow or widen and flip vertically individual clips..
insert an image somewhere in the layers..(notice some are
in front of the graphic..most are behind..)alter the alpha
here and there for differnt shades of grey..
all done with one movieclip
Z
0
 
rexmorCommented:
Try this danieljoo,
create a movieClip with an instance name "blind" then set to alpha to 7% with a gray color.

onClipEvent (load) {
     for (x=1; x<10; x++) {
          if (_name == "blind") {
               this.duplicateMovieClip("blind"+x, x);
               _root["blind"+x]._x = random(300);
               _root["blind"+x].speed = random(5)+1;
               _root["blind"+x].directx = Math.round(Math.random()*1);
               if (_root["blind"+x].directx) {
                    _root["blind"+x].directx = 1;
               } else {
                    _root["blind"+x].directx = -1;
               }
               _root["blind"+x].direction = Math.round(Math.random()*1);
          }
     }
     _root.blind._visible = 0;
}
onClipEvent (enterFrame) {
     _x += speed*directx;
     if (this._x>540) {
          speed *= -1;
     }
     if (this._x<0) {
          speed *= -1;
     }
}


hope this helps,


regards,

rex
0
 
backupbob6Commented:
a simple way of doing this would be to creat a few grey and white rectagle movie clips, set their alpha to diferent levels and motion tween them back and forth in a loop.

lol dont try to do this with duplicate movie clips, ud be wasting ur time
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
rexmorCommented:
backupbob6,

yeah it's true ud be wasting ur time duplicating movieClip, But as u can see the sample links above it seems that the animation of movieClips has diffirent speed, so how could you do this in one movieClip bouncing from left to right?
0
 
backupbob6Commented:
u make several duplicates, resize them, set alpha, and change the length of the movie clips timelines. its really very simple
0
 
rexmorCommented:
backupbob6,

What if we want 1000 movieClips animate in the same way with different properties like alpha, speed in terms of bouncing from left to right. So based on you idea, you should create 1000 movieclip manually in order to change the length of each movieClip timelines?... but anyway let's ask some expert like henryww to help us that simple transition...

thanks,

rex
0
 
backupbob6Commented:
ya rexmor,
thats true and if that blinds effect required 1000 movie clips i wouldnt suggest this.
that only requires about 10 maybe, some can be duplicates even if they are placed far away from each other.
0
 
danieljooAuthor Commented:
Here is the code I used, it looks awesome.  The only problem I have is that I have text this is supposed to lay over top of this effect, but it doesn't even after I arranged the layers. ?

onClipEvent(load){
     s = .06;
     function doRan(){
          X = random(454);
          Xs = random(1000);
     }
     doRan();
}

onClipEvent(enterFrame){
     _x = _x - (_x - X)*s;
     _xscale = _xscale - (_xscale - Xs)*s;

     if(X > _x){
          if(Math.ceil(_x) == X){
               doRan();
          }
     }

     if(X < _x){
          if(Math.floor(_x) == X){
               doRan();
          }
     }

}
0
 
thelbaneCommented:
I know this is really old, but I was looking for another question when I stumbled across this.  You probably already figured out the layering problem, but for the sake of completeness, all duplicated/attached clips are added above all the layers of a timeline.  Even specifying a depth of 0 will put the new movieclip above the topmost layer.

To keep dynamically added movieclips "underneath" other elements in your movie, create an empty movieclip as a container in the appropriate layer, give it an instance name, then add your movieclips to that container.

-Lee
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now