Page 3 of 4

Re: The Barracks needs a new forum logo!

PostPosted: Sat Jun 19, 2010 3:19 am
by SlntCobra1
Yea, that's a real fair idea for those of us who know how to create stuff in Flash. The best I can do is tweening. :(

Not even the tutorials on NG help me. :'( I've tried over and over again using tutorials to make buttons, but I can never figure out why they never put something in the () part of the coding. >_< :'(

Re: The Barracks needs a new forum logo!

PostPosted: Sat Jun 19, 2010 3:27 am
by ByteSlinger
SlntCobra1 wrote:Yea, that's a real fair idea for those of us who know how to create stuff in Flash. The best I can do is tweening. :(

Not even the tutorials on NG help me. :'( I've tried over and over again using tutorials to make buttons, but I can never figure out why they never put something in the () part of the coding. >_< :'(


Cobra, you missed the point - even if you can make a simple flash animation, you can contribute to the collab. It's no longer "who's best" - it's "let's all put something in to give it our personal touch". There won't be any "winners" or "losers" - just the members of the EGB that can do flash, regardless of the level. Tweens are fine - you won't need actionscript for this flash. It should be simple and done from the heart! :D

*Salutes*

Re: The Barracks needs a new forum logo!

PostPosted: Sat Jun 19, 2010 4:01 pm
by Ismael92
SlntCobra1 wrote:Yea, that's a real fair idea for those of us who know how to create stuff in Flash. The best I can do is tweening. :(

Not even the tutorials on NG help me. :'( I've tried over and over again using tutorials to make buttons, but I can never figure out why they never put something in the () part of the coding. >_< :'(


If you need help with ActionScript, why don't you ask for help in NG's flash forum? I assume you're using AS2, so that's why I don't offer my own help.

The reason why "they never put something in the () part of the coding" is because while some functions and methods need parameters, some don't.
For example, the play() method doesn't need any special parameters, but gotoAndPlay() does (because you need to tell flash which specific frame you want to go to and play. This example is valid for all versions of ActionScript ;)

If you don't want to post in NG's Flash forum, but you still want to know more, make a new topic in this forum and I'll do my best to help you. However, bear in mind that pretty much the only version of AS I know is AS3 :)

Re: The Barracks needs a new forum logo!

PostPosted: Sat Jun 19, 2010 4:08 pm
by SlntCobra1
Dude, I'm trying to learn AS3 ANYWAY! >_< Why are you just telling me this now!? o_0 :shock: :shock: :o :o :x :x

Re: The Barracks needs a new forum logo!

PostPosted: Sat Jun 19, 2010 5:02 pm
by Ismael92
SlntCobra1 wrote:Dude, I'm trying to learn AS3 ANYWAY! >_< Why are you just telling me this now!? o_0 :shock: :shock: :o :o :x :x


Sorry, since you talked about making buttons and there not being anything enclosed within brackets, I assumed you were working with AS2 and using the onRelease() method. If you're using AS3, then I may be able to help you after all :)

Once again, I encourage you to make a new thread in NG or in here if you have any specific problem you need help with.

Re: The Barracks needs a new forum logo!

PostPosted: Sat Jun 19, 2010 10:09 pm
by ByteSlinger
Regarding why some functions in action script have empty () (parens):

ActionScript took its programming cue from Java and C++, where every module of code is called a function. As a functional block of code, it could have values and parameters into it (these are the values that you include between the parens), do some of its own logic, and then return a value.

However, some functions just perform actions that do not require any passed-in values, such as Math.random(). Technically speaking, the number of parameters expected in this function is ZERO (none). Since the syntax of calling a function always requires parenthesis to show the list of parameters, you still need to include them even if no parameters are needed.

Another take on functions: Most of the time, when you call a function, you will be assigning the value it returns to a variable, such as:

fRandomValue = Math.Random();

But there are times we don't care about what is returned - we just want the function to just go and do something already:

GotoAndPlay(334);

This function will jump the current frame to 334 and continue on playing. Any errors or response codes are just ignored.

The hardest part is keeping track of what functions require what parameters, if any - and if the returned value is needed or not. But just remember that you ALWAYS need to have a pair of parenthesis at the end of all function calls, even if you have nothing in between.

Hope this helps! :D

Re: The Barracks needs a new forum logo!

