View Full Version : Flash buttons and iframes


Billie_Jean
03-19-2004, 09:11 AM
Hi everyone! Okay, well what i want to do is get my flash button's link to come up in an iframe, but i can't seem to get my head around it =S I know how to use the "target" html with normal link buttons, but flash buttons seem to be different. I'd really apriciate some help. If you have no clue what im on about just let me know...
Click here to view pic of what i would like to happen... (http://www.billiegina.fineststars.com/website.jpg)

Marianne
03-19-2004, 10:33 AM
I think your question is actually a HTML question, so I'm moving this thread to HTML.

Billie_Jean
03-19-2004, 11:39 AM
Oh okay... do you know how to answer it? =)

Sphere
03-19-2004, 05:30 PM
it isn't a html question


on (release) {
getURL("http://site.xxx", "_name-of-iframe");
};
}


past this action script on the button and replace the url and target

Billie_Jean
03-20-2004, 12:14 AM
I'm sorry, im not great with these things... i tried this:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="37" height="14">
on (release) {
getURL("welcome.htm", "inlineframe");
};
}

<param name="BASE" value=".">
<param name=movie value="text1.swf">
<param name=quality value=high>
<param name="BGCOLOR" value="#FFFFFF">
<param name="SCALE" value="exactfit">
<embed src="text1.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" scale="exactfit" width="37" height="14" bgcolor="#FFFFFF" base=".">
</embed>

The page just appears in the whole page, not the frame =( What am i doing wrong?

Marianne
03-20-2004, 07:33 AM
I don't know exactly what it is you're asking, but the code you quoted here will not work I'm afraid. It looks like the code for inserting Flash in your website has been mixed together with the code for a button within Flash.
I'm sorry I can't help you better, but I don't really understand what you mean by Flash buttons, I think you're talking about HTML, not Flash.
I'm a little lost.

Billie_Jean
03-20-2004, 08:07 AM
Oh, i'm sorry for the confusion. I'm positive it's a flash text.. that's what it says when i click on it using dreamweaver. I just want a certain page to load in an iframe when you click on the flash text. If you can't help me, it's perfectly alright =)

Sphere
03-20-2004, 11:12 AM
hmm you are mixing actionscript and html together
first make ur iframe and then in the page that will snow up in an iframe past ur code

<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="37" height="14">

<param name="BASE" value=".">
<param name=movie value="text1.swf">
<param name=quality value=high>
<param name="BGCOLOR" value="#FFFFFF">
<param name="SCALE" value="exactfit">
<embed src="text1.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=Shockwave Flash" type="application/x-shockwave-flash" scale="exactfit" width="37" height="14" bgcolor="#FFFFFF" base=".">
</embed>


without the actionscript :)
but you still have to past the actionscript that i gave you on the buttons in flash self.

on (release) {
getURL("http://site.xxx", "_name-of-iframe");
};
}

Billie_Jean
03-20-2004, 11:21 AM
Oooo, thankyou very much... *feels daft* where abouts shall i put these codes? =S and with the 'getURL("http://site....' can i replace that with just 'welcome.htm' instead of http://.. website link?

Sphere
03-20-2004, 02:29 PM
the first code is html for the iframe where you want to show up ur flash buttons
the second one is the actionscript (flash script) that must be added in flash self on the butons by rightclicking the button and choose actions and then past the code and change it

i'm not sure if only welcome.htm is enough