Skip to main content
Participating Frequently
January 24, 2008
Question

How do i make a flashbutton open the page in mainFrame?

  • January 24, 2008
  • 11 replies
  • 1747 views
I'm doing this site for my dad, and i've done a menu in flash.
I made jpeg's and then imported them into flash, made buttons that move and stuff.
Now my problem is that i just really cant get them to open the page in mainframe.
There is no setting for mainFrame among the others (_top, _parent, _self and so on).
It's making me really frustrated, so i wonder if there is someone experiencing the same problem
or have, that knows how to fix it?
And as i said before, it's a moving flashbutton, not a jpeg. So you cant just import it into DW.

Thanks.
Amanda

This topic has been closed for replies.

11 replies

robdillon
Participating Frequently
January 31, 2008
No text available
kglad
Community Expert
Community Expert
January 31, 2008
click profile/personal options and unsubscribe.
Participant
January 31, 2008
can anyone tell me how to unsubcribe to the forums> I am overwhelmed by hundreds of emails every day!

Thanks
Participant
January 31, 2008
can anyone tell me how to unsubcribe to the forums> I am overwhelmed by hundreds of emails every day!

Thanks
kglad
Community Expert
Community Expert
January 27, 2008
if you have a frameset with Leftframe and mainFrame, copy and paste that html code from <frameset> to </frameset> that should look pretty similiar to the sample code Grauzone posted.
kglad
Community Expert
Community Expert
January 26, 2008
from your original message: "Now my problem is that i just really cant get them to open the page in mainframe."

what are you talking about? your flash opens in a browser window. when some button is released you want home.html to open where? in the same browser window that contains your flash? a new browser window (like a pop-up)? or in a particular iframe in a html frameset?

those are the only 3 choices you have.
SabyoneiAuthor
Participating Frequently
January 27, 2008
I want the button to open home.html in mainFrame, that would be the right frame in my frameset.
My frameset has two frames. Leftframe and mainFrame. I want the button to open my home.html in mainFrame.
But there is not a choice i can choose to make it open in mainFrame.
The problem is that i don't know how to write to make that happen.
I feel i have tried everything..
robdillon
Participating Frequently
January 27, 2008
If all of the files are in the same folder on your server then you want the Flash button to use:

getURL("home.html","mainFrame");
Participant
January 26, 2008
Thanks all for this great information
kglad
Community Expert
Community Expert
January 25, 2008
copy and paste your html frameset code.

copy and paste the code that you're using to try and load a html page into an iframe of that frameset.
SabyoneiAuthor
Participating Frequently
January 25, 2008
Okay, well..
when i try to edit target in flash the code is like this:

kglad
Community Expert
Community Expert
January 24, 2008
using the attach code option in this forum copy and paste your html frameset code and your getURL() code.
SabyoneiAuthor
Participating Frequently
January 24, 2008
hm, you mean there's a code that i can copy? where is it? ><
robdillon
Participating Frequently
January 24, 2008
Use the Reply button for this message. Open your frameset html document and select all of the text. At the bottom of the reply window is a button titled "Attach Code". Click on that button and paste your html from the frameset into this new window. Send the message so that we can see what you have to work with.
robdillon
Participating Frequently
January 24, 2008
Are you working with a frameset? Are you trying to replace the content of the parent document, or one of the frames in the frameset?

If you are using a frameset and you want to replace the contents of one of the frames, you will need to provide a name attribute for the frame and then use that name in your getURL () function for the target space name. If you want to replace the entire frameset with a single new location then use "_parent" as the target space name.

If you are not using a frameset, then you don't need a target name at all.
SabyoneiAuthor
Participating Frequently
January 24, 2008
Yes, i am using a frameset.
So basicly you mean I have to name the frame for instance "_rightframe"
or whatever, and then type it into the targetbox in flash?
Because i've already tried it a couple of times but it did not work..
I can try it again but i fear it's the same result.
Maybe there's something wrong with my computer,but who knows.
It's been acting sort of strange lately.

But hey, thanks (: