# \[CS3-AS2\] Trying to find a solution for an impossible problem

**URL:** <https://forum.kirupa.com/t/cs3-as2-trying-to-find-a-solution-for-an-impossible-problem/308188>\
**Category:** flash\
**Created:** [April 18, 2010, 6:34pm UTC](https://forum.kirupa.com/t/cs3-as2-trying-to-find-a-solution-for-an-impossible-problem/308188 "2010-04-18T18:34:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nightwing308](https://avatars.discourse-cdn.com/v4/letter/n/b9bd4f/32.png) [@Nightwing308](https://forum.kirupa.com/u/Nightwing308)\
**Post date:** [April 18, 2010, 6:34pm UTC](https://forum.kirupa.com/t/cs3-as2-trying-to-find-a-solution-for-an-impossible-problem/308188/1 "2010-04-18T18:34:14Z")

</div>

Hi everyone!

This will probably just get me a “can’t be done” answer, but I’m going to ask anyway…  
Is there **any** kind of AS2 code that would make it possible for a Flash movie, loaded into the **main frame of an html page** , to detect which html page is loaded into the **header fame of the same html page**?  
Something like…

```auto
 
**if**
**("page1.html", "header" == loaded)**
 **{**
**gotoAndPlay(2);**
 **}**
 **else**
 **{**
**stop();**
 **}**

```

Which of course doesn’t work, and neither does using \*true \*instead of _loaded_  
If you really need to know why I’m trying to find a solution for this, I’ll explain in detail, but it’ll require a quite lengthy explanation.😟
