# How can I do it in Flash?

**URL:** https://forum.kirupa.com/t/how-can-i-do-it-in-flash/219682
**Category:** Uncategorized
**Created:** [March 19, 2007, 1:40pm UTC](https://forum.kirupa.com/t/how-can-i-do-it-in-flash/219682 "2007-03-19T13:40:34Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![marSoul](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/marsoul/32/3456_2.png) [@marSoul](https://forum.kirupa.com/u/marSoul)
#### Post date: [March 19, 2007, 1:40pm UTC](https://forum.kirupa.com/t/how-can-i-do-it-in-flash/219682/1 "2007-03-19T13:40:34Z")

</div>

[FONT=verdana, arial, helvetica][SIZE=2]Hi all,

I have a question, I want to know that if i put a header flash for a website, can i play from different frame numbers depends on which page is loading or not ?  
I mean for example i have a site with 5 pages which on all 5 pages on top of pages a flash menu is playing from the beginning every time one of these 5 pages loads.  
I want to know that if possible the flash part only load on index page and then on other 4 pages the flash start to play from a specific frame number.

[/SIZE][/FONT][FONT=verdana, arial, helvetica][SIZE=2] I use this method :

if (this.\_url=“[http://www.myurl.com/index.php](http://www.myurl.com/index.php)”) {  
play();  
} else {  
gotoAndPlay(framenumber);  
}

but on all pages the file start playing from the frame number that i have specified. Also on index.php !  
So what is the problem ?  
Thnx ![/SIZE][/FONT]
