Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

playing a movie only once

Status
Not open for further replies.

technoknow

Technical User
Apr 19, 2002
121
US
I have a parent movie that when it first loads it plays and a child movie (child1) plays inside of it. When I click on a button in the parent movie I need to have the child1 movie play only if it hasn't played before otherwise child2 should run.
Any suggestions?
technoknow
 
How can child1 not have played if it automatically plays when the parent movie loads up?

Regards,

cubalibre2.gif
 
Or do you mean that on a refresh for example, only child2 should play?



Regards,

cubalibre2.gif
 
I have 2 navigation movies that are parent movies (nav1, nav2)
The first time the parent (nav1) loads the child1 plays (it is the "home" movie). If I go to the next parent (nav2) and then come back to nav1, the child1 (home) shouldn't play.
Hope that is clearer.
Thanks,
technoknow
 
Try adding and setting a variable at the end of child1, something like...

_level0.child1_played = true;

And then, on your button's script, add a condition check...
Code:
on(release){
    if(_level0.child1_played == false){
        // Code to play child1...
        // And maybe even...
        // _level0.child1_played = true;
        // Just to make sure...
    } else {
        // Code to play child2...
    }
}

Regards,

cubalibre2.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top