Will update when I find anything else useful. Feel free to add anything, just try and copy my format for uniformity.
Remember, in Actionscript 3, action commands go in the TIMELINE on a new layer is best. Create keyframes as needed
Creating buttons for navigation
- Code: Select All Code
function clickHandler(event:MouseEvent):void {
gotoAndPlay ('my scene');
}
button.addEventListener(MouseEvent.CLICK, clickHandler);
You can replace clickHandler with whatever you want. Just ensure every button has a different name eg: clickHandler1, clickHandler2 etc.
Replace ('my scene') with the name of your scene, or the actual frame number on your timeline
Replace button with the name of your button instance. Name it in the properties window
Dynamically Change FPS in your movies
- Code: Select All Code
this.stage.frameRate = number;
Replace number with an actual number obviously
This is extremely useful for creating scenes that will play slower, or faster depending on the FPS of your document.
Slow-mo cumshots? Hyperspeed blowjobs? It's now possible without having to edit the animation itself.
I've used it in my buttons to navigate the scene. Seems to work best that way.
Disable use of the TAB key (yellow boxes on your buttons)
- Code: Select All Code
Movie Clip Name.tabEnabled = false;
Replace Movie Clip Name with the name of your movie clip instance. Name it in the properties window