looping scene

  • Wurn
  • Graduate
  • Graduate
  • User avatar
  • Posts: 122
  • Loc: Cape Town

Post 3+ Months Ago

Need help with this stupid question please. I have a scene that i will export as a .swf file insert in a html file. I want the .swf file to repeat its action every 15 seconds or so. I want the scene to loop at a given time.

how do i do this? :shock:
  • maario
  • Novice
  • Novice
  • User avatar
  • Posts: 17

Post 3+ Months Ago

hi

you can define a function where your movie starts playing, and then call that function 15 by 15 seconds with the setInterval() command.

example:

function start () {
myMc.gotoAndPlay("play");
}

interval=setInterval(start, 15000);


You can also check the help file in Flash. Very usefull indeed.
  • Wurn
  • Graduate
  • Graduate
  • User avatar
  • Posts: 122
  • Loc: Cape Town

Post 3+ Months Ago

Thx alot, ive been googling the answer all over the show, will try help files also if it does not work

:)
  • mill
  • Banned
  • Banned
  • mill
  • Posts: 1

Post 3+ Months Ago

setInterval() command.



function start () {

//your actionscript.
//_root.gotoAndPlay(1);

}

interval=setInterval(start, 15000);

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 16 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.