PDA

View Full Version : next & previous flash buttons..?


adrian
04-18-2001, 02:18 PM
Hi everyone, I asked this question a day ago, but nobody answered.
So, here it is again: how do I get urls from html in flash buttons, because I need that the same button in different pages to point to a different link (this is for the next & previous buttons).
Does anybody knows how to do this?
Thanks!

Marx
04-18-2001, 07:12 PM
Hi..
Just noticed you've posted this before, sorry about the delayed response.
Heres the same answer, save you checking the other one:

Your right to use the getURL action if the pages your pointing to are other html pages.
As an example the following actions are placed on buttons on two different pages:

on (release) {
getURL ("myFirstPage.html", "_self");
}

This is placed on a button in my second page that points back to my first page, like a 'back button'. Selecting 'self' will mean that the page loads into the same window.

on (release) {
getURL ("mySecondPage.html", "_self");
}

The same as above except this would be a 'forward button'.

Remember, the pages I've described reside in the 'same root directory'.

Hope this helps.

adrian
04-19-2001, 08:59 AM
Thanks Marx!
That's what I wanted to do first, but you see, I have more than 30 pages and that makes about 60 buttons, each of them with a different url...
I tried to use "getUrl(variable)" where the variable was loaded earlier with "loadVariable" from the web page. The variable is used to specify the url. The problem is I couldn't make it work:(
Please tell me if you know if this could work or I might be doing something wrong.

adrian

Marx
04-19-2001, 02:15 PM
Hi...
Regarding using a variable in the getURL action, do this:

Add an action that sets the value of the variable we're going to use:

myVar = "whatMovie";

Then apply this variable to the getURL action:

on (release) {
getURL (myVar+".html", "_blank");
}

This will open a new window whose name corresponds to the current value of 'myVar'.

Good luck.