GFXVoid.com Graphic Design Forums  

Go Back   GFXVoid.com Graphic Design Forums > Tutorials > Web Development / Coding Tutorials > Flash Tutorials

Register Now for FREE!
Our records show you have not yet registered to our forums. To sign up for your FREE account INSTANTLY fill out the form below!

Username: Password: Confirm Password: E-Mail: Confirm E-Mail:
 
Image Verification
Please enter the six letters or digits that appear in the image opposite.

  I agree to forum rules 



» Stats
Members: 28,703
Threads: 54,550
Posts: 479,819
Welcome to our newest member, XGen
Reply
 
Thread Tools Display Modes
  #1  
Old 08-05-2005, 02:53 PM
1337elite's Avatar
1337elite 1337elite is offline
Voidster
 
Join Date: May 2005
Location: Sweden
Posts: 345
1337elite is a helpful member!
Send a message via ICQ to 1337elite Send a message via AIM to 1337elite Send a message via MSN to 1337elite Send a message via Yahoo to 1337elite
Default

In this tutorial you need:
Flash MX

Well this is about making an object moving through the scene!
Not with Motion Tween - With Actionscript(AS).
So let's begin!

Step I
Make a new Flash Document.
Create a ball with the ellipse tool.

Step II
Now this is where the fun begins!
Select you ball and make it a Movieclip(MC) by pressing F8 on your keyboard.
Name it like "Ball" or "Circle" or something(doesn't really matter).

Step III
In the bottom on your workspace it should be a tab called "Actions - Objects".
Click it.
Now the tab should "pop" up(not like a internet pop-up).
Click on your ball and write:
Code:
onClipEvent(enterFrame){
 * * * this._y --;
}
So time for some explanation!
Code:
onClipEvent(enterFrame)
What this does is that it enters a frame at the frame rate that the user specified(you can see it under your timeline ).
Double click it to change it(i recommend 30FPS).

Code:
this._y --;
The code above says to the object to move to the direction Y-, and that is Up.
I'll show you how it works in Flash.
---------------------------------------------
|

As you can see, the Flash way, Y Directions is Mirrored.
I don't really get that myself, but i can live with it. :lol:
So test your movies out and have fun!
I hoped you learned something!
Til' next time! B)

Result:

(Click here if you want to see my result)
__________________
Noooooo! My old signature is gone! Gone forever!!!
*sniff*
New one!
Reply With Quote
  #2  
Old 08-05-2005, 04:09 PM
kickmyflip kickmyflip is offline
Voidster
 
Join Date: Jan 2005
Posts: 268
kickmyflip is a helpful member!
Default

good job, i think i got enough in my brain to figure out how to use flash mx on my thanks alot for your help.
__________________
GFXVoid!
Reply With Quote
  #3  
Old 08-05-2005, 04:51 PM
ilovecoheed ilovecoheed is offline
My title ran away... :(
 
Join Date: Jun 2005
Location: Iowa
Posts: 1,320
ilovecoheed is a helpful member!
Send a message via AIM to ilovecoheed Send a message via MSN to ilovecoheed Send a message via Yahoo to ilovecoheed
Default

lol i had a tut on how to make realistic gravity, but it's been so long since i've used flash i can't remember...lol ill work on it tho
__________________


Reply With Quote
  #4  
Old 08-05-2005, 05:14 PM
1337elite's Avatar
1337elite 1337elite is offline
Voidster
 
Join Date: May 2005
Location: Sweden
Posts: 345
1337elite is a helpful member!
Send a message via ICQ to 1337elite Send a message via AIM to 1337elite Send a message via MSN to 1337elite Send a message via Yahoo to 1337elite
Default

The thing you need to know is math..
I know how to make a Physics engine.
__________________
Noooooo! My old signature is gone! Gone forever!!!
*sniff*
New one!
Reply With Quote
  #5  
Old 08-05-2005, 05:59 PM
ilovecoheed ilovecoheed is offline
My title ran away... :(
 
Join Date: Jun 2005
Location: Iowa
Posts: 1,320
ilovecoheed is a helpful member!
Send a message via AIM to ilovecoheed Send a message via MSN to ilovecoheed Send a message via Yahoo to ilovecoheed
Default

so do i...i just can't remember at the moment lol...anywayz i have to leave for a concert right meyaw so c ya
__________________


Reply With Quote
  #6  
Old 08-05-2005, 06:08 PM
1337elite's Avatar
1337elite 1337elite is offline
Voidster
 
Join Date: May 2005
Location: Sweden
Posts: 345
1337elite is a helpful member!
Send a message via ICQ to 1337elite Send a message via AIM to 1337elite Send a message via MSN to 1337elite Send a message via Yahoo to 1337elite
Default

cya
[kinda empty so i'll add this]
__________________
Noooooo! My old signature is gone! Gone forever!!!
*sniff*
New one!
Reply With Quote
  #7  
Old 08-06-2005, 12:05 PM
Illegalx17 Illegalx17 is offline
Community Addict
 
Join Date: Mar 2005
Location: Insanity Sq.
Posts: 3,810
Illegalx17 is a helpful member!
Send a message via AIM to Illegalx17 Send a message via MSN to Illegalx17
Default

Hmm, good tutorial for beginners, though it is very simple. I'd be interested in seeing that physics engine. Also, you were wrong on the x & y axis. Flash doesn't mirror it, it just mirrors the Y axis. You are wrong on the x axis normally. The x axis always goes from left to right, ascending.
__________________
If you want help...
Screw you
If you make sigs...
Screw you
Reply With Quote
  #8  
Old 08-06-2005, 01:26 PM
1337elite's Avatar
1337elite 1337elite is offline
Voidster
 
Join Date: May 2005
Location: Sweden
Posts: 345
1337elite is a helpful member!
Send a message via ICQ to 1337elite Send a message via AIM to 1337elite Send a message via MSN to 1337elite Send a message via Yahoo to 1337elite
Default

The flash(i like calling it like that) mirrors it. In visual Basic(in my understanding) X- Is left. In flash it is X+.

And as the title says; Simple Actionscripting.
__________________
Noooooo! My old signature is gone! Gone forever!!!
*sniff*
New one!
Reply With Quote
  #9  
Old 08-06-2005, 01:47 PM
Illegalx17 Illegalx17 is offline
Community Addict
 
Join Date: Mar 2005
Location: Insanity Sq.
Posts: 3,810
Illegalx17 is a helpful member!
Send a message via AIM to Illegalx17 Send a message via MSN to Illegalx17
Default

I wasn't bagging on you for it being simple, thats fine, you don't have to defend yourself. And i don't know about visual basic, but in normal, real life, X+ is going to the right. Think about algebra 1, remember plotting graphs and stuff? Heres some links

http://srmwww.gov.bc.ca/risc/pubs/teecolo/...ssets/hmgf6.gif
http://members.jcom.home.ne.jp/maegawa/pub...s-d/xy2ps-3.png
http://www.pen.k12.va.us/Div/Winchester/jh...ebra/grapha.jpg

If you still dont believe me, just go to google and search "X and Y axis".
__________________
If you want help...
Screw you
If you make sigs...
Screw you
Reply With Quote
  #10  
Old 08-06-2005, 01:53 PM
1337elite's Avatar
1337elite 1337elite is offline
Voidster
 
Join Date: May 2005
Location: Sweden
Posts: 345
1337elite is a helpful member!
Send a message via ICQ to 1337elite Send a message via AIM to 1337elite Send a message via MSN to 1337elite Send a message via Yahoo to 1337elite
Default

um.. test it for youself.. if you write :
Code:
onClipEvent(enterFrame){
	this._y --;
}
It's going up... and those algebra graphs show that y- is down... test it and you'll see...

We misunderstood eachother.. hehe and i wrote wrong above your post... hehe...
Sorry.. :unsure:
__________________
Noooooo! My old signature is gone! Gone forever!!!
*sniff*
New one!
Reply With Quote
Reply

Thread Tools
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple sig Tyson Signature Showcase 8 08-26-2005 10:16 AM
Simple Sig *Peng* Signature Showcase 5 07-15-2005 02:38 PM

Powered by vBadvanced CMPS v3.2.0

All times are GMT -5. The time now is 10:19 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
HTML Help provided by HTML Help Central