Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flash Buttons and Frames 2

Status
Not open for further replies.

brainpudding

Technical User
Sep 29, 2002
84
US
I posted this once already, but the reply suggestion didnt work.... or i am not doing it right. I have a set of buttons i made in flash MX.... i want to import them into the left frame of a 3 frame set page.... i need the buttons to change the main frame page when pressed... i cant figure it out HELP!!!!! 87) all it will do now is change the frame its in here are my example the button file names is button2.swf framset is mainset.htm, left.htm, top.htm, main.htm.. and the buttons target should be main2.htm

any help would be GREATLY APPRECIATED

thanks
 
Buttons in Flash have to target the frame name in the frameset.
Code:
getURL("[URL unfurl="true"]http://www.yourserver.com/whatever.html",[/URL] "target_frame_name");

That's the only way it will work! Regards,

oldman3.gif
 
MAYBE IM AN IDIOT!! this is what i got .. i got a .swf file named ccbuttons2.swf and in that is a button that has this code EXACTLY getURL("main2.htm", "main"); the dreamweaver files are as follows mainset.htm, top.htm, left.htm, and main.htm .. i made a seperate page called main2.htm. now i placed the ccbuttons2.swf file in the left.htm thinking that clicking on it will replce the main.htm with main2.htm ... i beleive im following your instruction exactly but its still not working.. i know this cant be that hard.... what am i doing wrong!!!!
 
This has nothing to do with the .html that you are calling.
I know nothing about Dreamweaver... Never used it and won't!
What I do know, is that your frameset has to be defined something like this:

Don't stick on the following, it's just an example, to show you that the frames in your frameset must be named!

<frameset cols=&quot;50%,50%&quot;>
<frameset rows=&quot;50%,50%&quot;>
<frame src=&quot;left.htm&quot; name=&quot;topleft&quot;>
<frame src=&quot;bottom.htm&quot; name=&quot;bottomleft&quot;>
</frameset>
<frame src=&quot;main2.htm&quot; name=&quot;main&quot;>
</frameset>

Notice the frame name=&quot;main&quot; in the above (not only the src=&quot;main2.htm&quot;), that's how it has to be identified so that your getURL can target that main frame when using:

getURL(&quot;main2.htm&quot;, &quot;main&quot;);

Now if you don't get it this time... I give up, sorry! Regards,

oldman3.gif
 
Dream weaver is alright (not even great) tool, but sooner or later you'll need to know real HTML and write it with a basic text editor. Oldie is right, and if the names don't match, you'll end up poping open a new window, or loading the desired page in the window that has hte flash buttons. Fair warning, using Flash in the navigation really is a pet peeve of a LOT of users as there are people out there that don't surf with FLASH (or even a graphical browser (read: Lynx) so be prepared to turn people away at the door or offer an alternitive naigation scheme. Good luck.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top