Animated Smartclip Navigation in MX

Hi Guys

I’ve just finished a tutorial by Lukus on ‘Animated Smartclip Navigation’ which is brilliant. I’ve got to the end and everything is just peachy! But, and here’s the rub. I’m trying to generate links from the buttons. In the component button I’ve made, I have a button instance to kick off the animations. I have tried to add a link to this but it seems to duplicate the link to all the other buttons. In the tute, Lukus says to add another layer to the main movie above the buttons layer and insert another instance of the invisible button for adding links. This just seems to mask the trigger in my button component below.

I did realise that the tute was for MX 2004 whereas I am using MX - pretty clever huh.

Can the same sort of thing be done in MX or is it back to the drawing board for me?

Any help would be greatly appreciated.

smartclips started with Flash 5, so you dont have to worry about versions :wink:

All you need to do is make another parameter to represent your link. Then, in your buttons, have an action that calls that parameter by its variable name.

on(press){
getURL(variableURL);
}

Thanks for the reply senocular. Still having problems I’m afraid. Just can’t my head round this AS. I’ve attached the file I’m having problems with. Just need to get the URL links working.

If you could have a quick look at it, I be very grateful.

The file size is too big unfortunately!!!

Not quite sure how I did it, but it’s there. Again, thanks for your help friend!

Hey there Twang,
Ive been trying to do this for a while, but i just cant get it to work, how did you?
Thanks in advance,
Ben (flashy22)

dont suppose u searched the forums? :h:
http://www.kirupaforum.com/forums/showthread.php?t=66846&highlight=smartclip

hav a read through that - it might inspire you…

by “your buttons”, i assume senocular means the ones inside your smartclip, not the ones you created over the top.

last i heard, Lukas is updating the tute atm to address similar issues

Prophet.

OK Flashy22, here goes. I’m assuming you’ve gone through the tute by Lukus? If so, you’ve got all your button instances built and just need to incorporate the links.

Double click on the mcButton component you’ve produced, to open it. Select the button hot spot instance and open the actions panel. You should have the code as shown below.

on (rollOver) {
gotoAndPlay(“Start”);
}
on (rollOut) {
gotoAndPlay(“Stop”);
}

Add this code (thanks again Senocular for this):

on(press){
getURL(variableURL);
}

You should now have this.

on (rollOver) {
gotoAndPlay(“Start”);
}
on (rollOut) {
gotoAndPlay(“Stop”);
}
on(press){
getURL(variableURL);
}

Next, right click on the mcButton component in the library and select ‘Component Definition’.

Click on the + symbol to add another parameter.

In the ‘name’ list, click on varName and enter the new name: getURL
In the ‘variable’ list click and add: variableURL
This then tallies with the new code you added previously to the button.

All clear to here?

You just need to add the links now to the button instances on the main timeline.

Select you first button and open the parameters pane in the properties toolbar.

You should see in the first column: getURL
To the right of this you need to click and add your link. I put in the full link ie. http://www.mysite.co.uk/blah blah blah

And that should do it hopefully mate.

I am a complete baffoon when it comes to AS, but I’ve learnt loads from this site. It’s a great, great resource!

Twang

Hey there,

Funny how things go, i read over it again, then figured it out, only to have you explain everything out, at about the same time i understood it!
thanks anyway!
Ben (flashy22)