# Not able to create a shared object when SWF is embed in an HTML page

**URL:** <https://forum.kirupa.com/t/not-able-to-create-a-shared-object-when-swf-is-embed-in-an-html-page/326430>\
**Category:** flash\
**Created:** [December 14, 2011, 6:55am UTC](https://forum.kirupa.com/t/not-able-to-create-a-shared-object-when-swf-is-embed-in-an-html-page/326430 "2011-12-14T06:55:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohan\_iist](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@mohan\_iist](https://forum.kirupa.com/u/mohan_iist)\
**Post date:** [December 14, 2011, 6:55am UTC](https://forum.kirupa.com/t/not-able-to-create-a-shared-object-when-swf-is-embed-in-an-html-page/326430/1 "2011-12-14T06:55:02Z")

</div>

Hi, I have an **file1.SWF** which has a button.( I am using AS3.) Click on the button, creates an **L** ocal **S** hared **O** bject and enters data to it. An another swf, **file2.SWF** , when open, reads this shared object. All this is working fine when played in flash player. But when I embed the file1.swf in a HTML page, and the file2.swf in a second HTML page, and try running, nothing happens. Click the button on the first HTML page just opens the second HTML page. Since the LSO is not created when the button is clicked on first HTML page, the second HTML page does not have a shared object to read it.(I am using Google chrome to run the HTML pages). click on the button of first HTML should create the LSO whih is not happening. I request anyone to help me on this.
