Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Preloader not working!!!!!!

New Here ,
Aug 31, 2010 Aug 31, 2010

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

TOPICS
ActionScript
1.7K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 31, 2010 Aug 31, 2010

have you uploaded your files, cleared your cache and tested?


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 31, 2010 Aug 31, 2010

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 31, 2010 Aug 31, 2010

what's the url to your problematic embedding html?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 31, 2010 Aug 31, 2010

the site is http://www.gingersnapscafe.com

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 31, 2010 Aug 31, 2010

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 02, 2010 Sep 02, 2010

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...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 02, 2010 Sep 02, 2010

what DID NOT WORK?  and what did you see?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 02, 2010 Sep 02, 2010

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 02, 2010 Sep 02, 2010

is there an error message?


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 03, 2010 Sep 03, 2010

No, no error is shown....it just wont work. Is there a preloader script you can paste here that i can try??

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 03, 2010 Sep 03, 2010

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 03, 2010 Sep 03, 2010

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 04, 2010 Sep 04, 2010
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines