# Load swf by passing variable from html page

**URL:** <https://forum.kirupa.com/t/load-swf-by-passing-variable-from-html-page/296372>\
**Category:** Uncategorized\
**Created:** [September 14, 2009, 10:37am UTC](https://forum.kirupa.com/t/load-swf-by-passing-variable-from-html-page/296372 "2009-09-14T10:37:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Devendra\_Singh](https://avatars.discourse-cdn.com/v4/letter/d/cc9497/32.png) [@Devendra\_Singh](https://forum.kirupa.com/u/Devendra_Singh)\
**Post date:** [September 14, 2009, 10:37am UTC](https://forum.kirupa.com/t/load-swf-by-passing-variable-from-html-page/296372/1 "2009-09-14T10:37:47Z")

</div>

Hi, i’m new to flash cs4 and action script entirely, and i’m stuck on the final stretch of a project i’m workng on.  
My Problem Is: I have a main swf movie…in which i want to load another swf by passing variable from html page  
.  
.  
.  
.  
.  
in flash 8 in as2

my code is that…  
var topnavigation = \_root.topnavigation; // Will load top navigation.swf  
drop.loadMovie(topnavigation);
