Need help with XML, view the data by scanning/click

Hello.

I am creating a moibile app that displays XML data. It is a telephone directory. I want the data to change when we slide. I can get the data very well. I can get it to display fine. I do not see the correct image first, however. I think it's a problem with my imagenum variable.

Then, I want to change what is displayed when the user clicks/slide on the screen. How do I do that?

Stop();
var nameArray:Array = new Array();
var countryArray:Array = new Array();
var portraitArray:Array = new Array();
var flagArray:Array = new Array();
var jobtitleArray:Array = new Array();

var imageNum:Number = 0;
var totalImages:Number;

Loading XML
var XMLURLLoader:URLLoader = new URLLoader();
XMLURLLoader.load (new URLRequest ("recbook.xml"));


XMLURLLoader.addEventListener (Event.COMPLETE, processXML);


function processXML(event:Event):void {}

var theXMLData:XML = new XML (XMLURLLoader.data);
totalImages = theXMLData.name.length ();
for (var i: Number = 0; i < totalImages; i ++) {}
Data in the tables xml push
nameArray.push (theXMLData.name [i]);
countryArray.push (theXMLData.country [i]);
portraitArray.push (theXMLData.portrait [i]);
flagArray.push (theXMLData.flag [i]);
jobtitleArray.push (theXMLData.jobtitle [i]);
}
the data is processed

loadData();
}

function loadData (): void {}

var thisPortrait:String = portraitArray [imageNum];
var thisCountry:String = countryArray [imageNum];
var thisName:String = NomTableau [imageNum];
var thisJobtitle:String = jobtitleArray [imageNum];
var thisFlag:String = flagArray [imageNum];

var dataLoader:Loader = new Loader();
dataLoader.load (new URLRequest (portraitArray [imageNum]));
dataLoader.contentLoaderInfo.addEventListener (Event.COMPLETE, dataLoaded);
function dataLoaded(event:Event):void {}

I want to start with 0 (img1.jpg) image and scroll with a click of the mouse (finger on iOS kick)
stage.addEventListener (MouseEvent.CLICK, loadMainImage1);
function loadMainImage1(event:MouseEvent):void {}
portraitUILoader.source = thisPortrait;
flagUILoader.source = thisFlag;
selectedName.text = thisName;
selectedCountry.text = thisCountry;
selectedJobtitle.text = thisJobtitle;
}
}

Add to imageNum (1);
imageNum ++;
If (imageNum < totalImages) {//stopping to img2
trace ("imageNum" + imageNum);
trace ("name of the image (tomyline)" + tomyline "); losing picture 4 somewhere

loadData();
}

trace ("Total Images" + totalImages);

}

Click here to pass the screenI House would this gap. do not know how.
homeScreen_mc.addEventListener (MouseEvent.CLICK, goNext);

function goNext(event:MouseEvent):void
{
nextFrame();
}


* / Here is the result:
imageNum 1
image name (tomyline) images/img1.jpg
imageNum 2
image name (tomyline) images/img2.jpg
imageNum 3
image name (tomyline) images/img3.jpg
Total of 4 Images
Total of 4 Images
Total of 4 Images
Total of 4 Images

It starts on frame 1 display (the second in the series img2.jpg) * /.

If (imageNum< totalimages)="" {//stopping="" at="">
trace ("imageNum" + imageNum);
trace ("name of the image (tomyline)" + tomyline "); losing picture 4 somewhere
imageNum ++;
If (imageNum! = totalImages) loadData();
}

Tags: Adobe Animate

Similar Questions

  • Need help with query between 2 dates

    Hello

    I did not SEE in a long time and need help with a simple query.

    I have a table of DB access with 3 fields, name, date and number

    What I want is to create a query to retrieve all the names between 2 dates

    When I ask the date field, the results are showing in this formats 2013-07-12 00:00:00

    Here's my query

    < cfquery datasource = 'mydb' name = 'test' >

    SELECT name from myTable

    where edate between ' 2011-01-01 00:00:00 ' AND ' 2013-01-01 00:00:00 '

    < / cfquery >

    < cfoutput query = 'test' >

    #name #.

    < / cfoutput >

    What I get is this error

    ODBC = 22005 (assignment error) error code

    [Microsoft] [ODBC Microsoft Access driver] Type mismatch of data in the expression of the criteria.

    Don't know what I'm doing wrong here.

    Please let me know.

    Thank you

    SELECT ename

    FROM MyTable

    WHERE edate BETWEEN

    AND

    #ename #.

  • Need help with auto-fill the fields

    Hello

    I need help with a form that has multiple pages.  I have some areas I are duplicated in my document.  How I got these fields auto fill throughout the form/paper? For example, I'm going to fname lname, address, telephone, etc... How can I get these fields automatically on the other pages of the form?  Is this possible?  Any suggestions are welcome.

    Thank you in advance.

    If it's just a fill operation then make sure the fields have the same name. Then set the binding to the global level and all the fields with the same name will get the same value.

    Paul

  • Need help with treatment of the raw image data

    I found that I can access the input raw through params [0]-> u.ld image and the output image I can write via the output in the rendering parameter works. I get most of the information required by the data, the width, the height and rowbytes members of these structures, but I can't understand how to determine the format or bit per pixel images. I would like the process, the data of params [0]-> u.ld.data and write directly to the output-> data, but I need to know the pixel format to correctly interpret image data.

    How can I get the number of bits of the output images? Is there a way to make my plugin support only 128 bits per pixel floatin' fist data?

    the best way to tell the depth of the incoming world is:

    extra-> input-> bitdepth;

    It gives all of the following values: 8, 16, 32.

    the 'extra' is one of the parameters passed to your plugin in the smart_render call, and this is true for the worlds of entry and exit.

    the second way is a little heavier, but you can check everyone with it:

    PF_WorldSuite2 * wsP = NULL;

    ERR (suites. Pica()-> AcquireSuite (kPFWorldSuite, kPFWorldSuiteVersion2, (const void *) &wsP));)

    ERR (wsP-> PF_GetPixelFormat (inputP, pixelFormat));

    ERR (suites. Pica()-> ReleaseSuite (kPFWorldSuite, kPFWorldSuiteVersion2));

    the type of pixel AE uses always is ARGB.

  • need help with hex and handling data extraction

    Hello

    I have able to transmit hexagonal commands on the serial port of my camera and receive responses in hex him successfully. I was able to confirm this by changing the display format to the spell for the control and the indicator. Now, I want to store the portion of the hexagonal received data and use it in my future orders. Example of received data as below:

    0001 1100 0010 E002 6 93 4D7E 2C4D AA66 F00D

    The red blocks will be incorporated in the next command so that when I sent this command it will look like this:

    F00D 0014 2000 0003 0000 0020 77AF E002 6 93 4D7E 2C4D

    In short, send the command and get response, extract and store data in red blocks, then send different control that contains the data that is stored. Everything is in hexadecimal format. Question is how can I extract/store the bytes wanted to and then rebuild a hex command containing these bytes? Can I convert it to normal string, byte array, or hexagonal table? If we use the latest methods of 2 conversion, I need to ensure that the zeros are not lost.

    I enclose my VI. Please take a look and help to provide a solution.

    Thanks in advance.

    Here, s what I had in mind (LabVIEW 2010):

  • Need help with activation of the CC training plan

    Hey, I made a purchase order for a comprehensive cloud was created for students and teachers two weeks ago.

    1.5 week ago , made the payment but I do not have any new informations and I still can not use any application.

    Track version was released. CC cannont find my subsrciption associated with my Adobe ID

    Last email that I received said I'll be getting another within 24 hours, still no response.

    Order No. AD001694082EDPL

    Support information can not help with this problem.

    Customer support Adobe please help!

    Hi gregnawrat,

    My apologies for the delay in response.

    I just checked your account and found that you have tried to make the payment by Paypal, Paypal however rejected the transaction.

    Please check with them and place a new order, this order is not yet confirmed.

    I hope this helps!

  • Need help with XML (bold/italic) attribute access

    Hello

    I have a form that displays data in livecycle designer. When a person imports an xml file into the form in Adobe Acrobat format, it should be able to display data in the form of fat and some italicized based on the xml file.

    Here is an example of xml file

    < Table1 >

    < Row1 >

    < Cell1 style = 'none' > 1 < / Cell1 >

    < Cell2 style = "bold" > 2 < / Cell2 >

    < Cell3 style = "italic" > 3 < / Cell3 >

    < / Row1 >

    < / Table1 >

    And the output should be:

    1 2 3

    Can someone please! If the xml file must be designed differently, please let me know.

    Thank you!

    The implementation of Rich Text use xHTML to define the styles of fonts. I suggest you create a RichText Field on your form, set the text the way you want, then export the data to see how the styles are represented.

    Paul

  • need help with xml data

    Hi all

    need your spiritual help once more!
    I have a table 'product' as below:

    create table product)
    product_id number (2),
    product_info varchar (4000));

    Select * from product:
    product_id product_info
    1 < ticketing > < product = 'TV' > < productservice = "shipping" > < / productservice > < / product = 'TV' > < / ticket >

    I need to get the column product_info information in a new table with 2 columns product and productservice product_details. as in: -.
    Select * from product_details:
    product_id product productservice
    1 expedition TV

    any suggestions on how to do it.
    PS-> for a product it can be several services and there may be several products for a ticket.

    Your XML file is not well formed at all (so many errors in there).

    However, if you had a valid XML code, you could do something like that...

    SQL> ed
    Wrote file afiedt.buf
    
      1  with t as (select 1 as product_id, '' as product_info from dual union all
      2             select 2, '' from dual)
      3  --
      4  -- end of test data
      5  --
      6  select t.product_id, x.*
      7  from t
      8      ,xmltable('/ticketing/product'
      9                passing xmltype(t.product_info)
     10                columns product varchar2(10) path '/product/@name'
     11                       ,service varchar2(15) path '/product/productservice/@name'
     12*              ) x
    SQL> /
    
    PRODUCT_ID PRODUCT    SERVICE
    ---------- ---------- ---------------
             1 TV         shipping
             2 VCR        delivered
    
  • need help with query can find data back please help.

    Hi guys I have a table such as
    CREATE TABLE "FGL"
      (
        "FGL_GRNT_CODE" VARCHAR2(60),
        "FGL_FUND_CODE" VARCHAR2(60),
        "FGL_ACCT_CODE" VARCHAR2(60),
        "FGL_ORGN_CODE" VARCHAR2(60),
        "FGL_PROG_CODE" VARCHAR2(60),
        "FGL_GRNT_YEAR" VARCHAR2(60),
        "FGL_PERIOD"    VARCHAR2(60),
        "FGL_BUDGET"    VARCHAR2(60)
      )
    and I have a data as such
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','11','1','400');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','10','1','100');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','1','0');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','14','200');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','10','14','100');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','10','2','100');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7470','4730','02','10','2','200');
    I need bascially to get the total of the budget column. However this is not as simple as it sounds good (at least not for the me.) totals carried forward to the new period. you will notice that you have a period column. Basically, what im is that
    fgl_grant_year 10 1 period = account 7600 its $100 and $100 for the period 2, you see $ 100 more, it wants to not be added to this is the door on the balance. that is $100.
    So im trying to write a query that basically does the following.
    IM considering a period for the sake of this example let period 1 I get anything else. I find that the greates contributes dumpster year the amount for the period 14 (which corresponds to the total of the previous year) and add it to the amount of the current year. in this case period 1 grnt_year 11
    the expected result is therefore $700
    240055     240055     7240     4730     02     10     14     200
    240055     240055     7600     4730     02     10     14     100
    240055     240055     7600     4730     02     11     1     400
    do not forget that I am not given a just a period of the year.
    any help you guys can give would be immensely appreciated. I tried to get this to work for more than 3 days now.
    Finally broke down and put together this post

    Published by: mlov83 on Sep 14, 2011 20:48

    Hello

    Thanks for posting the CREATE TABLE and INSERT statemnts; It is very useful.

    I'm not sure that understand your needs.
    The correct output will be just one line:

    TOTAL_BUDGET
    ------------
             700
    

    or will it be 3 ranks that you posted? I guess you want just line after line.

    Do you mean that you are given a period (for example, 1).
    First you have to find the largest gfl_grnt_year which is related to this period (in this case, 11).
    Then you need to add fgl_budget lines that have to be
    (1) the specific period and the largest fgl_grnt_year, or
    (2) perriod = 14 and the previous fgl_grnt_year (in this case, 10).
    Is this fair?

    If so, here's a way to do it:

    WITH     got_greatest_year     AS
    (
         SELECT     fgl.*     -- or whatever columns are needed
         ,     MAX ( CASE
                     WHEN  fgl_period = :given_period
                     THEN  fgl_grnt_year
                    END
                  ) OVER ()     AS greatest_year
         FROM     fgl
    )
    SELECT     SUM (fgl_budget)     AS total_budget     -- or SELECT *
    FROM     got_greatest_year
    WHERE     (     fgl_grnt_year     = greatest_year
         AND     fgl_period     = :given_period
         )
    OR     (     fgl_grnt_year     = greatest_year - 1
         AND     fgl_period     = 14
         )
    ;
    

    If you want the 3 lines you have posted, then change the main SELECT clause to ' SELECT * ' (or, instead of *, youcan the columns you want to see the list).

  • Need help with calibration of the battery

    I have a Vn7 - 591 g and it's basically old 1.

    My problem is my laptop stop without noticing low battery notification and without any warning since I updated my windows 10 November pro build.

    First, it would close down to the level of 15% without indication battery and then I looked at here and there and find the calibration procedure as I tried battery as the load calibration procedures to 100% in stop and go in safe mode and let it drain and recharge again, after the fact that now he stops at the level of battery by 30% or 25% without notice or warning.

    I tried battery reset thing pinhole also as suggested somwhere in this discussion.

    One thing I noticed when I put my laptop power in High-Performance option, low battery, that it just goes right into hibernation but when I plug in the AC adapter it shows battery 0% or 1%, and perception.

    so is it problem in my battery or Power Options or the problem is another?

    Any help will be appreciate and please answer quickly because I am sad with this problem. It is a one year old laptop around, I bought new.

    Hello

    Well, the wear level is quite high for a laptop one year old. Do you often use on the farm?

    It is interesting that hwmonitor reads the same amount as that of windows, stop so suddenly, because of the battery not calibrated... I don't think so. It may be the case even if the PCI that controls the battery charging does not correctly read the State. That would mean that you would need to change the battery (the peak is on the battery).

    You can try to run battery Eater: http://www.softpedia.com/get/System/OS-Enhancements/Battery-Eater-Pro.shtml

    This software will monitor your battery while meeting and then make a graph of it after a reboot. I don't remember if trace the graph based on the percentage, or the actual capacity of the battery.

    You can read more about what the software did here:

    http://Lifehacker.com/5657275/battery-Eater-benchmarks-your-batterys-capacity-so-you-know-what-to-ex...

    Also, would probably be a good idea to see if what happens on another operating system as well. For example, you can try to make a USB boot Linux, ubuntu and check if your laptop suddenly stops at the same percentage values. If it is not the case, which is probably something just with windows.

  • Need help with information about the file

    IM and only know basic computer skills. Im having a problem with obtaining correct file information.  I only use MS MediaPlayer.  I have amassed a decent library.  Over the years, I've downloaded music from CD, limewire and what is called a torrent.  My daughter would be to get an education, but she managed.  Songs from a CD are not a problem, but other sources, the news of music might be incorrect or missing.  On my hard drive and the Member for information often is listed as unknown or various artist.  I edited the info on the Congressman, but he will not put these songs in order. Always the groups to the title of an album.  I can't change the information in the properties.  I think I would need to correct the source info in my library, but I don't know how. Any help would be greatly appreciated my OCD insists that my library be in order. Thank you!

    Liner,

    Musician is working hard and deserves to be paid for their work like everyone else, and unless they offer their recordings for free, whenever you download a torrent or P2P service like Limewire, you're basically stealing their intellectual property and taking food off of their plate.

    Most of the people don't post on a Microsoft Forum, ask the help of cataloguing of media that were obtained from these types of sources. In addition, the sources you cite could also distribute unwanted hitchikers (virus, malicious software) as well as the music.

    If you buy the CD you got with torrents and Limewire, you would probably best chance to get the metadata. And it would be "the right thing to do."

  • Need help with SQL for the following logic.

    I have a table with 3 columns and the following data:
    DATE NAME S_NO
    1 ABC1 JANUARY 1, 2001
    1 ABC2 JANUARY 10, 2001
    1 ABC3
    1 ABC4
    ABC1 2 1 DECEMBER 2010
    ABC2 2
    2 ABC3 DECEMBER 10, 2010
    2 ABC4 DECEMBER 5, 2010
    3 XYZ1 FEBRUARY 1, 2001
    3 XYZ2 FEBRUARY 2, 2001

    I need to retrieve the value of NAME for each S_NO corresponding to the maximum DATE. In the above example, it will be:
    1 ABC2
    2 ABC3
    3 XYZ2
    /* Formatted on 9/10/2012 2:50:13 PM (QP5 v5.139.911.3011) */
    WITH t AS (SELECT 1 S_NO, 'ABC1' NAME, '1-JAN-2001' dt FROM DUAL
               UNION ALL
               SELECT 1, 'ABC2', ' 10-JAN-2001' FROM DUAL
               UNION ALL
               SELECT 1, 'ABC3', NULL FROM DUAL
               UNION ALL
               SELECT 1, 'ABC4', NULL FROM DUAL
               UNION ALL
               SELECT 2, 'ABC1', '1-DEC-2010' FROM DUAL
               UNION ALL
               SELECT 2, 'ABC2', NULL FROM DUAL
               UNION ALL
               SELECT 2, 'ABC3', '10-DEC-2010' FROM DUAL
               UNION ALL
               SELECT 2, 'ABC4', '5-DEC-2010' FROM DUAL
               UNION ALL
               SELECT 3, 'XYZ1', '1-FEB-2001' FROM DUAL
               UNION ALL
               SELECT 3, 'XYZ2', '2-FEB-2001' FROM DUAL)
    SELECT *
      FROM (SELECT S_NO,
                   name,
                   RANK ()
                   OVER (PARTITION BY s_no
                         ORDER BY TO_DATE (dt, 'dd-mon-yyyy') DESC)
                      rk
              FROM t
             WHERE dt IS NOT NULL)
     WHERE 1 = RK
    
  • Need help with xml parsing

    Hello everyone. I have a question about parsing of an xml file. So I have to build a section of a Web site, in which I have to create a carousell 3d, showing different images. The images are loaded from an xml file, and their number is random. Basically, when I enter the section, I must choose a random number of galleries and when visit on a gallery name, a carousell appear, filled with images with for this gallery. The Gallery xml structure is as follows. It is still for the test, so there no concrete values.

    <? XML version = "1.0" encoding = "utf-8"? >

    < eveniments >

    < organization >

    < title > eveniment1 < / title >

    < photos >

    < poza1 > one < / poza1 >

    < poza2 > n < / poza2 >

    < poza3 > c < / poza3 >

    < poza4 > s < / poza4 >

    < / photos >

    < / organization >

    < organization >

    < title > eveniment2 < / title >

    < photos >

    < poza1 > one < / poza1 >

    < poza2 > b < / poza2 >

    < poza3 > c < / poza3 >

    d < poza4 > < / poza4 >

    < poza5 > e < / poza5 >

    < / photos >

    < / organization >

    < organization >

    < title > eveniment3 < / title >

    < photos >

    < poza1 > b < / poza1 >

    bb < poza2 > < / poza2 >

    bbb < poza3 > < / poza3 >

    < poza4 > bbbb < / poza4 >

    < poza5 > bath < / poza5 >

    < poza6 > bath < / poza6 >

    < / photos >

    < / organization >

    < organization >

    < title > eveniment4 < / title >

    < photos >

    < poza1 > c < / poza1 >

    < poza2 > one < / poza2 >

    < poza3 > cc < / poza3 >

    < poza4 > aa < / poza4 >

    < poza7 > ccc < / poza7 >

    < poza5 > aaa < / poza5 >

    < poza6 > < / poza6 >

    < / photos >

    < / organization >

    < organization >

    < title > eveniment5 < / title >

    < photos >

    < poza1 > CAD < / poza1 >

    < poza2 > CAD < / poza2 >

    < poza3 > ca < / poza3 >

    < poza4 > cc < / poza4 >

    < / photos >

    < / organization >

    < / eveniments >

    I need to access all the

    The question is: How can I access the child 'pictures' for each node?   I tried to access le.eveniment.poze "xmlfile", but it seems to not work.

    It seems that your pozas are in a section of , then you probably need to target through who tag images.

  • Need help with SVG viewer

    Someone knows something about SVG viewer. I have been accessing a genealogy site and got a message "your SVG viewer does not support scripts. Please consider to upgrade '.
    Despite spending ages on my laptop and Toshiba I canoe online find my SVG viewer. Where he is, or who is the provider.
    Although there are various viewers available for download SVG I'm reluctant to downloaad again without knowing what I have now and provided.

    Can someone advise. Thank you very much.

    Have you tried to install Adobe SVG viewer http://www.adobe.com/svg/viewer/install/auto/
    Does that help?

  • Hello, need help with re install the ambient light.

    I had installed the ambient light in my laptop that has hardware problems now (without monitor) and so I uninstalled it and now trying to install in my new laptop. But could not understand how do. Could someone help me with it please?

    Refer to the link below:

    Lightroom: 5.5 (win),

    Concerning

    Varun

Maybe you are looking for

  • combining two tables

    Hello I have a while loop that runs trough each case in a box structure. Each of these cases produced a 1 d table. How can I combine these tables in a 2d array. An attempt with two cases is attempted in the attached diagram. The problem is it seems t

  • How to uninstall windows messenger on windows xp?

    How to uninstall windows messenger on windows xp? * original title - help me *.

  • Clean the OS install on HP Compaq dc7800p CMT - which drivers/software for HP?

    Gentlemen. I decided to first try the road at low prices and to order a recovery disc Vista professional instead of a copy of Win7 for my HP Compaq dc7800p CMT with Intel Core Duo E6550 2.33 GHz processor, 1 GB of DDR2 800 MHz RAM and HARD drive reta

  • 10 upgrade popup windows

    He said that my pc is not compatible with the upgrade of Windows 10 so how can I get rid of the popup to upgrade constantly windows 10...

  • Lost internet driver.

    I have a G50 Notebook comes with Vista Home Basic. I installed a Vista Home Premium on it, and now I have no ethernet, sm or coprocessor bus controller controller. Because I can't connect to internet, I tried to download the software on my other PC a