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

Expansion files in iOS

New Here ,
Jan 24, 2017 Jan 24, 2017

Hello

Is there such a technology like expansion files, which the source files (images/audios/videos) are divided from the application project, in iOS?

My only option is to load external swf's?

Thank you!

TOPICS
ActionScript
986
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 , Jan 31, 2017 Jan 31, 2017

try:

  1. varfile:File=File.documentsDirectory.resolvePath("/sdcard/");
Translate
Community Expert ,
Jan 24, 2017 Jan 24, 2017

what are you trying to do?

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 ,
Jan 24, 2017 Jan 24, 2017

Hello

The company which i work for want me to "divide" the iOS application in many "parts" to reduce it's size.

I searched about that and i found no answer, unless load external swf's.

Do i have another solution?

Thank you!

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 ,
Jan 24, 2017 Jan 24, 2017

using external swfs won't reduce an app's size.

no one cares what size an app is.  it's not even listed in the app store.

what's the point of reducing its size?

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 ,
Jan 24, 2017 Jan 24, 2017

First of all, thank you for answering me.

The application has 2Gb, that's the point of reducing size.

If my application loads external swf's with the resource files, doesn't the application get smaller?

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 ,
Jan 24, 2017 Jan 24, 2017

not unless you're loading the swfs from the internet.

in that situation, not many users are going to be happy to use their data plan when they use your app and not many will be happy about the delays encountered when using your app while loading assets.

in addition, you couldn't have swfs that large unless you were using a lot of bitmaps, videos or sound files and it would make more sense to load those. but again i don't know who'd want to wait and use data.

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 ,
Jan 25, 2017 Jan 25, 2017

You are rigth, kglad​​, but or the application has 2GB (or plus), or it can only be played in a wifi zone, because of the internet traffic.

Do you see any solution?

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 ,
Jan 25, 2017 Jan 25, 2017

what requires 2gb?

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 ,
Jan 31, 2017 Jan 31, 2017

The application.

Well, rigth now i am trying to make the application get a sd card folder with the videos with no sucess.

I am trying this way:

var file:File = File.userDirectory.resolvePath("Empordef/");

var XML_URL: String = file.url + "/lista.xml";

var myXMLURL: URLRequest = new URLRequest(XML_URL);

var myLoader: URLLoader = new URLLoader(myXMLURL);

According to this website, this is rigth.

It returns me:

/storage/emulated/0/Empordef/lista.xml

I searched for, and this is the internal storage.

Does it returns me internal storage because i have no permissions to access to sd card?

How do i get the external storage?

Thank you!

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 ,
Jan 31, 2017 Jan 31, 2017

try:

  1. varfile:File=File.documentsDirectory.resolvePath("/sdcard/");
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 ,
Jan 31, 2017 Jan 31, 2017

Yeeeeey!

Now it works!

var file:File=File.documentsDirectory.resolvePath("/sdcard/");

var XML_URL: String = file.url + "/Empordef/lista.xml";

I was including the source path to file source!

Thank you for always answer me!

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 ,
Jan 31, 2017 Jan 31, 2017
LATEST

you're welcome.

(p.s when using the adobe forums, please mark helpful/correct responses, if there are any.)

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