- Topics: Active | Unanswered
#1 2017-04-06 05:38:09
- loover
How to load images in custom pod from .zip?
How to load images in custom pod from .zip? Just "loader.load(new URLRequest("image.png"))" not works:
Error #2124: Loaded file is an unknown type.
Offline
#2 2017-04-06 08:39:57
- alistairlee
Re: How to load images in custom pod from .zip?
Here's what I use to load in XML files for both my MP3 player and QuizConnect:
<mx:HTTPService id="srv" url="questions.xml" result="resultHandler(event)" fault="srv_faultHandler(event)" />
The other alternative that I use quite often for content that doesn't get changed is to embed the the file into the SWF. For example, here's an image in my project folder. I don't need to include the image in the ZIP file after compiling the custom pod:
<mx:Image id="imgLogo" left="9" top="9" width="326" height="48"
source="@Embed('img/QuizConnect.png')"/>
Offline
#3 2018-03-20 09:34:22
- loover
Re: How to load images in custom pod from .zip?
Yes, XML loading is works. But what about images?
Offline