Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

49 users online



How to play movie only 1 time?

How to play movie only 1 time?

Currently viewing this thread: 1 (0 members and 1 guests)


Plau

Plau

Neverside Newbie
Status: Offline!

How to play movie only 1 time?

Hey,

I'm busy for a schoolproject. I'm making a little decoration on the website with flash (www.madebymade.nl/webshop). The animation works and it doesn't loop (so that's ok), but when I click on another link like a brand or on contact or whatever, the movie is played again... Is it possible to avoid that? So the movie plays only on the first entry of the page?
thnx in advance!

Stratification

Stratification

Um, yay?
Status: Offline!

There isn't a simple way to do that, if you really wanted to pursue it you'd have to end up using shared objects to store variable states. A simpler solution would be to use the flash movie on the first page and then a static image on others. Assuming I'm understanding the question.

Plau

Plau

Neverside Newbie
Status: Offline!

yes you do, but the problem is I use sort of a template for the main stuff and the mainstuff is included...

http://www.madebymade.nl/webshop

check what I mean Smile
I was also thinking of a static image, so I could make it that when the url contains more than the default it shows a static image.

Stratification

Stratification

Um, yay?
Status: Offline!

You could also have the Flash check the URL and gotoAndStop() on a certain frame if it doesn't match the main page.

Plau

Plau

Neverside Newbie
Status: Offline!

ehm I'm quit a flash noob... could you show me an example please?

Stratification

Stratification

Um, yay?
Status: Offline!

Something like:

Code:

if(_root._url != "http://myhomepage.com/index.htm"){
gotoAndStop(10);
}

Hope that makes sense to you. The ._url for a move returns the address for the page that loaded the movie.

Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0162 seconds.