A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Odd mouseover in mediaplayer playlist

  1. #1
    Thick as a Brick bobgodwin's Avatar
    Join Date
    Sep 2003
    Location
    Metro Detroit
    Posts
    217

    Odd mouseover in mediaplayer playlist

    I'm getting some odd behavior mousing over the play list in a media player I built.
    Go here and you'll see that the hand cursor disappears at the left side of the bottom two visible items in the play list (If you drag it up or down, still the bottom two visible items):

    Player Test

    Not really a big deal, but I've never had it happen before.

    Here's the code for the play list part of the setup as:
    Code:
    var pl_item:BitmapData = new BitmapData(20,60,true,0);
    pl_item.fillRect(new Rectangle(0,1,20,18),0x558d9da1);
    pl_item.fillRect(new Rectangle(0,21,20,18),0x958d9da1);
    pl_item.fillRect(new Rectangle(0,41,20,18),0x108d9da1);
    
    AssetManager.registerBitmapDataAsset(pl_item, 'pl_item');
    
    var pl_drag:BitmapData = new BitmapData(9,24,true,0);
    pl_drag.fillRect(new Rectangle(0,0,9,24),0xff9f9d90);
    AssetManager.registerBitmapDataAsset(pl_drag,'drag');
    
    AssetManager.registerBitmapDataAsset(new BitmapData(_width,_height,false,0x000000),'pl_bg');
    
    playlist.background.setSkin('pl_bg');
    playlist.vScrollBar.bar.setSkin('drag');
    playlist.listItem.setSkin('pl_item');
    playlist.listItem.label.defaultTextFormat = new TextFormat('_sans',11,0x9f9d90,true);
    playlist.listItem.labelMarginV = 0;
    playlist.setSize(_width-18,_height-40);
    playlist.move(10,10);
    playlist.alpha = .7;
    playlist.visible = true;
    Bob Godwin

  2. #2
    Senior Member
    Join Date
    Dec 2002
    Location
    Netherlands
    Posts
    1,632
    The only thing I can think of is that a transparent object is in front of that part so it doesn't receive mouse actions there.

  3. #3
    Senior Member etuom's Avatar
    Join Date
    Sep 2006
    Location
    Minnesota
    Posts
    193
    Quote Originally Posted by w.brants View Post
    The only thing I can think of is that a transparent object is in front of that part so it doesn't receive mouse actions there.
    I played a song and the audio "Spectrum Analyzer" sits in that corner.

  4. #4
    Thick as a Brick bobgodwin's Avatar
    Join Date
    Sep 2003
    Location
    Metro Detroit
    Posts
    217
    Quote Originally Posted by etuom View Post
    I played a song and the audio "Spectrum Analyzer" sits in that corner.
    And hence the oddness. That was the problem. Got rid of it and it's fine. Gonna have to build versions with the analyzer somewhere where it's not in the way. Maybe with the info scroll somewhere.
    Bob Godwin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center