Added: 3 years ago
From: tutvid
Views: 185,331
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:
see all

All Comments (368)

Sign In or Sign Up now to post a comment!
  • thx, very nice!

  • hey, can anyone help me convert this actionscript 2 code into action script 3 code?

    Wall1.hitTest(_x, _y+radius, true)) { _y--; }

    i cant do it to save myself the player just keeps going thought the wall! hittests were so easy in AS2 in AS3 there so hard :'(

  • I have 1 problem and it's the Preloader Appearing only at 40%. I've tried to edit Publish Settings > ActionScript Settings and it's the same.. Can you help me? thanks

  • hi, thanks for the vid, it helped.

    but how can you make a background for you preloader beacuse it is ugly to have only a blac screen.

    hope you will answer

    thank you

  • @tutvid Instead of gotoAndPlay(2) i created a function to load in an external swf. however, why is it, when i test movie and stimulate download, my preloader don't appear, but 5 dots appear instead...but after, the movie loads in fine...

  • HOW DO I GET ACTION SCRIPT ????????

  • @ceyel6 you must buy Adobe Flash cs3/cs4/cs5

  • very good tut but when i played it my Bytestotal/toload did not show up and i got a msg in my output saying i needed to embed font, so all i did was click on the font box and hit embed and chose number/lower case because it needed to load numbers and the Bytes text that was defined in the Script and it worked. i use CS5.5 btw so maybe its a little different i dunno but i managed to get it to work

    anyone else also suffer this or maybe i missed something in the tut

  • @DragonoxForce1 yea same im using CS5.5 and it did it too me

  • you are a hero

    

  • very useful. but what if i want to add a "play" button so people have to click on it to start the film, instead of it starting as soon as the loading finishes?

  • Strange I got the same massage Error#1010.

    

  • TypeError: Error #1010: A term is undefined and has no properties. at preloadertest_fla::MainTimelin­e/loaderF()

    please help, what should i do to make it perfect. thanks =)

  • you're my hero man. gotoAndStop instead of play in the if-/else-statement is the solution for all my problems .-)

  • super tut man, it's work :)

    just a small quastion, I want to have preloader in the first frame and I want the loading to be 100% when everything is downloaded ONLY int he second frame not the third, I know that I have to change the toLoad:Number but I don't know what exactly I have to write, please help?

    thanks

  • super tut man, it's work :)

    just a small quastion, I want to have preloader in the first frame and I want the loading to be 100% whe everything is downloaded ONLY int he second frame not the third, I know that I have to change the toLoad:Number but I don't know what exactly I have to write, please help?

    thanks

  • Hey maybe you should make this so that dumb people can understand it too! You selfish stupid losermouth!

  • Is this free? action script 3?

  • @jeremynanhu NO DU DUMB BEEP

  • @HeroicRaptasaurus calm down dude this was the first time I heard about it

  • R U MENTALLY STUPID

  • AND I THOUGHT I WAS DUMB

  • UR ALMOST AS STUPID AS THE GUY THAT POSTED THIS VIDEO!!

  • @HeroicRaptasaurus You're the one watching the tutorial ;)

  • worked for me, thx :)

  • Great tutorial! Thanks so much.

    I was wondering if there is a way that I could get the preloader to skip to the movie when the file is only 70% loaded?

    Thanks again :)

  • I have the same as you guys, I can see it only when it reaches 80%. I tried the loaderF1 instead of loaderF and it still the same thing.

    Is anybody have any other solution ?

  • Amazing! No matter what size file I put in Frame 2 if I trace the "loaded" variable it doesn't output anything until it hits around 80%. I don't see anything in this code to cause that, but it's happening everytime.

  • I have to say, I have rechecked my code to death. The preloader doesn't appear until the file is about 80% loaded. Then it works perfectly. I have tried it with several different files. If the file is small you just get a quick frame, if the file is large it lingers long enough to watch it count down, but it's blank until it reaches 80% (give or take).

  • Thats weird ,when I removed

    [removeEventListener(Event.ENT­ER_FRAME, loadF);]

    after [ if (loaded == toLoad){ ] it started working ]

    it started working .

    oh well , thank you for your tutorial . _o_

  • everyone just wasted 23:17 minutes/seconds of your life

  • 2:14 ¿WTF?

    Explain me ¡¡ NOW !!

    I do not care if you're busy or not, Enplain these

    Or other users of youtube, would be so kind to explain what he did in the minute 2:14

    PD. The owner of this video if you delete my comment means you're a coward

  • @theedgarecko18 I think you are wondering why he deleted the rectangle, well he needed a shape to convert to a symbol so that he could double click it and do his work, he didn't needed the rectangle itself, he needed anything to the entire layer a movie clip, he converted it to symbole

  • Comment removed

  • First: Great tutorial! Easy to follow and understand.

    Second: Preloader does not function. I get a blank page with dots loading. The preloader apears for one sec and the movie starts.

    I have read this forum for solution, but none of the suggestions posted help.

    The preloader is exacly the same. Please help.

  • @laorit First of all did you make sure when you started a new file that you were using AS3, THen did you put the pre loader into a movieclip then put it on the stage and add stop action to the layer above. THose are the only possible reasons I could think of as why it doesnt work for you. Its possible you have a typo somewhere. Be sure to double check one wrong letter can ruin everything.

  • @laorit hi. im having the same problem too...the movie loads fine. no errors...just that i don't see my preloader, all i see are few dots loading....did you happen to get the solution to your problem?

  • Thank-you for this. Your video helped me way more then my class book does, if not for this I would still be stuck and end up unable to complete my assignment.

  • Does not work with AS3 or CS3; hope someone can help fix the errors; shame we can't download a working version.

  • I JUST GET 1120:Access of undefined property preloader_mc. THIS TUTORIAL DOES NOT WORK.

  • THANK YOU... sorry caps lock. That was really helpful, my only problem is that it takes around 5 seconds to show up and it is already at 60%, will this occur if I upload it to a website?

  • @GrandTheftTaboggan EXACTLY! for me it's about 80%. What the ... ?

  • creat tutorial, thanks. Hope to see more tutorials from tutvid.com :)

  • doesnt work in cs5 :(

  • I've posted a video response showing the problem I'm getting. Fonts are correct (I did not embed them). The fill bar stays 100% full, and never moves. Hope this helps efforts at understanding the issue.

  • code and error are posted in the description

  • Didn't forget the stop action. Wasn't aware that I needed to embed fonts. The fonts that are showing up up are the correct fonts, their just not functioning correctly. I'm a little bit confused as to why it's not working. I just need a simple editable preloader that works in CS5. Didn't think I would run into this many issues. I can post the code if necessary, if anybody wants to double check me.

  • Problem: (1) The Fill isn't animating, it's staying a solid bar. (2) I'm getting all of the Dynamic text fields to apear but they are very jumpy and bounce around from 1% to 2% and the bytes aren't loading in any particular order, just random number generation. (3) The preloader wasn't working at all in CS5 but once saving as a CS4 file this is where I'm running into the above issues.

    Any thoughts or suggestions are appreciated.

  • Comment removed

  • Comment removed

  • FOR FUCK SAKE!!!! evertime i try to import somthing to the library flash crashes....and if the import works sometimes it crashes by moving the movie clip to another frame. a bit expensive to have that much bugs adobe^^

  • Hey, i've learnt a lot from this tut, thanks.

    Just to cleat some things up for people having problems. The dynamic text not showing is likely because the font hasn't been embedded. i had to do that manually for some reason.

    I also had this problem with the loader not working properly at all and getting the small dots. The solution for me was rather simple. i u use any LFT text fields the loader won't work. All u have to do is change em to classic text fields

    Hope this helps some pll out

  • Forgot to say that with embedding, that every text field should have a font embedded or choose to use a system font.

  • thanks for great tutorial

    my problem is i want to preloader for my whole home webpage

    as preloader finds loading complete it come to html page

    i think you understand what i want i am new for flash

    as some body open my site flash preloader start working and as loading complete it show my .html or .php home page

  • would this work in flash csd? every time I'm done with doing everything you say, the loader just flashes repeatedly....

    I have a swf file I made in fireworks and stretches far on the timeline...is this maybe why? do I need a video?

    maybe I just got the coded it wrong...?

    Also what's weird, I get a completely different loading bar with dots...will this work?

  • @jimmyjam070 you forgot the stop() ?

  • every symbol that viewers created needs to be exported for actionscript in properties of symbols for AC3 adobe flash cs5...

    But, it still doesn't work for me 

  • sigh I need this for flash builder --"

  • great video dude, thanks

  • @cashox3 did this worked for you ?

  • @lauris47 yes i believe it did 

  • this is awesome

    well a little hard for beginners like me , but it's very helpful thank you so much...

    i'll let you know if i can get the same preloader posting my URL in the feature ..

    once again thank a million.......

  • Thanks for the tutorial. For someone has Zero action scripting experiences, can you or anyone recommend any Flash Action Script book(s)? - thank you.

  • thank you! Great TUT!

  • thank you very much for that complete tutorial

  • what is suppose to have the instance name LoaderF?

  • @Eeld loaderF is a function

  • FUCK YOUUUUU, ...this isn't what I'm looking for!

  • Thank you for the great tutorial! It all seems so easy when you explain it!

    I have one problem however. When I press Cmd-Return, my loader begins to work, but I don't get to see any visual stuff. No green progress bar (just a static green bar), no bytes and no percentage. Any of you who also have this problem? Am I doing something wrong?

    Working with Flash CS5. Anti-Alias set to 'use device fonts', dynamic text fields, etc...

  • Hey first of all thanks a lot for the tutorials!

    I have a problem! When I'm going to execute the movie it gives a message like this and doesn't show my preloader! I'm using flash CS5

    It says - Your content will not stream. Runtime shared Library(RSL) preloading will require all of your content to download before the first frame will play.

    How to overcome this problem?

  • Thanks to this, my assignment won't suck so much. (Y)

  • Thanks for this. By following exactly I was able to make a perfect preloader.

  • Could you make a tutorial on one where when its finished preloading, it shows up with a play button?

  • great video! i've had a few problems:

    1) the animation in the test and such works fine, but when I click on "stimulate download", the screen goes blank.

    2) i can't get the percent or any of the other texts to show up in the dynamic text field

  • @FlashMasterJen I don't know if you got a reply from Nathaniel (Tutvid) but the solution for the dynamic text problem on CS5 is. Go into the preloader, select each text area one by one and make sure that "anti-alias" is set to Use Device Fonts. Should solve your problem :). I hope!

  • i got 1119:Access of possibly undefined property bytesTotal through a reference with static type class (error)........help i'm using cs5 and i want a fast response plz

  • I am using CS5...and I tend to get a pre-preloader with dots going like this

    .

    ..

    ...

    and repeating while simulating a slow downloading. I don't know if it has to do with me importing files via XML but how do i get rid of these dots and just have the loading bar?

  • For all of those that the pre loader starts at 50% or more this will help you!

    you are using a lot of library classes in your movie. All of these classes are exported by default on frame 1, meaning that they all will have to finish loading before your preloader shows up.

    You can fix this problem by configuring the frame at which your classes are loaded. You can do that by going through File>Publish Settings>Access the Flash Tab>Click on the " AS3 Settings" and change the export classes frame!

  • I has a problem, when I try to put this preloader to my content web, the preloader appears when the charger is at 90%, can somebody tell why?

  • when i start the movie it keeps blinking from frames but the both have thescript sto();

    and in te long one it has gotoAndStop2);

  • um... it says that the --function loaderF(e:Event):void{-- part of the code could not be loaded when i click the blue check mark. help?

    also, i have mac flash 8 pro.

  • Okay so everything is working great when i play the movie, but when i got to do it with the simulated download, it gives me an error saying " Error #1010: A term is undefined and has no properties.

    I pressed the little checkmark before playing too, and it said there were no errors.. i dont understand help please <3

  • Excellent post! Thanks so much!

  • The thing that i don't understand is how your percentage dynamic text box worked at all. It was never given an instance name. Does flash just assume that the ignored dynamic text box should have the unassigned instance name "percent_txt"?

  • this helped me a lot but I have a question

    for example y I want to place a background color my loader just don't appear =( it turns out white and my movie never starts!! what could be wrong?

  • DUDE!! YOU ROCK!!!! This movie helped me a LOT! thanks

  • I am having the same issues with the white screen after simulating the download process. It would be great if someone has the code script for the CS4 flash to conduct a final test. I have done the preloader from scratch 4 times and all with the same results. I checked all the scripts and instances; names and all. But still same thing. Any help would be appreciated.

  • I'm not sure what's wrong with my preloader.

    I followed the video exactly except for the content and the fonts used on the font size and font type.

    To try to find what was going wrong I placed Trace Functions to see when the IF and ELSE Statement were played.

    For some reason, the ELSE statement plays twice and the IF statement once before the video plays. But nothing shows up except for a blank white screen.

    Any idea on what's going wrong?

  • your help was really amazing to help me understand as!!! thank you very much from germany!

  • I really like this tutorial. You really sound like you know your stuff (no uhs, umms, or other long pauses). Your explanation of the procedure is clear and concise. Your personality is upbeat and not overbearing.

    Thanks

  • Thank you, thank you thank you very much!! This actually helped me a lot than all templates around internet!

    But I need to say that if the content is Flash animation (by frames), "gotoAndStop" command shall be replaced with "gotoAndPlay" instead! I tried this out myself!

  • @damyannn Actually, If you're just pasting your content bundle into one frame after the preloader, you WANT it to be "gotoAndStop'. This really keeps the preloader versatile and enables you to use it a lot easier than you would with just creating content on innumerable frames after it... Create on a separate flash file, copy, paste, save AS, publish, done.

  • Thanks man... you've helped me a lot...

  • ok now i dont get any errors in the play movie but i get a white screen. then it shows but goes away very quickly and doesnt play anymore

  • hi i get this message in the output saying

    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.

    please some one help would be greatly appreciated and thanks

  • @Shadowtaker1 Hi Shadowtaker, I don't know if you got a reply from Nathaniel (Tutvid) but the solution for this problem on CS5 is. Go into the preloader, select each text area one by one and make sure that "anti-alias" is set to Use Device Fonts. Should solve your problem :). I hope!

  • "TypeError: Error #1010: A term is undefined and has no properties. at Untitled_fla::MainTimeline/loa­derF() " I keep receiving this error message ):

  • @Samedimai Check and make sure you gave everything an instance name

  • How do I get a Preloader to appear once I click a button to load an image?

  • Thanks, i realy dont like actionscript 3 but i have to learn it.

    actionscript 2 was more like C# sharp, this is like C++ to me.

    makes no sence

  • Comment removed

  • HELP! my preloader starts off blank and begins showing at 40% can anyone tell me whats wrong?

  • @DanMerzatRMC Mine does the White screen thing too before starting up. I learned that this is because by default CS4 has a built-in preloader that starts on "frame 0" and goes for 4.1 seconds before starting frame 1. I guess its because adobe wanted to make sure projects played back smoothly even if there is no preloader.. I'm not even 100% sure but this is the most logical thing I could think up.. you can check it all in the bandwidth profiler (while testing document view > bandwidth profiler)

  • @Tylurnol Thanks I will take a look at that

    

  • This works GREAT! The F1 fix did the trick, AND making sure the instance names were CORRECTLY spelled AND CAPITALIZED fixed all errors.

  • if you see blank screen, try so set up speed on t1, it needs to download preloader stuff for begining, and its kind a strange, and when i simulate download it always starts for me from 30%, any solution?

  • I have downloaded a preloader from newgrounds but have no idea how to add it. I got close and added but when I tested the clip you could see the preloader going over the top of the layers underneath....

    What do I do?....

  • Great tutorial btw, I tried creating a mask over it and it pretty much wouldn't let me unless my stroke was like 10+ pixels... I have no idea why, but it makes me mad... oh well, great tutorial again...

  • i fucking hate AS3...

  • thanks for this awesome tutorial, now I'm gonna try to build off of this. It seems easy enough but if you make 1 misplaced letter your screwed until you can figure it out.

  • oh i have to say thank you for this short tutorial ;)

    faster then looking in my books :D

    keep on going

    Just for beauty

    preloader_mc.ofBytes_txt.text = (Math.floor(((loaded/1024/ 1024)*100))/100)+" MB";

    preloader_mc.totalBytes_txt.te­xt = (Math.floor(((toLoad/1024/ 1024)*100))/100)+" MB";

  • It's amazing and clear tutorial!

  • I must have been searching online for about 3/4 hours now for a tutorial which explained the code as well as giving an amazing looking preloader and this is the best I have found!

  • subbed+fav

  • gracias buenisimo el video super bien explicado

    thank you

  • great tutorial! thanks for explaining the meaning of the code.

  • Visite my channel to find how FIX the error of the loaderF(

  • I found the solution to the problem guys!

  • Works great, love it!

  • thanks for making time to make this and posting this man, for all you noobs out there this tutorial really works, if it doesn't work, that's probably your fault.

  • This work well at CS4

    but after I up grade to CS5, output said:

    "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."

    I don't understand what that meant, what should I do to fix it

  • this isn't working for me I keep getting The class or interface 'Event' could not be loaded.

  • what about a start button?

  • works for me! thank you

  • tnx

  • Done everything, no problems with the code yet the pre-loader doesn't show that it's loading.

    Help please?

  • Perfect!! I'm a total noob at Flash and this was easy enough for ME to understand!!!

  • Thank you fully works apart from the text don't show can you tell me the solution please? Thanks :D

  • I think you might have to check the properties tab on your text boxes. Any text being called by Actionscript 3 needs to be dynamic text, not static. Maybe it will work then?

  • Great Video. Not sure whats wrong with mine but it only seems to start showing the loader at around 80% complete... Anyone any ideas?

    Thanks

  • when i tested this came up in the output window.

    TypeError: Error #1010: A term is undefined and has no properties.

    at Untitled_fla::MainTimeline/loa­derF()

    some reply

  • when i tested this came uo in the output window.

    TypeError: Error #1010: A term is undefined and has no properties.

    at Untitled_fla::MainTimeline/loa­derF()

    some reply

  • is there a tutourial like this but actionscript 2 please? Cheers if you can! =)

  • In Youtube are there in language italian ?

  • Best tutorial I've ever seen!

  • Great tutorial!! Wondering how to animate a character walking from one end to the other as a progress bar and if its even possible.

    Thanks in advance.

  • Very cool, and helpful as well... much thanks

  • Comment removed

  • Hi, thanks for the tut.

    However, I had the same problem with Sooch67 and Taronize.

    No errors found but when I stimulate download, it just go into a white blank screen.

    Anyone help please!?

    Thanks

    Hongwen

  • I have same problem as Sooch67

  • I went through the tutorial a few times and found no error in my action script or any of my properites or instances. If anyone would send me a message or just reply to this comment about how to fix the preloader from not appearing and just skipping to the 2nd frame or just staying on frame 1.

  • Okay for those of you who have problems.

    I had the " function loaderF(e:Event):void{ " Error too. But solved it now.

    - Do everything like in the Tutorial

    - When done go to "File" -> "Publish Settings" and click the "Flash" TAB

    - In the Dropdown Menu with the name "Player" select "Flash Player 10"

    (If you don't have it in the List install it)

    - In the Dropdown Menu with the name "Script" select "Action Script 3.0"

    (u need Adobe Flash CS3 for AS3 support)

    - Then Click "OK"

  • Thanks for posting that, mmhhmmmmm.

    I checked my player version on the Adobe test site and it's version 10. But it appears that having v.10 as a browser plug-in doesn't necessarily make it available to the authoring environment, or something...

    ...My Flash CS3 (just updated) doesn't show Player 10 in the dropdown. Version 9 is the highest available.

    And I tried to run this preloader with player 9 and AS3. No go.

    Any suggestions? Anyone?

  • 5:29 i have to go to school so i put the time i left off at so i can finish this tut later ^^

  • awesome video thanks very much! I had the error #1010 problem with ldoerF but it was my instance names which was causing the problem. So for anyone that has had the same error just check your mc names. I had a capital letter that should of been lower case.

    I do have one question though, all my other timeline animation has stopped working and the only animation that seems to be working after loading is anything i have in action script. do you know which bit of code would cause thaT?

  • great dude, thanks

  • no errors, but I'm getting a blank white screen when I simulate download. please advise.  great tutorial though, thank you.

  • Great tutorial buddy, thank you sooo much for share your knowledge, a lot of gratitud from guadalajara méxico!!!

  • where do i get the FLA? after paying for the video, i am expecting to get it in the download, but no juice.

  • i watched it. i bought the video. 6 bux, gr8 valu.

    good job, dude. good stuff.

  • man you're good

  • damn i do everyting like he do

    and i have an error : "interface 'event' could not be loaded.

    fuction loadedf(e:event):void{

    yyyyyy? error???

    what to do? i have flash 8

  • yeah that isn't action script 3.0

  • @FireHostile you need to import events class.

    import flash.events.*;

  • worked like a charm, thanks for taking the time.

  • Flawed tutorial code is broken i get blank white screen like previous comments and ive checked the code over multiple times.

  • Professional tutorial suited for people just like me - amators trying to learn as 3.0. Thanks to you we can easily make our skill's better. Keep up the good work!

  • Same problem as boboslayeronutube

    Preloader does its job, but none of the Dynamic Text are working (= blank space) and the Fill Color is just plain and don't move.

    :-?

  • For the dynamic text, go to properties and type the name of it's variable in the variable box.

  • there is an error on this line why?

    function loaderF(e:Event):void{

    it sais cant load Event

  • @boboslayeronutube @milanbassa did you figure out what was wrong? I am getting the same thing. Did you guys figure out what was the problem?

  • @boboslayeronutube Visite my channel to find how fix that error

  • @boboslayeronutube Heya, I had this problem too, so I started looking for an answer over the internet, and I found this answer in a forum:

    You'll change the "loaderF" (every LoaderF you find in the script) to "LoaderF1". So, you have to change it 3 times, because there are 3 LoaderF...

    addEventListener(Event.ENTER_F­RAME, loaderF1);

    function loaderF1(e:Event):void{

    removeEventListener(Event.ENTE­R_FRAME,loaderF1);

    It worked here.

  • @IngridThns Did you forget to embed the font?

  • @boboslayeronutube import flash.events.*; on the class first?

  • @boboslayeronutube

    try ->

    function loaderF(event:Event):void{}

  • @boboslayeronutube i got 1119:Access of possibly undefined property bytesTotal through a reference with static type class (error)........help i'm using cs5 and i want a fast response plz

  • @redsnow123456 an undefined property is something that you haven't given an instance name. Tutvid named the "bytesTotal" instance like this totalBytes_txt and this should be written in the properties panel of the text box you made inside the loader. Make sure the preferences on CS5 are set to Classic Text and Dynamic Text. If you follow the video word for word it does work also there is a box lower down in this properties window which needs to be set to "Use Device Fonts" to avoid a known issue