# Html within flash

**URL:** <https://forum.kirupa.com/t/html-within-flash/26673>\
**Category:** Uncategorized\
**Created:** [July 25, 2003, 5:33am UTC](https://forum.kirupa.com/t/html-within-flash/26673 "2003-07-25T05:33:12Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![genghiskongo](https://avatars.discourse-cdn.com/v4/letter/g/57b2e6/32.png) [@genghiskongo](https://forum.kirupa.com/u/genghiskongo)\
**Post date:** [July 25, 2003, 5:33am UTC](https://forum.kirupa.com/t/html-within-flash/26673/1 "2003-07-25T05:33:12Z")

</div>

I have an html button that is not just a hyperlink, but contains other important html info. How do I include this button in the swf without losing this html code?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 25, 2003, 5:37am UTC](https://forum.kirupa.com/t/html-within-flash/26673/2 "2003-07-25T05:37:30Z")

</div>

wat code does the html button contain?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 25, 2003, 5:38am UTC](https://forum.kirupa.com/t/html-within-flash/26673/3 "2003-07-25T05:38:37Z")

</div>

so u want the same thing to happen, but through a flash file? is that wat u mean?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 25, 2003, 5:56am UTC](https://forum.kirupa.com/t/html-within-flash/26673/4 "2003-07-25T05:56:13Z")

</div>

exactly what I mean. Here’s the code:

\<form action=“[https://www.paypal.com/cgi-bin/webscr](https://www.paypal.com/cgi-bin/webscr)” method=“post”\>  
\<input type=“hidden” name=“cmd” value="\_xclick"\>  
\<input type=“hidden” name=“business” [value="genghiskongo@mail.com](mailto:value=%22genghiskongo@mail.com)"\>  
\<input type=“hidden” name=“no\_note” value=“1”\>  
\<input type=“hidden” name=“currency\_code” value=“USD”\>  
\<input type=“hidden” name=“tax” value=“0”\>  
\<input type=“image” src=“[https://www.paypal.com/images/x-click-butcc-donate.gif](https://www.paypal.com/images/x-click-butcc-donate.gif)” border=“0” name=“submit” alt=“Make payments with PayPal - it’s fast, free and secure!”\>  
\</form\>

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 25, 2003, 6:30am UTC](https://forum.kirupa.com/t/html-within-flash/26673/5 "2003-07-25T06:30:44Z")

</div>

im not sure how u can do that through flash. But what u can do is have ur flash movie on a table and that button, in the other cell of the table…get me?

So u have a table with two cells, one contains ur flash and the other contains ur html button.

Thats all that i can think off sorry.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 25, 2003, 6:34am UTC](https://forum.kirupa.com/t/html-within-flash/26673/6 "2003-07-25T06:34:15Z")

</div>

wait i just clicked on ur button.  
Ok u can do this.

On ur button in the flash movie place this script.

on (release) {  
getURL(“[https://www.paypal.com/cgi-bin/webscr](https://www.paypal.com/cgi-bin/webscr)”, “\_blank”);  
}

that should work =)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 25, 2003, 7:04am UTC](https://forum.kirupa.com/t/html-within-flash/26673/7 "2003-07-25T07:04:52Z")

</div>

it doesn’t work. The code is specific to the paypal page. I can’t put the button in another cell because it’s contained within the design of my flash file.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 25, 2003, 8:22am UTC](https://forum.kirupa.com/t/html-within-flash/26673/8 "2003-07-25T08:22:06Z")

</div>

Use the [font=courier new]LoadVars[/font] object:  
[AS]myButton.onRelease = function() {  
var my\_lv = new LoadVars();  
my\_lv.cmd = “\_xclick”;  
my\_lv.business = "genghiskongo@mail.com";  
my\_lv.no\_note = 1;  
my\_lv.currency\_code = “USD”;  
my\_lv.tax = 0;  
my\_lv.send(“[https://www.paypal.com/cgi-bin/webscr](https://www.paypal.com/cgi-bin/webscr)”, “\_self”, “POST”);  
};[/AS]  
I think there’s a thread about this in the Best of Kirupa… :sigh:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 25, 2003, 8:24am UTC](https://forum.kirupa.com/t/html-within-flash/26673/9 "2003-07-25T08:24:58Z")

</div>

hey kax, sry… thisis ff topic… but how’d you make that text backwards under your name? thats sum cool sh\*t!!  
nvm, looked at the source :beam:  
\<TABLE style=“filter:fliph”\>\<B\>Text Here\</B\>\</TABLE\>  
anyone know wher i can find some other cool stuff like this?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 25, 2003, 8:30am UTC](https://forum.kirupa.com/t/html-within-flash/26673/10 "2003-07-25T08:30:34Z")

</div>

nice!! I use paypal on one of my sites and had just left the button on the bottom of the html page. Thanks again Kax!!

[edit] and another think I learned in my style sheets - fantastic - you know, I changed the h to a v and guess what happened!! (-:[/edit]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 25, 2003, 8:38am UTC](https://forum.kirupa.com/t/html-within-flash/26673/11 "2003-07-25T08:38:59Z")

</div>

lol, i thought that same thing 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 25, 2003, 8:42am UTC](https://forum.kirupa.com/t/html-within-flash/26673/12 "2003-07-25T08:42:22Z")

</div>

Good times…good times…:beam:!!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 25, 2003, 8:57am UTC](https://forum.kirupa.com/t/html-within-flash/26673/13 "2003-07-25T08:57:38Z")

</div>

Are you guys having fun? 😛

And Yeldarb, run search on [Google](http://www.google.com), there are tons of tutorials. 😉

**EDIT.** Here’s something to start… [http://hotwired.lycos.com/webmonkey/97/33/index1a.html?tw=authoring](http://hotwired.lycos.com/webmonkey/97/33/index1a.html?tw=authoring)
