Using Adobe (Macromedia) Flash in MM - focus issue!

Post a reply

:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review

Expand view Topic review: Using Adobe (Macromedia) Flash in MM - focus issue!

by DaledeSilva » Sun Apr 06, 2008 1:29 am

This thread and testing file has been replaced by the content in this thread:


by Steegy » Sat Oct 28, 2006 9:55 pm

I'd suggest that someone tries if another program (with integrated browser and the flash loaded) has the same problem, and if it can be solved. I'll try this this week on C# .Net, but maybe other people can do the same on c++, delphi or another language.
The devs probably have all their hands busy with working on MM3.0, so anyone who can help "relieve" them from testing this is probably very welcome.

by DaledeSilva » Sat Oct 28, 2006 8:38 pm

Thanks Steegy... I guess it looks like it's due to the way Mediamonkey's made and is in a sense, a bug...

can't think of any other workarounds that might help fix it though...

DEVS: any chance of it being addressed in a future release?


by Steegy » Fri Oct 27, 2006 4:05 am

it's not detecting the mouse on the first click...
I can confirm this using MM 2.5.3RC4

by DaledeSilva » Fri Oct 27, 2006 3:52 am

ah.. I didn't realise there was a new version out.. I've install it now and tested and the problem's definitely still there.

here's how to see it:
  • - in your "View file menu".. make sure "now playing" is turned on.
    - click on a file in that list so that it is selected.
    - move you mouse over the "BUTTON TEST" without clicking at all (note how it performs it's rollover action flawlessly.
    - now click directly on the "BUTTON TEST" and HOLD DOWN.
    - while holding down, you will notice it says "not pressed or moused over" and "mouse OUTSIDE window"
it's not detecting the mouse on the first click...

now that the window's focussed, if you click and hold again it will detect properly and say "being pressed" and "mouse inside window"


ps.. DiddleDeeDoo... where in Oz are you?

by DiddeLeeDoo » Fri Oct 27, 2006 3:21 am

I've been clicking everywhere, and to me that tester seems to be solid as a rock. Cannot get it to fail, no matter where I click, from nodes, playlists, now playing...

Using MM v2.5.5.980.

Only failure I could find, where when MM being busy reading tracks. It could then take a second before the flash reacted. I'm left with a feeling that I have misunderstood something ;)

by DaledeSilva » Fri Oct 27, 2006 2:56 am

tthe onBrowserfocus idea you mention would probably be pretty useful... though it's not what I need.

I'm already faking something like that in the flash file I posted up a few posts up...

what I'm trying to do is get a mouse click to not only focus the browser window but be applied in the flash window with the one click (which happens usually but not when coming from the tracklist, playlist, or node tree.


by DiddeLeeDoo » Fri Oct 27, 2006 1:42 am

Not really sure if it's related, but I tried various ways to have .html pages displayed inside MM, but dropped the project due MM force you back to the 'start' page instead of where you left it.

Is that what you try to find a 'work-around' for maybe?

BTW, would be nice with a function like...

Code: Select all

if isNull(url) then
End if

by DaledeSilva » Thu Oct 26, 2006 8:42 pm

BTW... put it in your "scripts/auto" directory.

also.. I included the .fla file for editing the flash element but that's just if you're curious... you wont 'need' to because I've already got it working witht he javascript functions in the html file which you can edit.


by DaledeSilva » Thu Oct 26, 2006 8:40 pm

hello again...

I've create a script which creates both a dockable panel and a node html page and I've uploaded it here:
this thread and testing file have been replaced by this:
I've included some notes in the header regarding analysing what you're seeing...
but in short...

click on something in the playlist or the node tree.. then roll over the button in the flash window. it reacts appropriately... now click na dhold down.. it thinks the mouse isn't there anymore... then click and hold again... the second click is what it should do the first time.

Also... because there is now a dockable panel and a normal html window.. it's possible to have two on screen at once.. and so I found that while the focus doesn't jump from the playlist to the flash window on first click.. there is no problem jumping between the two different html windows on first click.



ps. in the .vbs file... this line might need to be change depending on where you have installed media monkey... (I didn't want to modify the ini file just for a test)
path = "C:\Program Files\MediaMonkey\Scripts\Auto\html-and-flash\"

by DaledeSilva » Thu Oct 26, 2006 7:06 pm

Thanks Jiri,

I did a test, simply modifying trixmoto's browsebyart script to load my page instead (in place of the tracklist) and it has the same problem.

that is, with these javascript functions trying to control focus on the player it still only works the first time... exact same behaviour as in a panel.

would it be helpful if I made up a script and demo flash file for you to test? (if you are so inclined)
I'll include both dockable panel and node version.


by jiri » Thu Oct 26, 2006 6:15 am

I don't why it doesn't work well, but have you tried it in the internal MM webbrowser (i.e. the control that appears instead of tracklist)? I wonder how it will work there...


by DaledeSilva » Thu Oct 26, 2006 6:04 am

thanks alot for coming to my aid, guys.
unfortunately it doesn't work...

I have now tried this (after trying steegy's suggestiong):
function windowIn(value)
function windowOut(value)

but it has the same problem as before

any other ideas :D ?

Jiri? ;)

thanks alot anyway..


by trixmoto » Thu Oct 26, 2006 4:35 am

This is probably because "prettypictures" still has the focus, as there are two layers of focus. Focusing between the webpage and the tracklist is different from focusing within the webpage. Maybe you need to have a similar event to blur when the mouse leaves the button (on the mouseout event)?

EDIT: Well, Steegy's managed to post whilst I was writing mine! He has the same idea, but is doing it in a better place - try his idea! :D

by Steegy » Thu Oct 26, 2006 4:33 am

Does this work?

Code: Select all

<script language='Javascript'>
function windowChange()
(I think this is the best way to use the code: XHTML -> the new standard)

If it doesn't work, then maybe Jiri will be able to help you.


Changed 2x a small /.