Another issue of XML

Hi all

I wonder if you can help me with the following: I a member of the distribution which is powered with phrases of the text in an XML database.
Once the phrases have been loaded into the cast member I have a script that feeds on the first line of the Member of the cast with phrases (name: questions) to another Member of the cast of the stage.

Member ("Q"). Text = member("questions").line [1]

Now on my scene, I also have a button that needs to load the next line of the questions in the Q member member until there is no lines in all. I think I should load all of the rows of the Member questions in a list and then pull each expression in the list until eventually there is no sentence at all. However, I do not know how! Any ideas?

Thank you very much

I don't know why you don't know the first line of the text of member ("issues")
When you create your list (perhaps because you have already assigned the)
(question?)
I would say something like the following:
--
myQuestionList property

on beginSprite me
myQuestionList =]
tText = member("questions").text
maxLines = tText.line.count
Repeat with i = 1 to maxLines
myQuestionList.append (tText.line )
end repeat
Member ("Q"). Text = myQuestionList [1]
end

on mouseUp me
TPO = myQuestionList.getPos (member("Q").text)
If apt< count(myquestionlist)="">
Member ("Q"). Text = myQuestionList [OPC + 1]
on the other
-no longer available issues
end if
end

However, I think that the logic to display of questions could be better
partner with the text sprite which displays (objects issues
Maybe should also be responsible to themselves as possible).
Then the button could simply say the display object to display in question
the following question:
-issue display (#text sprite)
myQuestionList property
myCurrentQuestion property
myMember property

on beginSprite me
myMember = sprite (me.spriteNum) .member
myQuestionList =]
tText = member("questions").text
maxLines = tText.line.count
Repeat with i = 1 to maxLines
myQuestionList.append(tText.line
)
end repeat
myCurrentQuestion = 0
me.mDisplayNextQuestion)
end

on mDisplayNextQuestion me
TPO = myCurrentQuestion + 1
If apt< count(myquestionlist)="">
myMember.text = myQuestionList [mutual FUNDS]
myCurrentQuestion = TPO
on the other
-no longer available issues
end if
end

