Welcome, Guest. Please login or register.
Did you miss your activation email?
05/23/12, 00:35
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  General
| |-+  Site Check and Showcase (Moderators: vesa kortelainen, Ronald Wernecke, Jorge Solis, sammah)
| | |-+  13 year old flasher
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: 13 year old flasher  (Read 3180 times)
Martin
Server what's that
*
Posts: 15


Preloaders is some funny shit


View Profile WWW Email
« on: 03/29/02, 05:07 »

hello

I'm making a site in Flash, it's in norwegian, but when it's finished, some of you may want to take a look... Cheesy

Whatever, I posted this thread to ask for some design/flash-tips......
I also have a preloader, but it seems to load the hole movie, and then preload, wich only takes 0.01 seconds, when the site already is loaded.
Can someone please help me?!? Huh

Sorry 'bout my english, I'm only 13....and please: don't freeze me out and ignore my threads just because I'm only 13..
I'm only 13, but I'm still a Flasher like you guys  Grin

Regards

MBX
Logged

Martin
Jonathan Richter
Server what's that
*
Posts: 14



View Profile Email
« Reply #1 on: 03/31/02, 17:50 »

Hi Martin!

Welcome to the clan! Your English is clear to me - I am Dutch. Ok, what function do you use for the preloader? Do you use ifFrameLoaded or GetBytesLoaded and Get BytesTotal?
Remember that Flash starts loading with the 1st layer, then the 2nd, etc. Then frame 2.
So make sure that the preloader is 'light': no heavy pictures, no heavy sounds, etc.
I also have your problem with small sites. Before it can start the preloader, flash has to download the complete preloader. If that is a big part of the whole movie it's logical that it takes a while.

If this isn't help enough, sent me the .fla and I will look and try to find out what the mistake is.
I also recommend a very good 'Bible', the Flash5 Bible. That's the original title. It is a good learning book but also very good to search for special problems. It ships with a CD with all the examples in the book. I have it in Dutch, so maybe there's a Norwegian translation too. It's written by Robert Reinhardt and Warren Lentz. It's 1100 pages and about Euro 70,00.

Grtz,
Sckz
Logged
Martin
Server what's that
*
Posts: 15


Preloaders is some funny shit


View Profile WWW Email
« Reply #2 on: 04/01/02, 04:51 »

Hi!

Thanks for answering  Cheesy!

My preloader is placed in the first scene of my movie/site.
And its three frames in the preloader scene:

1. frame: the preloader and this code:
Code:
txtPercentage = Math.round((_root.getBytesLoaded()/_root.getBytesTotal())*100) add "% loaded";
tellTarget ("loader") {
   gotoAndPlay(Math.round((_root.getBytesLoaded()/_root.getBytesTotal())*100));
}


2.frame: code:
Code:
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
   gotoAndPlay(3);
} else {
   gotoAndPlay(1);
}


3. frame: a button, when clicked the movie enter the main scene.

What's wrong?

Se ya all soon Wink!
Logged

Martin
Jonathan Richter
Server what's that
*
Posts: 14



View Profile Email
« Reply #3 on: 04/01/02, 19:22 »

Hi Martin!


I don't understand the function of:

tellTarget ("loader") {
   gotoAndPlay(Math.round((_root.getBytesLoaded()/_root.getBytesTotal())*100));
}

What does the MC "loader" do?

I would say:

Frame 1 (in frame actions):
txtPercentage = (_root.getBytesLoaded() / _root.getBytesTotal())*100 + "% loaded";
play;

Frame 2 (in frame actions):
if (_root.getBytesLoaded() < _root.getBytesTotal()) {
   gotoAndPlay(1);
} else {
   gotoAndPlay(3);
}

Frame 3 (in button actions):

on (release) {
  ShowTheSite;
}

If this doesn't work maybe the trouble is that you can't use an object directly in an if-statement. Try:

Frame 1 (in frame actions):
loaded = _root.getBytesLoaded();
total = _root.getBytesTotal();
txtPercentage = (loaded / total)*100 + "% loaded";
if (loaded / total < 1) {
   gotoAndPlay(2);
} else {
   gotoAndPlay(3);
}
play;

Frame 2 (in frame actions):
gotoAndPlay(1);


Frame 3 (in button actions):

on (release) {
  ShowTheSite;
}

That should work.

Grtz,
Sckz
Logged
Pete
Server what's that
*
Posts: 4



View Profile Email
« Reply #4 on: 04/20/02, 19:28 »


hey i can remember being 13 and how put out i was because of my age so heres a preloader thats quick and easy you can just dump the frames into a scene making sure its before any others and it should work fine, feel free to edit it how you like, the original code is from a tutorial. if you have any questions or probs just ask.


the .fla is attached to this message so anyone else can have a look too.
Iam Australian by the way and your english is great.

tell me how you go with it :)
Logged
Martin
Server what's that
*
Posts: 15


Preloaders is some funny shit


View Profile WWW Email
« Reply #5 on: 04/22/02, 06:02 »

Hi Pete

Thanks for helping, but I can't see any preloader...?

If you have time....can you please send it to me: martin@dx.no

I'm just starting out on a pure flash-page, and it's in english so you guys can have a look at it when it's finished.

Regards

-Martin
Logged

Martin
Asim
Senior Programmer
****
Posts: 338


asimsiddiqui01@hotmail.com asimsidd2001@yahoo.com
View Profile WWW Email
« Reply #6 on: 06/03/02, 19:09 »


HI THERE,
THIS IS FOR MARTIN...
MARTIN...
MY NAME IS ASIM...
MY POST IS NOW ABOUT 75 BY THE GRESS OF GOD AND BY THE WISHES OF MY ELDERS...
WHEN I CAME TO FLASH-DB FIRST TIME...
I FELT THAT HERE NO ONE WILL HELP ME AND WILL NOT EVEN TALK TO ME AT ALL...
NOT BECAUSE I'M ONLY 15 YEARS OLD BUT BECAUSE I'M A MUSLIM AND PAKISTANI...
AND I THINK YOU CAN UNDERSTAN WHY IT IS...
BUT I WNNA TELL YOU THAT THE PEOPLE HERE IN FLASH-DB ARE SO NICE AND ARE OF SO PRETTY AND VAST MIND...
SO DON'T FEELS THAT SOMEONE WILL IGNORE YOU EVEN HERE ON FLASH-DB...
ITS IMPOSSIBLE...
NOT EVEN FOR ME...

I'M HERE FOR YOU IF YOU WANT ANY HELP FROM ME THEN YOU CAN CONTACT ME PERSONALLY AS WELL...
I HOPE THAT YOU'VE GOT MY POINT AND WILL NOT MIND AS I ADVICE YOU BEING A ELDEST ONE...TWO YEARS... Grin...HAHAHAHA..

REGARDS,
ASIM SIDDIQUI.
Logged

..::Asim Siddiqui::..
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
anything