Author Topic: SWF Button in the Plugin  (Read 1987 times)

leo

  • Newbie
  • *
  • Posts: 16
SWF Button in the Plugin
« on: January 05, 2010, 03:19:08 pm »
Hello

I'm trying to use a button swf I've created to handle animation for a custom plugin.

The simple btn.swf has two listeners - one for mouse over and one for mouse out, with the mouse click listener defined properly in the plugin.as, and the corresponding asul + everything compiled properly.

The plugin works - the btn.swf loads and displays its initial state, but doesnt actually play when I mouse over it (the button swf works correctly when tested stand alone)... any advice would be much appreciated!

Thanks,
Leo

Florian Nücke

  • κρύα πόδια
  • Administrator
  • Hero Member
  • *****
  • Posts: 1985
  • MegaZine3 Developer
    • MegaZine3
Re: SWF Button in the Plugin
« Reply #1 on: January 11, 2010, 02:08:29 pm »
Try adding mouseenabled="true" to the asul component loading the swf, i.e.
Code: [Select]
<box mouseenabled="true" background="image(btn.swf)"/>
(which, I just notices, wasn't documented... whoops. It is now)
For the Snark was a Boojum, you see.

Before you ask a question
          After you get an answer
  • please document your problem with the answer in the Project Wiki. (e.g. in the FAQs)
  • help others out if you can, by answering their questions on the forum.

kelvin.cushman

  • Newbie
  • *
  • Posts: 12
Re: SWF Button in the Plugin
« Reply #2 on: March 18, 2010, 09:38:41 pm »
wonder if you could share this plugin with us?  ;)