Welcome to Dream.In.Code
Getting Help is Easy!

Join 132,261 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,163 people online right now. Registration is fast and FREE... Join Now!




Flash Challenges

 
Reply to this topicStart new topic

Flash Challenges

pioSko
post 19 May, 2006 - 10:08 AM
Post #1


still.dreaming

Group Icon
Joined: 6 Jun, 2003
Posts: 1,888



Thanked 3 times

Dream Kudos: 225
My Contributions


Alright guys, I've decided to post small Flash "challenges" for anyone to try. Majority will be based on mathematics simulations that I have everyday here at work. I'll try to have each challenge split into a number of parts starting from easy beginnings to "Holy Shit", so that everybody can at least try each challenge. The final parts will be difficult. I'll be around to help anybody that wants it, so feel free to post on the Flash & ActionScript boards.

Flash Challenge "Rules":
1. Use ActionScript and as little library objects as possible.
2. Don't panic. Ask for help wink2.gif
3. When using a library object make sure you tell us that in the documentation or post.
4. If somebody has already posted a solution to one of the challenges:
* Beginners: Try to do your own script from scratch using an exsisting solution as a guide.
* !Beginners: Either do your own "better" version or simplify an existing solution.
5. This thread is for challenge briefs. Do NOT post your solutions in this thread.
6. Start every Challenge on Part I.. Don't skip any parts.
7. Post your solutions to ALL the parts you've attempted, not just the last one.

Here goes smile.gif
User is offlineProfile CardPM

Go to the top of the page

pioSko
post 19 May, 2006 - 10:10 AM
Post #2


still.dreaming

Group Icon
Joined: 6 Jun, 2003
Posts: 1,888



Thanked 3 times

Dream Kudos: 225
My Contributions


Flash Challenge #1 - A rectangle

PART I
Draw a rectangle with dimentions 200px wide and 100px high. The rectangle should be positioned at coordinates x=200, y=200.

PART II
Draw 3 rectangles with different colour outlines and dimentions 100px by 50px, 80px by 25px and 60px by 120px. They can be positioned anywhere on the screen.

PART III
Draw a rectangle anywhere on the stage, with dimentions 200px by 100px. Eash side of the rectangle must react to mouse interaction (like a button) with the following styles for states: on up #000099 2px, on over #990000 2px, on down #009900 3px.

PART IV
Draw a rectangle anywhere on the stage, with dimentions 200px by 100px. Eash side of the rectangle must react to mouse interaction (like a button) with the following styles for states: on up #000099 2px, on over #990000 2px, on down #009900 3px. Each side must have a label with current dimentions displayed (use library object if neccessary.. extra cred if you don't) and must be positioned in the middle of the line and just outside the rectangle. When pressed and dragged, the side should move and follow the mouse along one axis. The rest of the rectangle must resize. Dimention's labels and their position must update.

PART V - Holy Shit
Draw a rectangle centered on the stage, with dimentions 200px by 100px. Eash side of the rectangle must react to mouse interaction (like a button) with the following styles for states: on up #000099 2px, on over #990000 2px, on down #009900 3px. Each side must have a label with current dimentions displayed and must be positioned in the middle of the line and just outside the rectangle. When pressed and dragged, the side should move and follow the mouse along one axis. The rest of the rectangle must resize. Include 4 corner points (8px diameter dots) which have mouse interaction. When dot pressed and dragged, the rectangle should rotate corresponding to mouse movement and dots must remain positioned on the rectangle's corners. Dimention's labels and their position must update, but must not rotate.


Discussion and solutions here
User is offlineProfile CardPM

Go to the top of the page

skyhawk133
post 19 May, 2006 - 11:13 AM
Post #3


Head DIC Head

Group Icon
Joined: 17 Mar, 2001
Posts: 14,844



Thanked 45 times

Dream Kudos: 1650

Expert In: Web Development

My Contributions


For those interested in trying the challenges but you don't have Flash, you can download a free 30 day trial directly from Adobe (formerly Macromedia):

http://www.adobe.com/cfusion/tdrc/index.cfm?product=flashpro
User is offlineProfile CardPM

Go to the top of the page

RiazMC
post 18 Dec, 2006 - 06:21 PM
Post #4


New D.I.C Head

*
Joined: 18 Dec, 2006
Posts: 1


My Contributions



Ok im having trouble with the first challenge! Where would i even start!
User is offlineProfile CardPM

Go to the top of the page

pioSko
post 18 Dec, 2006 - 11:59 PM
Post #5


still.dreaming

Group Icon
Joined: 6 Jun, 2003
Posts: 1,888



Thanked 3 times

Dream Kudos: 225
My Contributions


Heres the discussion page smile.gif

http://www.dreamincode.net/forums/showtopic16324.htm
User is offlineProfile CardPM

Go to the top of the page

sharkyvk
post 3 Aug, 2008 - 10:11 AM
Post #6


New D.I.C Head

*
Joined: 3 Aug, 2008
Posts: 4


My Contributions


QUOTE(pioSko @ 19 May, 2006 - 11:08 AM) *

Alright guys, I've decided to post small Flash "challenges" for anyone to try. Majority will be based on mathematics simulations that I have everyday here at work. I'll try to have each challenge split into a number of parts starting from easy beginnings to "Holy Shit", so that everybody can at least try each challenge. The final parts will be difficult. I'll be around to help anybody that wants it, so feel free to post on the Flash & ActionScript boards.

Flash Challenge "Rules":
1. Use ActionScript and as little library objects as possible.
2. Don't panic. Ask for help wink2.gif
3. When using a library object make sure you tell us that in the documentation or post.
4. If somebody has already posted a solution to one of the challenges:
* Beginners: Try to do your own script from scratch using an exsisting solution as a guide.
* !Beginners: Either do your own "better" version or simplify an existing solution.
5. This thread is for challenge briefs. Do NOT post your solutions in this thread.
6. Start every Challenge on Part I.. Don't skip any parts.
7. Post your solutions to ALL the parts you've attempted, not just the last one.

Here goes smile.gif


Hi Is this post still being read and replied to if I try to make these questions/scripts.

THX
User is offlineProfile CardPM

Go to the top of the page

BetaWar
post 7 Aug, 2008 - 06:27 AM
Post #7


#include <soul.h>

Group Icon
Joined: 7 Sep, 2006
Posts: 1,983



Thanked 78 times

Dream Kudos: 1175
My Contributions


When you reply to them it will be bumped to the top and people will see, that way we will know when you have posted in it and may be able to help you out.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/21/08 11:24PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month