# \[8\] Using FLASHVARS to show different sections of movie

**URL:** <https://forum.kirupa.com/t/8-using-flashvars-to-show-different-sections-of-movie/170655>\
**Category:** flash\
**Created:** [November 28, 2005, 4:44pm UTC](https://forum.kirupa.com/t/8-using-flashvars-to-show-different-sections-of-movie/170655 "2005-11-28T16:44:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mediaman\_12](https://avatars.discourse-cdn.com/v4/letter/m/6bbea6/32.png) [@Mediaman\_12](https://forum.kirupa.com/u/Mediaman_12)\
**Post date:** [November 28, 2005, 4:44pm UTC](https://forum.kirupa.com/t/8-using-flashvars-to-show-different-sections-of-movie/170655/1 "2005-11-28T16:44:56Z")

</div>

Ok so I found [this](http://www.actionscripts.org/tutorials/intermediate/script-free_deep_links_with_full_flash_sites/index.shtml) seamingly usefull mini tutorial on [Actionscripts.org](http://Actionscripts.org) on how to use the FLASHVARS value in the ‘HTML’ to controll which part of the Flash movie is shown. But I can’t get it to work, the AS gives loads of errors in Flash. The value is set, as I have got a textbox showing it the values. here is the AS I did as an experement, It’s just supposed to move the playhead to a different named frame depending which page loads the Flash.  
the FlashVars value in the html pages is page=one and page=two.

```auto
var siteManager:siteManager = new SiteManager(this, _root.page);
class SiteManager {
		private var _tl:MovieClip;
		public function SiteManager (timeline:MovieClip, page:String){
				init(timeline, page)
		}
		private function init(timeline:MovieClip, page:String):Void{
				_tl = timeline;
				if (page)
				switch(page){
					    case "one":
					    //code to load section One
		    		    gotoAndPlay("one");
					    break;
					    case "two":
					    //code to load section Two
		    		    gotoAndPlay("two");
					    break;
		}
}
}

```

Have I compleately missunderstood the AS in the tutorial?  
Any help please.