-button sprite:
on mouseUp me
_movie.sendAllSprites (#mDisplayNextQuestion)
end

Tags: Director

Similar Questions

  • Another issue of Unicode

    Here is the story so far:

    By activating the Unicode through the LabVIEW.ini (UseUnicode = true), I was able to develop a certain package of beautiful translation.  Moreover, when I create an executable file and run it, it works also.  But when I deploy it on another computer - that is, by running in the release folder or actually the installation with the installer - it displays garbage.  Not even the Chinese garbage - fair squares that I think means are nonprinting characters.

    Anyone know how to get around this problem?  I'll be actively trying stuff and update you on my progress.

    Oh, dev machine is Win7 and target is Windows XP.

    You have good languages enabled on the XP machine?  I * think * they are disabled by default, but I have not touched XP in quite some time.

    Control Panel > Regional Options and language settings > languages

  • Another issue a DHCP 50 option

    I went through the manual RFC to incorporate "the customer asked" the IP address.

    With 50 option, should I send/ask another thing?

    N ° the DHCP server must serve all customers the same.

  • Replace the current XML node with another node in XML fragments

    Hello

    Please help, trying to replace an XML node with other fragments XML using XML DB, updateXML/deleteXML functions don't receive the desired result, on the front of the image below, this is what I have, and the transom is the replacement with new values XML fragment, I expect to see, there is a list of records from the XML that I need to open and do the replacement of the < broker-retail > according to the number of records to be inserted.

    Before the photo:

    < Broker-benefits-link >

    < hpp-rule > 0 < / hpp-rule >

    LISP < in.-CVCA-benefits-type > < / po-CVCA-benefits-type >

    < commit / >

    <broker-retail >

    < broker-entity-not > 1000947836 < / broker-entity-not >

    < broker-pct > 100 < / broker-pct >

    Y < principal > < / main >

    < / broker-retail >

    < / Broker-benefits-link >


    After photo (expected result):

    < Broker-benefits-link >

    < hpp-rule > 0 < / hpp-rule >

    LISP < in.-CVCA-benefits-type > < / po-CVCA-benefits-type >

    < commit / >

    <broker-retail >

    < broker-entity-not > 65656524 < / broker-entity-not >

    < broker-pct > 25 < / broker-pct >

    N < principal > < / main >

    < / broker-retail >

    <broker-retail >

    < broker-entity-not > 122224444 < / broker-entity-not >

    < > 75 broker-pct < / broker-pct >

    Y < principal > < / main >

    < / broker-retail >

    < / Broker-benefits-link >

    Kind regards

    Qwestion

    You can use DELETEXML and INSERTCHILDXML

    SQL> set long 10000
    SQL> column xmldata_new format a100
    SQL> set linesize 150
    SQL>
    SQL> with t
      2  as
      3  (
      4  select
      5  xmltype('
      6    0
      7    LISP
      8    
      9    
     10      1000947836
     11      100
     12      Y
     13    
     14  ') xmldata from dual
     15  )
     16  select xmlserialize
     17         (
     18             document
     19             insertchildxml
     20             (
     21                deletexml
     22                (
     23                    xmldata
     24                  , '/broker-benefit-link/broker-detail'
     25                )
     26              , '/broker-benefit-link'
     27              , 'broker-detail'
     28              , xmltype
     29                (
     30                '
     31                    
     32                        65656524
     33                        25
     34                        N
     35                    
     36                    
     37                        122224444
     38                        75
     39                        Y
     40                    
     41                 ').extract('/broker-master/broker-detail')
     42             )
     43             as clob indent size = 2
     44         ) xmldata_new
     45    from t;
    
    XMLDATA_NEW
    ----------------------------------------------------------------------------------------
    
      0
      LISP
      
      
        65656524
        25
        N
      
      
        122224444
        75
        Y
      
    
    
    SQL>
    
  • Another issue of image search? Get the Web site reference if my images appear on an image search?

    I would like if all goes well imagine after having included the alt and figurecaption text in my web pages which my images start to appear in the search engine image collections. Usually when a collection of images arise, each image, if we click on it, displays a cluster of images from the same source of Web site or artist and offers a button to discover the site of the source or other works which, when clicked, takes you to a page with all the images shown or thumnailed.
    That everything is done by the search engine to any web page with several relevant images? There are a great number of images on an individual web page with regard to search engines?

    Add an image to Google - Search Help

    How can I get Google to index my site entirely?

    1. Generate a XML sitemap and forwarded to the folder root of your server.
    2. Use your Google Webmaster Tools account to submit the URL of your sitemap to Google.
    3. Wait patiently for 3-4 weeks until fully what Google indexes your website.
    4. Finally, your pages and images, will begin to appear in the SERPs, although probably not at the top.

    Nancy O.

  • issue of XML report while displaying the total in table @section

    Hi all

    face the question to the report xml editor.

    description of the problem:

    view @section block, I have the report total is there, it is the display of each page of the report, I want to display only the last page of the report.
    No matter what adea, please share...





    Thank you
    Nicolas

    Try this

    Just keep the total after the end of each, then you will get only on the last page.

    or

    Logic needed

    or send me the model and the xml I can try at my side. E-mail: [email protected]

  • Another issue of tab...

    I have another question of tab that drives me crazy.

    tabb.jpg

    On this photo. I can't seem to do the field highlight 9th in the tabulation.  No matter what I do, there are 35 and I can't understand why.

    Why some numbers appear blue, while others appear Brown?

    I've even re-created the field in the table and tried to place it like that.

    Thanks for any help.

    Gretchen

    The gray fields are automatic tab order and blue are the custom tab order. Do not know how you have both, you custom tab order?

    Sometimes it will get bugged, try to set to auto and then back to Custom.

  • Another issue of MySQL on averages. Remove outliers.

    I have a number of comments that I get a MySQL database.

    Let's assume the values I have, classified in increasing order:

    3, 5, 5, 6, 6, 6, 8, 9, 15.

    Simply calculate the AVG translates 63/9 = 7.00

    If I want to repeat, but leave out the minimum and maximum values, in this case both the 3 and 15, which gives the following list:

    5, 5, 6, 6, 6, 8, 9

    While the average is only 45/7 = 6.43 in order to obtain greater statistical precision, how can I change my query?

    Currently, the query is like this:

    $query_Recordset1 = ' SELECT COUNT (Graphics_card) AS Obs, Graphics_card, AVG(MPE_Off/MPE_On) Gain, AVG (MPE_On) that the speed OF 'Donnees_personnelles' WHERE MPE_On > GROUP BY Graphics_card HAVING COUNT (Graphics_card) 0 > 4 CONTROL OF speed ASC, DESC of Obs, Gain DESC LIMIT 0, 20';

    In this query, the minimum number of observations is 5 for each distinct "Graphics_card". In the future, can I change to another figure and that is easy, just change the 4 to another character "BOLD" but then, I can want to recalculate adjusted average excluding observations of two down and the top of page two observations, so the beach in the calculation is as follows:

    5, 6, 6, 6, 8

    and then the trimmed mean is only 31/5 = 6.20

    How do I address my request to achieve this?

    Or, to put it another way, how can I have everything first to exclude high X and comments background X of the request and then calculate the AVG?

    Here is the page I want to apply to: http://ppbm5.com/MPE%20Charts.php

    I solved it for the first part like this:

    SELECT COUNT (Graphics_card) AS Obs, Graphics_card, (SUM (MPE_On) - MAX (MPE_On)) / (COUNT (Graphics_card)-1) AS speed, (SUM(MPE_Off/MPE_On) - MIN (MPE_Off/MPE_On)) / (COUNT (Graphics_card)-1) AS Gain FROM 'Donnees_personnelles' WHERE MPE_On > 0 GROUP OF Graphics_card HAVING COUNT (Graphics_card) > 5 ASC LIMIT 0, 20 speed CONTROL

    Effectively, this removes the most significant outliers (MAX for speed) and MIN for the Gain and calculates the average based on the number of observations minus 1 for each category. In the same way, I could remove the outlier across the spectrum, MIN for speed and MAX for Gain, but then, to reduce the number of observations by 2 instead of 1.

    SELECT COUNT (Graphics_card) AS Obs, Graphics_card, (SUM (MPE_On) - MAX (MPE_On) - MIN (MPE_On)) / (COUNT (Graphics_card)-2) AS speed, (SUM(MPE_Off/MPE_On) - (MPE_Off/MPE_On) MIN - MAX (MPE_Off/MPE_On)) / (COUNT (Graphics_card)-2) AS Gain FROM 'Donnees_personnelles' WHERE MPE_On > 0 GROUP OF Graphics_card HAVING COUNT (Graphics_card) > 5 speed LIMIT CSA CONTROL 0 20

    I had trouble with the group function to use the suggestions in the link you gave me, and of course the different features between MySQL and Oracle SQL.

    I can't wait to have a MEDIAN function in MySQL.

  • Another issue of CS4 custom info panel

    Hi all

    I managed to create a Panel for CS4, which virtually replicates my CS3 Panel, using 'Generic' Panel System.  However, I don't find a way to place static text in the Panel.

    I just want simple static text in the Panel to guide the user how to complete the form. Adobe are doing this in their panels, however they are naturally created with Flex, which I did not.

    Someone else has managed all this?

    My properties.xml as it stands right now.

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

    " < = xmlns:ui xmp_definitions ' http://ns.Adobe.com/XMP/FileInfo/UI/ ">


    "" < xmp_schema prefix = "custom" namespace = "http://pearson.com/namespace/xmp/"label ="$$$ / pearson/PanelTitle = Photoshoot Details" description = "pearson / $$ / PanelDescription =" >

    < name xmp_property = category "PEDVersion" = "internal" label = "' $$$ / pearson/presentation/intro text = this is a test" type = "text" / > "


    < / xmp_schema >

    " < prefix xmp_schema ="xmp"namespace = ' http://ns.Adobe.com/Xap/1.0/ " "label ="$$$ / pearson/Blank =" >

    < xmp_property = category "Authors" name = "external" label = "' $$$ / iptc/core/Contact/creator = the creator name: ' type = 'text' xmp_path ="Authors"/ > "

    < / xmp_schema >

    " < prefix xmp_schema ="photoshop"namespace = ' http://ns.Adobe.com/Photoshop/1.0/ " "label ="$$$ / pearson/Blank =" >

    < xmp_property name = "CaptionWriter" class = "external" label = "' $$$ / pearson/CollectionTitle = the title of the Collection:" type = "text" xmp_path = "CaptionWriter" / > "

    < xmp_property name = "AuthorsPosition" class = "external" label = "' $$$ / pearson/CollectionID = ID of the Collection:" type = "text" xmp_path = "AuthorsPosition" / > "

    < xmp_property name = "ModelRelease" class = "external" label = "' $$$ / pearson/ModelRelease Model = Release: ' type = 'boolean', xmp_path ="modelRelease"/ > "

    < xmp_property name = "LocationRelease" class = "external" label = "' $$$ / pearson/LocationRelease = location output: ' type = 'boolean', xmp_path ="locationRelease"/ > "

    < / xmp_schema >

    " < prefix xmp_schema = namespace"Iptc4xmpCore"=" http://IPTC.org/std/Iptc4xmpCore/1.0/xmlns/ " "label ="$$$ / pearson/Blank =" >

    < xmp_property name = "Location" category = "external" label = "' $$$ / iptc/core/Image/location = location: ' type = 'text' xmp_path = 'Location' / > "

    < ui:separator / >

    < / xmp_schema >

    " < prefix xmp_schema ="photoshop"namespace = ' http://ns.Adobe.com/Photoshop/1.0/ " "label ="$$$ / pearson/text of presentation/image = Image details ' >

    < xmp_property name = "Headline" class = "external" label = "' $$$ / iptc, core, content, Headline = legend: ' type = 'text' xmp_path ="Title"/ > "

    < / xmp_schema >

    < / xmp_definitions >

    Thanks much for any help you can provide.

    James

    James,

    "BOLD" is what you get with this method.

    The tool tip help style (via the pointer of the mouse on the property tag) for each property (description =) is probably support for your task. I used paragraphs with this installation.

    Carl

  • ListBox with issue of XML.

    I've been through XML playlist video tutorial from Lee Brimelow, and I wanted to add a feature. I wanted to add a graphic on the stage that would change along with the video when a selection has been made in the list box. Get the first chart to appear was the easy part, but get the chart to change when the video gives me problems. Can anyone could point me in the right direction, apparently I do some sort of conceptual error. Thank you!

    I have it! Here's how. I'm not sure it's as pretty as it could be, but I got it working.

    Thanks dzedward.

  • Another issue duplicate RMAN - RAC database to single instance

    Hello

    I have a problem with RMAN duplicate procedure and hoped that someone can help you.

    I would like to create a duplicate of our data base RAC production on a separate and autonomous, database on another site server. This duplicate will be used to execute queries to another business unit that I don't want to have access to our database of intensive production.

    My procedure goes like this:

    1. create a (not ASM) disk based backup data files and recovery logs archived:

    'run {} '.
    allocate channel d1 type disk;
    backup format ' / u02/stage/df_t%t_s%s_p%p' database more entered archivelog delete;
    output channel d1;
    }"

    2 tar and scp those files to the same location on the standalone database server.

    3. in the meantime, work that's happened on the basis of data production and other archived redo logs have been generated. I don't really care about these papers for the purposes of the duplicate however, I just want to replicate to the point of the last backup. I have to do this, run the following SQL to determine the sequence number should I be duplicating up to:

    "Select max(sequence#) thread # v $ archived_log, whereas the deleted = 'YES' group by thread #;"

    4 duplicate the production to the stand-alone database database (SQL Net work orders).

    'run {} '.
    until the sequence (the value returned by the SQL statement above);
    duplicate target database xxx;
    }"

    However, my problem because I don't know how to handle the fact that he has two sons. I understand that each thread relates to one of the CARS, I don't know which one to specify the copy. We have a service of data that the client application connects through, and that the service runs on any of the bodies. I should just care about newspapers in the instance where the service is running?

    AM I even approach that this is the right way?

    I look forward to any help that people may be able to offer.

    Kind regards

    Phil

    1 9746 569095777 28 OCTOBER 09 569150229 28 OCTOBER 09
    1 9747 569150229 28 OCTOBER 09 569187892 28 OCTOBER 09
    1 9748 569187892 28 OCTOBER 09 569231956 28 OCTOBER 09
    1 9749 569231956 28 OCTOBER 09 569259816 28 OCTOBER 09
    2 7931 569095774 28 OCTOBER 09 569187902 28 OCTOBER 09
    2 7932 569187902 28 OCTOBER 09 569259814 28 OCTOBER 09

    You must use the VALUE until and specify the sequence with the next lowest change, or RMAN will search for the next log in this thread.

    for example, if you specify until the thread in the sequence 9750 1; RMAN will search journal 7933 on thread2 to catch the 1 wire SNA 569259816.
    Specify the set as a thread in 7933 2 sequence; and two copies must go ok!

    Published by: MrShh on October 29, 2009 14:35

  • HP 8000 elite cmt: another issue of elite cmt hp 8000

    OK so I have cmt hp elite 8000 with 4 GB of ram and 2 HDD 1 is a 250 GB, the other is 750 GB for a total approximate got 1 TB a decent graphics card that I can't install to my dvi - I dual to VGA appears but my problem is I have a Bluetooth headset and the pc does not have Bluetooth so what pcie card can use to get the Bluetooth on my pc

    Hello:

    The best thing to do is to buy an external usb bluetooth adapter.

    I use it on my HP 8200 Elite CMT.  Works very well.

    http://www.Amazon.com/Kinivo-BTD-400-Bluetooth-4-0-USB/DP/B007Q45EF4

  • Canon 6 d sensor or another issue?

    To end a session yesterday and the last photos was a light trail in the upper part of the image. I cleaned the lens of the sensor (not manually) changed, memory card, etc., and there is always a line. My warranty is soon must go out. I hope it is something simple. Any idea what this might be? The two photos below show. One is a white paper and the other one home base.

    .

    If you let warranty, send it to Canon service.  Right away! Today.

  • Another issue of clutter

    Hello

    I develop a connection for my application screen (jde 4.2 average targeting former phone as well). I want to put an image and two fields of ID and password together.

    for example

    1 image

    2 user field

    3. password field

    I try the following code and get some problems.

    Net.rim.device.api.ui import. *;
    Net.rim.device.api.ui.component import. *;
    Net.rim.device.api.ui.container import. *;
    Net.rim.device.api.system import. *;

    SerializableAttribute public class BackgroundImage extends UiApplication
    {
    Imagearriereplan private bitmap;
    fieldBitmap private bitmap;
       
    Public Shared Sub main (String [] args)
    {
    BackgroundImage PAP = new BackgroundImage();
    theApp.enterEventDispatcher ();
    }
       
    public BackgroundImage()
    {
          
    The background image.
    Imagearriereplan = Bitmap.getBitmapResource ("background.png");
           
    Display display = new display (Manager.NO_VERTICAL_SCROLL |) Manager.NO_VERTICAL_SCROLLBAR)
    {
    protected void paint (Graphics g)
    {
    g.setBackgroundColor (Color.GRAY);
    Super.Paint (g);
    }
    };

    HFM HorizontalFieldManager = new HorizontalFieldManager();

    BitmapField bitmapField = new BitmapField (Bitmap.getBitmapResource ("background.png"));

    Userf BasicEditField = new BasicEditField ("username:","", 8, BasicEditField.HIGHLIGHT_FOCUS ");
    PasswordEditField pf = new PasswordEditField ("password:","", 8, PasswordEditField.HIGHLIGHT_FOCUS ");
      
    Add the fields to the Manager.
        
    HFM. Add (bitmapField);
       
    mainScreen.add (hfm);
    mainScreen.add (userf);
    mainScreen.add (pf);
           
    Tap on the screen.
    pushScreen (mainScreen);
    }
    }

    1. How can I paste the image to be with in the Center party or the top of the screen.

    2. How can I put these two fields in the center of the screen as well.

    I searched a few discussions but haven't gotten a solution yet.

    all of the suggestions!

    Check this box, its work...

    You can set allignments VAC you are requirements.

    public class MyScreen extends MainScreen{
    
        Bitmap backgrndImg;
        VerticalFieldManager mainVFM;
    
        MyScreen()
            {
                super(Manager.NO_VERTICAL_SCROLLBAR|Manager.NO_VERTICAL_SCROLL);
                backgrndImg = Bitmap.getBitmapResource("img_background.png");
                mainVFM = new VerticalFieldManager(Manager.FIELD_HCENTER|Manager.USE_ALL_HEIGHT|Manager.FIELD_VCENTER|Manager.USE_ALL_WIDTH|Manager.VERTICAL_SCROLL|Manager.VERTICAL_SCROLLBAR|Manager.NO_HORIZONTAL_SCROLL);
                BasicEditField userf = new BasicEditField("User Name: ","",8,BasicEditField.HIGHLIGHT_FOCUS);
                PasswordEditField pf=new PasswordEditField("Password: ","",8,PasswordEditField.HIGHLIGHT_FOCUS);
                mainVFM.add(userf);
                mainVFM.add(pf);
    
                add(mainVFM);
    
            }
    
        public void paint(Graphics gr)
            {
                gr.drawBitmap(0, 0, gr.getScreenWidth(), gr.getScreenHeight(), backgrndImg, 0, 0);
                subpaint(gr);
            }
    
    }
    
  • Another issue of display language

    I installed Windows 7 Pro to a user here at work. Apparenetly, during the installation, I chose English Zimbabwe as the display language (note that this is not the English language chosen when Windows 7 is still configure itself - Zimbabwe isn't even a choice it.)  The user has not yet noticed the difference of language; However, whenever she printed something the printer asked paper in A4 format.

    I changed the display in American English language and who fixed most of it. However, some Office 2010 documents would always ask for A4 paper.  I found a place in MS Office to change the default size of letter paper.  However, Outlook asked again for A4 paper.  I changed a setting in Outlook for letter emails so now print on letter isize paper.  However, email attachments still require paper in A4 format.  My question is, where are all the places I need to change from A4 to letter?  Is there a registry fix for this?  If I can not understand that I have to re - install Windows.  Not funny.  Or a new profile user would fix the problem?

    Thanks for the reply, Shalini.  This problem has been resolved by reinstalling the printer driver.

    According to the user, it affected all attachments regardless of the type of file.

    This is a HP Color LaserJet CM2320nf MFD.

    Jason

Maybe you are looking for