Copy link to clipboard
Copied
I have a AS3 file I used in Flash CS4 that worked just fine. The preloader at the beginning of it worked normally. When I started using it in Flash CS5 it stopped working....at first it would jump around the number instead of going up from 0% to 100%. Then it just quit working all together...I tried saving the swf as a Flash CS4 document in flash cs5 but no luck
Here is my code:
stop();
//Preloader
loaderInfo.addEventListener(ProgressEvent.PROGRESS, updatePreloader);
function updatePreloader(evtObj:ProgressEvent):void
{
//container for the progress of the site (download)
var percent:Number = Math.floor((evtObj.bytesLoaded*100)/evtObj.bytesTotal);
preloader_txt.text = percent+"%";
if (percent==100){
nextFrame();
}
}
What am i doing wrong?
Why wont it work in flash CS5
Copy link to clipboard
Copied
have you uploaded your files, cleared your cache and tested?
Copy link to clipboard
Copied
Yes Lots of times, this has been happening since the release of CS5. I just now have gotten fed up and want to find out whats wrong.
Copy link to clipboard
Copied
what's the url to your problematic embedding html?
Copy link to clipboard
Copied
the site is http://www.gingersnapscafe.com
Copy link to clipboard
Copied
i see "loading cafe" which i assume is your preloader. the fact that no text is seen is usually because of a failure to embed fonts but can be because of any number of factors that cause your textfield to not be visualized (including your font color matching the background color).
if embedding your font fails, enable the border of your textfield and recheck.
Copy link to clipboard
Copied
DID NOT WORK! I also have another flash movie with the same preloader. I didnt ever open in CS5 after what happened to that site....so i just figured i try...I opened it...saved it as a flash CS4 document...then went to publish....published...and it does the same thing...the preloader does not work it just shows 0% with the 0 flashing in and out of view...
Copy link to clipboard
Copied
what DID NOT WORK? and what did you see?
Copy link to clipboard
Copied
well honestly nothing is working lol.
I can see the text areas outline.... like i said when my other page loads the see the % sign but the only number showing up is 0 and it flickers in and out.
Copy link to clipboard
Copied
is there an error message?
Copy link to clipboard
Copied
No, no error is shown....it just wont work. Is there a preloader script you can paste here that i can try??
Copy link to clipboard
Copied
use the trace() function to see what you're doing. if you're testing in the flash test environment make sure you're emulating a download.
Copy link to clipboard
Copied
I use the test thats where i saw it not working first. I use trace in the second site where it also isnt working. The code is exactly the same as whats posted above.
Copy link to clipboard
Copied
i don't think i can help you further without downloading and correcting your files (and i don't do that unless i'm hired).
possibly someone else may be able to help you in this forum.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more