Flash cs3 Masking

  • haskell
  • Novice
  • Novice
  • No Avatar
  • Joined: Jun 28, 2005
  • Posts: 28
  • Status: Offline

Post September 14th, 2009, 1:02 pm

Hi, I have been working on a logo that has a pipe image looping up and down in a zig zag. I want to create a mask that would allow me to make it look like water is filling through the pipe from the start of the pipe(bottom of image) to the top of the pipe. I've created two pipe images, one white which is the original look of the logo, and one blue. I made a mask on a motion line and I have it following the blue pipe, it works, however the mask is only a small square, and only shows a bit of the blue pipe at a time. I would like to reveal the entire blue pipe slowly to give the illusion of the white pipe being filled with water! PLEASE HELP!!
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post September 14th, 2009, 1:02 pm

  • IceCold
  • Guru
  • Guru
  • User avatar
  • Joined: Nov 05, 2004
  • Posts: 1254
  • Loc: Ro
  • Status: Offline

Post September 15th, 2009, 1:43 am

Either you build the mask dynamically, or you build it on stage.
Since second approach is much easy, this is what you have to do.
Duplicate the pipe form symbol and place it into the mask.
Make inside the mask like 10-15 key frames (or how many you think you need) and then starting from first key frame, chop from the pipe form.
In first key frame you chop a lot, so that only a small fragment will be the mask, in second frame chop a little less, and so on, until in last frame you have the pipe form. So it will be like a progressive pipe, growing from a small part to full pipe.
Then, when you want to simulate the water filling the pipe,
just use myMask.gotoAndStop(myMask.currentFrame + 1); // as3
or myMask.gotoAndStop(myMask._currentframe + 1); // as2
And of course, stop the mask in first frame.
“True mastery transcede any particular art. It stems from mastery of oneself - the ability, developed throgh self-discipline, to be calm, fully aware, and complety in tune with oneself and the surroundings. Then, and only then, can a person know himself. ”
  • haskell
  • Novice
  • Novice
  • No Avatar
  • Joined: Jun 28, 2005
  • Posts: 28
  • Status: Offline

Post September 19th, 2009, 7:07 am

Thanks alot, I'll give it a try!

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 51 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.