zzyycc / bulk-loader

Automatically exported from code.google.com/p/bulk-loader
0 stars 0 forks source link

weightPercent always 0 in Safari #119

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Add some loading items to your loader, give weights to your items
2. start loading
3. loader.addEventListener(BulkLoader.PROGRESS, onLoaderProgress);
4. private function onLoaderProgress(event : BulkProgressEvent) : void {
            trace("weight vs. perc", event.weightPercent, event.percentLoaded);
        }

What is the expected output? What do you see instead?
weightPercent should give a number between 0-1, works on firefox, ie, chrome. 
Works not on Safari - event.weightPercent ist always 0

What version of the product are you using? On what operating system?
BulkLoader r282, Windows, Same on Mac OSX and Safari

There's nothing special in my code, I'm just loading some images and swfs...and 
it works in Firefox, IE and Chrome...only Safari shows 0.

Thanks a lot for BulkLoader!
Daniel

Original issue reported on code.google.com by heide...@gmail.com on 16 Jun 2010 at 11:40

GoogleCodeExporter commented 8 years ago
Hi Daniel.

Thanks for the report. 
What version of safari are you running? I have 4.x here and I cannot reproduce 
it. If you are running Safari 5, I'd ask you for some help diagnosing the 
issue, since I don't have it on my local machine.

1. Can you run the test suite at:
http://www.emptywhite.com/bulkloader-assets/test-suite/TestSuite.swf
and let me know which tests fail?

2. Can you create a simple as3 class using a regular Loader objet to load an 
image, and check that both bytesLoaded and bytesTotal are correctly being set?

The reason I ask is because there is nothing ** at all** browser specific about 
BulkLoader. If there is something wrong on a particular Safari reason, it's 
likely a bug on their part, and will therefore affect the native api as well.

Best regards,

Original comment by debert on 16 Jun 2010 at 11:55

GoogleCodeExporter commented 8 years ago
Hi Arthur,

thank's for you fast replay. I rebuilt my scenario and now it works..must be 
something within my loading-setup. So everything is fine :)

You can close this issue!

> 1. Can you run the test suite at:
> http://www.emptywhite.com/bulkloader-assets/test-suite/TestSuite.swf
> and let me know which tests fail?

1 test fails: testItemsArePaused

Status: failure
Time: 2.405
Failure:Expected finished, got: stopped
Asserts: 4
Stack:Error
    at br.com.stimuli.loading.tests::PauseAllResumeTest/testItemsArePaused()[/Users/arthurdebert/Documents/projects/bulk-loader/bulk-loader-git/tests/src/br/com/stimuli/loading/tests/PauseAllResumeTest.as:114]
    at br.com.stimuli.kisstest::TestCase/run()[/Users/arthurdebert/Documents/projects/bulk-loader/bulk-loader-git/tests/third-parties/src/br/com/stimuli/kisstest/TestCase.as:51]
    at br.com.stimuli.kisstest::TestRunner/onTestSetupDone()[/Users/arthurdebert/Documents/projects/bulk-loader/bulk-loader-git/tests/third-parties/src/br/com/stimuli/kisstest/TestRunner.as:79]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at br.com.stimuli.loading.tests::PauseAllResumeTest/completeHandler()[/Users/arthurdebert/Documents/projects/bulk-loader/bulk-loader-git/tests/src/br/com/stimuli/loading/tests/PauseAllResumeTest.as:57]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.utils::Timer/tick()

Thanks and bye!
Daniel

Original comment by daniel.h...@gmail.com on 16 Jun 2010 at 12:25

GoogleCodeExporter commented 8 years ago

Original comment by debert on 16 Jun 2010 at 1:45