Open multiple frames with 1 button

HI there,

here s my problem: i want to have a button that will be displayed into an email. When i click that button, i want it to open into a new frame my site but also open another URL into a specific location like mainFrame. The thing is, i dont know how to tell flash to open the 2nd url into the mainFrame of the new window it just opened…

TiA

I’m not really understanding this. So you’re trying to open two new windows by one button click?

I believe that is the case.

Uli, you can do this by adding the following code:


// enter your email address
on (release) {
getURL("mailto:youremail@hotmail.com", “_blank”);
}
// go to frame 1. Enter the frame number (in this case 1), or
// the frame label (you wish to use mainFrame.)
on (press) {
gotoAndPlay(1);
}

If this starts playing through your frames, then try using gotoAndStop() instead of gotoAndPlay().

Did this help?

I think Uli means to say ‘window’ instead of ‘frame’…I think…

I’m confused too, but, if you have two URLs that you want opened with one button, just put two getURL commands:


on(press){
getURL("mailto:youremail@hotmail.com","_blank");
getURL("http://www.your2ndURL.com","_blank");
}

Is that what you wanted?

If you mean actually controlling seperate html frames, just use html to name the frames in your html frameset file. Then use multiple getURL with different targets on your button…

on (release) {
getURL(“http://www.etc.com/new-window.html”, “mainFrame”);
getURL(“http://www.etc.com/frame.html”, “2ndframe”);
}

Remember though, if this is being directed from an email, you will need to use absolute url references with the whole URL, like http://www.etc.com/etc.html rather than just the file name like etc.html

Hope that helps, maybe…

Cheers!

FW

(ps) 3 different answers (so far), & all could be right… See how important it can be to phrase your question with as much detail as possible to make sure we understand what you mean…