ActionScript 2.0 :: Just Preload 50% Then Play ?
Jul 28, 2004I want just file preload 50% and then it play, 50% remain it will load while playing. But I can't do it, here is my code:
[Code]...
I want just file preload 50% and then it play, 50% remain it will load while playing. But I can't do it, here is my code:
[Code]...
i have a project i am working on...but for some reason the solution i went with is not satisfying my instructor......
so....here is my new code ( which is incorrect but i cant figure out how to arrange the preloader at the end )
[Code]....
first off, i dont even know if what i am being asked to do is possible...but, what i am being requested to do is obviously load in the external swf BUT, the external swf cannot play until the MAIN swf is directed to "start"......
i have done this numerous times in as1 and 2....but back then things were totally written different and if you do it the same way you run into migration issues....
i thought this was solved already, but my instructor will not accept the method of using an event to be dispatched in the external SWF to tell the main swf when to play "start"....im not sure if there is any other way to do this?
he wants the external swf to contain NO code other than what is necessary for its internal functions.. everything is to be coded in the MAIN swf
so im trying to use bytesTotal, and the percent==100 is just a number i threw in for example purposes...
I want to preload a swf and insted of a bar I would like to play 5 mc at intervals trigered by the persentage of the total loadedI want to set a new loader event of a URL = my_movie.swfand a progress.complete event
var percent of total loaded
Then - if (percent==20%);{gotoAndPlay (20%movie clip)
then -if (percent==80%);{gotoAndPlay (60%movie clip)
[code]....
I've been playin around with loading MP3's externally ... and I finially managed to get a preloader working ... however, now at the end of the preload function it doesn't play the file!?If the mp3 is in the browser cache ... it will play the file!? How weird.wanna see? The Site Click the top right button for the player to slide out.
My code:
Code:
mySounda = new Sound();
preloadNow = 1;
mySounda.loadSound("Track2.mp3",false);
[code]....
I discovered that my preloader wasn't working before becoz I had two "onEnterFrame" events on the same frame. Obviously a no-no.
I want just file preload 50% and then it play, 50% remain it will load while playing. But I can't do it, here is my code:
Code:
bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
bytes_total = bytes_total/2; // it will loop because it turn back to play untill full load
[code]....
I want to preload a movie into my main movie (so I know it's safely loaded fully). BUT I don't want it to start playing until a specific frame in the main movie? Preload movie but can't play until a specific frame
View 5 RepliesI want to preload a movie into my main movie (so I know it's safely loaded fully). BUT I don't want it to start playing until a specific frame in the main movie?Does anyone know how to do this in actionscript 2.0?
View 2 RepliesI've a preload bar in my movieclip that i add on the stage for every thumb. With this code only the last preload bar does the preload...the others don't do anything...Here the code:
[Code]...
I have a site with several images on it. there is a main image with buttons on it, and each button load a series of images (simulating a zoom) What i want to know is if there is a way to preload the external swf (the ones each button loads) while the user is looking the main movie, so, when he presses a button, the external swf plays inmediately and there is no "loading" time. I try several ways and google it and find some tutorials but no one works.
View 14 RepliesIn order to put some dynamic content into my flash site, I have used loadvariables in order to retrieve into variables some html content.I have also used dynamic text (renderred as html) in order to retrieve the values of those variables (using Var parameter).My problem is that whenever html indicates <img> tags, those images are loaded when the dynamic texts first appeared in screen.
View 5 RepliesI have 3 swf containing FLV instances, and one main swf file. There are buttons on the main file which link to preloaders for the other 3 swf . I have created 3 separate preloader swf for the 3 sub pages, using movie clips and this [code]...
View 2 Repliesi want to make a preload. I search a lot and i make one preloader with 100%. But i want instade of 100% i want to load a movieclip tha i make and when the movie clip goes in 47frame (last frame) the goes to play the next scen.
View 0 RepliesI have all the graphics together,I have a .swf file that is to large it will not play at desired speed. The background images need to run 882 frames while the rest only needs 210 frames. I want all the layers to loop. I am trying to preload the 882 frames but don't know how to.
View 1 RepliesI'm currently doing my first project in Flash.My client has complained that it pauses after the start of the animation when loaded through a browser for the first time.They are asking me if I can set it up to pre load the animation.
View 6 Replieshaving a few problems with preloaders - starts loading at 50% i want to preload everything in my swf. I have the preloader action on my first frame (along with the sounds)
[Code]...
how can i make a preloader load multiple external (mp3) files before entering the site itself?
View 1 RepliesMy clients have alarge flash presentation (kind of microsite) which is 18MB of size.How can i embed it to their site, and have a preloader for it.The Clients dont have the FLA, as the developer didnt provide, as is out of reach.I am a Zero-Flash knowledge, just a small time web (CSS/HTML) developer.[URL]
View 5 RepliesI am having a movie with 8 scenes and being in Thailand where the internet is slow I would like it to preload before it opens because now, after it opens a lot off the stuff ain't there yet like buttons and animations that are built into different scenes.
View 2 RepliesI've almost finished my flash website for a friend and just want to add a simple MP3 player.I have the following code which reads an XML file and loads the mp3s referred to in it and plays them... this is all cool...(i've removed the bits for the buttons as i didnt think they were relevant)what I really really want to be able to do is buffer the MP3 files so that they begin playing when 1/2 loaded or similar (ideally preload 1/2 of track 1, play track 1, when track 1 loading is complete start preloading track 2 etc.)I just cant work out how to do it...
var my_songs:XMLList;
var my_total:Number;
var my_sound:Sound;
[code].....
I have 3 swfs containing FLV instances, and one main swf file. There are buttons on the main file which link to preloaders for the other 3 swfs. I have created 3 seperate preloader swfs for the 3 sub pages, using movie clips and this code:
[Code]....
It preloads just fine, but it doesnt preload the FLV contained in each swf. It just preloads my 200kb swf file, not the contents, so my movie still has to wait to play. how can I get my preloader to preload everything so that when the SWF comes up, all data will be loaded and I can click through to the end of he FLV movie?
I have made an xml slideshow but my issue is that the images take a few seconds to load when going to the next image. I want to put a transition between them but because of the loading time it doesn't work right. way to getting all the images to preload?
View 1 RepliesI've searched around and seem some other examples but nothing that I really can apply and to be honest, some of them I got completely lost! (I'm obviously a designer rather than coder)[code]...
View 9 RepliesThe code above is my standard preloader for swf, I use it since long time and its all working, I managed above the script another one that load the flv?s that I use in the array. The two are working but my need is that the container only start to play the module after all the flv?s have been loaded to the cache.
One thing to note is that in the second script the array is playing the flv?s when should be only load, I?ve try to give a ns.pause(); but if I do that the array dont get to the end of it.
I'm using the following to load an external SWF. I was wondering if I could preload it with a progressive bar. Can only find preloaders for MCs.[code]
View 1 RepliesHow can I preload just movie clip from library?
This code is loading external file, but I need only one mc from library of actual fla.[code]...
I have a main movie which loads another swf using the Loader class. Once the sub swf is loaded, the sub swf will call an XML to get a dictionary and translate all the text to one language or another. Since the preloader will not take into account a call to an external XML, would this be the correct way to do it? It's plain text but I'm not sure if I will get blank text for a few seconds if a user has a slow connection.
I thought of maybe using dispatchEvent on my sub-movie to tell my parent that the xml is loaded and THEN start the game. What do you think? Any better alternatives? I also checked out LoaderMax (from greensock), since it seems it has some functionality that enables you to take into account external calls from your main preloader... But I haven't tested it out yet.
I am becoming crazy because I really don't find a way to preload the texture image which is automatically loaded by the DAE class.
All that I want is to display the progression of the image loading, before displaying the DAE.
The program works just fine, and I am able to play the vĂdeo.flv in the augmented reality, but i need a preload for this because the flv is about 20Mb... how can I begin to add a preload to this project?
View 1 Replies1- Main movie (index.swf) in 190KB size with a preloader.
2- Sound movie (Sound.swf) in 880kb in size. (A volume control bar and the music in different layers)
3- A placeholder for sound movie inside the main movie.
Problem: When page starts, the index.swf preloads and starts correctly, after that the movie begins. The thing I want ( and I can not do is) the sound bar to preload in the preloader and then the control bar to become vissible while music starts. you can both use loading the external swf to main movie or user another method.
Just one annoyance with both my slideshow and kirupa's, the user has to wait for each image to preload as the slideshow goes through the first time...I am trying to get my head around how to successfully implement one preload at the start for ALL slideshow images.
Code:
#include "as/movieclip_lib.as"
#include "mc_tween2.as"[codee]....
I'm using FMX04 but want the final output to be an AS 1.0 FP 6 file only.