Jump to content


Photo

how to make MouseWheel work?


  • Please log in to reply
4 replies to this topic

#1 Good

Good

    FireworksCommander

  • Members
  • Pip
  • 4 posts

Posted 29 November 2011 - 02:25 PM

I'm making panel with pure AS3 withoiut MXML or CSXS library
and can't get mouse wheel to work

stage.addEventListener(MouseEvent.MOUSE_WHEEL, mouseWheelHandler);
this works outside Fireworks but inside don't :~\

trere are flash panels where you can skrooll text with mouse wheel,
for sure there has to be some trik to make it work!

Any advice would be appreciated.

#2 Good

Good

    FireworksCommander

  • Members
  • Pip
  • 4 posts

Posted 02 December 2011 - 05:55 AM

Hello, Good
Nice to meet you here again

People coming here but for some reason only read and don't comment
it is so strange, beacause it is the best place on the web to talk about extending fireworks

Anyway, I have exactly the same problem, and drop you a line as soon as I manage to find solution

#3 lungdisc

lungdisc

    FireworksCommander

  • Members
  • Pip
  • 7 posts

Posted 02 December 2011 - 08:37 AM

Hey,

We all know adobe products are bloatware, so I advise you to use what works. Use Flash as a fla project and use all the native components for developing the UI. There are fewer pitfalls this way.

#4 Good

Good

    FireworksCommander

  • Members
  • Pip
  • 4 posts

Posted 03 December 2011 - 03:40 AM

I advise you to use what works.
Use Flash as a fla project and use all the native components for developing the UI. There are fewer pitfalls this way.

I've encapsulated this problem so now I have no ui at all, only stage with few listeners and text field

for now I'm figured out following:

right now there are two API for fireworks panels
1) old one (pure as3 or flex)this panels will work in old versions too
2) new one CSXS (flex only) via air wrapper cs5+

I managed to get mouse wheel working with new API
bout I'm not sure if it is even possible to do that with old API

#5 Good

Good

    FireworksCommander

  • Members
  • Pip
  • 4 posts

Posted 05 December 2011 - 01:28 PM

I was happy when I figured out that mouse wheel works with SCXS2 panels
but than I found that it is impossible to catch fireworks events with latest CSSDK

ExternalInterface available there
and it is possible to run JS from CSXS2 panel using ExternalInterface.call,
but ExternalInterface.addCallback does nothing :/

I've decompiled CSXSLibrary-2.0-sdk-3.4-public.swc and spent many hours digging it's parts
now I have pretty clear understanding how it works,
but I haven't found any way to register listener for fireworks events :|

so I'm stack with:
New CSXS2 panels - no events
Old school panels - no mouse wheel

:/

Any thoughts on this would be appreciated