ActionScript 1/2 :: Put In A Preloader In The 1st Scene Of Site
Jun 27, 2011
Adobe Flash CS3Action Script 1.0 & 2.0 Im just almost done with my site. Just put in a preloader in the 1st scene of my site, and this is the script I put in:
[Code]...
View 11 Replies
Similar Posts:
May 7, 2009
I can get by and make nice flash sites, but I'm still learning what goes where and am still borrowing code to get by.I've laid the problem out in some detail as I am sure that will save a lot of questions later on, but feel free to ask if you want more info.Problem is as follows: I've built a two scene flash site using open source code for the preloader scene:[code]The main scrolling menu scene works great when it's a one scene movie and the preloader code works fine with a load of other sites I've built, but when I put them together on this site (the code for the scrolling menu precludes the addition of a preloader directly into that scene so separate scenes are a necessity) everything goes to pot.When testing the site (both as a standalone SWF file and when embedded in an HTML file) the preloader works fine and the main scene appears correctly, but when you click on any button to move back or forth along the menu/timeline it jumps and jerks along very roughly and stops short of its designated point.
This causes the whole scene to fail as the designated timeframe for each button contains a movie instance that won't function until the specific timeframe is reached.It's odd behavior and I'm stumped as both chunks of code work fine separately.I've even tried a much simpler preloader that doesn't display percentage or anything, it just cycles between frame one and two until the movie loads and then plays it (just like this one, but with no bells or whistles).Unfortunately my lack of actionscript knowledge prevents me from even finding a simple term to sum up the problem so I've failed to find any similar issues on any forums or Google.
View 3 Replies
Jun 30, 2009
Using CS4 Actionscript 2.0
[Code]...
Check out what happens after percentage loaded. It just goes to Frame 1 of next scene but doesn't play it.... although if you right click and click PLAY it will indeed play it.. How to get it to start upon 100% loaded?? I SHOULD NOTE that the scene that won't play has an embedded FLV in timeline
View 2 Replies
Oct 2, 2009
Reference Site: [URL] Also see attached source file.
I've just built my first preloader, and the first time loading it, it works great in Internet Explorer 8 (with latest flash player), but on reload or on reopen of browser, it doesn't autoplay the second scene (main scene). Works great in Firefox and Chrome.
I've searched the internet up and down with no luck on solving this problem.
Here is my ActionScript 3.0 for the preloader:
[Code].....
View 2 Replies
Feb 12, 2010
I am using flash cs3. I created my preloader in a separate scene. calling the scene I want. what I wanted was the preloader to load and play the all next scene, where I have my core website running.
it works fine till one point! here is my drama it loads the scene I want, but it gets stuck in a loop.
[Code]...
View 1 Replies
Nov 18, 2009
I have my game on Scene 1, and my preloader on a separate frame. The preloader loads, but it doesn't advance to the game when it's complete. Where to look for my error?
Code:
class preloader extends MovieClip {
var amount;
function onEnterFrame() {
amount = ((this.getBytesLoaded() / this.getBytesTotal()) * 100);
this._xscale = amount;
if (amount == 100) {
_root.gotoAndPlay("Scene 1");
}}}
View 5 Replies
Dec 2, 2009
I have a preloader on a 'Preloader' Scene and want it to load my site on another scene called 'WholeSite' when it reaches 100%. My WholeSite has 184 frames. I am really getting confused with the script here.
[Code]....
View 0 Replies
Aug 15, 2010
I made a little slideshow with a few images in a seperate scene in my site and I exported each image/mc in the first frame and it still waits till everything loads till it plays
View 3 Replies
Jul 6, 2002
i'm trying to build my preloader, my flash movie has large sounds to make a selection of music but the sounds loads in the first scene even if they are attached in the second one.
My flash size is about 762 kb and some 756 kb are in the first scene(such as sounds), this is the problem because my preloader starts function when they are 756 kb loaded and only works for the final 6 kb.
[Code].....
View 2 Replies
Feb 15, 2005
i am putting a preloader in a seperate scene in my flash movie.for some goofy reason, it will go to the preloader and get to lik 99% and stop, and will not proceed to the next frame. i have tired EVERYTHING that i know to make it work, but it will not.[code]it is placed on a moive clip that retains all the text and graphics for the preloader.like i said the only thing that won't work is that it will not proceed to the next frame.i have replaced the _parent, to _root. i have used frame labels instead of ("Scene 2", 16). i have no idea what else to do.
View 14 Replies
Nov 30, 2006
i would like to have a preloader run in a movie clip rather than in the main scene...http:[url]....i have followed this tutorial exact and it works when i create it on the main scene,but the loading bar and text doesnt work when i build it in a movie clip.
View 6 Replies
Sep 30, 2009
I am working with Flash MX Professional 2004 on a mac running Tiger. I am near to finishing a fully flash based website.I am fairly new to Flash so experiencing a wee problem with my Preloader. The preloader is an animation in a movieclip that I have placed at the start of each scene that contains only one of my portfolio photos which once downloaded fades in and fades out. The Preloader tested in an isolated test scene on its own works fine, it is placed in frame 1 with the following actionscript 2 and a stop action placed in an actions layer. The downloading photo fade in starts in frame 2. When the user closes the photo it unloads it from the level it is in ready for the user to choose another photo which will go in to the same level.
Yet when the same scene is played back on its own level within the main website FLA it does work as an animation. Rather it stalls, blank to start with then at 50% download it goes straight to the 100% loaded part of the Preloader animation and stays like that until the photo has fully downloaded. It does this at all bandwidth tests and also does this when tested live once uploaded to server. It should animate smoothly up until the photo downloads. Very frustrating problem. I notice that the first frame of the scene has an unusually large size for some reason as the preloader is only 10kb in reality yet shows as 60kb, may be there is something going on here or perhaps it just needs the script changing slightly?[code]
View 2 Replies
Aug 11, 2010
I don't know much about Flash so understanding how to implement a preloader for my entire site is just a bit beyond me. Basically, I just want a loading bar, "loading" text, and the percentage text (this should all be in AS3). I know that in Flash CS5, a preloader bar is included as one of the components. The only problem is that I don't know what to do with it (and it shows up as blue and white so not sure how to change the colour).
View 2 Replies
Aug 13, 2010
don't know much about Flash so understanding how to implement a preloader for my entire site is just a bit beyond me. Basically, I just want a loading bar, "loading" text, and the percentage text (this should all be in AS3). I know that in Flash CS5, a preloader bar is included as one of the components. The only problem is that I don't know what to do with it (and it shows up as blue and white so not sure how to change the colour)... the Adobe file for that component explains somewhat but the example it uses includes an MP3 and button component, both of which I don't need.
View 1 Replies
Sep 21, 2009
I'm trying to integrate a preloader into my site and I wanted some feedback on when/where to use it. I think my site will likely be around 3 megs and was going to just use one preloader at the beginning. I then thought about integrating it into each subsection, which will likely be around a meg a piece.
View 1 Replies
Jan 18, 2008
how to make a new preloader work in a flash template which has it own preloader.Im not talking about the preloader for the site, but for loading the external swf in between. The buttons/menu are loaded via xml. And when you click on a button, it loads a external swf and this is where the preloader works.
[Code]...
View 1 Replies
Jun 10, 2008
we have a website online the last few days, narrowcastmedia.co.za. Everything works well but the only prob encountered so far is our main preloader (positioned on the 1st frame, once loaded it sends you to frame 3 where the rest of the code lies), the preloader itself only is visible when starting around 80/90%. I want to be able to see the preloader loading the site from 0%. Ive changed the settings of AS2 where i export the classes in frame 3. it helps a little bit but still the preloader starts now from around 60/70% and still not from 0%. A AS file is attached so you guys can have a look at the code behind the preloader.
View 5 Replies
Jul 15, 2009
I made a preloader that works perfectly to load one of my .swf's on my machine, but how do I make it work on a site? I'm mocking up a site currently just using local files.
View 2 Replies
Feb 23, 2002
I must be the stupidest person on the face of the earth! I don't know how to make a bar preloader for my site!
View 1 Replies
Dec 11, 2010
I'm using the sample external preloader file supplied with CS5 as the basis for my customised pre-loader. It's working fine except that once the main site has loaded and is open, the preloader remains loaded in the background.[code]...
View 7 Replies
Jun 24, 2009
Here's the site... [URL] *Just type in "insight" as the password. After the site launches click your refresh button and the site sticks on the preloader. The loader is just checking to see if all bytes are loaded and there's a shared object that sent to a user's system that is also checked at start up.
View 0 Replies
Dec 15, 2009
I am trying make a preloader for a site I've bulit.I did this site via the displaylist the whole thing and I have every pages linked togther as actionscript files
View 0 Replies
Mar 11, 2004
How it is done, when you enter to site [URL]. Preloader loading the content of site and when you re-enter to site you see the preloader once again and preloader loading from 1 to 100 fast. What script cause this effect?
I have 2 mc, mc1 with script :
onClipEvent (enterFrame) {
if (!loaded && this._url != _root._url) {
if (this.getBytesLoaded() == this.getBytesTotal()) {
loaded = true;
_root.mc2.gotoAndPlay("preloader");
}}}
And mc2 have preloader in 2 frames and then goes frame with label loadMovie("content") but its not working.
View 3 Replies
Dec 7, 2004
i got this script out of a flash MX book but it doesnt seem to be working. i'm trying to create a preloader with a simple status bar that loads a scene within the same file. the scene does end up loading. but the status bar just says "100% completed" the whole time its loading the scene. is there a flaw in the script or an i doing something else wrong?
[Code]...
View 5 Replies
Dec 7, 2004
i got this script out of a flash MX book but it doesnt seem to be working....im trying to create a preloader with a simple status bar that loads a scene within the same file. the scene does end up loading....but the status bar just says "100% completed" the whole time its loading the scene. is there a flaw in the script or an i doing something else wrong?
onClipEvent(enterFrame) {
loaded = _root.getBytesLoaded();
total = _root.getBytesLoaded();
View 5 Replies
Jun 26, 2009
I have a full flash website which is broken down into:
- Main movie which contains navigation and interface components
- Several content movies which are loaded into the main movie on demand
- An intro movie which is around 3MB in size; its a full CG movie.
At the moment the main movie preloads and then the intro movie preloads afterwards in a sequence; like so:
Main Movie > Intro Movie > Content Loads
There is a skip intro option which will skip the intro movie step and jump right to the content load once the main movie has loaded.
My client wants me to do something which is proving very difficult and I am starting to wonder if its even possible as searches on the net have given results which don't really work properly.
Here is what I need to do:
When the main movie is requested, its preloader appears which it has a load bar and a "skip intro" button. The difference being, this preloader will be loading the main movie AND the preloader; which the load bar representing both movies load progress.
To complicate matters, if the skip intro button is pressed, the preloader needs to drop the intro movie from the equation and just account for the main movie & thus skip the intro; straight to the content.
The way I have tried to do it is to have a preloader code in the intro which sends the total size and bytesloaded back to the main movie which deals with those values, adding it onto its own size. This is proving cumbersome and although appeared to be working, isn't working propery.
View 1 Replies
Jan 3, 2012
I'm in the middle of optimising a site, to which end I've constructed a preloader / welcome screen. My problem is that although the preloader apparently works (as in the bar moves and a numerical "percentage loaded" value is displayed), it only appears once the rest of the site is 80-90% loaded, i.e defeating its purpose.....?
View 2 Replies
Feb 14, 2007
So I make my site in flash, forget to add a preloader for the main timeline. I go back and add the extra frames to allow this but as soon as I add even just one more frame it make all my graphics go jaggy edged!?! See diagram below.
View 6 Replies
Jan 27, 2011
ive made a button in the scene 1 which i have managed to navigate to scene 2 but when i click the button it goes to scene 2 but displays everthing that is in scene 1 in scene 2, how can sort this out so upon the button click in scene 1 it goes to scene 2 and only display content in scene2.
[Code]...
View 1 Replies
Jan 2, 2005
I wrote this AS for my preloader which schould be able to load a movie clip after pressing a specif button in the main sceene:
[Code]....
1) The problem is that to be able to target a movieclip I will need to give it a instance name. Where can i find this function in MX ?
2) I cannot understant how I schoul put a loadBar being a small movieclip on the main timeline, I think( the same timeline the container clip is at ) or maybe not ? well I am bit confused now..
Well I have done already a sceene preloader for my site and it works perfectly and i did not experience any problems as Im having now with this new kind of preloader.
View 2 Replies