GamesTopica.Net

Topics and Ideas for all sort of Game Creations
  • Home
  • New Stuff
  • Role-Playing
  • Board & Card Games
  • Games Dev
  • Game Design
  • Downloads
  • Detecting the end of a movie clip in AS3

    Coding, Computer Games Development, Games Implementation 17.04.2009

    Sometimes you want to play a sequence of animation using movie-clips – this implies that you need to detect when is the end of the clip in question. You can place a variable inside the movie clip inside, but with ActionScript 3 there is another solution – using the enter frame event of the movie clip to run a function, which then proceed to check if the movie clip has reached its final frame (or any frame, for that matter). This solution is discussed at the lower half of the article at Flash&Math.

    With some work, one should be able to write an observer pattern for this.

    Related Articles:

    • Strides Game Creator Released
    • Side Scrolling Shooter competition at SDLTutorials
    • Stanford’s Programming Lecture
    • RogueLike Development Library for C#
    Share This:
    • Print this article!
    • Digg
    • Sphinn
    • del.icio.us
    • Facebook
    • Mixx
    • Google Bookmarks
    Creative Commons License
    This work, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Singapore License.

    Posted by extrakun @ 8:21 am

    Tags: Coding, flash

  • Leave a Comment

    Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.

Tags

3 kingdoms adventure idea adventure theme armour artifacts board game classes Coding D&D Dragon Age dragon warriors engine fantasy fate flash fluff/inspiration game-mastering game art Game Design game maker game vocab Indie Games mass effect News opinion Other Systems patterns play random musings Reviews & Culture rpgs rules mod seeds Spirit of the Century weapons wuxia

Also by Extrakun

  • Resizable Application Windows in QT 4.5
  • Tips for the Novice Freelancer #1 – Virtual PC and VMWare
  • Installing QWT and getting it to work with QT 4.5 Windows
Subscribe
© Blogname. All Rights Reserved. Entries RSS Comments RSS Login Open Source