AS3 Sliding Puzzle with Tweens [closed] - actionscript-3

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I was wondering how can a sliding puzzle can be achieved like here:
http://mypuzzle.org/sliding
i have googled all the way but unable to find any tutorial

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 you really need.
Some quick simple model as an example:
Main menu
Grid (as array)
Tiles
Filled in grid array and updated via loops
Contain their own picture
Attach event listeners to objects (MouseEvent.CLICK or others)
Check for a win situation with every move.

Related

Putting code in first frame. Same as timelinecoding? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
Hitting u guys with a noob question. Trying to make sense of things regarding AS3 code and where to put it. As of now I´ve been putting it on first (AND ONLY) frame in my swf's. Mixing this with use of some extended classes. Is this considered as timeline coding or is timeline coding when using the timeline and multiple frames for different kinds of code? Hope this isn´t a duplicate but I did some research and couldn´t find any specific info regarding this.
No, I would not consider it as timeline coding.
But, I would put that code in the main document class (as an external .as file).
In the Properties panel, when the stage is selected, you see a Class field:
You can assign a class to your stage, Flash will search for a file named as the class on compile-time.
Here is a tutorial:
http://active.tutsplus.com/tutorials/actionscript/quick-tip-how-to-use-a-document-class-in-flash/
Benefits will include more clarity of code, and long-time maintenance ease.

Are dispatch events not necessary in Flex/ AS 3.0 [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I am creating a application, in which i am calling many functions, But some say, its not the right way to right the functions, you need to dispatch the events for better results. Please can anyone clear me regarding the benefits of dispatch events, as it many websites only says that "it executes an event".
The question may feel foolish, but the answer will let help me in learning flex in right way.
Thanks in Advance.
In general, if you find yourself writing code that has parent.somefunction() or outerdocument.someotherfunction(), that is the time to use events. Code like that makes the child component dependent on it's parent. The better way to have a function executed on the parent would be to use addEventListener() on the parent class to register a listener function and then to call dispatchEvent() in the child.
If you get into writing itemRenderers for datagrids or list components, you will need to learn this technique.

Map Generation for browser based games [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I am building a browser-based game and I would like to generate a hex map. I have seen it done using Flash and I thought that it can be done using HTML5 canvas. I have done some research on it and I would like some suggestions from other experts on this context.
Adapting basic algorithms like this from Flash to Canvas is actually not that difficult. If you need a canvas framework that's close to the AS3/Flash you can take a look at EaselJS: http://createjs.com/#!/EaselJS
Here's an article on Hexagon Tiles:
http://www.emanueleferonato.com/2008/04/16/understanding-hexagonal-tiles/

Animating with html5 [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I saw this great dynamic image website which got me curious on actual development. My plan is to create a friendly more dynamic animation on the left and right margin of the browser giving it more flavor or life. I am a complete beginner but I am willing to learn. So what would I need to create animations like as seen on link and are there any good tutorials to do this.
You can write raw code for HTML5 canvas or alternatively use a third party app like Adobe Edge.
http://labs.adobe.com/technologies/edge/
Also check out CSS3 animations
http://webdesignerwall.com/trends/47-amazing-css3-animation-demos
Or a Javascript animation library like Alice.js
http://blackberry.github.com/Alice/
What you want to learn is HTML5 with Canvas.
Essentially W3 is trying to replace flash with this feature.

How to use flash game engine? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I have learn AS3 for sometime and I really want to continue develop it in social game flatform. However, I have never used any engine before and I am really confused about what is everything I download from those( a bunch of AS file T_T). Since I learn flash and as3 by myself so it's hard for me to figure out everything by myself.
Could anyone teach me how to use those? Is there any tutorial out there about this area?
There are a lot of good tutorials on social game development on the web. One of the best sites is http://www.emanueleferonato.com/, there you may find lots of tutorials and code samples on game development, game/physics/3d engines tests and comparisons.
Start with this article.