# Link variable from html to flash

**URL:** <https://forum.kirupa.com/t/link-variable-from-html-to-flash/274892>\
**Category:** Uncategorized\
**Created:** [November 6, 2008, 9:12am UTC](https://forum.kirupa.com/t/link-variable-from-html-to-flash/274892 "2008-11-06T09:12:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mizako](https://avatars.discourse-cdn.com/v4/letter/m/50afbb/32.png) [@mizako](https://forum.kirupa.com/u/mizako)\
**Post date:** [November 6, 2008, 9:12am UTC](https://forum.kirupa.com/t/link-variable-from-html-to-flash/274892/1 "2008-11-06T09:12:51Z")

</div>

Hi.

I have this little flash where is one button with this code:

on (release) {  
getURL(\_root.address);  
}

That is because I want my html to give that address. In html I have this kind of code:  
(sorry about the length)

…L\_RunContent(  
‘codebase’, ‘[http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,24,0](http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,24,0)’,  
‘width’, ‘100%’,  
‘height’, ‘100%’,  
‘src’, ‘scanburger\_intro.swf?address=index2.html’,  
‘quality’, ‘high’,  
‘pluginspage’, ‘[http://www.macromedia.com/go/getflashplayer](http://www.macromedia.com/go/getflashplayer)’,  
‘align’, ‘middle’,  
‘play’, ‘true’,  
‘loop’, ‘false’,  
‘devicefont’, ‘false’,  
‘id’, ‘scanburger\_intro.swf?address=index2.html’,  
‘bgcolor’, ‘#ffffff’,  
‘name’, ‘scanburger\_intro.swf?addres=index2.html’,  
‘menu’, ‘false’,  
‘allowScriptAccess’,‘sameDomain’,  
‘allowFullScreen’,‘false’,  
‘movie’, ‘scanburger\_intro’,  
‘salign’, ‘’  
); //en  
…

This has sometimes worked with me but now my browser gives my some undefined address and not that index2.html. What did I do wrong?

Sorry about this messy post but I don’t know any other way to tell this. 😃

Thanks.

Mikko
