bugGnash - The GNU Flash player - Bugs: bug #22131, XML bug

 
 

bug #22131: XML bug

Submitter:  Sandro Santilli <strk>
Submitted:  Sun 27 Jan 2008 09:43:22 AM UTC
Votes: 50
 
Category:  ActionScript Severity:  4 - Important
Release:  None Status:  Fixed
Privacy:  Public Assigned to:  strk
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 27 Jan 2008 09:47:29 AM UTC, comment #1: 

This is actually working with Gnash head...
The reporter probably used 0.8.1

Sandro Santilli <strk>
Group Member
Sun 27 Jan 2008 09:43:22 AM UTC, original submission:  

From -email is unavailable- mailing list:

Using the below code, I can view an xml doc in flash, however I get only                                                                                      
[type Object] when viewing with Gnash. Any ideas?                                                                                                             
                                                                                                                                                              
-----------------------------------------------------------               


from ming import *                                                                                                                                            
                                                                                                                                                              
Ming_setScale(20.0000000)                                                                                                                                     
Ming_useSWFVersion(6)                                                                                                                                         
movie = SWFMovie()                                                                                                                                            
movie.setDimension(550,400)                                                                                                                                   
movie.setRate(31)                                                                                                                                             
                                                                                                                                                              
strAction = """                                                                                                                                               
                                                                                                                                                              
createTextField('output',50,50,50,250,250);                                                                                                                   
                                                                                                                                                              
myXML = new XML();                                                                                                                                            
myXML.onLoad=handleLoad;                                                                                                                                      
myXML.load('xmldoc.xml');                                                                                                                                     
                                                                                                                                                              
function handleLoad (success) {                                                                                                                               
    if (success) {                                                                                                                                            
        output.text= this;                                                                                                                                    
    }else{                                                                                                                                                    
        output.text='fail';                                                                                                                                   
    }                                                                                                                                                         
                                                                                                                                                              
    myformat = new TextFormat();                                                                                                                              
    myformat.color = 0xff0000;                                                                                                                                
    myformat.font = 'Arial';                                                                                                                                  
    myformat.size = 12;                                                                                                                                       
                                                                                                                                                              
                                                                                                                                                              
    with (output){                                                                                                                                            
        multiline = true;                                                                                                                                     
        wordWrap = true;                                                                                                                                      
        border = true;                                                                                                                                        
        setTextFormat(myformat);                                                                                                                              
    }                                                                                                                                                         
}

Sandro Santilli <strk>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by shirish (Voted in favor of this item)
  • -email is unavailable- added by strk
  • -email is unavailable- added by strk (Submitted the item)
  •  

    There are 50 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-01-30 strk StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2008-01-28 shirish Carbon-Copy- Added shirish
    2008-01-27 strk StatusIn Progress Ready For Test
        Carbon-Copy- Added braydon fuller <courier@braydon.com>

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code