Changing images using AS

Hi,

I’ve just joined this forum :slight_smile:

I’m editing a website, it has a picture on top. What I want to do is to use a different picture for every different page (home, contact etc). So when they click on lets say contact it loads the contact page (which it does right now) and also changes the picture on top to the contact one.

Sunny!

check out the tutorials…
you guys waste more time here waiting for anyone, then reading and learning in the tutorial section…

[quote=pantas;2350225]check out the tutorials…
you guys waste more time here waiting for anyone, then reading and learning in the tutorial section…[/quote]

Thats how I find this site while searching for tutorials on google. I cant find the one that can solve my probs. thanx for the nice welcome anywayz

lol…dont be offended…

welcome :slight_smile:
http://www.kirupa.com/developer/mx/loading.htm

Actually thats the problem!! Whenever I search I get lot of results for loading images “externally”, just like your link. I have created a symbol(movie) and frame 1 is pic1 for home frame 2 is pic2 for about us and so on…Thats how I want to do it.

ahhhhhhhhhhh so your not loading a pic!

picture_mc.gotoAndStop(the contacts picture frame)

Not working!!

I even tried pic.pic3.play();

Actually im trying to edit a flash template and the button alreay has this AS, this make the page load! but wont change the pic on top :frowning:

onClipEvent (load)
{
num = 2;
}
on (rollOver)
{
if (_root.link != num)
{
this.gotoAndPlay(“s1”);
} // end if
}
on (releaseOutside, rollOut)
{
if (_root.link != num)
{
this.gotoAndPlay(“s2”);
} // end if
}
on (release)
{
if (_root.link != num && _root.animation == 1)
{
_root.animation = 0;
_root.link_prev = _root.link;
_parent[“item” + _root.link].gotoAndPlay(“s2”);
_root.link = num;
_root.play();
_root.anim.gotoAndPlay(“s1”);
_root.scroller.scroller.gotoAndStop(3);
_root.DY = stage.height + 4;
_root.DX = stage.width + 4;
} // end if
}