#1  
Old 06-16-2009, 01:52 AM
600256 600256 is offline
Member
Join Date: May 2009
Posts: 48   (View Stats)
600256 is on a distinguished road
Not Ranked  0 score     
Default How to start using AS3

Hey guys,

I am not a huge flash maniac and still use AS2 these days. Now I want to learn to use AS3 but feel that it is quite a difference with the easy-style coding of AS2.

Do you guys have any good tutorials or articles to get me started?
Reply With Quote
  #2  
Old 06-23-2009, 10:49 AM
shimer shimer is offline
Member
Join Date: Jun 2009
Posts: 68   (View Stats)
shimer is on a distinguished road
Not Ranked  0 score     
Default

Im nt too sure, but i can tell u hw to make a dress up game using AS3.

This is a simple tutorial that will teach you how to use the drag and drop system that is common in games such as dress up, tower defense, and any other games where you will need to be dragging objects around the screen.

The first thing you'll want to do is draw the things that you will be dragging. Draw the object and select it. Now hit F8 and name it whatever you like. You'll want to be sure you select the button option though. Now that the object you will be using is on stage, you'll want to give it an instance name. Click it and give it the whatever instance name you want. I named mine myItem.

Now for the coding part. Go into the code of the button and put this in:

on (press) { // when your press the button

startDrag(""); // start the dragging

} // end of script

on (release) { // when you release the mouse button

stopDrag(); // stops the dragging

} //end of script

Now hit Control+Enter to test your flash and see if it works. You should be able to drag your object around the screen. If it seems a little awkward, try changing the frame rate to a more smooth 20 or 25. You can put this dragging code into as many buttons as you wish. You can even make all your objects on separate layers to choose which objects will appear above or below the others. This is useful for dress up games, in which you will want to have certain objects above other ones.

That's it for the drag and drop tutorial. This should have you making dress up games in no time. Pretty simple right?
Reply With Quote
  #3  
Old 06-24-2009, 01:38 AM
hunterluffy hunterluffy is offline
Junior Member
Join Date: Jun 2009
Posts: 22   (View Stats)
hunterluffy is on a distinguished road
Not Ranked  0 score     
Default

Nice tips guys

Thanks
Reply With Quote
  #4  
Old 06-27-2009, 08:41 AM
shimer shimer is offline
Member
Join Date: Jun 2009
Posts: 68   (View Stats)
shimer is on a distinguished road
Not Ranked  0 score     
Default

Ya sure. no prob. if there is anythng more that you require then let me knw.
Reply With Quote
  #5  
Old 11-21-2009, 11:50 AM
albertson77 albertson77 is offline
Junior Member
Join Date: Oct 2009
Location: n carolina
Posts: 10   (View Stats)
albertson77 is on a distinguished road
Send a message via ICQ to albertson77
Not Ranked  0 score     
Default

Quote:
Originally Posted by shimer View Post
Im nt too sure, but i can tell u hw to make a dress up game using AS3.

This is a simple tutorial that will teach you how to use the drag and drop system that is common in games such as dress up, tower defense, and any other games where you will need to be dragging objects around the screen.

The first thing you'll want to do is draw the things that you will be dragging. Draw the object and select it. Now hit F8 and name it whatever you like. You'll want to be sure you select the button option though. Now that the object you will be using is on stage, you'll want to give it an instance name. Click it and give it the whatever instance name you want. I named mine myItem.

Now for the coding part. Go into the code of the button and put this in:

on (press) { // when your press the button

startDrag(""); // start the dragging

} // end of script

on (release) { // when you release the mouse button

stopDrag(); // stops the dragging

} //end of script

Now hit Control+Enter to test your flash and see if it works. You should be able to drag your object around the screen. If it seems a little awkward, try changing the frame rate to a more smooth 20 or 25. You can put this dragging code into as many buttons as you wish. You can even make all your objects on separate layers to choose which objects will appear above or below the others. This is useful for dress up games, in which you will want to have certain objects above other ones.

That's it for the drag and drop tutorial. This should have you making dress up games in no time. Pretty simple right?
your avatar in another diminution?
Reply With Quote
Reply

Bookmarks

Tags
as2, as3, flash

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

welcome to webdesign-spot, the community for webdesigners, webmasters and webdevelopers. Find the latest webdesign news, the best articles, blogposts, the webdesign software you have allways been looking for, Video Tutorials, or just different information on relevant subjects like: Flash AS2, Flash AS3, Javascript, PHP Usability, SEO, Markting, Advertising, Illustration, and more.

All times are GMT. The time now is 06:15 AM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright Webdesign-spot.com - Webdesign by Sjimwagemakers.nl