Having Trouble With Preloader
I followed the preloader tutorial from here:http://www.lukamaras.com/tutorials/p...preloader.html
And found it worked when I tested it in flash and went to View > Simulate Download, but for some reason after I published it and uploaded it to my website it didn't work.
Could someone help me out please? Thanx!
FlashKit > Flash Help > Flash Newbies
Posted on: 08-05-2007, 07:54 PM
View Complete Forum Thread with Replies
Sponsored Links:
---Preloader Trouble---
Ok i finally got my preloader to work.. and this is where i got my tutorial...
http://www.gear78.com/v2/tutorials/tutpreload.html
It works excellent on explorer but is messed up on netscape and wont go on to the main page-
Is there soemthing wrong with the tutorial that it wont work on netscape? I want my page to be able to be viewed in all browswers... PLEASE HELP-
Please e-mail me- Mystixdelight@hotmail.com
View Replies !
View Related
Still Having Trouble With Preloader
I've got a file (RadioFlash.swf) that loads MP3s from another file (sound.swf)
Heres the script I'm using:
onClipEvent(load){
loadMovieNum("sound.swf",1)
}
onClipEvent(enterFrame){
percentloaded=Math.floor((_level1.getBytesLoaded()/_level1.getBytesTotal())*100)
percentdisplay=percentloaded + "%"
if (_level1.getBytesLoaded() == _level1.getBytesTotal()) _root.play()
}
This seems to jump past the preload frame without running the preload animation, and then the sound file is not loaded.
I have also used this script version:
onClipEvent(load){
loadMovieNum("sound.swf",1)
}
onClipEvent(enterFrame){
percentloaded=Math.floor((_level1.getBytesLoaded()/_level1.getBytesTotal())*100)
percentdisplay=percentloaded + "%"
if(percentloaded == 100 && !initialized) _root.play()
}
This version just gets stuck on the preload animation, so I don't know if the sound.swf file is ever loaded, I suspect it is not.
I don't totally know what I'm doing, but there seems to need some other way of testing for the amount loaded.
It could be that the first script is working, but that the sound.swf file is not being loaded, because the buttoons for playing the sounds never work.
But if this were the case, and the "if statement" were really testing for amount loaded, then it should just keep running the preloader animation.
I'm way over my head (which isn't too hard) could one of you script smarties help me figure out why my preload script isn't working?
If I need to give you more inffo please let me know,
Thanks loads, (or not loading... Heh)
AIRtech
View Replies !
View Related
Having Trouble With Preloader...
Im essentially done with the Intro video Im working on, so I went back to do a Preloader. It was suggested to me that I spread my objects between 20 frames behind a mask of some sort, and that be how my preloader works. However, I am having the following problems doing it this way:
1) my .SWF is now 3 times the size
2) It quickly loads until it gets to the frame with the music, which takes forever and makes the Percentage inaccurate a far as time goes.
3) The music in my Preloader and the music in my actual movie are both playing, thus creating a nasty echo sounding effect.
I was wondering if someone had any suggestions on Preload creation, preferably something easy as Im a Flash noob, but something that wont triple the size of my video Thanks
View Replies !
View Related
Preloader Trouble.
I was wondering if anyone can point me in the direction of a decent preloader (including loading bar) tutorial for flash mx.
I tried one I found on the flashkit website but I encountered a problem:
Whenever I tried to test it to see if it worked, obviously on my own machine, it loads instantaeously... so I uploaded it to my server and tried to get it through IE, but IE tries to download the whole thing before playing it... so obviously I cant tell if it worked.
Anyone know what I'm doing wrong?
View Replies !
View Related
Preloader Help Big Trouble...
Hi everybody....
This might not be as big a problem as it sounds, I just don't know how to do this...
I got a index.swf file. It loads several external *.swf files using the loadmovie function. My menu, the contens, the background, my music and so on...
How do I make a preloader in my index.swf file that preloads all the other *.swf files before it start to play??
I can't seem to figure this out. Could one of you please help me...
Thanks!
--
dizx4y
View Replies !
View Related
Preloader Trouble
Hello, I cant seem to figure this one out. I have an animation which is of a mc named content. It slides over from the left with this script attached to it:
onClipEvent(load)
{
toX = 350.7;
ease = 5;
}
onClipEvent(enterFrame)
{
_x += (toX - _x)/ease;
}
I then, on another layer, have a preloader bar. It is a mc named preloader with an mc inside of it named loaderbar, which is a red bar that grows with the load. The script attached to the preloader mc is this:
onClipEvent(enterFrame){
if(_parent.content._x=350.7){
preloader.loaderBar._visible=1;
var download= getBytesTotal();
var downloaded= getBytesLoaded();
var percentLoaded= Math.ceil(downloaded/download*100)
loaderBar._width= percentLoaded;
}
if(download==downloaded && download>0){
_root.gotoAndPlay(2);
}
}
This must be much easier than I think it is. I have posted the fla for further information.
Thanks for your help,
Greg
View Replies !
View Related
Preloader Trouble
im having troubles with my percent preloader. i can make it and everything but when ever i try to make a background with the pre loader it delete it. how can i make a percent preloader with some color
View Replies !
View Related
Preloader Trouble
im having troubles with my percent preloader. i can make it and everything but when ever i try to make a background with the pre loader it delete it. how can i make a percent preloader with some color
View Replies !
View Related
I Cant Believe I Having Trouble With A Preloader
Hey-
check the attached FLA... All i'm trying to do is add ONE frame before my preload so that a little flashing "ACCESSING DATA" shows so there's no dead space before the images load.. And no matter what i chagne, it seems to screw up the preloader... andy ideas?
PS this is in MX2004 format.
thanks,
-myk
View Replies !
View Related
Preloader Trouble
Hey evereyone!
An interesting theoretical question: I have made a website entirely in flash with buttons loading external swf pages. But I decided to put preloaders in each swf page. And now when I test it, the main page just gets stuck when it goes to load a new page. Is there anything to take into consideration when loading external swf which include preloaders?
Heres the code to the preloader Im currently using (if this helps):
bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
_root.loadBar._width = getPercent*100;
_root.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
_root.gotoAndPlay(4);
}
Please note that I am using this exact same preloader at the start of all the external swf pages.
Can anyone figure this out??
Thanks!!
View Replies !
View Related
Preloader Trouble
I'm useing this code
Code:
loaded = getBytesLoaded()
total = getBytesTotal()
if (loaded == total){
gotoAndPlay("Credits", 0);
} else {
stop();
}
the loading and total dynamic text areas don't change the values as the movie loads. HEELLPP!!!!
View Replies !
View Related
Preloader Trouble...
Hi
I use a preloader script that works fine for a level0 movie, but when I import another movie (_level1 ) the preloader doesn't work for the imported movie
onClipEvent (load) {
_xscale = 0;
}
onClipEvent (enterFrame) {
counter = math.floor(_parent.getBytesLoaded()/_parent.getBytesTotal()*100);
counterpercent = counter+"%";
if (counter>=100) {
play();
} else {
_xscale = counter;
}
}
View Replies !
View Related
I'm Having Trouble With A Preloader....
I have a page that contains video therefore I want to have a preloader to show the viewer that it could take about a minute to load. But my problem is that I have the preloader in another *.fla file outside the main *.fla (where the video is). How can I call the preloader.fla into the main.fla and make it work when I publish it? Or is there a better way of doing this?
Flash MX 2004 7.2
View Replies !
View Related
Preloader Trouble
ive put a preloader on my site but when it starts loading the screen is all white and after a few minutes the loading bar appears on screen at almost 100%, why does it not show up until its nearly fully loaded
View Replies !
View Related
Preloader Trouble....
Ok I'm having some problems with my flash movie. I have Flash MX Professional 2004. I set my Background to Black and made my preloader and start button. But when I went to check the movie all I saw was black. Can someone help me please?
Ill send the .fla if you want to see what I mean.
View Replies !
View Related
[F8] Preloader Trouble
I'm loading JPGs into a movieclip using the MovieClipLoader method (all this from a custom class called ImageLoader). In the onLoadProgress event, I've placed a reference to my preloader movie by writting the following:
code:
listener.onLoadProgress = function(bytesLoaded:Number, bytesTotal:Number){
_level0.preLoader._alpha = 100;
_level0.preLoader.textBox.text = bytesLoaded + " :loaded bytes
" + bytesTotal + " :total bytes";
}
For some reason, the text is not updating. Is there something I'm doing wrong?
View Replies !
View Related
AS3 Preloader Trouble
Wow, I never thought I'd have trouble getting a preloader to work again, but I just built my first AS3 project, and now that it is a beautiful, working FLV player, I'm stuck on the freaking preloader.
I'm monitoring the loaderInfo.bytesloaded property and bytesTotal to tell a function that is called every 500ms whether the movie is loaded yet or not. The problem is frame 1 where the loader text alone resides doesn't show up until about 70% of the way through the load, then it looks great to 100% and moves on.
I get this error in my ouput at the beginning of the load:
Error #2044: Unhandled IOErrorEvent:. text=
Error #2036: Load Never Completed.
And the preview window tells me something like 66K of the 93K has to load it frame 1 before the load text shows up. I don't use components often but did in this--do components have to load before a preloader will show up??
Here's my code on frame 1 if it helps. Much obliged.
PHP Code:
stop();
var percent:Number;
var loadInt:uint = setInterval(setLoadText, 500);
function setLoadText()
{
trace("loaderInfo.bytesLoaded is "+loaderInfo.bytesLoaded);
percent = Math.round(loaderInfo.bytesLoaded / loaderInfo.bytesTotal * 100);
if (percent < 100)
{
percent_txt.text = String(percent);
}
else
{
percent_txt.text = "100";
clearInterval(loadInt);
play();
}
}
View Replies !
View Related
Preloader Trouble
Using CS3
Publish Settings: AS 2 for Flash 8 or 9 player
I have this Preload Script on Scene 1 that is working great, except instead of pointing to frame 1 of scene 2 when it's complete, it points to frame 100 in Scene 2. Can anyone tell me why?
Quote:
loadedbytes = getBytesLoaded();
totalbytes = getBytesTotal();
loadedkbytes = Math.ceil(loadedbytes/1000);
totalkbytes = Math.ceil(totalbytes/1000);
if (loadedbytes == totalbytes) {
nextScene ();
}
frame = int(loadedbytes/(totalbytes/100));
tellTarget (_root.mainloader.loader) {
gotoAndStop (_root.frame);
}
http://dev.sheridan.edu/newsite/File_with_bug3.fla
View Replies !
View Related
Preloader Trouble
Hi,
I'm involved with my first Flash Project using Action Script. Im having some problems with my preloader. I have the following script to prevent the page playing before it has been completely loaded. The problem is that if someone clicks out of the page while it was still loading, 'myInterval' won't be cleared and will mess things up. I'm assuming I need an 'else' command. Just not sure how, Any help?
stop();
myInterval = setInterval (preloader, 50);
function preloader() {
if (getBytesLoaded()>=getBytesTotal() ) {
play()
clearInterval (myInterval)
}
}
View Replies !
View Related
Preloader Trouble
Hello,
I am using a preloader I picked up from Lynda.com. When I run it the SWF file loads along with the preloader. All the contents of the SWF are not there and are still loading, and the preloader is running correctly. How do I stop this from happening with the script I have. Thanks for the help, just learning this stuff.
var myMCL:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
myMCL.addListener(myListener);
myListener.onLoadProgress = function(target_mc:MovieClip, bytesLoaded:Number, bytesTotal:Number) {
var loaded:Number = Math.round((bytesLoaded/bytesTotal) * 100) ;
progressBar.gotoAndStop(loaded);
}
myListener.onLoadInit = function (target_mc:MovieClip) {
progressBar._visible = false;
}
myListener.onLoadStart = function (target_mc:MovieClip) {
progressBar._visible = true;
}
myMCL.loadClip("
View Replies !
View Related
Preloader Trouble
Im sorry if this has already been posted, but I have to finish this project tonight because I have my ACT tomorrow, and I have a massive amount of AP Chem homework to do... Anyways...
I made the preloader from the tutorial that kirupa made (link ). i have two scenes in my flash movie...The loader scene and the main_content scene. When I test the movie inside my flash program (ctrl+enter) it just sits there and blinks. I have to hit ctrl+enter again to simulate the streaming, and then it works, but it wont go to the next scene and play it when it's finished loading.
here is a link to the file: http://www.wildministries.net/loader.htm
any help is much apreciated! (sorry for any typos)
View Replies !
View Related
Preloader Trouble
I have a movie, that works fine but when I add my preloader and the movie
loads,
the graphics, lines etc.. are slightly broken and it looks horrible.
Any ideas as to why a preloader would cause this?
Thanks
View Replies !
View Related
Trouble With Preloader
I was trying to add a preloader to the dynamic pageflip but it for some reason isnt working and I have started over many times and I just cant seem to get it right. I thought that maybe if I ad empty frames and put the actions for the preloader on a seperate layer from the rest of the actions it would help but it didnt. Here is a link to the file in question and the original page flip file
File in question
Orginal Zip file
Thanks guys
View Replies !
View Related
Preloader Trouble Please Help
hey all,
i will admit im a newbie at flash!! but been making websites on and off using html for 7years or so!
anyways everytime i try to make a preloader for my site it just strobes the site on and off!!
if anyone can help, i have put the site up anyway (will take an age to download i think) the address is www.coreproductions.co.uk
also if anyone has anyideas on how to speed up the opening of the site i would be very gratefull.....
thanks tim
ps fla file is at www.coreproductions.co.uk/home.fla
View Replies !
View Related
Preloader Trouble
Hello I am a huge noob!
I was working on a flash site for a friend and I am running into some trouble. I need the loader to center horizontally. I achieved that with some open source flash code I found (I use alot of that because I am a newbie). But my loader does not work correctly.
It should:
Go through a series of items that say "whatever...NO" then when the movie is loaded say "Legend...YEAH" then go into the movie it was loading.
It would mean the world to me if you could take a look at my .fla and see where I am going wrong.
You should be able to see what I am going for once you get in there. If not, just ask!
THANKS A MILLION!!!!!
Jordan
http://www.destreedesign.com/preloaderhelp.zip
View Replies !
View Related
Preloader Trouble
Im sorry if this has already been posted, but I have to finish this project tonight because I have my ACT tomorrow, and I have a massive amount of AP Chem homework to do... Anyways...
I made the preloader from the tutorial that kirupa made (link ). i have two scenes in my flash movie...The loader scene and the main_content scene. When I test the movie inside my flash program (ctrl+enter) it just sits there and blinks. I have to hit ctrl+enter again to simulate the streaming, and then it works, but it wont go to the next scene and play it when it's finished loading.
here is a link to the file: http://www.wildministries.net/loader.htm
any help is much apreciated! (sorry for any typos)
View Replies !
View Related
Preloader Trouble
I have recently Added sound to my site which makes it a little larger so i actually need my preloader now but it has decided not to work it is kinda offputting seen as it takes a while to load now on modem connections so i have had to put a notice up the fla is located here
http://members.aol.com/notnowtom/private/site.fla
if u can get it workin I would be grateful Cheers
-tom
View Replies !
View Related
Preloader Trouble
I have a movie, that works fine but when I add my preloader and the movie
loads,
the graphics, lines etc.. are slightly broken and it looks horrible.
Any ideas as to why a preloader would cause this?
Thanks
View Replies !
View Related
Trouble With Preloader
I was trying to add a preloader to the dynamic pageflip but it for some reason isnt working and I have started over many times and I just cant seem to get it right. I thought that maybe if I ad empty frames and put the actions for the preloader on a seperate layer from the rest of the actions it would help but it didnt. Here is a link to the file in question and the original page flip file
File in question
Orginal Zip file
Thanks guys
View Replies !
View Related
Preloader Trouble
I realize I am asking basic questions and I appologise.
I figured out the gallery tutorial and thought I would put a preloader on my larger slideshow. I am trying the "using the preloader component" tutorial.
My problem is: When I publish the file, my back and next buttons flash on and off with the preloder. I must be missing something.
View Replies !
View Related
Preloader Trouble Please Help
hey all,
i will admit im a newbie at flash!! but been making websites on and off using html for 7years or so!
anyways everytime i try to make a preloader for my site it just strobes the site on and off!!
if anyone can help, i have put the site up anyway (will take an age to download i think) the address is www.coreproductions.co.uk
also if anyone has anyideas on how to speed up the opening of the site i would be very gratefull.....
thanks tim
ps fla file is at www.coreproductions.co.uk/home.fla
View Replies !
View Related
Preloader Trouble
First off im a novice at flash, I have a flash movie i made and my friend added a preloader to it, when I tried to change it it got screwed up. here is the flash page Deep6.
The fla file is here .
Any help is much appreciated!
View Replies !
View Related
Newbie Having Preloader Trouble...help?
hi, here is my situation...
i have a 'mymovie.swf' that im loading into my main movie. the swf has a preloader in the first scene, and the content in the next.
here is the code for the preloader:
loadedbytes = getBytesLoaded();
totalbytes = getBytesTotal();
if (loadedbytes == totalbytes) {
nextScene();
}
frame = int(loadedbytes/(totalbytes/100));
tellTarget (_root.loader) {
gotoAndStop(_root.frame);
}
I am using dynamic text fields for my 'loadedbytes', 'totalbytes', and 'frame' vars. I also have a simple loading bar MC ('loader') that tweens from frame 1-100. Now, as a stand alone movie, this swf works great.
Here is my problem:
when i loadMovie("mymovie.swf", "_root.main.target") the dynamic text does not show up at all, and the 'loader' only travels about 1/4 of the total length before the next scene loads.
Any help or advice would be appreciated.
thanks,
bscott
View Replies !
View Related
Preloader And Form Trouble
I have problem getting the preloader to work and I also have a question about the form. The preloader is not loading the file correctly. I have had this problem before. Is there something special you need to do with the preloader to get it to realize there are multiple MCs it needs to preload? The only time I have this problem is when I have a bunch of MCs to load.
How can I get the form to go to a certain frame if the questions are not answered correctly? I have the file all put together if someone would be willing to take a look at it. You can email me at notyouraverage-joe@excite.com and I will send you the .fla. If anyone out there can help me I would appreciate it. Thanks for your time.
View Replies !
View Related
Big Trouble In Preloader Areas
Please help if you can! I have been sharing my preloader, just a little movieclip, between about 12 files from one source file. The Problem is, on photographers.asp or photographersstatic.asp if you qickly move your mouse over to the left on the FIRST load of the movie it will freeze and put up odd symbols. It has me on the verge of convulsions. PLease help!
www.wincreps.com password: present
ah the preloader code is
ifFrameLoaded (_totalframes) {
gotoAndPlay(2);
}
but this works for all pages except two. PLUS the pages are sometimes faulty on Netscape Navigator 6.2. Please please please.
Thanks-
Katy
View Replies !
View Related
Flash Preloader Trouble....
I know it must be a simple thing but everything I try doesn't work...
What i want is a preloader to load the whole movie, and that preloader is to be in a scene before the main scene.
I dont want a bar...im just going to have my custom Movie Clip (already made it), dont need to bother about percentage.
If there is anyone that knows a code that works and is willing to tell me where to put what please reply.
Any help is appreciated.
View Replies !
View Related
Having Trouble Getting MCL And Preloader To Jive
i'm building a flash site with a 'master' swf on _level0 containing the script for my MovieClipLoader and a preloader that appears on _level50. all of the content .swf's load on _level5. the problem i'm having is that the swf's are starting up before they are completely loaded, when the preloader disappears. i want the swf's to completely load before they start playing.
so far i've tried putting variations of the following script on frame a1 of the swf that is loading:
code:
if (_framesloaded >= _totalframes) {
gotoAndPlay(2);
}else{
gotoAndStop(1);
}
and none of what i tried worked. so i then tried putting variations of the following script in the same place:
code:
stop();
_level0.myListener.onLoadProgress = function (target_mc, loadedBytes, totalBytes) {
if (loadedBytes >= totalBytes) {
gotoAndPlay(1);
}else{
gotoAndStop(1);
}
}
this too did not work.
can someone help me straighten out my programming? is there something i can script on _level0 and somehow tie it in directly with my preloader script:
code:
//--------------------------------------------------movieClipLoader (MCL) begin
var myMCL:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
myMCL.addListener(myListener);
//----------------------------------------------------movieClipLoader (MCL) end
//----------------------------------------------------------------preloader begin
myListener.onLoadProgress = function (target_mc, loadedBytes, totalBytes) {
_level50._visible = true;
var preloadPercent:Number = Math.round((loadedBytes / totalBytes) * 100);
_level50.preloadInfo1.text = preloadPercent + "%";
_level50.preloadInfo2.text = Math.round(loadedBytes/1000) + "k";
}
myListener.onLoadComplete = function (target_mc) {
_level50._visible = false;
}
//----------------------------------------------------------------preloader end
*the rest of the preloader script is on the preloader.swf, but this is the meat of it.
this seems to me to be an easy fix, but it's been thwarting me for a week now! HELP!
View Replies !
View Related
Trouble Shooting A Preloader
I have a prelaoder and my problem is it starts on about 93%. Its for a game and it started when i was using the attachmovie command. Im not sure how to deal with this or this problem makes sense but thank you for reading it.
View Replies !
View Related
Preloader Loading Trouble
Hello all,
I have this loader that starts playing the content, before the content has loaded entirely.
Now this is a problem because my content still sits there and does nothing until it's all loaded anyhow.
Any thoughts.
Thanks
\C
Attach Code
var requestObj:URLRequest = new URLRequest("kitoShell.swf");
var loaderObj:Loader = new Loader();
addChild(loaderObj);
loaderObj.load(requestObj);
loaderObj.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, preloadProgress);
function preloadProgress(event:ProgressEvent):void {
var loadedPercent:int = event.bytesLoaded / event.bytesTotal * 100;
preloader_mc.loadingBar_mc.loaderText_txt.text = loadedPercent + "%";
}
loaderObj.contentLoaderInfo.addEventListener(Event.COMPLETE, preloadComplete);
function preloadComplete(event:Event):void {
preloader_mc.visible = false;
}
View Replies !
View Related
Trouble With Preloader Tutorial.....
hello i am trying to apply the lessons taught in this tutorial about loading dynamic files and using preloaders to a project i am working on.
http://www.kirupa.com/developer/mx/p...transition.htm
the problem i am having is that i cannot figure out how to control where the external .swf that i am loading loads onto my stage.
can anyone help me out? thanks
View Replies !
View Related
Trouble Preloading Preloader
I posted this problem in the general flash topic area too, but it is actually an actionscript question. Attached is the kirupa xml image gallery which I have added a preloader to (in the real version, graphics have been attached to the gallery interface)
When I attach the preloader, the IMAGE preloaders stop working. I'm sure this is a quick fix, but I need BOTH sets of preloaders to work.
Thanks in advance
nlaffan
View Replies !
View Related
Preloader/Button Trouble
Hey guys i am using the tut on this site about the preloader with tween ( http://www.kirupa.com/developer/acti..._preloader.htm ) and im having a problem. It says to insert your movie in scene 2 but when i did that the buttons i had didnt work correctly. This movie is a one frame long but is embeded part of a complete flash site where it loads an external swf on top of the exsisting one. What it is is basically a photo gallery of 9 pictures lined up and i want to be able to click them aand have a centered pop up window come up with a bigger image. This was all working fine until i tried it after the preloader. Im not sure what kind of action to put behing the movie in the second scene to make it work. Thanks!
Nick
View Replies !
View Related
Preloader And Targeting Trouble...
I'm currently putting a portfolio together in Flash 8 Pro and I'm learning my actionscript in the process. I tend to do things the hard way sometimes, but it's perhaps because I just don't know any better. So let me explain my whole situation and I'll include code and links and everything.
I have a main "interface" .swf sitting on an html page. On this "interface" .swf, I have an empty movie clip that holds all the sections when they get clicked on. On one of those sections, "flash", I also have an empty movie clip to play these flash presentations I made at an old job.
So the order starts like this, Main Interface w/empty movie clip, "portfolio.swf", this portfolio.swf calls up all my different sections, including the "flash" section, ("flash.swf), and then that .swf has links to call up these short presentations that load into another empty movie clip, the particular one I'm testing on is, "2003_apo.swf".
I have a preloader on each individual section, ("flash","print","illustration","web design", etc.), and all these sections load up fine.
I have a secondary preloader for the presentation .swfs and the actionscript is pretty standard and the preload bar which I changed to a masked image works fine, it's the %percentage number load I can't get to display/function correctly. What I'm getting when I check the section is the bar working fine, but neither the number loaded or percentage sign appear, so I figure it's the targeting of my code.
On the code I used, I included fields for _this, _parent, _root, just because I wasn't sure after going through them, and then just wanted to test it out. Whenever I check the "2003_apo.swf" outside of that interface and independently in a browser window, I get the default "myTextField", as well as the "_root" to function properly, but inside my whole interface thing, within the section and everything, it's just not coming up right.
here's my code.
stop();
myInterval =setInterval(preloader, 10);
function preloader() {
if (getBytesLoaded() >= getBytesTotal()) {
play();
clearInterval(myInterval)
}
progressBar._xscale = (getBytesLoaded()/getBytesTotal())*100;
myTextField.text = Math.round(getBytesLoaded()/getBytesTotal()*100)+ "%";
_root.myTextField2.text = Math.round(getBytesLoaded()/getBytesTotal()*100)+ "%";
_parent.myTextField3.text = Math.round(getBytesLoaded()/getBytesTotal()*100)+ "%";
_this.myTextField4.text = Math.round(getBytesLoaded()/getBytesTotal()*100)+ "%";
}
I did coincide every "myTextField" number with an appropriate dynamic text box in the .swf. You'll see the labels I did in the independent "2003_apo.swf", but not in the presentation interface. I'm not sure if the targeting that I've got wrong or if it's something else.
Of course, the links for those who might want to take a peak at it:
the portfolio interface thing:
http://www.hermanisnotdead.com/test/portfolio.html
how to get there... ?
1. click on the arrow menu on the top left and the navigation slides out.
2. click on "flash"
3. then when the section comes up, click "continue"
4. then "presentations"
5. then when you see all the boxes displayed, it's the middle box in the top row, and when it's displayed in the "main" window, you'll see it's title, "2003 Physician Organization Consultants Meeting", and if you click "view presentation", it should load up the movie.
the testing .swf alone in the browser:
http://www.hermanisnotdead.com/test/2003_apo.swf
For those looking at the rest of it, yes, I know there are probably better ways of doing a lot of what I've done, but this is my first go at doing a whole interactive project with actionscript so forgive my sloppiness.
Any help is grately appreciated. Thank you for your time...
herman.
View Replies !
View Related
Please Help....Flash Preloader Trouble
Hello there....
I'm having a problem with preloaders in flash.
I've gone throught the kirupa tutorial in creating a flash preloader by downloading the loader component. I've imported my .jpg and dropped it into the appropriate frame.
I've also checked the movie by hitting ctrl- enter twice and it loads beautifully.
BUT...... when i ftp it onto my site the preloader doesnt work properly at all.
It gets stuck on what would be the last frame of the preloader and doesnt show the bar increasing. the image does however show up.
Not sure what is wrong?????
View Replies !
View Related
Circle Preloader Having Trouble
I am having troublr creating a preloader with the bar as a cirlce umm I am not a genisu when it comes to actionscript so I am relying on flash 8 book and tutorials and its not working is there a tutorial that someone may know of to help me?
View Replies !
View Related
|