Loading image name instead of the image

Hi all,
Sorry but i'm a little new to AS3 and flash and have come to an abrupt halt.  I have a database (phpMyAdmin 2.6.0-beta2 ) which holds information which i want to display in a flash form so i'm using an XML file to bridge the gap.  After building the application in FLASH and running it the text from the database comes through but no the images.   Details of what i'm trying to do are as follows:
The XML file
<?php echo "<?xml version='1.0' encoding='ISO-8859-1'?>"?>
<catalogue>
<?php do { ?>
<fish>
  <Id><?php echo $row_all_fish['ID']; ?></Id>
     <Name><?php echo $row_all_fish['Name']; ?></Name>
        <Description><?php echo $row_all_fish['Description']; ?></Description>
        <Price><?php echo $row_all_fish['Price']; ?></Price>
        <Image><?php echo $row_all_fish['Image']; ?></Image> 
</fish>
<?php } while ($row_all_fish = mysql_fetch_assoc($all_fish)); ?>   
</catalogue>
<?php
mysql_free_result($all_fish);
?>
The action script part from FLASH
xmlObject = new XML();
xmlObject.onLoad = readMedia;
xmlObject.ignoreWhite = true;
// **************vvvvvvvvvvvvvvvvEdit this bitvvvvvvvvvvvv*********************************
xmlObject.load("http://localhost/fishing/generate_xml.php");
// ***************^^^^^^^^^^^^^^^Edit this bit^^^^^^^^^^^^*********************************************
stop();
function readMedia(success) {
if (success == true) {
  // Root node
  rootNode = xmlObject.firstChild;
  // id = number of child nodes
  sizeOfCollection = rootNode.childNodes.length;
  // Current node = first child node
  currentNode = rootNode.firstChild;
  // Display next car.
  drawItem();
function drawItem() {
// **************vvvvvvvvvvvvvvvvEdit this bitvvvvvvvvvvvv*********************************
Id.text = currentNode.childNodes[0].firstChild;
Name.text = currentNode.childNodes[1].firstChild;
Description.text = currentNode.childNodes[2].firstChild;
Price.text = currentNode.childNodes[3].firstChild;
Image.text = currentNode.childNodes[4].firstChild;
// ***************^^^^^^^^^^^^^^^Edit this bit^^^^^^^^^^^^*********************************************
debug();
nextFish.onRelease = function() {
nextNode = currentNode.nextSibling;
if (nextNode == null) {
  break;
} else {
  currentNode = nextNode;
  drawItem();
previousFish.onRelease = function() {
nextNode = currentNode.previousSibling;
if (nextNode == null) {
  break;
} else {
  currentNode = nextNode;
  drawItem();
// Read Greens XML file.
Greens.onRelease = function() {
// **************vvvvvvvvvvvvvvvvEdit this bitvvvvvvvvvvvv*********************************
xmlFile = "http://localhost/fishing/generate_xml.php";
// ***************^^^^^^^^^^^^^^^Edit this bit^^^^^^^^^^^^*********************************************
xmlObject.load(xmlFile);
function debug() {
// **************vvvvvvvvvvvvvvvvEdit this bitvvvvvvvvvvvv*********************************
Id = currentNode.childNodes[0].firstChild;
Name = currentNode.childNodes[1].firstChild;
Description = currentNode.childNodes[2].firstChild;
Price = currentNode.childNodes[3].firstChild;
Image = currentNode.childNodes[4].firstChild;
// ***************^^^^^^^^^^^^^^^Edit this bit^^^^^^^^^^^^*********************************************
stop();
I can not workout how to display the image itself instead of the files name.  Any help anyone can give would be great!
Thanks for your time helping me.

that's actionscript 2.
and, is there an image url in there somewhere?

Similar Messages

  • How do I get Mozilla to use the page name for the actual bookmark name instead of the URL when I bookmark a page

    I just noticed this (in comparison to Internet Explorer): In IE, when you favorite a webpage, it uses the actual name of the webpage (for example, for this page, it would be "Ask a Question Firefox Help" as the bookmark name), but in Mozilla it uses the URL address as the bookmark name. I was wondering if it was at all possible to change my Mozilla settings in order to make it use the webpage name as the bookmark name instead of the URL address? I hope everyone understands what I'm getting at? If anyone can help me, I would really appreciate it. Thanks.

    Does this happen with each bookmark?
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Problems with bookmarks and history not working properly can be caused by a corrupted places.sqlite database file.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    *https://support.mozilla.org/kb/Bookmarks+not+saved#w_fix-the-bookmarks-file
    You can try to check and repair the places database with this extension:
    *https://addons.mozilla.org/firefox/addon/places-maintenance/

  • How to show the witholding tax name instead of the code in PLD

    Hi Guys,
    Is it possible to show the witholding tax name instead of the witholding tax code in the summary or end of report in the PLD(AR Invoice)?
    Thanks.
    Eric

    Hi Eric
    I have tried to get it directly from the table: Witholding Tax, field: WTaxName; but there's no way to relate that with the A/R Invoice document so it shows me a wrong WT Name.
    As this tables is not directly exposed/related to the document the best way is try to create a Formatted Search in order to get the description you want. Please note the WT is get from a table and if you have more than 1 type of WT it may not work in a End of Report as it does not have the capacity as repetitive area to read multiple lines.
    Paulo Calado
    SAP Business One Forums Team

  • Why does firefox load "file.avi" instead of the actual file i want to download?

    I tried downloading files on megaupload, netload, hotfile but when I hit download it loads "file.avi" instead of the actual file.

    See:
    *http://kb.mozillazine.org/File_types_and_download_actions
    *https://support.mozilla.org/kb/Managing+file+types

  • How can I get a default value to show the name instead of the ID.

    I have a field with with a LOV that works great! It displays first & last name and returns the ID to the field.
    The problem is the users want the first & last name to automatically default in the field without selecting from the LOV. However, I still need to store(return) the ID.
    Also are application users username and passwords case sensitive?

    Angie, Can you provide some more details.
    This is a popup LOV correct? So the field in question is the source database column or is it static or what is it currently?
    I am not sure if I understand your business rule of "automatically default in the field without selecting from the LOV" if that is the case why select from the LOV.
    None the less try this.. Here is what I am assuming you would like: a value is set on a previous page or throughout yoru application when you arrive on page X a LOV is there that could have it's value derived from an item on a previous page.
    So your LOV query should be like this
    select a,b from your_table where foo = 'abc' OR :ITEM_VALUE_OF_LOV
    make sure you add the "or clause" on your query otherwise the LOV will display the numerical value in the LOV and not the display value
    If your LOV source column is a database value and you want to override it in essenece with your default value you can do something like this:
    set a pl/sql process on load to:
    select value into :P_ITEM_VALUE_OF_LOV from table;
    or you could set your source used as "only when null" and set a default value within the element as well..

  • Generic track names instead of the correct artist/album/song name

    I've uploaded songs to my itunes library for the past year on my ibook G4, and the bought music CDs I imported always displayed their full information (artist, song title, album etc). I just replaced my malfunctioning 40 GB black and white ipod with the 60GB color display video ipod, and now every music cd I try to import shows up with generic track names and no artist or album title. Is this due to the fact that I started using a new ipod? Or did apple change itunes within the past few weeks so that every music cd now shows up only with this generic info? Is this a copyright security measure issue?
    Thanks in advance.
    ibook G4   Mac OS X (10.3.9)   I am now using the 60 GB video ipod with it

    To get the track names etc., when importing a CD, you have to be connected to the Internet.
    This article explains why.
    To get the info later, select all tracks (with the generic track names) of an album and choose 'Get CD Track Names' from the Advanced menu in the menubar.
    Very often the correct information will show up.
    Hope this helps.
    M
    17' iMac fp 800 MHz 768 MB RAM   Mac OS X (10.3.9)   Several ext. HD (backup and data)

  • HT4436 Is there a way to connect my iCloud acct. so that my regular email address is my user name instead of the .me email address? I don't even know how to access my very old .me address.

    Anyone know if you can replace your .me email address for your regular email address? I'm trying to set up my iCloud acct. on my iPhone but the default email adddress is my .me email which I never used and do not know the password for. When I use the Forgot Password link, it sends to my .me email address
    and I never used it and don't know how to access that address. Arg. Anyway to clean slate and permanently eliminate the .me thing?

    I copied the iTunes file from the external drive and it's in both places.  I thought all I would need is the iTunes program (which I downloaded to new computer) and my iTunes library file.  There must be something else that's missing.  My iTunes library looks the same on the new computer as it does when I open it on the external drive.  If I click on an iTunes library song from my new computer, it will only play if I have the external drive plugged in.
    My back-up drive is a mess.  I have multiple copies of music, video, photo, and document files and I don't know how that happened. ={  Obviously, I don't know how to back up stuff properly and there are back-up files extending over a 6- to 8-year period.  I think all I did was just drag and drop the main folders from the back-up drive to the same main folders on the C: drive.  Also (and I'm kind of fuzzy on this) Windows used to automatically save music files in a folder within my document files (which makes no sense to me).  As my Jewish friends would say, "Oy Vey!" 

  • I have my home page set up fine, but when i open a new tab it loads "delta serach" instead of the old layout of my most visited pages.

    something has reset my new tab page to delta search, i want the original layout back with the page thumbnails of most visited pages that i had before. please help. very annoyed at delta for taking liberties in my browser settings.

    Type <b> about:config</b> in URL
    *Search <b>browser.startup.homepage</b> and change the value to <b>google.com</b>
    *Search <b>browser.newtab.url</b> and change the value to <b>about:newtab</b>
    *Uninstall the delta search from Extension/Toolbar
    In order to uninstall a possibly unwanted extension, please do the following:
    #From the Firefox window click the Firefox button at the top left and select ''Add-ons'', or, if the Firefox button is not shown, click the ''Tools'' menu and click ''Add-ons''.
    #Once the Add-on Manager has opened in a new tab, click the ''Extensions'' button on the left side of the window.
    #You should now see a list of your installed extensions on the right side together with buttons on the right side of each extension.
    #To remove an extension from Firefox, simply click the ''Remove'' button. You should see a message that informs you about the successful removal of the add-on.
    #Note that some add-ons require a Firefox restart to be removed completely. To perform a Firefox restart after the add-on removal, click the ''Restart now'' link in the message.
    You can find further information about uninstalling extensions in the following articles:
    [[Disable or remove Add-ons]]
    [[Remove a toolbar that has taken over your Firefox search or home page]]

  • List of avaliable MDX properties / Always show member name instead of alias

    Hi all,
    does anyone know if there is a list of ALL available MDX properties which can be used in an MDX query with Essbase?
    There is a very small list in the technical documentation (http://docs.oracle.com/cd/E12825_01/epm.111/esb_techref/mdx_properties.htm), however I know there are a lot more properties.
    E.g. one property which is not documented is ANCESTOR_NAMES:
    WITH MEMBER [Year].[dummy] AS '0', SOLVE_ORDER = 0
    SELECT {[Year].[dummy]} on columns,
    [Account].Members properties ANCESTOR_NAMES on rows
    FROM [App.Db];
    Anyone knows if there is such a list?
    And another question:
    The Query always brings up the alias of the members (e.g. [Account].Members). Is there a way that per default the member name instead of the alias is used? Without using the MEMBER_NAME property?
    Essbase version: 11.1.1.3
    Thanks
    Th

    amaerki wrote:
    For the second question regarding the member name try the following statement in a MaxL session:
    alter session set dml_output alias off;works like a charm, many thanks.
    Anyone an idea on the list of properties?
    Edit: found something related to XMLA: http://docs.oracle.com/cd/E12825_01/epm.111/aps_admin/ch03s03s07.html
    However, e.g. the porperty PARENT_UNIQUE_NAME does not work. Also the Book MDX solutions has a list with it with e.g. PARENT_UNIQUE_NAME specified which does not work...
    Anyone an idea how to get a list of all properties valid with MDX using Essbase?

  • Looking for some help on emailing results using the drop down Label instead of the value

    DWMX / SQL / ASP
    I have a very simple form... 4 fields
    1 - Textbox to enter name
    2 - Drop downs to select location and type of issue
    1 - Comment box to describe in more detail the issue....
    I have notification setup to email the results to the
    appropriate person
    upon submission.. the issue im having is the following.. the
    email will go
    to the department that needs to get it based on the Issue
    drop down... the
    drop down is populate from a table containing 2 fields (
    Issue Name and
    Email )
    My question is how can i capture the label name instead of
    the value which
    in this case is the email address?
    I want the email to be sent to the email address, but i want
    the email to
    display the label name....

    Try this,
    <%=(rsCombo.Fields.Item("issue").Value)%>
    <%
    if recordset("fieldname") then
    response.write "Your Lable Name"
    end if
    %>
    Dave
    "Daniel" <[email protected]> wrote in message
    news:elporq$pd1$[email protected]..
    > forgot to add this bit
    >
    > this is what im using to get the data for that
    > <%=(rsCombo.Fields.Item("issue").Value)%>
    >
    >
    >
    > "Daniel" <[email protected]> wrote in message
    > news:elpns1$o80$[email protected]..
    > > DWMX / SQL / ASP
    > >
    > > I have a very simple form... 4 fields
    > > 1 - Textbox to enter name
    > > 2 - Drop downs to select location and type of issue
    > > 1 - Comment box to describe in more detail the
    issue....
    > >
    > > I have notification setup to email the results to
    the appropriate person
    > > upon submission.. the issue im having is the
    following.. the email will
    go
    > > to the department that needs to get it based on the
    Issue drop down...
    the
    > > drop down is populate from a table containing 2
    fields ( Issue Name and
    > > Email )
    > >
    > > My question is how can i capture the label name
    instead of the value
    which
    > > in this case is the email address?
    > >
    > > I want the email to be sent to the email address,
    but i want the email
    to
    > > display the label name....
    > >
    >
    >

  • The Title property is showing instead of the filename at top of application bar

    We have a need to rename a series of files from their original name to a new name.  After renaming the files in Windows (BRU000003.PDF in the example above), we opened one of the files in Adobe Acrobat.  We were surprised to see that the "name" displayed in the application bar at the top of that window was the Title property (000010.pdf in the example above) and not the file name.
    Is there a way to programatically remove the Title property or to make Adobe Acrobat display the Filename and not the Title property?

    If you need to do this to multiple files, a batch process is the way to go. You can use the Open Options command to display the file's name instead of the title.
    You can also use a simple JavaScript to reset the title, or to replace it with the file's current name.

  • Database creation: use machine name instead of ip address.

    I am creating a new database using the Database Configuration Assistant. After the install, it tells me that the EM can be approached through http://192.168.198.128:1158/em. However, since the ip-address is dynamic, i'd prefer to refer to the machine name instead of the ip address. During the setup I could not see where to change this.
    Regards,
    Rick

    user10064100 wrote:
    Thanks for your replies, I will try that. Version info: 10.2.0, on a Windows Server 2k3. The server runs in a virtual machine, which is pretty much the root of the problem: it tends to change ip addresses when restarting it. I will now install the loopback adapter and see what happens.
    Edited by: user10064100 on 8-dec-2008 7:48Ah, a server on a virtual machine. Why didn't you say that in your initial posting? I would think that would be much different situation than the usual 'changing ip' configuration of placing a sandbox database on a DHCP desktop or laptop machine...
    I don't have any experience with VM's, so I'll leave that to those that do. At the least, I'd expect the loopback adapter to not necessarily be your solution. That's for the assumptions that I clearly stated in my first response. If those assumptions don't match your situation (and it is now clear that they don't) then you need consider that before taking any advice based on those assumptions.

  • Blank page instead of the application home page.

    Hello, I installed a 10g express edition database long time ago.
    Everyting works fine up to now.
    I made an application that we use in our company to report our activities.
    The application is still working, I'm able to access the application home page and walk through it.
    When I go to the apex home page: http://127.0.0.1/apex and I insert username and password for the "workspace" of my application, I see a blank page instead the normal one with the icons.
    If I try to access the HR workspace everiting is ok.
    Can you help me please?
    Thank you, sofleo.

    I found the solution but I have some doubts.
    Last month I decided to export my application renaming it.
    I don't remember if I modified the appication name changing it insiide the file generated by the export procedure or if there were some flags to be checked to export it with a different name.
    So, examining FLOWS's tables I found a table in which the userid was the new application name instead of the original one.
    How this is happened?
    Did I launch for a mistake the sql file on the wrong databse (the file generated by the export).
    My original idea was to export the application, rename it and install it on a new machine.
    Any comment would be apprecciate.
    Bye, sofleo

  • Load images in the correct order, needs help..

    I have tried loading in some images in the order of the xml files.. that contain them ..
    they did load in one by one but .. in  random order .. so mabe i am doing too much or too liitle can some one give it asecond look for me ..
    //-- load Xml
    urlLoader.load(new URLRequest("loader_alpabet/loader_alpabet.xml"));
    urlLoader.addEventListener(Event.COMPLETE,xmlReady);
    this.addEventListener(Event.ENTER_FRAME,entFrm);
    // process the Xml and create array of objs
    function xmlReady(evt:Event):void {
         xml=new XML(evt.target.data);
         var xmlListUrls:XMLList=new XMLList(xml.image.url.text());
         var xmlListNames:XMLList=new XMLList(xml.image.name.text());
         var xmlListDescs:XMLList=new XMLList(xml.image.description.text());
         for (var g:Number = 0; g < xmlListNames.length(); g++) {
              imagePack.push({name:xmlListNames[g],url:xmlListUrls[g],desc:xmlListDescs[g]});
              if (xmlListUrls.length()==imagePack.length) {
                   loaderMachine();
    //this is where i position the images
    function entFrm(evt:Event):void {
         if (imageIcons.length>0) {
              for (var g:Number = 0; g < imageIcons.length; g++) {
                   imageIcons[g].x=(centerX+Math.cos(angle+g)*radiusX)-imageIcons[g].width/2;
                   imageIcons[g].y=(centerY+Math.sin(angle+g)*radiusY)-imageIcons[g].height/2;
                   imageIcons[g].scaleX=imageIcons[g].scaleY= ((imageIcons[g].y/150) - 0.5);
                   stage.addChildAt(imageIcons[g], imageIcons[g].scaleX);
                   angle+=speed;
    //-- loader function
    function loaderMachine():void {
         trace(imagePack.length);
         loader = new Loader();
         loader.load(new URLRequest(imagePack[count].url));
         loader.contentLoaderInfo.addEventListener(Event.COMPLETE,imageReady);
    // put image on stage
    function imageReady(evt:Event):void {
         var image:Bitmap = (Bitmap)(evt.target.content);
         addChild(image);
         imageIcons.push(image);
         count++;
         if (count<imagePack.length) {
              loaderMachine();

    ah, I missed the 2nd version of the code
    You have to take the loaderMachine(); call out of the loop, call it after the loop.
    function xmlReady(evt:Event):void {
         xml=new XML(evt.currentTarget.data);
         var xmlListUrls:XMLList=new XMLList(xml.image.url.text());
         var xmlListNames:XMLList=new XMLList(xml.image.name.text());
         var xmlListDescs:XMLList=new XMLList(xml.image.description.text());
         for (var g:Number = 0; g < xmlListNames.length(); g++) {
              imagePack.push({name:xmlListNames[g],url:xmlListUrls[g],desc:xmlListDescs[g]});
          // start loading images
         loaderMachine();
    You're overwriting you loader instance each time you load an image, that's not good if you want it to stick around (display each loaded image).
    So in the method, create a local Loader instance and add it to the Array stack.
    Don't start the enterFrame event handler until all images are loaded.
    You can do so in the imageReady() event handler (check if counter equals array length).
    Don't add event listeners in the enterFrame event handler, you're adding them over and over again.
    So remove these from entFrm()
    imageIcons[g].addEventListener(MouseEvent.MOUSE_OVER,btn_mouse);
    imageIcons[g].addEventListener(MouseEvent.MOUSE_OUT,btn_mouse);
    Don't use Event.target (unless you know what you're doing), use currentTarget instead.
    function imageReady(evt:Event):void {
         var loader:Loader = (event.currentTarget as LoaderInfo).loader;
         loader.addEventListener(MouseEvent.MOUSE_OVER, btn_mouse);
         loader.addEventListener(MouseEvent.MOUSE_OUT, btn_mouse);
         addChild((loader);
         count++;
         if (count<imagePack.length) {
              loaderMachine();
        }else{
              addEventListener(Event.ENTERFRAME, entFrm);
    Don't use Array.length in a loop condition, as this will check the lenght with each iteration, slowing down the loop.
    Set it to a local variable once and use that as the loop condition.
    var len:uint = imageIcons.length;
    for(var i:uint=0; i<len; i++) {}
    Last but not least, you're probably better off using a tween engine rather than an enterFrame event to move things around.
    Look into TweenLite.
    http://blog.greensock.com/tweenlite/
    It now looks like the enterFrame event continues untill you roll over one of the buttons? If so, that can't be good..
    function loaderMachine():void {
         var loader:Loader = new Loader();
         loader.load(new URLRequest(imagePack[count].url));
         loader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageReady);
         imageIcons.push(loader);

  • Is there a way to not load images in safari? Like on android you can tick a box to load images or no to the internet?

    Is there a way to not load images in safari on ios 7 like in android there is
    The option to load or not load images?

    My reply here was specific for this thread, but as you noted, I didn´t read careful enough. I wrongfully took for granted that issues in the More Like This box was platform dependent. I tried to apolgize accordingly, I would like to see the post deleted, but that doesn´t stop you from policing obviously.
    And instead of arrogantly replying about matters irrelevant for this thread, maybe you should start reading more carefully yourself. The posts you are referring to are related to large images failing to load properly in Safari 7. This is not as you claim "vaguely related". Take this elsewhere if you have a problem with it.
    Again, sorry for messing up the thread.

Maybe you are looking for

  • Automatic production order creation and confirmation

    Dear all, I am in a situation where i have to configure the SAP system in the following ways: 1. From the planned orders automatically production order should be created today for the next day production and the end user will re-declare the quantity

  • IOS 7.03 cannot sync shows or music

    Updated iTunes yesterday and iOS 7.03 on my iPad mini today.  Cannot sync music or tv shows.  Had to reset and start over from scratch already.  Still not working.  iTunes takes 3-4 tries to boot.  Please help!

  • Program AQZZZPP=========ZPPROUT01=====

    Hi , This program  AQZZZPP=========ZPPROUT01===== is available in production server,but it is not available in Development & Quality Server.Please Help regarding this issue. Regards Basheer

  • Muse crashes with menu item box has no associated page

    My file is crashing when I click on the menu in Master page with a menu error "menu itembox 07012 has no associated page.  Also crashes when I try to add or delete a page anywhere. I believe this started after I deleted a page. The page deleted, but

  • "other" memory capacity is huge in iTunes

    When I connect my iPhone to iTunes, in the capacity bar, the orange memory section is shown to be taking up almost 2GB on my phone. I have a couple short podcasts on my phone that I deleted on my computer, and I don't know what else is included in th