PDA

View Full Version : Flash menu to control IFRAME



Inflicted
February 12th, 2005, 12:39 PM
(Follow-up on earlier (deleted) thread)

I want to scroll through pages in an IFRAME
in a HTML page with my Flash menu.

It works partly but it doesn't go back and forth
correctly. This is the code I have now:

myUrl = 1;
btn1.onPress = function() {
if (myUrl<4) {
getURL("page"+myUrl+".html", "home");
myUrl++;
input = myUrl;
}
};
btn2.onPress = function() {
if (myUrl>0 ) {
getURL("page"+myUrl+".html", "home");
myUrl--;
input = myUrl;
}
};

Does anyone know how to do this correctly?
example:here (http://www.inflicted.nl/test/evers/btn_test/a_test.html)

thanks

pou-pou
February 12th, 2005, 12:46 PM
myUrl = 0;
btn1.onPress = function() {
if (myUrl<4) {
myUrl++;
getURL("page"+myUrl+".html", "home");
}
};
btn2.onPress = function() {
if (myUrl>0 ) {
myUrl--;
getURL("page"+myUrl+".html", "home");
}
};


? :toad:

Inflicted
February 12th, 2005, 12:55 PM
gnu_!!!

Works like a charm!!!
My code-juggling was way to complicated
once again...

Thanks a LOT!!! (http://www.inflicted.nl/test/evers/btn_test/a_test.html)

pou-pou
February 12th, 2005, 05:44 PM
well i can juggle nine balls, so i guess i can handle about same amount lines of code :toad:

FlashPlaya
March 21st, 2005, 11:15 PM
Hey Gnu-

I am having a really hard time trying to figure this out?? Can you help me? I am trying to use my flash nav to target the iframe.. I already have kinda alot of actions going on each btn. But you can look that sitehere (http://www.dyaddesigns.com/clients/co-op/)

and if you look in the flash folder you will see the .fla

Thanks!!! :thumb: yodaman!!