PostPosted: Sat Jun 19, 2010 10:42 pm
by SlntCobra1
Well after a while I guess I did start semi-getting the hang of AS3.0. Anyway, do you have Flash CS4 Ismael? Or is it Macromedia Flash MX? Because Flash CS4 has an AS library and I tried using that for my buttons, but when I tested it, the buttons just kept disappearing. I know how to make a button, but keeping it from disappearing and working I know jack shit!

Re: The Barracks needs a new forum logo!

PostPosted: Sat Jun 19, 2010 10:47 pm
by Ismael92
SlntCobra1 wrote:Well after a while I guess I did start semi-getting the hang of AS3.0. Anyway, do you have Flash CS4 Ismael? Or is it Macromedia Flash MX? Because Flash CS4 has an AS library and I tried using that for my buttons, but when I tested it, the buttons just kept disappearing. I know how to make a button, but keeping it from disappearing and working I know jack shit!


Yes, I have Flash CS4, but I've never used the library. If something disappears, probably it's because there is a blank keyframe (a frame that has nothing on it) on the button's layer after you click the button. What are you using your button for? If you need help with AS, just copy/paste the code you're using here and I may be able to help you, though according to what you say the button is working just fine.

Re: The Barracks needs a new forum logo!

PostPosted: Sat Jun 19, 2010 10:51 pm
by SlntCobra1
:lol: :lol: :lol:

YAY! Finally someone who knows what he's talking about. But I'm not going to go into flash and all that at this late hour. :) Thanks Ismael.

Re: The Barracks needs a new forum logo!

PostPosted: Mon Jun 21, 2010 11:22 pm
by ByteSlinger
SlntCobra1 wrote::lol: :lol: :lol:

YAY! Finally someone who knows what he's talking about. But I'm not going to go into flash and all that at this late hour. :) Thanks Ismael.


It's really not that hard, once you under the concept of object-oriented programming and coding event handlers. A language is a language - and AS3 is so close to C++ it's really easy to make that jump.

If you have coding questions, maybe we need to open up a Flash Coders forum somewhere here to help us all along?

Re: The Barracks needs a new forum logo!

PostPosted: Mon Jun 21, 2010 11:30 pm
by EagleRock
ByteSlinger wrote:If you have coding questions, maybe we need to open up a Flash Coders forum somewhere here to help us all along?


Well, in the old forums, some forums were sorely under-used. "Flash" was one of them. Therefore, the Barracks Rec Room combines those forums into one location. If you want to create Flash collabs, ask questions, it can all go here. I'd just rather have them all in one forum that's used more often than many that are not

So, if you do have a question, feel free to create a thread here. That's what the place is for. :D

Re: The Barracks needs a new forum logo!

PostPosted: Fri Jun 25, 2010 11:07 pm
by ByteSlinger
Out of curiosity, has any else come up with their idea for a logo yet? I had half-expected there to be about 4 or 5 by now that we could be kicking around. Come on, guys, summer is here - you should have a little time to get creative....

I mean, I do know a bit about Photoshop - but a lot of you have much more raw talent than I do when it comes to freehand style and drawing. I was hoping to see some examples of that talent...

...any takers yet?

Re: The Barracks needs a new forum logo!

PostPosted: Sat Jun 26, 2010 2:54 am
by EagleRock
ByteSlinger wrote:Out of curiosity, has any else come up with their idea for a logo yet? I had half-expected there to be about 4 or 5 by now that we could be kicking around. Come on, guys, summer is here - you should have a little time to get creative....

I mean, I do know a bit about Photoshop - but a lot of you have much more raw talent than I do when it comes to freehand style and drawing. I was hoping to see some examples of that talent...

...any takers yet?


Yeah, don't get complacent just because we quickly threw up a logo. I'd like to get more of the Barracks involved to make the logo more meaningful!

Re: The Barracks needs a new forum logo!

PostPosted: Sat Jun 26, 2010 8:15 am
by SlntCobra1
I would've thrown a couple of my ideas up here but I've been busy helping my mom clean, playing my guitar, doing other chores all this week. As well as gettin' mah kompooter fixded up!

;)

Re: The Barracks needs a new forum logo!

PostPosted: Sat Jun 26, 2010 4:55 pm
by Ismael92
ByteSlinger wrote:Out of curiosity, has any else come up with their idea for a logo yet? I had half-expected there to be about 4 or 5 by now that we could be kicking around. Come on, guys, summer is here - you should have a little time to get creative....


I'm sorry, I couldn't come up with anything good :(