Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 646443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T21:36:45+00:00 2026-05-13T21:36:45+00:00

I’m working on a simple carousel. My problem appears when trying to insert node

  • 0

I’m working on a simple carousel.

My problem appears when trying to insert node values as text in my tooltip sub-elements.
Here’s my xml:

<promotions>        
        <promotion>
            <visuel>/papyrus/8a8b8d2e26fa35b60126faf90a4d002f-20100223141718.gif</visuel>
            <remise>55</remise>

            <libelle>produit 1</libelle>
            <description>contenu test 1</description>
            <dateDebut>22/02/2010</dateDebut>
            <dateFin>10/03/2010</dateFin>
        </promotion>

        <promotion>
            <visuel>/papyrus/8a8b8d2e26fa35b60126faf9a2f30032-20100223141750.gif</visuel>

            <remise>15</remise>
            <libelle>Pneus</libelle>
            <description>Promo sur les pneus</description>
            <dateDebut>01/03/2010</dateDebut>
            <dateFin>01/05/2010</dateFin>
        </promotion>


        <promotion>
            <visuel>/papyrus/8a8b8d2e26fa35b60126fafa1fa5003a-20100223141955.gif</visuel>
            <remise>7</remise>
            <libelle>produit 1</libelle>
            <description>Test promo 1</description>
            <dateDebut>10/01/2010</dateDebut>
            <dateFin>10/03/2010</dateFin>
        </promotion>        
</promotions>

And here’s the AS 2.0 where it’s suppose to be loaded and inserted in the right moviclip and texts.

    xml.onLoad = function(success:Boolean) {
   if(success) {
        var nodes = this.firstChild.childNodes;
        numOfItems = nodes.length;
        for(var i=0;i<numOfItems;i++)
        {
            var t = home.attachMovie("item","item"+i,i+1);
            t.angle = i * ((Math.PI*2)/numOfItems);
            t.onEnterFrame = mover;
            t.icon.inner.loadMovie(nodes[i].childNodes[0].firstChild);      
            t.promo= nodes[i].childNodes[1].firstChild.nodeValue;
            t.produit= nodes[i].childNodes[2].firstChild.nodeValue;
            t.dateDebut= nodes[i].childNodes[4].firstChild.nodeValue;
            t.dateFin= nodes[i].childNodes[5].firstChild.nodeValue;
            t.icon.onRollOver = over;
            t.icon.onRollOut = out;
        }
 } else {
       trace("Unable to load XML");
   }   
}

function over()
{
    home.tooltip.promo.text = this._parent.promo;
    home.tooltip.produit.text = this._parent.produit;
    home.tooltip.tipDebut.text = this._parent.dateDebut;
    home.tooltip.tipFin.text = this._parent.dateFin;
    home.tooltip._x = this._parent._x;
    home.tooltip._y = this._parent._y + (this._parent._height*0.15);
    home.tooltip.onEnterFrame = Delegate.create(this,moveTip);
    home.tooltip._alpha = 100;
}

Results i’m having show me each gif picture (wich means i’m correctly pointing and loading the childnode), text contents load right ( node[libelle] and node[description]) buit nodes containing numbers or date don’t load.
Where am I wrong ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T21:36:46+00:00Added an answer on May 13, 2026 at 9:36 pm

    I tried running your code, and it sort of works for me – although I can only guess about how your elements are set up on the stage.

    Some things I did notice:

    1. The path to each .gif file starts with a / which didn’t work so well for me, but as you say, it’s working for you…
    2. The item0, item1, item2 movieClips are being added in front of the tooltip clip, so perhaps the images are obscuring your text? (but this could just be the way my stage is set up.)
    3. This might be a dumb question, but have you embedded the full character set for your dynamic textfields? That might explain why letters are appearing but not numbers.

    Also I don’t know what your mover, out and moveTip functions are doing (can you maybe post them as well?).

    Hope this helps a little…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 411k
  • Answers 411k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer The ClassFileTransformer gets invoked by the ClassLoader. A little modification… May 15, 2026 at 7:39 am
  • Editorial Team
    Editorial Team added an answer I think you should be able to do: ORDER BY… May 15, 2026 at 7:39 am
  • Editorial Team
    Editorial Team added an answer device_create function allowed me to register a device in a… May 15, 2026 at 7:39 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.