It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Flash Forum

stop swf

Moderator: Phate

stop swf

Postby susanward on Mon Jun 11, 2007 1:31 pm

Hi there.

I have added a swf to: www.marathonwildbirdcenter.org on the home page.

What I want to happen is after the swf plays - that's it - stop (unless the user hits the refresh).

In other words, when a person goes to another .html page and comes back to the home page, the swf will not refresh and play again.

Currently, my action script on is: frame 1- play, and frame 150- stop.

Thanks,
susie
susanward
 
Posts: 2
Joined: Sat Mar 03, 2007 3:53 pm
Location: florida keys

Postby tombothetominator on Mon Jun 11, 2007 3:01 pm

It stopped for me when i visited the site.
tombothetominator
250+ Club
 
Posts: 436
Joined: Wed Mar 28, 2007 9:11 pm
Location: Arizona, USA

Postby susanward on Mon Jun 11, 2007 9:12 pm

Hi tombothetominator!

Yes, I can get it to play then stop but if a user goes to another html page, then back to the index page where the swf is, the swf refreshes itself and plays again.

I was looking for some information to play once then stop unless the user refreshes the index page.

If you go to the website, then to another page - say Volunteers, then back to Home, you'll see what I'm talking about.

Thanks!
susie
susanward
 
Posts: 2
Joined: Sat Mar 03, 2007 3:53 pm
Location: florida keys

Postby tombothetominator on Mon Jun 11, 2007 9:25 pm

Hmmm... not sure about doing that without designing the entire site in flash (though i am by no means an expert, and have only tinkered with flash). The problem is that everytime you open the index.htm page from another page (volunteers for example) it is the same thing (as far as the browser is concerned) as refreshing the page.

Since your flash is coded to play upon opening index.htm, that means anytime you open it by any means (whether refresh or link) it will play that file.

What you could do is create a page with the header static, and then link to that from all your other pages. (e.g. index.htm takes you to volunteer.htm, but if you click 'home' from there it takes you to index1.htm which doesn't have the swf file on it).

Just a thought. :)
tombothetominator
250+ Club
 
Posts: 436
Joined: Wed Mar 28, 2007 9:11 pm
Location: Arizona, USA


Who is online

Users browsing this forum: No registered users and 1 guest