A Flash Developer Resource Site

Search:

Type: Posts; User: egfx

Search: Search took 0.03 seconds.

  1. Replies
    1
    Views
    1,485

    Parse XML in AS3 and load in AS2

    Hey,

    I need to parse an XML feed so it's readable by an AS2 project. I want to use E4X and AS3 for all the parsing and simply load the parsed out document to AS2. Can flash send AS3 code to AS2...
  2. Replies
    2
    Views
    1,921

    Thanks that was very helpful! Works perfectly now...

    Thanks that was very helpful! Works perfectly now


    for each(var bXML:XML in aXML)

    {

    var str:String = aXML;
    var re:RegExp = /(,)/
    var results:Array = str.split(re);
  3. Replies
    2
    Views
    1,921

    Return individual word in an XML node

    I have a pretty simple question, how do I reference an individual word in an XML node. For example


    <tag>word1 , word2 , word 3 , word 4, word5</tag>

    where I want to refer to all these tags...
  4. Replies
    2
    Views
    448

    Thanks got it to work after hours of trial by...

    Thanks got it to work after hours of trial by doing this:

    for each(var aXML:XML in myXML.Elements)
    {
    aXML.setName("a");
    aXML.setChildren(aXML.a.*);
    }

    trace(myXML.toXMLString());
  5. Replies
    2
    Views
    448

    XML, How do I change the node hierarchy?

    I have

    level 1: <Element>
    level 2: <a>some content</a>
    </Element>

    <a> is nested in <Element> and I need to delete <Element> without deleting <a>. So basically I want <a> to be the...
  6. Replies
    6
    Views
    1,308

    Thanks sstalder, lead developer changed the...

    Thanks sstalder, lead developer changed the behavior - so I can just call the variable itself without worrying about flashvars. It's handled on the server side. It works perfectly now.
  7. Replies
    1
    Views
    865

    I figured out that I could do a replace() call....

    I figured out that I could do a replace() call. But I get an error when I try it,

    TypeError: Error #1086: The replace method only works on lists containing one item.

    So I need help looping...
  8. Replies
    1
    Views
    865

    How to? Replace XML tag with another one

    I'm having trouble figuring out how to call an XML tag itself (not the value of the tag). I have a program that reads data from specifically named tags. I.E the program understands the tag <image>...
  9. Replies
    6
    Views
    1,308

    Thanks for your help, I want to test this out....

    Thanks for your help, I want to test this out. How do I update it to include the xml info in a textbox on the stage instead of in a trace statement?
  10. Replies
    6
    Views
    1,308

    I have a test app in AS2 working made up of the...

    I have a test app in AS2 working made up of the following:


    xml = new XML();
    xml.load(cubeFeedURL);
    xml.onLoad = function(){
    info_txt.text = xml;
    }
  11. Replies
    6
    Views
    1,308

    Loading a dynamic XML URL

    I have an XML file on a site that I need to call from a flash movie. The XML file is packaged into a parameter, its actual url is generated dynamically and cant be called directly so instead of...
  12. This didnt work but I improvised. I used the...

    This didnt work but I improvised. I used the first bit of code and then manually placed a movie clip on the stage with the instance name "clip" and this works.
  13. Thanks! This is exactly what I needed. But is...

    Thanks! This is exactly what I needed. But is there a way to make the clickable area a movie clip rather then use the drawing api. It seems limited, I want to be able to overlay a movie clip on top...
Results 1 to 13 of 13




Click Here to Expand Forum to Full Width

HTML5 Development Center