A Flash Developer Resource Site

Results 1 to 11 of 11

Thread: Is it possible?

  1. #1
    Senior Member
    Join Date
    Jul 2001
    Location
    Tinley Park, IL
    Posts
    702

    Is it possible?

    Is it possible to move a symbol in the same frame?

    I have a mask over some buttons in a frame and I want to hide the mask on hover so that the buttons are visible.

    EG: You hover over JOB OPPORTUNITIES and a submenu of buttons is revealed.

    BUT when you hover over one of the other buttons on the page it will put it back in place to hide the buttons again.

    I did have it so that on hover it would just jump to a new frame but then the page the person is viewing changes back to the main page with hidden buttons.
    My Sites: Gaming Site Nightshade Studios MyKM Tutorials

    --------------------------------------------------
    What I'm using: Gimp, Koolmoves, Sepy, HTML-Kit, Inkscape

  2. #2
    Can't Re- Member gusmus's Avatar
    Join Date
    Sep 2002
    Location
    España
    Posts
    663
    Joder,, wouldn't you rather just let us make the page for you and be done with it?? You can be art director lol.
    humanus somes est divinitus in ipsum
    Wiliiam Wallace

  3. #3
    I C SERVERS Makulaf's Avatar
    Join Date
    Dec 2003
    Location
    Fredericksburg, VA
    Posts
    506
    look at this i think this is what you want.

    http://www.koolface.com/components/topmenu/topmenu.html
    ~~Drew~~
    New Tutorial Site Coming
    Soon
    http://board.flashkit.com/board/show....php?p=4118485

  4. #4
    Senior Member
    Join Date
    Jul 2001
    Location
    Tinley Park, IL
    Posts
    702
    Nope. This uses the method I already tried, jumping to key frames.
    I'm going to try making it a separate movie clip.
    My Sites: Gaming Site Nightshade Studios MyKM Tutorials

    --------------------------------------------------
    What I'm using: Gimp, Koolmoves, Sepy, HTML-Kit, Inkscape

  5. #5
    Can't Re- Member gusmus's Avatar
    Join Date
    Sep 2002
    Location
    España
    Posts
    663
    Show us an example of what you want.. makes life easier.... you can move a symbol easily by putting this on the symbol.

    onClipEvent (enterFrame) {
    //x movement
    mx=_root._xmouse;
    if (mx<_x) {
    dx=_x-mx;
    }
    else {
    dx=mx-_x;
    }
    moveSpeedx=dx/15;
    if (mx<_x) {
    _x=_x-moveSpeedx;
    }
    else {
    _x=_x+moveSpeedx;
    }
    }

    This is a mouse follow script but can be modified to whatever you want for a menu. Just make the menu tree with the links and them use the AS symbol as a mask.
    humanus somes est divinitus in ipsum
    Wiliiam Wallace

  6. #6
    I C SERVERS Makulaf's Avatar
    Join Date
    Dec 2003
    Location
    Fredericksburg, VA
    Posts
    506
    look at this file is this what you need?
    ~~Drew~~
    New Tutorial Site Coming
    Soon
    http://board.flashkit.com/board/show....php?p=4118485

  7. #7
    Senior Member
    Join Date
    Jul 2001
    Location
    Tinley Park, IL
    Posts
    702
    I have attached a little test file.

    All I'm trying to do is hide and unhide a mask based on mouse over.

    I'm assuming that this is an event and I'm pretty sure the problem is in my scripting. I DON'T KNOW HOW TO ACTIONSCRIPT much at all yet. I'm trying to learn it now.

    Anyway, Here is what I did.

    For practice I created three objects.
    2 - test buttons
    1 - mask

    Test button should be visible at all times and the test2 should be hidden by the mask.

    When one mouses over the Test button it should hide the mask thus making the test2 button visible.

    Here is the code that I put in the Test button:

    onClipEvent(rollOver){
    MovieClip.S1_visible="false";
    }

    I'm pretty sure my problem lies with my syntax. But I'm just winging it here from code that I've found.
    Attached Files Attached Files
    My Sites: Gaming Site Nightshade Studios MyKM Tutorials

    --------------------------------------------------
    What I'm using: Gimp, Koolmoves, Sepy, HTML-Kit, Inkscape

  8. #8
    Senior Member
    Join Date
    Jul 2001
    Location
    Tinley Park, IL
    Posts
    702
    Quote Originally Posted by Makulaf
    look at this file is this what you need?
    Close...I already tried this method. But maybe I did something wrong...I made all of the buttons part of the movie file. Maybe I should just make the one button that needs this action part of the movie clip?

    You sparked and idea...thanks.

    Though I'd still like to know if I can hide and unhide a mask on mouseOver.
    My Sites: Gaming Site Nightshade Studios MyKM Tutorials

    --------------------------------------------------
    What I'm using: Gimp, Koolmoves, Sepy, HTML-Kit, Inkscape

  9. #9
    Senior Member
    Join Date
    Jul 2001
    Location
    Tinley Park, IL
    Posts
    702
    I now remember the issue I had with making the buttons a separate movie clip.
    I get the correct action and response but there doesn't seem to be an option for getting the buttons in the movie clip to jump to a frame in the main movie.

    Purhaps that's simply the whole issue I've been having?
    My Sites: Gaming Site Nightshade Studios MyKM Tutorials

    --------------------------------------------------
    What I'm using: Gimp, Koolmoves, Sepy, HTML-Kit, Inkscape

  10. #10
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    but the sub buttons on a clip then you can use the _visible property to hide/show it.

    To goto a keyframe in the root movie from the button should be no problem. use _parent.gotoAndPlay("keyframe")

    And always name your keyframes and use names, the numbers are not reliable.

  11. #11
    Senior Member
    Join Date
    Jul 2001
    Location
    Tinley Park, IL
    Posts
    702
    I can't believe no one caught that I put quotes around the boolean.

    buttonname._visible=false;

    is all I needed to do but my dumb ass kept putting quotes around the false/true.
    My Sites: Gaming Site Nightshade Studios MyKM Tutorials

    --------------------------------------------------
    What I'm using: Gimp, Koolmoves, Sepy, HTML-Kit, Inkscape

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