Added: 4 years ago
From: tutvid
Views: 209,599
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:
see all

All Comments (290)

Sign In or Sign Up now to post a comment!
  • Hi. The problem that I encounter is that upon clicking on the equal button, there isn't any answers being displayed on the results_txt box. I also encounter this problem for subtraction, multiply and divide. How come? I need help. Btw, Im using CS5.

  • Comment removed

  • nice tutorial,

    try this to avoid some declaration

    if (plusSym==true) { results_txt.text=String(parseI­nt(num1.text)+parseInt(num2.te­xt)) }

    ;-)

  • @simoulis thx :)

  • hm when i do what u exemplify at 6:50 - 7:18 approx then go back to scene one my + button turns neon blue as if permanently selected and when i run the animation it doesn't appear on it. im on a macbook running adobe cs4 and some of the text editing tools aren't there. :/

    dunno how to google the issue lol why do u think this is

  • Comment removed

  • Hello!

    I have made your calculator, really great! What I would like to add to my calculator is that it will not be possible to move forward in production, but that all text fields are filled out and in that case the program sends a message to them that it must fill in all fields to production work. Could you be very kind and help me with this problem?

    Thanks in advance

  • I am using CS5.5 and I was still able to follow this tutorial. That was awesome.....

  • n1 tut thx keep it up

  • Thanks for the tutorial.

    BTW: if instead of using 4 booleans you use an int, then you can use a switch statement and save a lot of code.

  • i type 1000000000000000000 in the 2 boxes, but the answer i -2434

  • i tried the same thing but when i try typing into my inputs the numbers keep getting deleted for some reason, can someone help me?

  • i tried the same thing but when i try typing into my inputs the numbers keep getting deleted for some reason, can someone help me?

  • @nicheh123 you probably need to embed the font.

    make sure you checked the following items when embedding the font: Basic Latin and Latin I. It should fix it. 

  • Really nice tutorial, very clear and understandable! I would recommend this to anyone who is starting out in flash action script so people can understand Listeners and Variables and basic text fields.

    ps - this works fine in Flash CS5.5

  • Hi, I followed your tutorial exactly as you did so far (till around 30:00), but I'm using Flash CS5.5, so it's a bit different. However, the buttons won't show me the + - x / when I click on them, while they did work with the trace function. Do you know what I could've done wrong? Any help would be appreciated. Thanks in advance.

  • Hmmm, I've tried again from the beginning and this time I've made it work! :D Thanks for the tutorial! Had to make one as homework. :P Fav'd and subscribed.

  • @SomebodyElse88

    if you are getting " Fonts should be embedded for any text that may be edited at runtime, other than text with the "Use Device Fonts" setting. Use the Text > Font Embedding command to embed fonts."

    try using a different text in the field box I had this problem when using Times New Roman. I change it to Tahoma text and it works fine now.

  • Hi, I want to make this: text field equal to zero and two buttons +1 and -1. When I press +1 it just adds 1 and -1 subtracts 1

    Can you give a hint for it?

  • thanks... now im going to go do this all again, but in javascript... :)

  • Long toturial but easy informing and well done!

  • thanks for this lesson, you save my life jejejej

  • phinditt. com/phindservices web design , web programming , flash programming

    seo services , html , css , ajax , php , graphic design, logo design

  • awesome-ness

  • Easy and fun!

  • Outstanding job! I wish all tutorials were as well explained.

    For all the morons asking for the code; You learn by doing, not by copy and pasting. That's the problem with so many, they abuse C&P and a year later still have no idea how to type the most simple function.

    Also for the ones complaining about time. Seems like you can never make everyone happy. If people rush and skip steps, they get hell for it. People take their time to present a thorough masterpiece such as this still some whine.

  • "deselect the text by re-selecting the selection tool"

  • !!!!!!! IMPORTANT !!!!!!!!

    this tutorial is out of date and doesnt work with CS5

    Might still work with CS3 and CS4 not sure.

  • @reuel88

    What's wrong with it on your end? I have no issues but did have one small instance where I had 2 equals signs instead of one toward the end and after about an hour of checking my AS3 finally found it. Up until then when I hit the equals key I got "Nan". I saw your post and was about to give up. Glad I didn't, and learned a lot. Message me if you want to try my code since not all errors seem to be detected and Flash CS(anything) misses quite a few actually.

  • @Danbo342 never mind, forget my pm, i figured it out

  • @reuel88 it works for me and im on CS5

  • I cant type numbers in to the text fields... anyone?

  • @911MMM123MMM911

    same here, cant type numbers in text field.. CS5.

  • @blawnbled first of all, select one of the input boxes (num1 or num2). in the Properties Panel, under where it says TLF Text/Classic Text, change Read Only/Selectable to Editable.

    by the way i just started using Flash lol

  • @gurenig thanks. I figured i had to switch from classic to tlf text. that worked for me :)

  • Comment removed

  • you're going to make me rich!

  • Awesome tutorial, gave me so many ideas for my university homework 5/5=1 o.O

  • thanks!! you saved my final year project!!!

  • Comment removed

  • 51 minutes and more. the time you need to do it when he performs takes a while. I'm @ 2 hours now. Got distracted under the "numbers line" and now its F..cked up somehow. Going further tonight. Good tutorial. I'm just beginning with flash so I find it not so easy. But now I understand a bit more what flash is. A whole lot of typing in a code ;) After 15 minutes it begins. But I'm gonna finish my calculator :)

  • Great work!!!

  • 51 minutes?! Holy

  • Sweet tut.

    Ah. Did UPJ not understand what was going on?

    Never mind eh.

  • I am doing your tutorial and it looks great. I tried to ad a "%" symbol and everything worked except in the section where it parses the percent symbol. Any clue how to fix it?

    Thanks, Chuck

    I used to do an easy 2.0 Calculator and I was disappointed that it doesnt work using FLASH CS4 or better.

  • "Booooolean"... lol

  • LOL That went for 50 minutes !!!! xD

  • what a waste of time.

  • oh man thank you! really thats so cool :)

  • hey thanx 4 dis tuto.

  • hey. thanx 4 dis tuto.

  • YOU SIR ARE GOD

    THANK YOU!

  • Comment removed

  • where is the video?..

  • I followed your tutorial completely and when i was done it says: 1084: Syntax error: expecting rightbrace before Please enter an operator. Please help!

  • How did you learn action script 3.0 i rrealy want to learn it to make games for my website

  • your tutorial was awesome!!!!  looking forward for more tutorials and hope it will do something about making a flash game:D

  • damn, son. I could've spent hours trying to interpret wtf they were saying in the help dialogue, I just watched this for an hour and have everything I need to make a decent app. Thx, brah.

  • THANK YOU THANK YOU THANK YOU!

  • Thumbs up if you watched it all and compiled your calculator with no errors :D

  • Dude, u rock!

  • very good video! u help me a lot learning the actionscript alone!

  • perfect explanation, very acessible for everyone.

    thanks A LOT for this tutorial and keep up the good work ^^

  • very well explained

  • Why do you use these line?

    plusRes.toString();

    That make no sense!

    You only convert the number to a string at this line results_txt.text = String(plusRes);

    And why do you use for every calculation an own var?

    It is stupid, you can use only one var for all calculation. That is more easy to write and it is smaller and better.

  • Great video. Got to learn a lot from it.

    Keep up the good work !!

  • hey, great vid. I really liked it.

    For everyone who wants more help with programming check out my channel. I make tutorials in all areas of programming

  • holy fuck.. all that for a calculator?????  seriously copy and paste this in run and i can do it in 5 seconds %SystemRoot%\system32\calc.exe

    i understand its not for the purpose of the calculator but for educational purposes but seriously? thats extreme. id shoot myself before watching this.

  • @moniters

    stfu and dont watch it if you dont want!

  • @moniters what the advantage of doing this in adobe flash is that it can be implemented into webpages and such, and he is showing the basic code, so programmers are free to edit it according to their intentions.

  • figured out my question about adding floating numbers. instead of using parseInt use parseFloat. Its an easy change, just had to find the function in the index. Also make sure you change your restrictions to the text box, num1.restrict = "0-9, ."; Thanks for the great tutorial. I must say creating those buttons gave me tough time, not sure why.

  • quick question. is it possible to make this calculator work with decimals. I changed the text boxes so that decimals are allowed but the math just drops everything after the decimal. From my understanding Number in actionscript includes floating point numbers so I am not sure what to try. Anyone have any suggestions.

  • YOUR VIDEO'S SOUND IS STUCK ON THE LEFT SPEAKER ONLY

  • @0ChrisMackle0

    than use a headset like me :)) ;)

  • @tutvid brother first at all i wanna say thank u for this video it make me learn some of the actionScript secand i just wanna ask u a question in the div opretion i guess we have to change the type of the resulat to a real or a double i don't really what is it but i guess u know what i'm tolking about. plz let me know and thax

  • OMG THATS A LONGASS VIDEO

  • Thanks, this helped me out.

  • WTF!?

    i got to the function plusClick(event:MouseEvent);vo­id{

    plusSym = true

    subSym = false;

    multSym = false;

    divSym = false;

    }

    bit of the tut and i test the movie with everything in place and it comes up with

    expecting colon before assign for all of them?

    (Flash CS4 AS3)

  • ummm why did you repeat the MouseEvent CLICK twice! o.O

  • Wow My Computer Crashed When I Was Testing The Movie Clip

    But My Computer Is Just A Bit Bad

    Good Tutorial :D

  • How to see if a txt file file exists???

    in ActionScript 3.0??

  • Looking for great flash tutorials, check out frenchsquared (dot) com. All tutorials include source files.

  • what kind of software are you using

  • How i put square root on it?

  • @cesarox1 Well unless there is a sqrt() dunction in it you will have to calculate some Taylor series.

  • Wow, this seems a hell of a lot harder than AS2. I followed it and it's working great (I need to get into AS3) just seems like a much harder way to code than AS2. Now, onwards, to another AS3 tut! Haha.

  • I got the calculator down. The trace works. I get no errors with check up nor in the compiled error log.

    Problem: I can't type in anything in the num1, num2 inputs.

    the + buttons works fine and also show up on stage when I click on them however.

    When I click on =. answer is NaN :S

  • did someone notice that the video kinda repeats?

  • @rocklee6798

    yes I did:)

    but besides that, it's a great movie. thank you!

  • Could you please mail me the code many thnx

  • When i follow and press plus it deos not come up with a number 1

    And when i run it in the compiler errors it says:

    Scene1, layer "actions" Frame 1: line 1: 1120 access of undefined property plus_btn (then line of script) same with others?

  • Great : what a good way of teaching. amazing tutorial. i am really impress with your way of teaching.

    can you tell me that if you have more tutorials of Flash ActionScript3. looking for more tutorials from you. Thanks again. very good way of teaching.

  • titsvid lol

  • THIS IS A GREAT AND EASY TO UNDERSTAND VIDEO... how would you change the code if you were to use a comboBox with integers?

  • awesome just wonder it is the same code for ActionScript 2.0 or ??? thank you

  • definitely not the same, 2.0 and 3.0 are very much opposite. =)

  • Great tut. I'm no actionscript guru but it feels like a lot of this code could be shortened with for loops, but I appreciate that you didn't prefer for loops to make it clear for all levels of actionscriptors. Nice job.

  • Heheh)) nice calculator.

  • great tutorial. you go over a lot of helpful concepts.

  • Great video...

  • Thx heaps tutvid!

    Wrote my very first lines of code in any form today thx to u,is it right?

    }if(result_txt.text == "Infinity"){

    result_txt.text = "O_o";

    }if(result_txt.text == "80085"){

    result_txt.text = "( . \Y/ . )";

    }

    Couldnt find a font to display the forward slash though lol.....

    Try adding 80085 & 0,then divide them as well...

  • too long

  • Perfect mate.... I had subscribed.....rated 5/5...

    Looking for more flash tuts...... from u...

  • this is cool!!!!! i did it it works perfectly

  • Why do you need a tutorial, all you need to know is the math:

    °F to °C Deduct 32, then multiply by 5, then divide by 9

    °C to °F Multiply by 9, then divide by 5, then add 32

  • This one can help you, just forget the operation buttons (and yours variables) and atrib to the funcion equal the conversion.

  • man this video would take decades to upload in my house

  • lol? who said that he have bought the product? --'

  • I see. But it is hard to find working cracks.

  • Nice Tutorial for getting Started with ActionScript 3.0

  • wow... youtube is such a fat git. I subscribed AND commented on your video!

  • only thing that I would change about the calulator, is to set the plusSym:Boolean to true at the beginning

  • can you make white invisible?

  • It is in the swf - if you upload it on something like swfcabin and than use HTML to upload it - the background is transparant

  • object.visible = false

  • Why do one have to make the button a movie clip symbol first before making it a button symbol?

  • your mah hero! thanks allot man, got everything right and all! :3

    thanks so much <3

  • SO MANY WORDS just for a caculator!!! O_O

  • wow. I really like your tuts man. Thank you for doing this..

  • "ware can you get flash?

    ):

    ?"

  • video quality is reallly bad..

  • Will it work on Macromedia Flash 8 as well? @__@

  • At 7:14 When I click the back arrow to go back to Scene 1 My button turns a light blue. I even deleted everything and tried again. Still turns blue. I didnt change any of the color thing. im using CS4 btw

  • You need to hold Alt while dragging to HIT.

  • you have to copy and past the button instead of dragging it

  • Nice work. keep it up. mean time come for social media marketing for esteembpo**com

  • Thank you for doing this. You will be blessed. I hope One day I can return this favor. NICE WORK!!

  • paste this to 2 other videos

    go to your channel and see your comments

    JUST DO IT IT SCARY!!!

  • whats my mistake @ 42:00

    function equClick (event:MouseEvent), void{

    whats wrong???

  • Comment removed

  • function equClick (event:MouseEvent):void{

    thats what you shuld be doing. glad to be of service :P

  • @ 30:20 when ypu start to test your calculator

    mine flashes and the symbol what used to appear in sym_txt doesnt appear

  • i have followed this tutorial all the way to the last 10 min, but have a problem i really don't know what to do about.

    at lines 51 & 52 where you write

    "var input1.String;

    var input2.String;"

    an error occurs saying

    "1086: Syntax error: expecting semicolon before dot.",

    even though i did it the same way as in the video.

    can somebody help me?

  • var input1:String;

    var input2:String;

    It may be hard to see, but it's a colon that you need after "input1" and "input2" NOT a period. A colon tells Flash what type of variable it's going to be. In this case, the type of variable for input1 and input2 is going to be a String.

  • 14:49

  • cool, now I can only open a flash file in mah desktop instead on going to "my computer" and other crap

  • theres an error at about 18:00 where you must have had two videos merged together or something weird O_O

  • No their isn't.

  • Oh... I'm sorry. there was.

  • Great thanks - just what I was looking for.

  • thanks(; this is awesome it worked

  • 50mins wtf

  • lol 51 mins long

  • how hell that can be 50 minutes????????

  • wow , 50 minutes!

    ¡sǝʇnuıɯ 05 ' ʍoʍ

  • omg how you do that. hopefully it doesn't take 50 minuets to tell me

  • Hello, great video! I finished coding my calculator. =) I do have a question, however. Since you already convert divRes.toString(), why do you need to use String(divRes) again when you assign it to results_txt.text?

  • Hopefully I can start working on this soon! This was a great help!! =D

  • omg can someone help me =[ my flash isnt working?

  • Try and elaborate.

  • cool, our teacher actually made us do this and add custom skins as a project, i kinda hope thats not infringement but i dont care as my teacher is a douchebag, so let me know if he can get in sh*t!!!

  • thx bro thx

  • Great vid, thx for sharing, clearly explained! Think actionscript rooks have to learn the names of the coding anyway.

    I was also wondering how the computer knows how to add up, subtract, divide and multiply, because that is already programmed, it isn't actionscript that teaches it; if you know what I mean?

  • Reported!

  • could somebody message me the code? I made an error and am not about to go looking for it.

  • Oh, never mind. I found it. :/

  • great tutorials, just so loooonngggg

  • (continued...) "num.toString()" is actually just a function, and so putting it on a line by itself, as you did, actually does nothing. It just gives exactly the same output as doing "String(num)", so either can be used.

  • @zantier

    eh? my first comment didn't appear =/ anyway... all I really said was good tutorial, but you make a mistake in adding the line "num.toString()" (where num is any number).

  • I've done this tut , and thanks goes to tutvids! =)

    Just wondering.

    How do I restrict comma'es ( , ) ... ?

    It's a shame you can only use whole number.

    - Thanks

  • Comment removed

  • omfg im not watchin this for 51 mins!

  • You say its simple in the title........yet it take you 50minutes to finish........

  • good!

  • how u download it?

  • great tutorial man!!

  • Your voice is orgasmic.

  • wow... lol thats funny...

  • Ya cuz tutvid's like stocked with proffesional tutors

  • You rock!!! R u by ur slef in the tutvid thing?