bugGnash - The GNU Flash player - Bugs: bug #24266, Question about "ListBox...

 
 

bug #24266: Question about "ListBox component" on Gnash

Submitted by:  None
Submitted on:  Mon 15 Sep 2008 06:48:27 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Release: trunkStatus: Invalid
Privacy: PublicAssigned to: Sandro Santilli <strk>
Open/Closed: Closed

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 22 Nov 2008 07:50:58 AM UTC, comment #23:

lack of followup..

Sandro Santilli <strk>
Project MemberIn charge of this item.
Thu 18 Sep 2008 06:19:15 AM UTC, comment #22:

ScrollBar might be not too hard, produce the simplest
testcase you can think of for using TextField (scroll members?).
Then look at libcore/edit_text_character.cpp (::format_text).
Someone else might also look at it if you provide focused
testcases.

For Selection take the same path... testcase to show how
it is supposed to behave. Will likely be harder for Selection
as it'd probably take more interaction with the Gui, which
in gnash is an abstract component (so takes defining a general
interface).

Sandro Santilli <strk>
Project MemberIn charge of this item.
Thu 18 Sep 2008 05:55:20 AM UTC, comment #21:

Excuse me,if I wana to active the ScrollBar/Selection
in Gnash.. Is there any chance so far!?
Could you direct me what efforts might have to do..

Anonymous
Thu 18 Sep 2008 02:33:29 AM UTC, comment #20:

Mmmm... I got that..
So.. looks like if I wana implement something like
Directory Browse..The only way is to re-design SWF
without using ListBox component..
Anyway.. Thx for helping me figure out all these..

Anonymous
Wed 17 Sep 2008 01:44:22 PM UTC, comment #19:

How is the scroll bar supposed to work? It's inactive in both Gnash and the proprietary player.

The items are supposed to be shaded green when you hover over them. How is this achieved? Gnash loads the Color class (seems relevant) but doesn't shade.

The Selection class is entirely unimplemented, so there is some work to do before the items can be selected.

Current revision is 9764.

Benjamin Wolsey <bwy>
Project Member
Wed 17 Sep 2008 05:46:32 AM UTC, comment #18:

Hi there~
After re-building the gnash(trunk) for whole day..
Now I have PC(x86) and MIPS two version..
And testing resault as below:

PC(x86):
=======
-Renderer: agg, GUI: gtk, Media: gst.
-improve: the text/icon content shows correctly.
-not work: [i]. the UIScrollBar doesn't work..
[ii]. the ListBox item can't be chosen..

MIPS:
====
-Renderer: agg, GUI: sdl, Media: gst.
-not work: [i]. the UIScrollBar doesn't work..
[ii]. the ListBox item can't be chosen..
[iii]. the text/icon content doesn't shows..

But I notice that my bzr branch trunk revision is 9665!?
Is that right? isn't 9750 or later?

Anonymous
Tue 16 Sep 2008 05:42:00 AM UTC, comment #17:

0.8.3 was bogus. I fixed your case in the development
version. You must fetch it from bazaar and build it:

bzr branch http://bzr.savannah.gnu.org/r/gnash/trunk

Sandro Santilli <strk>
Project MemberIn charge of this item.
Tue 16 Sep 2008 05:35:57 AM UTC, comment #16:

My gnash is download from..
ftp://ftp.gnu.org/pub/gnu/gnash/0.8.3/gnash-0.8.3.tar.gz

Anonymous
Tue 16 Sep 2008 05:21:43 AM UTC, comment #15:

Are you using trunk revision 9750 or later ?
Why are you messing with those parameters ?

Sandro Santilli <strk>
Project MemberIn charge of this item.
Tue 16 Sep 2008 03:30:25 AM UTC, comment #14:

Hi today..
I give a try to set some combination of .autoSize/_height/_width/_yscale/_xscale.. the ListBox display nothing still..
And I re-read the error msg as below..
I think.. Is Gnash unable to get touch of the child-member of
component of ListBox so far.. So it can't set the height/width value of them..

gprocessor says:
===============
1536:1024] 18:15:19 UNIMPLEMENTED: FIXME: can't set _height on character _level0.myList.content_mc (gnash::sprite_instance) with null or world bounds
1536:1024] 18:15:19 UNIMPLEMENTED: FIXME: can't set _height on character _level0.myList.content_mc (gnash::sprite_instance) with height
1536:1024] 18:15:19 UNIMPLEMENTED: FIXME: can't set _width on character _level0.myList.content_mc (gnash::sprite_instance) with null or world bounds

Anonymous
Mon 15 Sep 2008 05:22:33 PM UTC, comment #13:

I committed a fix. Seems to break some use of textWidth with SWF 6 and 7 but also fix the same use with SWF 8.
Also, there's no automated test ensuring the fix will survive.
Anyway, ready for test.

Sandro Santilli <strk>
Project MemberIn charge of this item.
Mon 15 Sep 2008 09:52:56 AM UTC, comment #12:

Thx for reply ang help..
I will try it later..
(building a new environment of Linux now right..)
Anyway thx for your favor.. : )

