[Solved] AS3 Sliding Puzzle with Tweens [closed]

TweenMax for tweening objects. And I found a lot of tutorials while googling. For example http://ajaybadgujar.com/2011/12/06/as3-number-slide-puzzle-game-for-beginners/ Or here you can find a lot of topics and source code related to puzzles If you think you start making the application straight away, you are kinda wrong. You have to break the app down and think what … Read more

[Solved] How can i create a death zone in my platformer? [closed]

Let’s say char is the name of your character, and deathZone is the name of your death zone: var life:int = 5; //Character has 5 lives var startPoint:Point = new Point(0, 0); //Where the character starts addEventListener(Event.ENTER_FRAME, function() { if(char.hitTestObject(deathZone)) { life -= 1; char.x = startPoint.x; char.y = startPoint.y; if(life <= 0) { trace(‘yourCharacterIsDead’); … Read more

[Solved] Convert AS3 to FLA for generating SWF

Open the FLA in an appropriate editor (usually Flash Professional, or other IDEs such as Flash Builder, Flex, etc…) Compile (controlenter for Flash Professional) To clarify: .swf is a compiled Flash program (with embedded code, text, and assets). .fla is a project file that holds the references to everything you want to compile. .as file … Read more

[Solved] as3 randomly picking names

visit this link to find your solution. or try this code var originalArray:Array = new Array(‘Bob’, ‘George’, ‘Tom’, ‘Mohammed’, ‘Adam’, ‘Moses’, ‘Aaron’, ‘David’); var shuffledArray:Array = originalArray.sort(shuffle); trace(shuffledArray); private function shuffle(originalArray,shuffledArray):int { var sortNum : int = Math.round(Math.random() * 2) – 1; return sortNum; } 9 solved as3 randomly picking names