PDA

View Full Version : getURL - Target specific frame on website



Blohm
09-08-2004, 06:45 PM
I have a huge problem, yet very small :)

Ive just started to make some flash buttons for my site, thing is that I wish to make my own, not to use Dreamweavers standard ones, just to get a more personal touch :)

Ive been trying to figure out how to use the getURl command to target an iframe, the Iframes name is "main" on my webbie. Ive been jiggling with "main", main, _main etc etc but I cant get it to work :roll:

Now, this is what ive been trying to do:

on (release)
{
getURL('myurl, target?,');
}

Do i need to script something so the flash actually checks my site for frames, find a match to "main" and then open the page in this frame.

In short:

How do a target a specific frame? Anyone that knows if its even possible? :oops:

jeet
09-09-2004, 06:25 AM
hi there,

use below code it's working


on (release) {
getURL("http://www.flashadvisor.com","main");
}

Regards
Jeet

GabFlasher
12-12-2007, 06:28 PM
This code doesn't work correctly...

on (release) {
getURL("http://www.flashadvisor.com","main");
}

maybe for that specific one, but I'm having a similar problem as blohm. If I use this code on my main menu button from a secondary HTML page for my site, for ex. www.mysite.com/secondary.html (http://www.mysite.com/secondary.html), when I click the button it opens the main menu in a seperate window for some reason, not to mention it doesn't even go to the frame I put in the second set of quotations =/. I tried using ex. www.mysite.com?skipvariable=yes (http://www.mysite.com?skipvariable=yes) as the link on the button in the secondary html page, and used the code...

if(skipvariable="yes"){
gotoAndPlay(framenumber or "label");
}

In the main site which works but then everytime they go to the website whether they have closed the browser or not it skips to that frame, which I don't want to happen. A more detailed thead on this matter is here...

http://www.flashadvisor.com/forum/skipvariable-problem-two-t3064.html?p=8269#post8269