Anonymous
Mon 15 Sep 2008 09:29:33 AM UTC, comment #11:

The attached test reproduces the bug.
Basically when autoSize is false we shouldn't
be taking the default boundary from definition but
from instance.
Failing to do so would discard any manual setting
of _width and _height.
If you take a look at the test you can see I also
tried setting _xscale and _yscale.
Those ones seems to be NOT influencing the bounding
box used for computing display area

(file #16500)

Sandro Santilli <strk>
Project MemberIn charge of this item.
Mon 15 Sep 2008 09:19:55 AM UTC, comment #10:

I confirm at time of text formatting the text in TextField
is correct, just doesn't get displayed.
This may be due to text overflowing TextField boundaries.
autoSize results being set to false.
the test uses device fonts.

Sandro Santilli <strk>
Project MemberIn charge of this item.
Mon 15 Sep 2008 08:33:48 AM UTC, comment #9:

myList is indeed the "ListBox"..
It's a component build-in in the "Macromedia Flash 8"..
You can just pull it into the swf from the User-Interface component library under the Graphical user interface..
And I name the "ListBox" as myList..

Attached file:
=============
Pic04 //a snapshot about it..

(file #16499)

Anonymous
Mon 15 Sep 2008 08:16:58 AM UTC, comment #8:

Is myList.addItem(...) the call constructing the ListBox contents ?
Or, if not, where is it ? and what is myList ?

Sandro Santilli <strk>
Project MemberIn charge of this item.
Mon 15 Sep 2008 08:12:23 AM UTC, comment #7:

Here it is!!

attached files:
==============
000.as

(file #16498)

Anonymous
Mon 15 Sep 2008 08:01:23 AM UTC, comment #6:

I dunno how to read .fla files, is the actionscript produced by yourself small ? if so can you attach it ?

Sandro Santilli <strk>
Project MemberIn charge of this item.
Mon 15 Sep 2008 07:50:48 AM UTC, comment #5:

Ah, yes. Sorry.
I didn't realize sample.xml was the data to be loaded.
I renamed it ... Naming it back to sample.xml fixes it.

As for gnash, it does load the xml and does show something.
Only it shows first letters only (a,a,d,d,a).

Here are the traces:

TRACE: Succeed Load XML...
TRACE: DataSet-->Data
TRACE: Add Item...aaa.avi[-]
TRACE: DataSet-->Data
TRACE: Add Item...aaa[-]
TRACE: DataSet-->Data
TRACE: Add Item...dir1[d]
TRACE: DataSet-->Data
TRACE: Add Item...dir2[d]
TRACE: DataSet-->Data
TRACE: Add Item...aaa.jpg[-]
TRACE: DataSet-->Data

These traces also match the one issued by the proprietary player
so looks like a display problem.

Sandro Santilli <strk>
Project MemberIn charge of this item.
Mon 15 Sep 2008 07:50:43 AM UTC, comment #4:

maybe this helps..

attached files:
==============
000.fla

(file #16497)

Anonymous
Mon 15 Sep 2008 07:39:56 AM UTC, comment #3:

Thx for reply at first...

I think It works really.. at least on Win..
But on Linux, I only have Gnash-0.8.2 on PC(x86)..
Because My GCC is too old to build Gnash-0.8.3 on PC(x86)..
However 0.8.2 I think this function is indeed not support yet..
I will build a new environment of Linux.. And give 0.8.3 a try..
(BTW.. I have a cross-compile Gnash-0.8.3 version
on MIPS but none on X86 )
Attached Pictures as Below:
Pic01.jpg //on Windows
Pic02.png //on Linux firefox(plugin flash-player)
Pic03.png //on Linux gnash-0.8.2

(file #16494, file #16495, file #16496)

Anonymous
Mon 15 Sep 2008 07:02:06 AM UTC, comment #2:

The 000.swf file doesn't show anything in the listbox
window even with the proprietary player here (version 9 on linux).
Does it really work there ?

Sandro Santilli <strk>
Project MemberIn charge of this item.
Mon 15 Sep 2008 06:53:30 AM UTC, comment #1:

Forgot to mention that..
When it execute, I can only see the ScrollBar
without any content in ListBox..

Anonymous
Mon 15 Sep 2008 06:48:27 AM UTC, original submission:

Hi all:
Excuse me, I wana use the ListBox component to implement the function like Directory browse... It works fine when I test it under windows(another flash player). However, the ListBox seems still not work under Gnash..

gprocessor says:
===============
1395:1024] 18:08:13 DEBUG: Movie file://000.swf (SWF7) added to library
1395:1024] 18:08:13 DEBUG: Will sleep 0 microseconds between iterations - fps is 0s, clockAdvance is 83

1397:1026] 18:08:13 DEBUG: Setting jpeg loader to 0xbf89c8
1395:1024] 18:08:13 DEBUG: Loading native class MovieClip
1395:1024] 18:08:14 DEBUG: Loading native class TextField
1395:1024] 18:08:14 DEBUG: Loading native class TextFormat
1395:1024] 18:08:14 DEBUG: Loading native class Stage
1395:1024] 18:08:15 UNIMPLEMENTED: MovieClip._focusrect setting
1395:1024] 18:08:15 UNIMPLEMENTED: FIXME: can't set _height on character _level0.focusManager (gnash::sprite_instance) with null or world bounds
1395:1024] 18:08:15 UNIMPLEMENTED: FIXME: can't set _height on character _level0.focusManager (gnash::sprite_instance) with height 
1395:1024] 18:08:15 UNIMPLEMENTED: FIXME: can't set _width on character _level0.focusManager (gnash::sprite_instance) with null or world bounds
1395:1024] 18:08:15 DEBUG: Loading native class Mouse
1395:1024] 18:08:15 DEBUG: Loading native class Key
1395:1024] 18:08:15 DEBUG: Loading native class Selection
1395:1024] 18:08:15 UNIMPLEMENTED: selection_addlistener
1395:1024] 18:08:15 DEBUG: At StagePlacementCallback, button _level0.focusManager.tabCapture got 1 active chars for state UP
1395:1024] 18:08:15 DEBUG: Loading native class Math
1395:1024] 18:08:15 DEBUG: _level0.myList.content_mc.setMask(_level0.myList.mask_mc): registering with new mask _level0.myList.mask_mc
1395:1024] 18:08:16 DEBUG: Loading native class XML
1395:1024] 18:08:16 DEBUG: bool gnash::XML::load(const gnash::URL&) enter
1395:1024] 18:08:16 DEBUG: Global instance list grew to 9 entries
1395:1024] 18:08:16 DEBUG: iteration, timer: 0, localDelay: 0

