Search code examples
flashflash-cs4

How do you mark particular points in a flash (swf) animation?


I need to put some markers in my flash animation that can be used to direct a user based on the reputation he has. If his reputation drops over time, he should be directed to a particular point inside the flash animation which is a game. How is this handled in flash cs4 traditionally? Examples and resources will be helpful.

Also, these markers will be saved in the database and tied to the reputatoin engine.


Solution

  • (This is coming from a CS3 background.)

    You can provide a Frame Label in the frame properties panel. Then in your ActionScript, you can call

    gotoAndPlay("TheFrameLabel");
    

    This wouldn't exactly integrate with the database, though. You'd have to maintain the labels in the FLA separately from those in the database.