bugGnash - The GNU Flash player - Bugs: bug #21264, attachMovie() not accepting button...

 
 

bug #21264: attachMovie() not accepting button definitions

Submitted by:  Udo Giacomozzi <udog>
Submitted on:  Fri 05 Oct 2007 12:50:45 PM UTC  
 
Category: ActionScriptSeverity: 3 - Normal
Release: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Fri 05 Oct 2007 02:23:09 PM UTC, comment #1:

I fixed this in current CVS (with help from strk)

Udo Giacomozzi <udog>
Project Member
Fri 05 Oct 2007 12:50:45 PM UTC, original submission:

Having a (exported) button definiton "AnyBtn", it is not possible to create a instance of it with attachMovie():

var foo = this.attachMovie("AnyBtn", "btn1", 1);

Gnash reports:

ACTIONSCRIPT ERROR: attachMovie: exported resource 'AnyBtn' is not a movie definition (N5gnash27button_character_definitionE) -- returning undefined

while the proprietary player has no problem with it.

Attaching normal movieclips works fine in Gnash. I guess we need special handling of buttons in attachMovie(). I had a look at the source code (sprite_instance.cpp; sprite_attach_movie) but unfortunately I'm not familiar with this part of Gnash...

Sample movie attached.

Udo Giacomozzi <udog>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #14093:  dyn_btn_test.swf added by udog (208B - application/x-shockwave-flash)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by udog (Submitted the item)
  •  

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

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 05 Oct 2007 02:23:09 PM UTCudogStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Fri 05 Oct 2007 12:50:45 PM UTCudogAttached File-=>Added dyn_btn_test.swf, #14093

    Back to the top


    Powered by Savane 3.1-cleanup1