Project is unable to get data from the server when more Flex Builder

I have a strange problem...

I have a flex project that communicates with multiple PHP files (which are located on a server). These are works very well when I run Flex Builder. For some reason, however it cannot communicate with the PHP files when I download or copy the files from the project elsewhere.

I thought it might be a problem with some relative paths. But I discovered that although the project works when I run it from pojectFolder/bin/main.html, it does not work if I remove it from Flex Builder (without deleting the project files) and run it from the same file main.html .

Isn't it strange?

What you met sounds like a security sandbox issue. When you develop a SWF file using either Flex Builder or the Flash IDE, the SWF file is placed in a security sandbox ' local trust. This means that it can access any resource that is convenient for the development. But when you move the SWF to a server, the SWF file will have a ' remote' security security sandbox and then different rules apply. Using a crossdomain.xml on the remote resource file should solve the problem.

You should see the security error when you apply. Here is a link for more details:
http://www.Adobe.com/devnet/flash/articles/fplayer8_security.html

Tags: Flex

Similar Questions

  • Y510 unable to get data from the camera.

    Hello

    I have a Y510 with Windows Vista 32 bit, 3 GB RAM, only 5 weeks. I get this message when I try to use Veriface, "unable to get data from the camera. The camera may have been disconnected or busy. I reinstalled Vista of the State in which the laptop came, but it does not work. I also updated the bios and install other updates were available. I would appreciate any advice.

    Thank you

    Peter

    I wish it was as easy as press Fn + Esc, I looked through an another Y510 our office and managed to find a process that must be set to Auto, the process is KtmRm. This process cannot be disabled, handicapped, or on a time delay, it must be AUTOMATIC.

  • Unable to transfer data from the laptop hard drive external/pendrive.

    Dear Experts,

    Unable to transfer data from the laptop hard drive external/pendrive.

    Each time that tried to transfer meesage seems to the authorization of the administration.

    Kindly help me to solve the problem.

    Concerning

    Hello

    Follow these steps and check:

    To take ownership of a folder

    a. click on the USB key you want to learnand then click on Properties.

    b. click on the Security tab, click Advanced and then click on the tab owner.

    c. click on change. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    d. click on the name of the person you want to give to the property.

    e. If you want that person to be the owner of the files and subfolders in this folder, select the owner of subcontainers and objects replace check.

    f. click on OK.

  • No response from the server when you try to publish the page.

    My site was working fine last night but this morning that it does not load and im getting an error "no response from the server" when I try to publish it.

    www.joshuasisneyphotography.com

    I don't have much experience with that kind of stuff. Please help me. I don't know what I have to do. My internet connection seems to work very well and like I said the site was fine a few hours ago.

    Hello

    Please try to delete the temporary files for Muse and then try to publish the site again.

    Here's a post on the forum related on how to clear temporary files: http://forums.adobe.com/message/5086018#5086018

    Hope this helps you publish the site.

    Rgeards,

    Fox

  • Getting data from the nodes of event data

    Hi all

    I have a while loop with a Structure of the event and a Structure of case inside. The Structure of the event a lot of cases, and each of them is controlled by a different object (buttons, sliders, graphics, etc.). Sometimes, I have to use data from the nodes of event data to power a Business Structure that works like a State Machine in my code. To clean the block diagram, I want to 'export' data nodes using a single wire event data, but this is not possible because there is a conflict of data, since I get data of CtlRef in one case and Coords in others (for example).

    To resolve this problem, I'm feeding a beam to create a cluster and feed it to the box Structure data. However, the process is so painful, because I have to feed the Bundle function with constants of all sorts of data connected to him.

    Find attached an example. It is not the actual code but shows what I have to do.

    Thank you

    Dan07

    Why you do not pass a Variant to the structure of the case. In your case case simply make a variant of the appropriate data that you want to pass. I guess the case appropriate business structure will be to get called for the event. Given that you need to know the data type this case awaits can use the variant data VI and now you have the data you want.

  • read and receive data from the server

    Hi all

    I want to develop an application that extract data related to the content of the server, how to do? I read somewhere stating this task requires sdk server push? is it possible do not use push sdk server and the server reading so that I don't have install anyting from the server.

    Your Web service code decides how much data you send or receive from the customer.

    For example, you can have a Web service method, which returns records to a particular date, then you must create a web service method that accepts a date to a string as a parameter and a request for service records of server request, write resultset in encoding (like xml, json, etc) and return this string as a response to the client client will read the data as a byte array, then converts the byte array to the string and according to the encoding defined by service will analyze data of interest.

  • No error response from the server when the file transfer

    Hi, I just changed my Web site a server based on windows to linux. I was not in trouble, and now I can't get my files to load on the server. I contacted the server provider who has tested the things to their end and say that the problem is with dreamweaver. This is the message I get...

    n response o server when the transfer of file... reconnection.

    It is said that it is to put the file, and then I get this message again...

    no response from the server during the transfer. 2 attempts.  Retry or cancel?

    If I hit Cancel, then he starts to put the file and it will sometimes, sometimes not.

    Now, if I managed to pass the file, when I post it on the web and click on the link it says the file is damaged or corrupted.

    Someone has any idea how to solve this problem? I'm new to web design and dreamweaver and I thought that maybe the problem is related to the definition of my site, but I don't see that there is a problem. I noticed that before I changed the definition of site for the linux server I could easily preview my pages in the browser without having to post it on the site. Now when I try to preview my page it says that I have to put on the site to view. Which could be related?

    I work on a Mac and you have not installed a firewall.

    Any help is very appreciated!

    Thank you!

    In the Site settings (Advanced Mode) it is an option when configuring the remote for passive mode FTP connection.  Try to check that box and see if you are able to connect.

  • set and get cookies from the server.

    Hi all

    I'm developing an application where in my server games some cookies and I need to bring and do some operations on them.

    is this possible please could tell me a few materail example or reading?

    Thank you and best regards.

    You're talking about their use on a WebView, then this...

    http://developer.BlackBerry.com/native/documentation/Cascades/UI/WebView/cookies.html

    Otherwise, you will have to the handshake with the server to get the data somehow according to where and how the cookie is stored and process.

  • Query regarding different refreshing data from the grid when returned from a workflow

    Hi Experts,

    JDEV version is: 11.1.1.5

    Our application uses dynamic tabs the user interface shell.

    Whenever the user connects, it is taken in A TAB.

    Since the TAB A, the user navigates to TAB B.

    TAB B has a GRID B(table with a few records).

    Column A on TAB B has a hyperlink which, once clicked on will open a stream of different tasks in a different tab.

    Click on the column of hyperlink for the different lines will open different tf (under certain conditions).

    By clicking on the hyperlink, that the method _launchActivity(String title, String taskflowId, boolean newTab) is used, which the TF open in a new tab.

    The user works on the TF (in a new tab) which opened on click of a hyperlink in the column is and click on SAVE.

    Click to save some operation and removeCurrentTab method is called which will close the current tab, and control passes to the first tab (TAB A).

    The problem:

    Once the user tries to click or to return to the TAB B the WHAT GRID B is never updated that we cannot get the descriptor to refresh the data in the grid.

    Any suggestions would be much appreciated.

    Thank you

    Jean Claude

    huh, I thought it was another library in question.

    In all cases, you can use contextual event (when you close the current tab).

    The second option is to navigate to the method executeQuery by code call activities:

    https://blogs.Oracle.com/jdevotnharvest/entry/how-to_navigate_in_bounded_task_flows

  • Get data from SQL Server to a different server

    Before I dive into that, I want to do this is possible and relatively painless :)

    My Flex web application is hosted on a server (let's call it server01) which is the web server, and I have a database of SQL Server 2000 on another server (server05), that is not a web server. In the Flex application, I want to fill a ComboBox with data from a table in SQL Server to server05. Is it possible even if they are on different servers and server05 has web access? Thank you.

    "Guddie" wrote in message
    News:gf1ukm$T0M$1@forums. Macromedia.com...
    > Before I dive into that, I want to make sure that it is possible and relatively
    > painless :)
    >
    > My Flex web app is hosted on a server (let's call it server01) which is the
    > web
    > server and I have a database of SQL Server 2000 on a different server
    > (server05).
    > is not a web server. In the Flex application, I want to fill a
    > ComboBox
    > using data from a table in SQL Server to server05. Is it still possible
    > If
    > they are on different servers and server05 has web access? Thank you.

    If dad server01 access server05, then it can make calls for you.

    HTH;

    Amy

  • HELP: Default XML or the grid of data from the server

    Help

    I work a flash function proof-of-concept for a client that reads an XML file in a data grid. As coded, it works a lot when I run locally, but when I transfer to the server web it does not work (grid object shows but no data). And I guess I don't understand the remote debugging because when I 'Start the remote debugging session' and 'Opening' it appears to download again, works very well.

    The remote SWF file is located in the http://www.gw-webs.com/TSI/teamTSI.SWF. HTML and XML are also in the same remote folder.

    The code is all in frame 1 of the file (and not in a clip):

    _Global.nameAR = new Array;
    _Global.titleAR = new Array;
    _Global.biographyAR = new Array;
    _Global.contactAddressAR = new Array;
    _Global.contactPhoneAR = new Array;
    _Global.contactEmailAR = new Array;
    _Global.pictureFileAR = new Array;
    _Global. ARindex = 0;

    hd_name._visible = false;
    hd_title._visible = false;
    hd_biography._visible = false;
    hd_phone._visible = false;
    hd_email._visible = false;
    hd_mail._visible = false;


    function processXMLData(xml:XML)
    {
    var i: number = 0;
    var num:Number = xml.firstChild.childNodes.length;

    for (var i = 0; i < num; i ++) {}
    Sublst.ChildNodes(1).ChildNodes(0) [0] .nodeValue Sublst.ChildNodes(1).ChildNodes(0) [0] _Global.nameAR = xml.firstChild.childNodes;
    Sublst.ChildNodes(1).ChildNodes(0) [0] .nodeValue Sublst.ChildNodes(1).ChildNodes(0) [1] _Global.titleAR = xml.firstChild.childNodes;
    Sublst.ChildNodes(1).ChildNodes(0) [0] .nodeValue Sublst.ChildNodes(1).ChildNodes(0) [2] _Global.biographyAR = xml.firstChild.childNodes;
    Sublst.ChildNodes(1).ChildNodes(0) [0] .nodeValue Sublst.ChildNodes(1).ChildNodes(0) [3] _Global.contactAddressAR = xml.firstChild.childNodes;
    Sublst.ChildNodes(1).ChildNodes(0) [0] .nodeValue Sublst.ChildNodes(1).ChildNodes(0) [4] _Global.contactPhoneAR = xml.firstChild.childNodes;
    Sublst.ChildNodes(1).ChildNodes(0) [0] .nodeValue Sublst.ChildNodes(1).ChildNodes(0) [5] _Global.contactEmailAR = xml.firstChild.childNodes;
    Sublst.ChildNodes(1).ChildNodes(0) [0] .nodeValue Sublst.ChildNodes(1).ChildNodes(0) [6] _Global.pictureFileAR = xml.firstChild.childNodes;
    }
    var dataAR = new Array;

    for (i = 0; i < num; i ++) {}
    dataAR = ({name: _global.nameAR, title: _global.titleAR });
    }

    dg_team. DataProvider = dataAR;
    }

    var xmlData = new XML();
    System.useCodepage = true;
    xmlData.ignoreWhite = true;

    xmlData.onLoad = {function (ok:Boolean)}
    If {(ok)
    processXMLData (this);
    } else {}
    trace ("XML doesn't not load");
    }
    };

    Create the data grid listener object click
    var dgListener:Object = new Object();
    dgListener.cellPress = {function (evt_obj:Object)}
    I have = evt_obj.itemIndex;

    If (_global.nameAR
    <>null) {}
    hd_name._visible = true;
    tx_name. Text = _global.nameAR ;
    }
    else {}
    hd_name._visible = false;
    tx_name. Text = "";
    }

    If (_global.titleAR
    <>null) {}
    hd_title._visible = true;
    tx_title. Text = _global.titleAR ;
    }
    else {}
    hd_title._visible = false;
    tx_title. Text = "";
    }

    If (_global.biographyAR
    <>null) {}
    hd_biography._visible = true;
    tx_biography. Text = _global.biographyAR ;
    }
    else {}
    hd_biography._visible = false;
    tx_biography. Text = "";
    }

    If (_global.contactPhoneAR
    <>null) {}
    hd_phone._visible = true;
    tx_phone. Text = _global.contactPhoneAR ;
    }
    else {}
    hd_phone._visible = false;
    tx_phone. Text = "";
    }

    If (_global.contactEmailAR
    <>null) {}
    hd_email._visible = true;
    tx_email. Text = _global.contactEmailAR ;
    }
    else {}
    hd_email._visible = false;
    tx_email. Text = "";
    }

    If (_global.contactAddressAR
    <>null) {}
    hd_mail._visible = true;
    tx_mail. Text = _global.contactAddressAR ;
    }
    else {}
    hd_mail._visible = false;
    tx_mail. Text = "";
    }
    };

    xmlData.load ("teamTSI_en.xml");

    Add the listener.
    dg_team.addEventListener ("cellPress", dgListener);

    Stop();

    Yes, you have found it. I used lower case letters used on the first character of the name of the xml file in the URL of the load statement line. Thank you very much for your help!

  • Remove data from the HD Server?

    I've recently updated my OS to 10.12 Sierra and went to install Server.app. However, when trying to install Mac OS Server, I received the following message:

    "This the server version does not support upgrading the server from data on this volume. To upgrade your database server, you need to install an older version of the server and OS X."

    ***? In what universe would be an acceptable solution? Now, the fact is that I probably had installed Server.app before on a very old version of Mac OS (not sure which) and just never bothered to upgrade during the last major revision of OS X or more.

    What that is, how can I get rid of these old "data server" so I can install a new copy? Thank you.

    Wondering how to remove the data from the server that you had before the upgrade to Sierra? If so, delete the folder/Library/Server and the.app to / applications. Then go to the App Store and buy the latest version of the server. I'm guessing that your last purchase server had Yosemite and that's why try to install the server to the App Store / Shopping does not work. I did purchase the server from Yosemite.

  • "Unable to send data to the printer.

    I have a HP deskjet F4440 printer.  He has always fought linking to our Mac.  We restart the printer or the computer often to do print, but after doing one or the other it would work normally.  But now it doesn't connect at all.

    I uninstalled and reinstalled the printer.  I downloaded and installed the software from the apple support Hewlett-Packard printer.  I restarted my computer, uninstalled and reinstalled my printer.  It presents itself as "in use" but says "Unable to send data to the printer" when I try to send a simple text of pages for print test.  When I try to scan it shows that the scanner is connected, initially said "waiting for scanner", then 'scanner is not available' stops.

    Do you have any suggestions?  Thank you!!!

    Hi mandi820,

    Welcome to the HP Forums! I see that your HP deskjet F4440 printer has difficulty to connect to your Mac. I'm happy to help you with this problem of connection! I have a few questions for you:

    Hope to hear from you and have a great day!

  • getting data from two servers?

    Experts-

    We have two servers for the storage of the tables. 1 history 1. current server Prod

    We have same tables in the databases server.

    All the info before one month from the date of the day are stored in database tables history server
    and the rest in database tables current prod server.


    I create reports such as when the user enters a date, OBIEE must check if the date is in a month (30 days) the date today or earlier at 30 days, on this basis, it must get data from historical Server database tables / running production database server.

    How can I implement this?

    I need to create two clusters of connction (RPD records) and develop the same model twice? (One for the historical paintings and one for prod tables?)
    or can I use the technique of fragmentation? If so, can you give me an idea hwow to implement the Fragmentation of this requirement?

    Thank you for your help in advance

    You must use the fragmentation of this requirement. It is not difficult once you understand the basic principle. Nico article read here for details:

    http://gerardnico.com/wiki/dat/OBIEE/fragmentation_content

    The only non-standard bit for you will be to define the criteria of fragmentation on your sources of logical table. This is the part that says BI server to hit source.

    After return here if you get stuck.

    Paul

  • Pulling data from the class on a MovieClip array

    I am trying to create this slideshow application that displays product information (Tennis rackets) issues of different categories. A great programmer advised me that OOP would be a way to go, however I'm having a difficulty with it.

    I created:

    A document class called CustomClass--> This class downloads all data from the server and pushing the content in the XML based on a category tables. These berries are public, there is also a funciton iterateArray that places the children information somewhere.

    I would like to have 3 different movie clips

    1 screen-> Welcome Message

    2nd screen-> first table

    3rd screen-> second table Dispalyed

    package {
         
         import flash.display.*;
         import fl.transitions.*;
         import fl.transitions.easing.*;
         import flash.net.*;
         import flash.events.*;
         import flash.text.*;
         import flash.text.AntiAliasType;
         import flash.utils.*;
         import bucket_right;
         import bucket_left;
         import firstScreen;
         import secondScreen;
         
         
         public class CustomClass extends MovieClip {
              
              
              [Embed(source="C:/WINDOWS/Fonts/Eurosti.ttf", fontFamily="Euro")]
              public  var EuroEmbedded:Class;
              
              
              //XML responsible variables 
              private var xmlLoader:URLLoader;
              private var xmlContainer:XML;
              private var xmlList:XMLList;
              
              //Array specific variables 
              public var rackUSA:Array;
              public var rackOther:Array;
              public var imagesArray:Array;
              
              //Position Variables 
              public var position:Number;
              
              //Movie Clip Related Data
              public var bucket:MovieClip;
              public var firstScreenShow:MovieClip;
              public var secondScreenShow:MovieClip;
              
              //Text Field Formatting
              private var brandnameTxt:TextFormat;
              private var detailsTxt:TextFormat;
              private var priceTxt:TextFormat;
              public  var euroEmbeddedFont:Font;
              private var fontNeeded:String;
              
              
              //Set up Timer Vars 
              private var applicationStart:Timer;
              private var delay:Number;
              private var repeat:Number;
              
              //Positioning Variable 
              private var positionBuckets:Boolean = true;
              
              //This is the constructor of the application 
              public function CustomClass() {
                   euroEmbeddedFont = new EuroEmbedded();
                   fontNeeded            = euroEmbeddedFont.fontName;
                   position         = 5;
                   rackUSA            = new Array();
                   rackOther            = new Array();
                   imagesArray       = new Array();
                   
                   delay                 = 2000;
                   repeat                = 1;
                   applicationStart = new Timer(delay, repeat);
                   LoadXML();
              }
              
              private function LoadXML() {
                   xmlLoader = new URLLoader();
                   xmlLoader.load(new URLRequest("http://localhost/xml/index.php"));
                   xmlLoader.addEventListener(Event.COMPLETE, populateInfo);
              }
              
              public function populateImages(imgname:String, imgurl:String):* {
                   var imageLoader:Loader = new Loader();
                   //imgname = imgname.split(".gif").join("");
                   //imageLoader.name = imgname;
                   //imagesArray.push(imageLoader);
                  imageLoader.load(new URLRequest(imgurl));
                   return imageLoader;
              }
              
              public function getArray(arrayName:Array) {
                   return arrayName;
              }
              /*public function startApplication() {
                   applicationStart.start();
                   applicationStart.addEventListener(TimerEvent.TIMER_COMPLETE, firstScreen);
              }
              
              public function firstScreen(e:TimerEvent) {
                   removeChild(secondScreenShow);
                   applicationStart.reset();
                   applicationStart.removeEventListener(TimerEvent.TIMER_COMPLETE, firstScreen);
                   firstScreenShow = new firstScreen();
                   addChild(firstScreenShow);
                   //firstScreenShow.iterateArray(rackUSA);
                   applicationStart.start();
                   applicationStart.addEventListener(TimerEvent.TIMER_COMPLETE, secondScreen);
              }
              
              public function secondScreen(e:TimerEvent) {
                   applicationStart.reset();
                   applicationStart.removeEventListener(TimerEvent.TIMER_COMPLETE, secondScreen);
                   removeChild(firstScreenShow);
                   secondScreenShow = new secondScreen();
                   addChild(secondScreenShow);
                   //secondScreenShow.iterateArray(rackOther);
                   applicationStart.start();
                   applicationStart.addEventListener(TimerEvent.TIMER_COMPLETE, firstScreen);
              }*/
              
              public function setFontFormat() {
                   //Text Formatting for Brand Name Field
                   brandnameTxt = new TextFormat();
                   brandnameTxt.font = fontNeeded;
                   brandnameTxt.color = 0x006699;
                   brandnameTxt.size = 20;
                   brandnameTxt.bold = true;
                   //
                   
                   //Text Formatting for Country/Material
                   detailsTxt = new TextFormat();
                   detailsTxt.font = fontNeeded;
                   detailsTxt.color = 0x006699;
                   detailsTxt.size = 10;
                   detailsTxt.bold = false;
                   
                   //Text Formatting for Country/Material
                   priceTxt = new TextFormat();
                   priceTxt.font = fontNeeded;
                   priceTxt.color = 0x9DE36E;
                   priceTxt.size = 20;
                   priceTxt.bold = true;
              }
              
              public function tweenBucket(bucket:MovieClip) {
                        var bucketImgTrans = new TransitionManager(bucket);
                        bucketImgTrans.startTransition({type:Zoom, direction:Transition.IN, duration:3, easing:Strong.easeOut});
              }
              
              private function iterateArray(contentInfo:Array) {
                   this.setFontFormat();
                   
                   for (var c:uint = 0; c < contentInfo.length; c++) {
                             var brand:TextField   = new TextField();
                             var country:TextField = new TextField();
                             var made:TextField    = new TextField();
                             var cost:TextField    = new TextField();
                             var img:Loader;     
                             brand.embedFonts        = true;
                             
                             img            = contentInfo[c].picture;
                             brand.text   = contentInfo[c].brand;
                             country.text = contentInfo[c].country;
                             made.text    = contentInfo[c].made;
                             cost.text    = contentInfo[c].cost;
                             
                             if (positionBuckets) {
                             bucket       = new bucket_left();     
                             //Align Data
                             bucket.y = position;
                             bucket.x = 70;
                             brand.x = -50;
                             brand.y = -35;
                             country.x  = -45;
                             country.y  = -10; 
                             made.x = -45;
                             made.y = 5;
                             cost.x = 45;
                             cost.y = -10;
                             img.x = -105;
                             img.y = -35;
                             brandnameTxt.align = TextFormatAlign.LEFT;
                           priceTxt.align         = TextFormatAlign.LEFT;
                             positionBuckets    = false; 
                             } else {
                             bucket       = new bucket_right();     
                             //Align Data
                             bucket.y = position;
                             bucket.x = 240;
                             brand.x = -50;
                             brand.y = -35;
                             country.x  = -45;
                             country.y  = -10; 
                             made.x = -45;
                             made.y = 5;
                             cost.x = -110;
                             cost.y = -10;
                             img.x = 70;
                             img.y = -35;
                             brandnameTxt.align = TextFormatAlign.RIGHT;
                             positionBuckets    = true;      
                             }
                             brand.setTextFormat(brandnameTxt);
                             country.setTextFormat(detailsTxt);
                             made.setTextFormat(detailsTxt);
                             cost.setTextFormat(priceTxt);
                             //this.tweenBucket(bucket);
                             addChildAt(bucket, 0);
                             bucket.addChild(DisplayObject(img));
                             bucket.addChild(brand);
                             bucket.addChild(country);
                             bucket.addChild(made);
                             bucket.addChild(cost);
                             position += 70;
                   }
              }
              
              private function populateInfo(event:Event) {
                   
                   //Incoming XML Data
                   xmlContainer = new XML(event.target.data);
                   xmlList = xmlContainer.product;
                   //
                   
                   //Variables to hold the string
                   var brandTxt:String;
                   var country:String;
                   var material:String;
                   var price:String;
                   var image:String;
                   
                   for (var i:uint = 0; i < xmlList.length(); i++) {     
                   if (xmlList.country.text()[i] == "USA") {
                   brandTxt = xmlList.brand.text()[i];
                   country = "product of " + xmlList.country.text()[i];
                   material = "made of " + xmlList.material.text()[i];
                   price = "$" + xmlList.price.text()[i];
                   image = xmlList.image.text()[i];
                   rackUSA.name = brandTxt.toLowerCase();
                   var imgVar:* = this.populateImages(image, "http://localhost/rackets/" + image); 
                   rackUSA.push({brand: brandTxt, country: country, made: material, cost: price, pic: image, picture: imgVar});
                   //addChild(DisplayObject(rackUSA[0].picture));
                   } else if (xmlList.country.text()[i] == "Other") {
                   brandTxt = xmlList.brand.text()[i];
                   country = "product of " + xmlList.country.text()[i];
                   material = "made of " + xmlList.material.text()[i];
                   price = "$" + xmlList.price.text()[i];
                   image = xmlList.image.text()[i];
                   var imgVarOther:* = this.populateImages(image, "http://localhost/rackets/" + image); 
                   rackOther.push({brand: brandTxt, country: country, made: material, cost: price, pic: image, picture: imgVarOther});
                   }
                   }
                   //this.startApplication();
              }
              
              
              
              
              
         }
    }
    

    If I clip named firstScreen how to fill with data from the rackUSA of the table, using the presented functions iterateArray

    I tried in a movieClip

    CustomClass.iterateArray (rackUSA); but it does not work

    Any suggestions

    I want to clarify the use cases.

    1 load data into the document class

    2. display a welcome message

    3 allow users to navigate through the products.

    Q1: Do you mean by 'welcome message' a user interface that allows to start navigation?

    Q2: Products appears the same way. I mean, consider that product display will have a uniform provision?

    If the answer to Q2 is Yes, I would:

    1. create a class that features products. Call ProductDisplay

    2 transfer data (subset of XML related to a particular product - in your case, it may be an object in the position of the table) in an instance of ProductDisplay

    I would like you to consider the following.

    It is a good practice to do OBJECT oriented programming class as little as possible each. This means that a class must have a very focused functionality. For example, ProductClass you perform tasks related to laying on the presentation of the product. With this in mind, it is best to delegate, say, loading image to a separate category. Believe me, when you do – your life will be much easier if you do features as granular as possible even if sometimes it feels like an overdose.

    So here's the sketch of your classes. I wrote it just to illustrate the idea. I did not check the code during execution is definitely buggy.

    Read my comments below also.

    It is a class of product image that load the image:

    
    package
    {
         import flash.display.Loader;
         import flash.display.Sprite;
         import flash.events.Event;
         import flash.events.ProgressEvent;
         import flash.net.URLRequest;
    
         public class ProductImage extends Sprite
         {
              // image url
              private var _url:String;
              // loader
              private var _loader:Loader;
              public function ProductImage()
              {
                   if (stage) init();
                   else addEventListener(Event.ADDED_TO_STAGE, init);
              }
    
              private function init(e:Event = null):void
              {
                   removeEventListener(Event.ADDED_TO_STAGE, init);
                   _loader = new Loader();
                   _loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoad);
                   _loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);
                   _loader.load(new URLRequest(url));
              }
    
              private function onProgress(e:ProgressEvent):void
              {
                   // display progress if needed
              }
    
              private function onLoad(e:Event):void
              {
                   _loader.contentLoaderInfo.removeEventListener(Event.COMPLETE);
                   _loader.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS, onProgress);
                   addChild(_loader);
    
              }
    
              public function get url():String { return _url; }
    
              public function set url(value:String):void
              {
                   _url = value;
              }
    
         }
    
    }
    

    ProdustDisplay class. Note how the product class is instantiated

    
    package
    {
         import flash.display.Sprite;
         import flash.events.Event;
    
         public class ProductDisplay extends Sprite
         {
              // hold the metadata
              private var _metaData:Object;
              // an object that holds the image
              private var _imageDisplay:ProductImage;
              public function ProductDisplay()
              {
                   if (stage) init();
                   else addEventListener(Event.ADDED_TO_STAGE, init);
              }
    
              private function init(e:Event = null):void
              {
                   removeEventListener(Event.ADDED_TO_STAGE, init);
                   // only if metadat is set - build interface
                   if (metaData) {
                        build();
                   }
    
              }
              // build interface
              private function build():void {
                   // place prduct image
                   _imageDisplay = new ProductImage();
                   _imageDisplay.url = metaData.image;
                   addChild(_imageDisplay);
                   // do the rest - like description, etc.
              }
              // function that accepts product metadata
              public function set metaData(metaObject:Object):void {
                   _metaData = metaObject;
              }
              // returns metadata
              public function get metaData():Object {
                   return _metaData;
    
              }
    
         }
    
    }
    

    Now in your document class, you can set an unlimited number of instances of ProductDisplay (as slides) and manipulate them. Again, this is just a sketch. Actual implementation of features and code will be somewhat different:

    var productDisplay:ProductDisplay = new ProductDisplay();
    productDisplay.metaData = rackUSA[2];
    
    

    Note: Your code has several inconsistencies - we need to go through them at another time. For now just digest these ideas. I understand that this will involve a refactoring on your part, but once you are done with it - things will fall in place fast.

Maybe you are looking for