1395:1024] 18:08:16 DEBUG: gnash::as_value gnash::xml_ondata(const gnash::fn_call&) enter
1395:1024] 18:08:16 DEBUG: bool gnash::XML::parseDoc(xmlNode*, bool) enter
1395:1024] 18:08:17 DEBUG: _level0.myList.content_mc.setMask(_level0.myList.mask_mc): registering with new mask _level0.myList.mask_mc
1395:1024] 18:08:17 DEBUG: _level0.myList.mask_mc.setMaskee(_level0.myList.content_mc) : previously masked char _level0.myList.content_mc being set as non-masked
1395:1024] 18:08:17 DEBUG: Property enabled is being watched, calling trigger on create
1395:1024] 18:08:17 DEBUG: Property enabled is being watched, calling trigger on create
1395:1024] 18:08:18 DEBUG: Global instance list grew to 17 entries
1395:1024] 18:08:18 DEBUG: exiting after 1 times last frame was reached

my gnash config:
===============
Gnash: 0.8.3
Renderer: agg-2.5
GUI: SDL-1.2.13
Media handler: gst-0.10.10

attached files:
==============
sample.xml //My XML sample
000.swf //My SWF sample

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #16500:  test.as added by strk (345B - application/x-applix-spreadsheet)
file #16499:  Pic04.JPG added by None (35KiB - image/jpeg)
file #16498:  000.as added by None (1017B - application/octet-stream)
file #16497:  000.fla added by None (298KiB - application/octet-stream)
file #16494:  Pic01.JPG added by None (16KiB - image/jpeg)
file #16495:  Pic02.png added by None (6KiB - image/png)
file #16496:  Pic03.png added by None (24KiB - image/png)
file #16492:  000.swf added by None (50KiB - application/x-shockwave-flash)
file #16493:  sample.xml added by None (318B - text/xml)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bwy (Posted a comment)
  • -unavailable- added by strk (Posted a comment)
  •  

    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 17 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 22 Nov 2008 07:50:58 AM UTCstrkStatusReady For Test=>Invalid
      Open/ClosedOpen=>Closed
    Mon 15 Sep 2008 05:22:33 PM UTCstrkStatusIn Progress=>Ready For Test
    Mon 15 Sep 2008 09:29:33 AM UTCstrkAttached File-=>Added test.as, #16500
    Mon 15 Sep 2008 09:21:29 AM UTCstrkRelease0.8.3 release=>trunk
    Mon 15 Sep 2008 09:19:55 AM UTCstrkStatusConfirmed=>In Progress
      Assigned toNone=>strk
    Mon 15 Sep 2008 08:33:48 AM UTCNoneAttached File-=>Added Pic04.JPG, #16499
    Mon 15 Sep 2008 08:12:23 AM UTCNoneAttached File-=>Added 000.as, #16498
    Mon 15 Sep 2008 07:50:48 AM UTCstrkStatusNeed Info=>Confirmed
    Mon 15 Sep 2008 07:50:43 AM UTCNoneAttached File-=>Added 000.fla, #16497
    Mon 15 Sep 2008 07:39:56 AM UTCNoneAttached File-=>Added Pic01.JPG, #16494
      Attached File-=>Added Pic02.png, #16495
      Attached File-=>Added Pic03.png, #16496
    Mon 15 Sep 2008 07:02:06 AM UTCstrkStatusNone=>Need Info
    Mon 15 Sep 2008 06:48:27 AM UTCNoneAttached File-=>Added 000.swf, #16492
      Attached File-=>Added sample.xml, #16493

    Back to the top


    Powered by Savane 3.1-cleanup1