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

How to get external file´s size without load it?

New Here ,
Aug 01, 2013 Aug 01, 2013

Hi guys, one more time I´m here to ask for your help. I´m trying to build an "External File Load Class" that can calculate the percent of loaded files while it load one file per time. But, I want to use it without build a queue load system. I just want to know the  with some method all my external files size(just the numbers of bytes) without loading it. Is there a way?

TOPICS
ActionScript
535
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

correct answers 1 Correct answer

Community Expert , Aug 01, 2013 Aug 01, 2013

there's no way for a web-based app to get file info without loading. 

you might be able to get file info when using a projector app or air app without loading.

are you creating a projector or air app?

Translate
Community Expert ,
Aug 01, 2013 Aug 01, 2013

yes, the loader class has all the methods, properties and events you need.  there's no need for a custom class to do what's already been done.

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 01, 2013 Aug 01, 2013

There is no problem with Loader class. I just thought that I could get some information from external files without loading them.

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 01, 2013 Aug 01, 2013

kglad, is there a way to access by example bytesTotalPropertie fron ProgressEvent without using a listener? Sorry if I´m bothering you, I´m just wondering about the possibility.

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 01, 2013 Aug 01, 2013
LATEST

there's no way for a web-based app to get file info without loading. 

you might be able to get file info when using a projector app or air app without loading.

are you creating a projector or air app?

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