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

 
 

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

Submitted by:  Hong Yu <hongyu>
Submitted on:  Thu 03 Apr 2008 08:09:31 AM UTC  
 
Category: ActionScriptSeverity: 3 - Normal
Release: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission 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>
Project 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>
Project 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>
Project 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>
Project 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>
Project 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>
Project 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>
Project 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>
Project 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>
Project 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>
Project 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>
Project 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>
Project 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>
Project 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 File(s):
   
   
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
  • -unavailable- added by pere (Posted a comment)
  • -unavailable- added by bwy (Posted a comment)
  • -unavailable- added by rtseng7 (Updated the item)
  • -unavailable- added by strk
  • -unavailable- added by strk (Posted a comment)
  • -unavailable- added by hongyu (Submitted the item)
  • -unavailable- added by hongyu
  • -unavailable- added by hongyu
  • -unavailable- added by hongyu
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 12 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 10 Apr 2008 05:31:36 AM UTCrtseng7Attached File-=>Added fldebug.txt, #15434
      Attached File-=>Added gnash-dbg.zip, #15435
      Attached File-=>Added STUDENT.zip, #15436
    Wed 09 Apr 2008 11:23:49 AM UTChongyuAttached File-=>Added STUDENT.xml, #15428
    Sat 05 Apr 2008 10:22:05 AM UTCstrkAssigned tostrk=>None
      Carbon-Copy-=>Added bwy
    Fri 04 Apr 2008 07:27:19 PM UTCstrkAssigned toNone=>strk
    Thu 03 Apr 2008 08:09:31 AM UTChongyuAttached File-=>Added STUDENT.swf, #15390
      Attached File-=>Added STUDENT.xml, #15391
      Carbon-Copy-=>Added -unavailable-
      Carbon-Copy-=>Added -unavailable-
      Carbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1