# I can't get the swf HTML domain

**URL:** https://forum.kirupa.com/t/i-cant-get-the-swf-html-domain/249768
**Category:** flash
**Created:** [January 22, 2008, 1:23pm UTC](https://forum.kirupa.com/t/i-cant-get-the-swf-html-domain/249768 "2008-01-22T13:23:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![StavBN](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@StavBN](https://forum.kirupa.com/u/StavBN)
#### Post date: [January 22, 2008, 1:23pm UTC](https://forum.kirupa.com/t/i-cant-get-the-swf-html-domain/249768/1 "2008-01-22T13:23:01Z")

</div>

the script:  
import flash.external.\*;  
var page\_href =“unknown”  
if (ExternalInterface.available){  
page\_href = ExternalInterface.call(“location.href.toString”);

I opened a text box with the car “page\_href”.  
I put the SWF inside my web and saw “null” inside the text box.

What to do?
