Solved

create and import package with resources (images, xml files,...)

Posted on 2004-04-28
6
216 Views
Last Modified: 2010-04-03
Hi,

we are developing a system that needs to import/read different resources (images and text ot xml files) gruoped  in a unique file. We are searching how to manage zip files with a flash app, but, at first sight, it appears impposible. Does anybody know how to create a package with resources and distribute them in a readable format  in a flash app. May be a movie with a library...

Thanks,
Juan Antonio.
0
Comment
Question by:jcriado
  • 2
6 Comments
 
LVL 22

Expert Comment

by:rascalpants
ID: 10942076
Juan,

I am not quite following what you are trying to do...  maybe you can break up the project into specific tasks and then explain them seperately...   or an online example would help...

rp
0
 
LVL 9

Expert Comment

by:krishnaprathab
ID: 10945858
Hi Juan,

 If you are just looking at packaging images which are not phsically accessible to a user but is in some packaged format. You can look at Shared Libraries which are common assets such as images, movieclips and sounds stored in a single swf and all the movies look into this SWF file for resources. But for text and XML there is no straight forward methos by which you can package them. You may look into an installer such as Flash Studio Pro or many other install makers but even they cant manipulate zip files or custom file formats as you would like to do.

 If your XML/Text file is not that big then you can very well place them as a text in your shared library by itself and then get them into your main movie. The only way by which you can make the contents or data un-accssible to the user is to encode them in a swf file and read them from your mainmovie. This is quite tricky though.

Thanks,
KP
0
 

Author Comment

by:jcriado
ID: 10946959
Yes, I will try to explain clearly my problem. We are working in a off-line flash app in a Pocket PC that loads data from a server and then closes the connection. This information is formed by multimedia, html and xml files from the db information. The problem is package all this info and proccess it in the client.

We are been trying to manage zip files but it is impossible. The next option is include all in a swf file, but we don't know how to include XML files inthere. May be a shared library...

Thanks for the clues.
Juan.
0
 
LVL 22

Accepted Solution

by:
rascalpants earned 400 total points
ID: 11014274
you can't "use" ZIP files in any way with Flash...  meaning, there is no way to open them up and pull the files into flash or do the opposite...

I am not sure how much data you are trying to load into the PPC, but I would suggest having some some that pulls in the information from a database instead of xml...   the reason is because a PPC and Flash do not loas/parse XML data is an efficient way and this makes the PPC CPU slow down to a crawl...

One technique that you should always use when coding for PPC is to only load what is needed at that time...   That means you would either pull info from a database as needed, or if you must use XML, you should break up the files into smaller files and only load them when you need them....

with a PPC, you need to think about the CPU and the limited storage capacity, so you should try to keep all of the information out of the SWF and load it when needed...


rp

PS.  Sorry for the delay in response, but I was on holiday
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…

939 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

4 Experts available now in Live!

Get 1:1 Help Now