Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

simple AS 2 for named movie

Engaged ,
Mar 03, 2009 Mar 03, 2009
Can someone please tell me what the action script 2 would be for a named movie instance to play 3 times only.
Should I have NO stop inside the movie timeline to allow this to happen?
Thanks !

flash cs3
OSX.4.11
TOPICS
ActionScript
352
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 03, 2009 Mar 03, 2009
on your movieclip's last frame you can use:

if(numPlayed == undefined){
numPlayed=1;
} else {
numPlayed++;
}
if(numPlayed==3){
stop();
}
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Mar 03, 2009 Mar 03, 2009
That is great, thank you.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 03, 2009 Mar 03, 2009
LATEST
you're welcome.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines