A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: please help: smoke is pouring from my ears.

  1. #1
    Senior Member
    Join Date
    Apr 2000
    Posts
    196
    hello

    this is my example:
    http://www.confusement.com/dilemma.html

    the problem and question are stated there,
    but ill put em here too.

    my problem:
    i have a invisible button that triggers the object to close,
    but if the cursor gets past the trigger button without it
    registering the object is stuck.

    if move your cursor out past the trigger quickly to stick
    the object open. is there another way to trigger the
    close down of my object?

    is there a way to use the cursor to send _x and _y
    positions, check for a constrained area then if the
    cursor is out of this area: close the object?

    thanks very much.
    dave
    [Edited by mrjellyd on 05-11-2001 at 02:31 PM]

  2. #2
    Senior Member
    Join Date
    Mar 2001
    Posts
    169
    you could defintly have a onClipEvent that checks the _ymouse and _xmouse, and if they were out side the area it would close.

    Try this first. Put a button underneeth and set rollout properties to close it. That might be a much easier and more accurate way to do it.

  3. #3
    Senior Member
    Join Date
    Apr 2000
    Posts
    196

    re: button underneath

    i could try that underneath rollOut button, i cant
    remember if i tried it, i think the same thing would
    happen though ... i would like to try that clipEvent
    could you explain it some? it seems like if the
    user whipd the cursor out of the object area the
    mouse would eventually send its position and
    if it was out of a set postion ... i could have the
    object close. thanks for your suggestions.
    dave

  4. #4
    Senior Member
    Join Date
    Apr 2000
    Posts
    196

    now i remember why:

    i went and tried that underneath button:
    if you rollOver a button that is placed ontop of the
    underneath button, the button underneath considers
    that a rollOut. the little circles that come out of the big
    circle have buttons in them. thats how the smoke
    started for me. thanks for your suggestion though.
    dave

  5. #5
    Senior Member
    Join Date
    Feb 2001
    Posts
    120
    This is from "Still Under The Table"

    Make 1 invisible button the full size of your canvas, and copy the same buttom to all 3 movie clips. And give them separate actions to do what you want them to do. That way if the user rolls out to fast there will be a much bigger area of button for their mouse to touch rather than having a chance of just skipping over it.

  6. #6
    Senior Member
    Join Date
    Apr 2000
    Posts
    196

    thats so crazy:

    brandy

    so crazy it just might work! its not pretty and kinda
    scary because this swf is being loaded into my
    main movie and will control other swfs to load.
    maybe with the giant button only in the mc it will
    be alright ... its worth finding out.

    thanks for pointing it out! i had dismissed it several
    times, looking at the site im building it seemed like
    the buttons would cover up something else or there
    would be a finger everywhere you went, but if the
    rollOver works you would only see the finger for a
    second. because i made the example to explain
    my problem it has become the best solution.
    i guess looking at things in a stripd down form helps.
    http://www.confusement.com/dilemma.html

    i would still like to learn how to capture the mouse
    position and check it with some sort of if statement.
    if anyone has any suggestions on that method i
    would really appreciate it. thanks

    dave

  7. #7
    Member
    Join Date
    Mar 2001
    Posts
    31
    i'm not sure if this is going to solve your problem (i'm not 100% on what you're asking?) .. but can't you use hitTest?

  8. #8
    Senior Member
    Join Date
    Apr 2000
    Posts
    196

    that might be it.

    56k:

    im not sure what a hitTest does.
    maybe i need a kinda reverse hitTest.

    whats happening is:
    mouse rollOver on main circle causes frame to advance then little circles come out.
    then mouse can rollOver little circles, they have/are buttons, then mouse rollOut "beyond boundaries" of little circles causes little circles (a frame advance)to recede back to their orginal tiny hidden state.

    this "beyond the boundaries" is what im trying to trigger. the giant button with a rollOver works, but i thought it would be better to check the mouse position with a script that would see that "hey the mouse is outside these boundaries" and that would cause the little circles to recede (my frame advance). therefore if a user moved quickly out past the trigger area eventually they would slow their mouse movement and the mousePos would be detected causing "beyond the boundaries" to happen.
    the giant button works because it has a hole cut in it that allows the mouse to travel around the little circles. once the mouse hits the giant square, no matter how fast you move the mouse, youre always on the rollOver of the giant button. any suggestions?

    dave


    [Edited by mrjellyd on 05-11-2001 at 07:35 PM]

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