A Flash Developer Resource Site

Results 1 to 11 of 11

Thread: Pan Revisited

  1. #1
    Senior Member
    Join Date
    May 2002
    Posts
    142
    http://members.cox.net/windstorm_media/office.html
    http://members.cox.net/windstorm_media/Pan.movie

    This pan was created with the help of Blanius.

    Would anyone know of a command or mehod to stop the scrolling if the user wanted to momentarily?


  2. #2
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    Originally posted by pwihms
    http://members.cox.net/windstorm_media/office.html
    http://members.cox.net/windstorm_media/Pan.movie

    This pan was created with the help of Blanius.

    Would anyone know of a command or mehod to stop the scrolling if the user wanted to momentarily?

    Hey Wind! You could perhaps make the cursor from a button then when clicked toggle the scroll off and on

  3. #3
    Senior Member
    Join Date
    May 2002
    Posts
    142
    Hi Blanius,

    Could you give a step by step to making the scroll on and off with in the button. I tried all this evening and had no luck.

  4. #4
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    Originally posted by pwihms
    Hi Blanius,

    Could you give a step by step to making the scroll on and off with in the button. I tried all this evening and had no luck.
    Sure man, in the main movie make a new var call pantoggle and make it equal true

    then have your button toggle between true and false and also set velocity.x to 0 when off

    then in the script where the cursor(button) follows the mouse add

    if (pantoggle){
    the current code
    }


  5. #5
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244

    ?

    Did you get this to work?

  6. #6
    Senior Member
    Join Date
    May 2002
    Posts
    142
    I have been involved with work related items that put the pan on hold for a few days.

    I tried for several hours, but couldn't work it out on the right placement of the files and code. A lot of it is just trying to get a better handle on the placement of what goes where in 3DFA and learning javascript. I have a very basic beginners understanding of that, but I'm working on it.

    Because of my limited understanding of javascript I even have trouble following parts of what you explained to do.

    I'll see what I can do tonight. Thanks for your help.
    Last edited by pwihms; 10-01-2002 at 02:53 PM.
    PW Ihms

  7. #7
    Senior Member
    Join Date
    May 2002
    Posts
    142
    I tried various steps and buttons to apply the code with no success. I possible, could you be more specific where each would go and what I would need to create first,... I'm learning.

    Thanks for your help.
    PW Ihms

  8. #8
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    Could you just set the velocity to 0 at the center?

  9. #9
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    Originally posted by pwihms
    I tried various steps and buttons to apply the code with no success. I possible, could you be more specific where each would go and what I would need to create first,... I'm learning.

    Thanks for your help.
    Hey went back and looked at the code I did for you before and added to it so if you click anywhere in the screen it stops/starts scrolling. Added a third view to the arrow, just a square but you get the idea.

    http://deadyeti.com/files/Pan.movie

    Also see example here
    http://deadyeti.com/blanius/pan.html

    I had forgotten that we did this in actions rather than javascript.. this was originaly because there was a bug in the javascript with getting the mouse position. If I where doing it over I'd do it all javascript now, but this is a good example of using the same ideas in Actions.
    Last edited by blanius; 10-03-2002 at 11:38 PM.

  10. #10
    Senior Member
    Join Date
    May 2002
    Posts
    142
    Amazing! I have got to learn this. Thanks! I'll play with this tomorrow and get back with you. It is late.
    PW Ihms

  11. #11
    Senior Member
    Join Date
    May 2002
    Posts
    142
    I got it to work! Thanks again!

    http://members.cox.net/windstorm_media/office.html
    PW Ihms

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