bugGnash - The GNU Flash player - Bugs: bug #22819, certain flash UI components not...

 
 

bug #22819: certain flash UI components not supported yet in Gnash

Submitter:  Hong Yu <hongyu>
Submitted:  Thu 03 Apr 2008 08:09:31 AM UTC
   
 
Category:  ActionScript Severity:  3 - Normal
Release:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Sat 02 Oct 2010 11:43:19 AM UTC, comment #17: 

I tested the attached swf file in Gnash from git trunk (after version 0.8.8), and the pull down menu was still missing the two names.

Petter Reinholdtsen <pere>
Group Member
Tue 02 Dec 2008 02:23:56 PM UTC, comment #16: 

This lacks some selection methods (getBeginIndex, getEndIndex, and setSelection), but otherwise seems all right.

The malformed XML should no longer be a problem either.

Benjamin Wolsey <bwy>
Group Member
Thu 10 Apr 2008 07:27:47 AM UTC, comment #15: 

isolate the portion giving you different traces.
we need it as small as possible.

Sandro Santilli <strk>
Group Member
Thu 10 Apr 2008 06:51:13 AM UTC, comment #14: 

yes, just tell me what trace you would like to add.
Thanks

Richard Tseng <rtseng7>
Thu 10 Apr 2008 06:49:22 AM UTC, comment #13: 

Do you have a way to compile the ActionScript in the .zip
file back to an SWF ?

Sandro Santilli <strk>
Group Member
Thu 10 Apr 2008 05:31:36 AM UTC, comment #12: 

Attached please find trace logs generated by saflashplayer 8 (fldebug.txt) and by gnash 0.8.2 (gnash-dbg.zip).

The first trace msg appear in both logs:
myso.data.toload===:: undefined/undefined/undefined

After that fldebug.txt shows following messages which I can't find in gnash-dbg.log:

level:
Number_of_Correct_attempt: 0
Number_of_attempt: 0
time_spent: 4
recorded: false
game_id: G_01
end_session_time: Wed Jan 17 12:11:32 GMT+0800 2007
start_session_time: Wed Jan 17 12:11:27 GMT+0800 2007
session_id: NaN
to_load: undefined/undefined/undefined
Book: 1
Series: 1
ST_Name: peter

Finally the following trace msgs are shown in both logs:
peter
victor

I can add more trace msgs, but not being an AS developer, would need some advice on where/what to add. Attached please find *.as files (STUDENT.zip).

Thanks, Richard

