Smooth fade in

look at this
select “program” og “pics” in the meny.
http://www.lamosca.com/

The Pictures just flys in from the right corner.
Is there a fairly easy way to do this? :nat:

I use flash mx 2004

Help is highly apreciated

That’s pretty easy to do: just use a tween to move the picture/text in from the right, and create a mask so that it can only certain bits of the motion can be seen. So basically all that’s happening is the image is sliding in from the right, but its covered up so that you can’t see the sliding in bit.

that effect is pretty simple to achieve in AS. For example, code would look like this:

//name your picture instance name as my_pictureMC
//put this code inside the first frame
slide_amount = 10;
my_pictureMC._alpha = 0;
my_pictureMC._x = 500;
my_pictureMC.onEnterFrame = function(){
if(this._alpha < 99) this._alpha += 5;
if(this._x > 0) this._x -= slide_amount;
}

or you can do that :stuck_out_tongue: (that’s what I’d do if I knew AS better ;))

haha hey Insomniac, that AS i just put up was pretty simple. I think your being a bit modest.

Kool thanks for helping, il try when i get from work.
But. On http://www.lamosca.com/ the picture/text moves very fast in the beginning but slows down in the end.
Is that in the AS script?

Flash is so cool

If you could make a little template fla file that would be awsome.
Im not that good with AS.

Thanks again

you have to add easing using actionscript:

_x += (endX-_x)/speed;

something like that, maybe bobdoe can put it into context for you?

Well im not totally sure how to operate the easing class functions…but what i do know is that easing is just an acceleration or deceleration effect. So, ill just add new code:

//name your picture instance name as my_pictureMC
//put this code inside the first frame
slide_amount = 10;
my_pictureMC._alpha = 0;
my_pictureMC._x = 500;
my_pictureMC.onEnterFrame = function(){
slide_amount += 1; //added code. change this value to see the difference
if(this._alpha < 99) this._alpha += 5;
if(this._x > 0) this._x -= slide_amount;
}

whoooooo ho i made it

http://home.tiscali.no/sebergsen/flashsimon

But now im stuck again…hehe

My “showcase” button disappers when i press it.
What have i done wrong?

See attachments

How do i make it swissshh from top and bottom?

Great help! :beam:

Please help me!

I found out a way to solve it.Put the button the axact same place in the movie i open.So it kinda opens again. But thats not the right way!

I really want to know what makes the button go way when pushed.

CHeck my attached files.

Simon

What you provided isnt enough for me to figure out whats happening. I think you should have everything stored into 1 fla since there isnt much going on. My guess is that the button dislikes your clicking =(

ok.let me try to explain.

when i push “simonsays” button

on (rollover) {
_root.contents.loadMovie(“swishtest.swf”);
}

it loads swishtest.swf

swishtest.swf is a movieclip containing 3 buttons(work,profile,contact)

when i push “profile”

on (release) {
_root.contents.loadMovie(“profile.swf”);
}

Is this the correct way to build a webpage with flash?

My second .swf file disappears when i load my thirs .swf button

Or is everything happening on one .fla file?

Im not quite getting the basics

Please help me understand!

Great, hopefully il understand it soon

maybe something like this attachment here. The code is pretty self explanatory i hope.

I looked at it. I uderstood most of it. BUT
Is it possible to make a page using the kirupa tutorial.

My problem with your tutorial is that it only covers :

Main meny (root)
locations -------- opens .swf
music -------- opens .swf
membership -------- opens .swf
home -------- opens .swf

when i press example “locations” i open a .swf file with text. But i want to open a .swf with text and buttons to new areas.
Lets say

work
—design
—logo
—photo
—nature
—city

But i where to make the above example my design button would disappear when i pressed the logo button.

Am i getting through?

I wish it worked :sigh: