00:00
00:00

As: Main

670,409 Views | 1,520 Replies
New Topic Respond to this Topic

Response to As: Main 2005-11-05 02:40:27


At 11/5/05 12:54 AM, Matomic wrote:
At 11/4/05 08:24 PM, BleeBlap wrote: The estimated time left is possible but it would be grossly innacurate. You could just check the bytes loaded over a specified amount of time and then multiply that out for the total bytes. It would work similiar to a fps counter. All you need to know is getTimer() getBytesLoaded() getBytesTotal() and a little algebra.
It would be grossly inacurate, eh? Downloads of stuff off the internet have estimated times and they are very accurate. (see attached pic)
I do not know how to use actionscript; I am a complete noob with it. If anyone has nothing better to do, could you write said actionscript for me? It would be just about the coolest thing ever!

thanks for this:
i just made a little static class to do this for loading the movie itself as an extension on my original Preloader class

Preloader.init();
Preloader.onComplete = function(){};
Preloader.onUpdate = function(){};

inside of the onUpdate are 3 variables: the percent loaded, the current transfer speed and time remaining: percent is rounded to 1dp, transfer speed is in Kb/s and is rounded to 2dp, time remaining is an object containing the hours left, minutes left and seconds left (seconds rounded to 0dp)

inside of the onComplete is 1 variable, the time it took to load: an object in the same format as the time remaining object


using ShamelessPlug; NapePhysicsEngine.advertise();

BBS Signature

Response to As: Main 2005-11-05 03:45:42


http://media.putfile.com/testPreloader80

heres a little sample

you can see that the time remaining is jumping around between 2 seconds of the time remaining, (if it does) thats because of the way the transfer speed jumps around which isnt to do with my class


using ShamelessPlug; NapePhysicsEngine.advertise();

BBS Signature

Response to As: Main 2005-11-05 04:29:07


Does anyone know what to do? I posted about my question in my previous post.


2b r not2b lawl

BBS Signature

Response to As: Main 2005-11-05 04:53:30


http://media.putfile.com/testPreloader69

forgot to uncooment some code int he previous link to display how long it took


using ShamelessPlug; NapePhysicsEngine.advertise();

BBS Signature

Response to As: Main 2005-11-05 05:57:45


At 11/5/05 04:53 AM, dELta_Luca wrote: http://media.putfile.com/testPreloader69

forgot to uncooment some code int he previous link to display how long it took

When it goes down to 0 kb/s, it says 0 seconds remaining, you might wanna change that, even manually if so.


BBS Signature

Response to As: Main 2005-11-05 06:08:49


At 11/5/05 05:57 AM, DNentertainment wrote:
At 11/5/05 04:53 AM, dELta_Luca wrote: http://media.putfile.com/testPreloader69

forgot to uncooment some code int he previous link to display how long it took
When it goes down to 0 kb/s, it says 0 seconds remaining, you might wanna change that, even manually if so.

yeh i was going to add some things to the class to make it less code on user side:

i made it go to 0seconds instead of having it as infinity, but ill probably change that if i can be bothered


using ShamelessPlug; NapePhysicsEngine.advertise();

BBS Signature

Response to As: Main 2005-11-05 07:02:53


At 11/5/05 12:54 AM, Matomic wrote:
At 11/4/05 08:24 PM, BleeBlap wrote: The estimated time left is possible but it would be grossly innacurate. You could just check the bytes loaded over a specified amount of time and then multiply that out for the total bytes. It would work similiar to a fps counter. All you need to know is getTimer() getBytesLoaded() getBytesTotal() and a little algebra.
It would be grossly inacurate, eh? Downloads of stuff off the internet have estimated times and they are very accurate. (see attached pic)
I do not know how to use actionscript; I am a complete noob with it. If anyone has nothing better to do, could you write said actionscript for me? It would be just about the coolest thing ever!

YAY FOR MACS!
And that's programmed into your computer, and not a download time either. That's like to install or move things or empty 5000 things from the trash. Not download.

Response to As: Main 2005-11-06 11:58:11


OH SNAP!

the programming forum took your idea Denvish!

OH SNAPPY LINK!

Response to As: Main 2005-11-06 12:01:52


At 11/6/05 11:58 AM, -KhAo- wrote: the programming forum took your idea Denvish!

OH SNAPPY LINK!

Fewls. Don't they know that by adding an extra letter to their title it could have been put into the search bar?


BBS Signature

Response to As: Main 2005-11-06 12:11:15


At 11/6/05 12:01 PM, -Paranoia- wrote:
At 11/6/05 11:58 AM, -KhAo- wrote: the programming forum took your idea Denvish!

OH SNAPPY LINK!
Fewls. Don't they know that by adding an extra letter to their title it could have been put into the search bar?

It works with the search bar, I get PHP: Main when looking for AS: Main

Response to As: Main 2005-11-06 12:13:36


At 11/6/05 12:01 PM, -Paranoia- wrote:
At 11/6/05 11:58 AM, -KhAo- wrote: the programming forum took your idea Denvish!

OH SNAPPY LINK!
Fewls. Don't they know that by adding an extra letter to their title it could have been put into the search bar?

I dont understand what you are talking about???
Also you spelt fools wrong : P


- Matt, Rustyarcade.com

Response to As: Main 2005-11-06 15:36:29


eek another post, i think this is 24th on the page. try not to post as at 30 it will new page. if you can give me an answer, AIM/MSN me it please.

there was a thread made not to long ago for a screen shake effect. does anyone know the link to it?


WEBSITE

BLOG ~ Dont fuck around with my dog. All that I can see I steal. ~

NG FFR ~ Automatic for the people.

BBS Signature

Response to As: Main 2005-11-06 17:04:01


Hey could someone help me. I need a tutorial or omething on making a platform game enemy A.I., sothe enemy will follow me and try to attack me. I'm sorry if this is already posted.

Response to As: Main 2005-11-06 17:06:42


Mogly, search for FOSS and look at my last post on FOSS: Main.


Sup, bitches :)

BBS Signature

Response to As: Main 2005-11-06 18:23:55


At 11/5/05 04:53 AM, dELta_Luca wrote: http://media.putfile.com/testPreloader69

forgot to uncooment some code int he previous link to display how long it took

Thats what I meant by grossly innacurate. I should have explained myself better saying that there isn't a constant transfer rate and so the time left would jump around every frame unless you add in a bunch of rounding and approximating. I would imagine thats how macs or whatever os have accurate dl time remaining things but I could be wrong.

Response to As: Main 2005-11-06 21:20:55


Wouldn't working with components be considered Action Scripting?

If so,then there are still quite a few more AS topics to be covered.


wat

Response to As: Main 2005-11-07 00:12:13


AS:Component Password by Thomas

I'm sure it will come in handy :P


wat

Response to As: Main 2005-11-08 08:45:12


AS: GENERAL CODE:

BASIC (31)
AS: Animated Buttons by Inglor
AS: Bars (Health/Score/etc) by Inglor
AS: Basic A.I. by Dancing-Thunder
AS: Beginning Actionscript by Ninja-Chicken
AS: Bounce & Gravity by ImpotentBoy2
AS: ClipEvents by Inglor
AS: Drag & Drop by Inglor
AS: Duplicated Movie Clips
AS: Dynamic Color Changes by Rantzien
AS: Dynamically Resizing Objects by Spamburger
AS: Frame Functions by Spamburger
AS: Loops & Conditions by BleeBlap
AS: Loops - For... In by Inglor
AS: Loops - While by Ninja-Chicken
AS: Maths - Basic by T-H
AS: Movement - Basic
AS: Movement - Scrolling Background by DrDeath2k3
AS: Movement - Scrolling Objects by lan00
AS: Performance & Optimisation Tips by T-H
AS: Quality Toggling
AS: Random by -Reedo11-
AS: Random - More by Spamburger
AS: Replay Button by Inglor
AS: Sound
AS: Starting Out by -Thomas-
AS: Stop & Play Buttons by Inglor
AS: swapDepths by -liam-
AS: Symbolic Operators (and, or, not) by SpamBurger
AS: Symbols by Joelasticot
AS: Timeout by Inglor
AS: Variables by Rantzien

INTERMEDIATE (25)
AS: Arrays
AS: Basic Combos by -Toast-
AS: Camera Control by Inglor
AS: Collisions by Glaiel_Gamer
AS: Collision Detection by BleeBlap
AS: Constant Distance (Ragdoll Basics) by T-H
AS: Debugging Syntax by Inglor
AS: Elasticity by Joelasticot
AS: Filters (Flash 8) by Inglor
AS: Following/Shooting at Mouse
AS: Functions - Basic by Inglor
AS: Intervals by Inglor
AS: Linear Increasement by Inglor
AS: Listeners by F13
AS: Load External Data/Cross-Domain
AS: Logical Thinking by Glaiel_Gamer
AS: Maths - Intermediate by Inglor
AS: Mouse Wheel by Inglor
AS: Movement - On slopes by Joelasticot
AS: Movement - Random by -liam-
AS: Save and Load
AS: Strings by Inglor
AS: SWF Copy Protection by JackSmack
AS: SWF Right-Click Menu
AS: Upload/Download (Flash 8) by -liam-

ADVANCED (23)
AS: 3Dimension - Basic by dELta_Luca
AS: 3Dimension - Intermediate by dELta_Luca
AS: Actionscripted Tweens by BleeBlap
AS: API by -liam-
AS: API Curves by Glaiel_Gamer
AS: API 3-Gradient Fills by Inglor
AS: Binary Increasement by Inglor
AS: BitmapData - Basic by -liam-
AS: Components by dELta_Luca
AS: Line to Line Collision by Glaiel_Gamer
AS: Modular Programming by Inglor
AS: Non-Tilebased Pathfinding by dELta_Luca
AS: Scoreboard Protection
AS: Tile-based Pathfinding by dELta_Luca
AS: Tile-based Game Development Map by Inglor
AS: Tile-based Line-of-Sight Algorithm by zoohl
AS: OOP (Object Oriented Programming) by Inglor
AS: Prototype, Proto & Inheritance by BleeBlap
AS: System Capabilities (Flash-PC Communication) by Inglor
AS: Trigonometry by BleeBlap
AS: Very Basic Wireframe 3D by Begoner
AS: XML by Inglor
AS: XML For Online Interactivity by -KhAo-


BBS Signature

Response to As: Main 2005-11-08 08:45:43


AS: SPECIFIC EFFECTS/PROJECTS:

BEGINNER (10)
AS: Clock by Glaiel_Gamer
AS: Custom Cursor by lan00
AS: Elastic Mouse Chaser by lan00
AS: Inventory 1 by Inglor
AS: Moving, Dad 'n Me style by -Thomas-
AS: Mad Libs by SpamBurger
AS: Password by Dancing-Thunder
AS: Preloader
AS: Photo Negative by Glaiel_Gamer
AS: Subtitles by -Toast-

INTERMEDIATE (18)
AS: Component Password by Thomas
AS: Basic Space Ship Game by Spamburger
AS: Fading Trail Effect
AS: Fireworks (API) by Inglor
AS: Game 1 - Moving and Jumping by Ninja-Chicken
AS: Game 2 - Shooting & Power-ups by Ninja-Chicken
AS: Maze by Begoner
AS: Flash Registration Form by bigftballjock
AS: Jumping Engine For All by Rystic
AS: Movie Control by Spamburger
AS: Platform Game Basics by Atomic_Sponge
AS: Platformer: N00b to Pro by MusicianEXE
AS: Platformer by Thomas2005
AS: Pong Physics & Gravity by -Toast-
AS: Rain Effect (API) by Inglor
AS: Scoreboard by Inglor
AS: Starfield (API)
AS: Typewriter Effect by Atomic_Sponge
AS: Varispeed Rollover Scrollbar
AS: Volume Slider by Star_Cleaver

ADVANCED (4)
AS: Flash Game Instant Replay by Cojones893
AS: Key Queue by Inglor
AS: Syntax Checking Stack by Inglor
AS: XML Sockets - Chatroom by Ninja_Chicken

Notepad version of the list

Other useful links:

Flash Newbie Help by -ArcticHigh-
Flash (noob) tutorial by -hellraiser-
Starting with Flash by Otacon

NG's best tutorial movies
Flash tuts list by AGH
The Big Tutorial List by IWantSomeCookies

Flashkit
actionscript.org
AS: Main
Kirupa
good-tutorials.com

NG Preloaders
Xenosteel's guide
NG Submission Tips
Get your Flash deleted

Liveswif 2.2 - Free Flash maker
Sham Bhangal's Flash V-Cam
Flash: FP Version Checker (component) by JeremysFilms
Keycode Getter by gorman2001

Flash/ASP scoreboard
Flash/PHP scoreboard
Cross-domain policies

Sprite page list by different
Music and Sound Effect sites V2 by different

Flash: Shortcut Keys by -Unknown-
Flash: Code Shortcut keys by Rantzien
Claymation info by schorhr
Fixing problems with importing sound
How to: Flash to animated .gif


BBS Signature

Response to As: Main 2005-11-08 08:47:43


Sorry for all the deleted posts, I thought it was for the best. I added spam and thomas' tutorials under intermediate as specific effects/projects

Also I forgot to convert the & entities, as I copied the source html from the previous page, but no biggie


BBS Signature

Response to As: Main 2005-11-08 10:59:53


At 11/8/05 08:47 AM, Afro_Ninja wrote: Sorry for all the deleted posts, I thought it was for the best. I added spam and thomas' tutorials under intermediate as specific effects/projects

It was, glad someone finally sorted it out.. we all expected the posts to be deleted anyway.

=)


Sup, bitches :)

BBS Signature

Response to As: Main 2005-11-08 13:14:38


wow that looks weird, ive been here but not been here.


WEBSITE

BLOG ~ Dont fuck around with my dog. All that I can see I steal. ~

NG FFR ~ Automatic for the people.

BBS Signature

Response to As: Main 2005-11-08 15:07:09


At 11/8/05 01:14 PM, -Mogly- wrote: wow that looks weird, ive been here but not been here.

Haha, that's the mystery of the AS: Main deleting posts thingy! :P


BBS Signature

Response to As: Main 2005-11-08 16:15:11


Where's Inglor :(


BBS Signature

Response to As: Main 2005-11-08 16:23:19


At 11/8/05 04:15 PM, -Paranoia- wrote: Where's Inglor :(

I think he's dead, he hasn't been online for a long time... :(
Maybe he got smashed by the AS: Main great deleting thingy.


BBS Signature

Response to As: Main 2005-11-08 17:39:49


Yay,it actually got added.

Isn't seeing someone posting the AS threads when you thought it was someone else?

Denvish or Inglor.

Either he was smashed by AS:Main,or he got sucked into his computer and killed while playing games on his website


wat

Response to As: Main 2005-11-09 02:23:55



========|| WWWWWWWW>[-[Blog] - [Audio] - [Userpage] - [Flash] - [Last.fm]-]<WWWWWWWW ||========

BBS Signature

Response to As: Main 2005-11-09 03:08:51


At 11/9/05 02:23 AM, Flash_kid wrote: AS:enemy's random attack by flash_kid

had a look at it.. not all that good.. its ok i guess didnt explain much (not that i needed but some other people will)

Response to As: Main 2005-11-09 03:24:27


At 11/9/05 03:08 AM, shazwoogle wrote: had a look at it.. not all that good.. its ok i guess didnt explain much (not that i needed but some other people will)

wat more explaination did u want?!?! i explained every single line of the script.


========|| WWWWWWWW>[-[Blog] - [Audio] - [Userpage] - [Flash] - [Last.fm]-]<WWWWWWWW ||========

BBS Signature

Response to As: Main 2005-11-12 09:01:07


What do you guys think of this?:
AS: Text Fields by guywithhiscomp
I'm not sure if it has been done before though.


BBS Signature