Forums

This topic is locked

Flash buttons not loading page in specified frame

Posted 18 Jun 2007 14:53:27
1
has voted
18 Jun 2007 14:53:27 Melissa Botha posted:
So here is the problem….

My web page has four frames - leftFrame, topFrame, mainFrame and rightFrame. In the rightFrame, I have a button menu I made in flash. When I created these buttons, I set the target frame to mainFrame because that's where I want all the pages to load in. Problem is, they don't load in that frame. Everytime I click a button, it loads in a new window.

This is what the coding for the actual button in flash looks like:

on (release) {
getURL("soupkitchen.html","mainFrame";
}


I did my research on the net to find out what the problem could be coz I was using dreamweaver 8 and someone suggested it was leaving out some coding or something. I now have Dreamweaver CS3 but its still not working. Can you help me?

Thanking you in advance

Replies

Replied 18 Jun 2007 21:34:11
18 Jun 2007 21:34:11 matt paxton replied:
ok try it might default to the one you want

on (release) {
getURL("soupkitchen.html";
}

if that does not work script it in the maintimeline of your flash piece

yourbutton.onRelease = function()
{
getURL("your url";
}
Replied 19 Jun 2007 12:46:12
19 Jun 2007 12:46:12 Melissa Botha replied:
Thanks for the advice, however its STILL not working. Ive tried coding it differently but it just dosnt work.

If i type:
on (release) {
getURL("soupkitchen.html","_self";
}

it opens the page in the same frame so it is recognizing the frames, just not the mainFrame. its VERY frustrating. Im thinking that Flash just isnt capable of doing this?

If you think of any other ways of getting around this please help!
Thanks alot!
Replied 20 Jun 2007 11:15:41
20 Jun 2007 11:15:41 Melissa Botha replied:
Oh my Gosh, its working. All i needed to do was upload it!
Thanks for your help! This Forum is freaking awesome!
Replied 20 Jul 2007 17:01:52
20 Jul 2007 17:01:52 Constantine Cos replied:
Excuse me, but i had the same problem with Flash. I practised many examples which i found on internet and nothing worked properly. My flash button (made in flash and not in dreamweaver associate flash component) Actionscript is (same with mellisa's one) " on (release) { getURL("company.htm","mainFrame";}.
My page contains 2 frames ,leftFrame and mainFrame.Of course it did'nt work and it's opening a new window browser. By the way i tested all 4 window commands (_self,_parent...) just to be sure and i saw the expected results. I have all my web component files in order (jpg,swf...etc).

Cause i am new in this field of informatics and i did'nt understand the sollution <img src=../images/dmxzone/forum/icon_smile_question.gif border=0 align=middle>, melissa wrote that she had uploaded it on the web server and it worked propelry?. That's the sollution or i made bad conclusion?

Can you reply me , i would appreciate it!!!
Th@nks
ps(Sorry for my "crappy" english but i have'nt practise them since ......!)
Replied 23 Jul 2007 09:38:33
23 Jul 2007 09:38:33 Melissa Botha replied:
Hi there! I did almost exactly what you did with regards to trying the different window commands and none of them worked. You need to upload it live onto the server for it to work, Well thats what i did and it worked perfectly. So try that out and see if it works as well as it did for me <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
Replied 23 Jul 2007 16:11:23
23 Jul 2007 16:11:23 Constantine Cos replied:
Ok, thank you for the info....<img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>. Have a nice summer!
Replied 23 Jul 2007 16:30:54
23 Jul 2007 16:30:54 Melissa Botha replied:
Its actually winter in South Africa at the moment.....but thanks anyway <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>

Reply to this topic