Zooming in/out buttons... but how do i make them link to other .swf's or URL's?

hi… please do you friendly hearted fellows know a way around this???

i have titles which should serve as buttons, buttons which zoom in and out with the mouseover AS. in fact i used the base work for this from an .fla dowloaded from this Kirupa site… but i can’t seem to find it anymore from the search function… here’s where i had hoped somebody else had downloaded this tutorial to use aswell??

look at my URL… to see if it throws any light onto what i’m harping on about :

zoom in out titles

ok… you came back to read the rest… good!!

THE question concerning the AS behind this technique is as follow… how the fook do i put links to the buttons… because i dont know where to put in the action script… there is so much AS in it that i havent got a clue WHAT to do… just to link to an external .swf or even another URL…

any active brains out there? i had too much pop last nite!!

any help would be very much appreciated

MP

I don’t recall this ever being on kirupa :h: Unless I missed :x

Anywho, what actions are you using? Where are they going? on a frame? on the button itself? Can you attach the .fla so we can have a look?

oh right? i swear it was here, but i could be mistaken with the actionscript.org or flashkit pages… sorry.

anyroad, here’s the .fla… have a rummage around that if you have the remotest inclination, and furthermore should you be willing to find out where to attach some AS for the buttons individually, being as they are all instances of the same MC, then i would be very grateful… and it doesnt matter where the destination is… preferably though, saying that… when the user clicks on the different buttons, he loads in a new .swf for each one… i guess that’ll be using some of that snazzy AS to load them into empty MC’s on the “homepage” timeline…

with it??
i hope my incompetence could lead to a sensible answer and maybe help out other users thinking about the same question…

cheers all

MP

Are you using MX 2004? Or are you on a mac?

If #1: Sorry, I use MX :-\

If #2: You will need to .zip it, for some reason macs attaching .fla files make them not work in the end, unless they are zipped.

(-: yes it was the #2 reason… i am 100%Mac. ok i’ve zipped the baby!! should be allright.

cheeers

MP

Ok, open up a movieclip symbol by double clicking it.

Inside the movieclip symbol you will see 2 layers. Right click on the one with the label “Layer 2” and open the actions panel.

In there you will see [AS]this.onRelease=function(){
trace(“release called”);
}[/AS] and you can change that to [AS]this.onRelease = function() {
_root.container.loadMovie(movieToLoad);
};[/AS] You will need to change the code within the onRelease to do what you want, but the main part to focus on here is the “movieToLoad” variable.

Now go BACK to the main timeline and right click on the movieclip symbol itself. Open the actions panel and inside will be something like [AS]onClipEvent (load) {
//just change the name here
myText = “B.S.F.C”;
}[/AS] Add in the movieToLoad variable like this [AS]onClipEvent (load) {
//just change the name here
myText = “B.S.F.C”;
movieToLoad = “myFile.swf”;
}[/AS] Add this movieToLoad variable to all the other buttons and you are set.

What a pandatience lost!

lol what?!?

I get the panda part… but I don’t get what word you were playing off of originally :x

Brill… thanks very much indeed… it’s a good exapmle of zooming text isnt’ it? well i like it anyway… feel free to download it everyone… p.s. thx lost in beta you’re the best!! :thumb:

cheers

MP

pandatience ;¬)

Oooohhhhhhhh :x