(file #15434, file #15435, file #15436)

Richard Tseng <rtseng7>
Wed 09 Apr 2008 12:07:04 PM UTC, comment #11: 

you can use flasm to convert to asm-like code
and back (change the actionscript code).
and/or swfmill (swf2xml and xml2swf) to change the timeline structure.

Sandro Santilli <strk>
Group Member
Wed 09 Apr 2008 12:04:13 PM UTC, comment #10: 

Unfortunately I am not.  Let us spend some time to figure out adding trace.

Is it possible to simplify it into a simpler testcase?

Hong Yu

Hong Yu <hongyu>
Wed 09 Apr 2008 11:31:48 AM UTC, comment #9: 

Hong, are you the author of the SWF ? I didnt' realize that !
Adding debugging calls to edit_text_character I saw that the
text is even put into the textfields, just not displayed.

Can you add traces in the movie to print some depths or
other interesting thing for comparison with the pp ?

Sandro Santilli <strk>
Group Member
Wed 09 Apr 2008 11:23:49 AM UTC, comment #8: 

We followed your suggestion and modified STUDENT.xml.  We checked out Gnash HEAD as of today Apr 9, 2008, built with default non-debugging option, and ran with STUDENT.swf.  The result is consistent with your newest progress summary, that graphics still needs work, and gnash.log shows XML parsing better (Peter, Victor).

Gnash log is of big size (2M), so will email seperately.

Attached: modified STUDENT.xml

(file #15428)

Hong Yu <hongyu>
Wed 09 Apr 2008 06:21:40 AM UTC, comment #7: 

Actually, I talked too soon.
The STUDENT.xml file is malformed:

Entity: line 1: parser error : attributes construct error
<Student Name="peter" MOB="January"LEVEL="KG" SERIES="1"/>


There is no space between ending double quote of MOB value
and next attribute (MOB).
Libxml (even with the recover option) gives errors and
return 0 childs. Adding the space fixes it for gnash.

Sandro Santilli <strk>
Group Member
Tue 08 Apr 2008 10:11:40 AM UTC, comment #6: 

Parsing of STUDENT.xml is better now. Parsed records are still
not shown in the pull-down menu though (but traced correctly).

Need help from the movie author if possible for next step,
as we'd have to add more traces and spot the difference
(if AS-related at all). Can still be done with flasm
but I guess the author would know better where to put them..

Sandro Santilli <strk>
Group Member
Tue 08 Apr 2008 07:36:23 AM UTC, comment #5: 

Simple AS code for testing:

---8<------------------------------------
x = new XML();
x.onLoad = function() { trace(x.toString()); };
x.load("file.xml");
---8<------------------------------------

makeswf -o dumpxml.swf dumpxml.as

create your file.xml and point the player on the swf.
STUDENT.xml is a good start as a 'file.xml'

Sandro Santilli <strk>
Group Member
Mon 07 Apr 2008 09:11:48 PM UTC, comment #4: 

I found another problem being parsing XML documents with
no defined root node.
The STUDENT.xml file has an implicit root, with
two <student> childs.
Gnash only sees the first one.

Sandro Santilli <strk>
Group Member
Sat 05 Apr 2008 10:22:05 AM UTC, comment #3: 

Object.watch should be good enough now.
Movie still doesn't work.
I guess next step could be adding traces in the SWF to find
where we fail. That's usually the easiest way to find out.

Sandro Santilli <strk>
Group Member
Fri 04 Apr 2008 07:27:19 PM UTC, comment #2: 

addProperty is fixed now.
Next problem is Object.watch being unimplemented.
Would be fun to work on it

Sandro Santilli <strk>
Group Member
Thu 03 Apr 2008 09:54:04 AM UTC, comment #1: 

One problem is addProperty("name", getter, null)
which gnash fails on. I'm adding automated testcase
for it, and will commit a fix shortly.

Sandro Santilli <strk>
Group Member
Thu 03 Apr 2008 08:09:31 AM UTC, original submission:  

I have tested the attached file (STUDENT.swf) which was created on Flash MX using UI Components. On Macromedia Flash 7 player, a pulldown menu with two items (peter, victor extracted from STUDENT.xml) is shown. On gnash 0.8.2, only an empty box is shown.


Hong Yu <hongyu>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #15434:  fldebug.txt added by rtseng7 (453B - text/plain)
file #15435:  gnash-dbg.zip added by rtseng7 (59KiB - application/zip)
file #15436:  STUDENT.zip added by rtseng7 (130KiB - application/zip)
file #15428:  STUDENT.xml added by hongyu (127B - text/xml - modified STUDENT.xml)
file #15390:  STUDENT.swf added by hongyu (65KiB - application/x-shockwave-flash - please test the attached STUDENT.swf with STUDENT.xml available in the same directory as *.swf)
file #15391:  STUDENT.xml added by hongyu (122B - text/xml - please test the attached STUDENT.swf with STUDENT.xml available in the same directory as *.swf)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pere (Posted a comment)
  • -email is unavailable- added by bwy (Posted a comment)
  • -email is unavailable- added by rtseng7 (Updated the item)
  • -email is unavailable- added by strk
  • -email is unavailable- added by strk (Posted a comment)
  • -email is unavailable- added by hongyu (Submitted the item)
  • -email is unavailable- added by hongyu
  • -email is unavailable- added by hongyu
  • -email is unavailable- added by hongyu
  •  

    There are 0 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 12 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-04-10 rtseng7 Attached File- Added fldebug.txt, #15434
        Attached File- Added gnash-dbg.zip, #15435
        Attached File- Added STUDENT.zip, #15436
    2008-04-09 hongyu Attached File- Added STUDENT.xml, #15428
    2008-04-05 strk Assigned tostrk None
        Carbon-Copy- Added bwy
    2008-04-04 strk Assigned toNone strk
    2008-04-03 hongyu Attached File- Added STUDENT.swf, #15390
        Attached File- Added STUDENT.xml, #15391
        Carbon-Copy- Added -email is unavailable-
        Carbon-Copy- Added -email is unavailable-
        Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code