PDA

View Full Version : buttons/jump to MC/getURL/.... help


j33
09-10-2003, 05:44 PM
Hi everyone. This is my first post and I was wondering if you can help me out with something that's probably pretty basic (I'm brand new to Flash so bear with me).

What I need to make happen is this:

I have seven buttons. Each of these buttons has an action attached to it that tells it to go to a certain frame where it will play a movie clip (all seven buttons will jump to the exact same movie clip). At the last frame of this movie clip I will need to use a getURL action to load in a new html page that corresponds to which ever of the seven buttons was originally clicked on. Is there a way for the movie clip to 'know' what button was clicked on so that it will load the appropriate URL? Or is there another way I should go about this?

Thanks.

jevans
09-10-2003, 06:34 PM
hey j33,

why not make seven different frame labels and duplicate your mc seven times. place a duplicate mc at each of your labels. in each of your mc's call a different url.

regards, jevans.

jevans
09-10-2003, 06:53 PM
heres an example....maybe im way off???

j33
09-10-2003, 06:53 PM
Originally posted by jevans
hey j33,

why not make seven different frame labels and duplicate your mc seven times. place a duplicate mc at each of your labels. in each of your mc's call a different url.

regards, jevans.


Thanks for the feedback.

I would like to avoid doing it this way because it creates complications with a mc that is looping in the background. Is there a way to do it with one movie clip?

jevans
09-10-2003, 06:58 PM
hey j33,

im positive there is, but im not good enough at actionscript to tell you how. i will try and figure it out though.

regards, jevans

jevans
09-10-2003, 07:00 PM
with a looping mc

j33
09-10-2003, 07:14 PM
for some reason I am unable to open any of your files.

jevans
09-10-2003, 07:19 PM
are you on a mac?

j33
09-10-2003, 07:23 PM
unfortunately yes

jevans
09-10-2003, 07:29 PM
you should be able to drop that zip file right onto stuffit expander

j33
09-10-2003, 07:32 PM
when I open the files in Flash I get an 'unexpected file format' error message. i'm using Flash 5 btw.

daFlatcat
09-10-2003, 07:32 PM
if I understand you correctly....what you may want to do is the following:

on each button, place some sort of code like:

_root.siteUrl = "thisButtonsUrl.html";

then, at the end frame of your movie clip in a frame action put:

getURL(_root.siteURL,"_blank");

"_blank" can be the name of the HTML frame you're targeting, or just put "_self" if you want it to be load in the current window

jevans
09-10-2003, 07:44 PM
try this