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

x
?
Solved

Trying to do this effect in Flash

Posted on 2005-04-22
8
Medium Priority
?
141 Views
Last Modified: 2010-04-03


Hi the page below
where it has the transparent going through it
http://www.mintietechnologies.com/index.cfm

i tried to do it with mask but it look pretty lame and i was wondering if any one can help me try to reproduce the effect as my boss likes it alot
Thank you
0
Comment
Question by:TRACEYMARY
  • 5
  • 3
8 Comments
 
LVL 18

Expert Comment

by:Billystyx
ID: 13841792
You don't need to use a mask, just create a rectangle, convert it to an mc, and set the alpha  to 10 or so. Then motion tween it (or with action script), from left to right across the image below.

Billystyx
0
 
LVL 18

Expert Comment

by:Billystyx
ID: 13841837
Make the rectangle for the mc white, and you can obviously experiment with the best alpha level for the clip to get the right effect.

In action script, give your instance of the rectangle a name - 'myMc' for example.

on the root time line create a keyframe on the first frame and add this code.
myMc._alpha=20;//or 10 or 50 ...

myMc.onEnterFrame=function(){
if(this._x<400){
this._x +=5;
}

this will move it from original position (on left of stage), to finishing place (on right of stage).
You know how to attachMovie and remove etc, so you can always use that and set it all in AS

Billystyx
0
 
LVL 7

Author Comment

by:TRACEYMARY
ID: 13842441
Oh i see.............then i can swap out the images under neath it.......

I give it a go.
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.

 
LVL 18

Expert Comment

by:Billystyx
ID: 13842534
How do you mean 'swap out the images underneath it'?
The way I was intending here was that the image (the banner the translucent bar runs across) is essentially static (except for the first transition where you 'roll it out' across the stage, and only the rectangular bar needs to move - it moves across the top of the banner. So in the timeline, the layer for the rectangle is above the layer holding the banner.

Hope this makes sense:)

Billystyx
0
 
LVL 7

Author Comment

by:TRACEYMARY
ID: 13842576
Thinking...
  Lets say layer 1      is the translucent bar  mc clip
              layer 2      image 2
              layer 3      image 3

  the code above goes in layer 1

  then the bar will go across the page.
             the layer 2 i could display for x frames and then start layer 3.........

so that when the bar goes across the page then pic 2 starts and then pic 3

Does that make sense
0
 
LVL 18

Expert Comment

by:Billystyx
ID: 13842743
Close, but if you want the pictures changing say, when the bar reaches the right hand side of the picture, then I would suggest attaching them and removing them with code, rather than working so closely with the layers.

on frame 1:
myArr=["MC1","MC2","MC3"];
count=0;
createMCS();
function createMCS(){
attachMovie(myArr[count],myArr[count],1);
_root[myArr[count]]._x=275;
_root[myArr[count]]._y=200;
}
dep=_root.getNextHighestDepth();
attachMovie("myMc","myMc",dep);
myMc._x=10;
myMc._y=200;
myMc._alpha=20;//or 10 or 50 ...

myMc.onEnterFrame=function(){
if(this._x<400){
this._x +=5;
}else{
this._x=10;
if(count<3){
count ++;
}else{
count=0;
}
createMCS();
}


This should do it - you obviously need to set the appropriate linkage names in the library too.
(BTW this is air code so it may not be exactly right)
Billystyx

0
 
LVL 7

Author Comment

by:TRACEYMARY
ID: 13842933
Cheers billy let me play with this.............
air code..........phew i get that good in a few years.......i can do it with asp and sql.........

Thanks
0
 
LVL 18

Accepted Solution

by:
Billystyx earned 2000 total points
ID: 13842961
no worries:)
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.
Suggested Courses
Course of the Month10 days, 20 hours left to enroll

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question