Advanced Prehack: Flash
I will be using three SWFs in this tutorial. It makes it a bit more complicated, but it works, and that's all that really matters.
Step 1: Loader
1. Create a new ActionScript 2 document
2. Enter this in the first frame:
loadMovie("fold.swf", this);
loadMovieNum("foldhacks.swf", 200);
Save it as 'fold loader.fla' and export it as an SWF.
Step 2: Download the game
SWF: http://chat.kongregate.com/gamez/0000/3 ... e/fold.swf
Tutorial: viewtopic.php?f=18&t=660
Step 3: GUI
1. Create a new ActionScript 2 document
2. Make a hack menu
3. Convert it to a symbol (movie clip)
4. Change its instance name to 'innerHackMenu'
5. Make a button and convert it to a symbol (graphic)
6. Make a text box (static), write 'Lives' and move it onto the button
7. Convert them to a symbol (button) and change its instance name to 'livesHackBtn'
8. Drag it onto the hack menu and make a new text box (input)
(broken image removed)
9. Change the text box' instance name to 'livesHack_txt'
10. Make a drag bar or w/e it's called, convert it to a symbol (movie clip) and change its instance name to 'dragBar'
11. Convert everything to a symbol (movie clip) and change its instance name to 'hackMenu'
12. Make a text box (dynamic), write 'hide hacks', convert it to a symbol (movie clip) and change its instance name to 'showHide'
(broken image removed)
13. Double click it, right click the timeline and insert a new keyframe
14. Change the text to 'show hacks'
15. Add the ActionScript below and save it as 'foldhacks.fla' and export it as an SWF
Step 4: ActionScript
Main timeline, frame 1
1. dragBar
hackMenu.dragBar.onPress = function(){
startDrag(hackMenu);
}
hackMenu.dragBar.onRelease = function(){
stopDrag();
}
2. livesHackBtn
hackMenu.livesHackBtn.onRelease = function(){
_level0.lives = hackMenu.livesHack_txt.text;
}
3a. showHide
showHide.onRelease = function(){
if(showHide._currentframe == 1){
hackMenu._visible = false;
}else{
hackMenu._visible = true;
}
showHide.play();
}
showHide, frame 1 and 2
3b. showHide
stop();
Step 5: Misc.
1. Change frame rate to 36 fps
2. Move all three SWFs to the same folder and open 'fold loader.swf'