A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Mouseover graphic location

  1. #1
    Junior Member
    Join Date
    Aug 2008
    Posts
    3

    Mouseover graphic location

    I have a button which when you mouseover opens a picture. the button can move around the screen - but i always want the picture that is opened/shown to open in the same place. Right now the graphic opens in respect to the button so that when the button moves, the graphic does too.

    here is the code i am using

    on (rollOver) {
    this.gotoAndPlay("MouseOver");
    }

    on (rollOut){
    this.gotoAndPlay("MouseOut");

    }

    Thanks

  2. #2
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,756
    dont use a button... or instead have your 'image' in a movieClip that is in the position you desire..and show/hide it from your button code..

  3. #3
    Junior Member
    Join Date
    Aug 2008
    Posts
    3
    Thanks. So assuming on "Scene 1" i have my "PinkWeaveMC" and then my button to show/hide is inside another layer - would this work (its not now)?

    on(Click)
    {
    if(_root.pinkWeaveMC._visible)
    {
    _root.pinkWeaveMC._visible = false;
    }
    else
    {
    _root.pinkWeaveMC._visible = true;
    }
    }

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