Hello all,
In coding my first AIR-Flex application (Beta 3) I've run into a few
problems. I'm new to Actionscript though I am slightly familiar with
JavaScript (also ECMAScript).
<mx:Script>
<![CDATA[
thumbnail.source = parentDocument.getImage(this.data.id);
]]>
</mx:Script>
The previous code is inside a custom component I've created but the
function getImage is in a external Actionscript file that is for the
whole application, I believe this is how I would reference it but a
quick confirmation would be appreciated. Second is the "this.data.id",
what I'm trying to accomplish with that is using a {data.id} in a
script. If I have:
<mx:TextInput editable="true" text="{data.label}" id="detailsName"/>
It works if it's in MXML, but I'd like to use the data.id in script to
get an image from a local cache.
A third situation I could use some clarification on is in reference to
the local image cache. The plan I have is that a TileList displays a
series of thumbnails which are located on a external webserver. Those
images would be downloaded and stored in the local SQLite database.
How might I use URLRequest to download images with the mime-type of
image/jpeg to a SQLite blob column and then use that data in the
database as the source for images?
I realize this might seam quite complicated, but I'm willing to
provide my source files to anyone willing to help.
In review:
1. Component parent functions
2. Using {data.label} like references in Actionscript (inside a component)
3. Downloading images and storing in DB and using it as the source for
<mx:Image/>
Thanks in advance.
--
Ian Turner