i want to animate the route of my trip on a map, how do you do it?

Ask a Question related to Macromedia Flash, Design and Development.

  1. #1

    Default i want to animate the route of my trip on a map, how do you do it?

    i want to animate the route of my trip on a map, how do you do it?

    hello i want to animate a line showing the route of my trip on a map of
    europe. would like to know the easiest and best way to do this. any
    thoughts.
    current map located at:

    [url]www.nigelineurope.com/story/story.html[/url]

    cheers

    nigel


    Nigel Guest

  2. Similar Questions and Discussions

    1. Trip to the moon
      <HTML> <HEAD> <META NAME="GENERATOR" Content="Microsoft DHTML Editing Control"> <TITLE></TITLE> </HEAD> <BODY> <P>Fill your ambition and goto...
    2. Trip to Disney
      GET YOUR TRIP TRIPS TO DESNEY TRIPS TO HAWAII http://travelexpert2004.us http://travelexpert2004.biz http://gotraveling85.us
    3. GET YOUR FREE TRIP
      TRIPS TO DESNEY TRIPS TO HAWAII ALL FREE http://travelexpert2004.us http://travelexpert2004.biz http://gotraveling85.us
    4. OT- My trip to the great Southern US
      Hey All- Will be in Jackson MS and parts thereof working on a web project and doing some drum stuff. Anyone want to hook up for a Latte' then...
    5. round trip editing
      Just installed/upgraded to DWMX 6.1 from 6.0. I can no longer use the round trip editing function from DWMX with FWMX if I have a source png file....
  3. #2

    Default Re: i want to animate the route of my trip on a map, how do you do it?

    "Nigel" <nigel@nigelineurope.com> wrote in
    news:XMqdnRQMDMtOt2Hd4p2dnA@adelphia.com:
    > i want to animate the route of my trip on a map, how do you do it?
    >
    > hello i want to animate a line showing the route of my trip on a map of
    > europe. would like to know the easiest and best way to do this. any
    > thoughts.
    > current map located at:
    >
    > [url]www.nigelineurope.com/story/story.html[/url]
    >
    > cheers
    >
    > nigel
    >
    >
    >
    The easiest way would be to draw the line and then to use a mask to show
    the line as part of your animation.

    --
    Karl Buckland
    [url]www.webforumz.com[/url]
    Free webdesign and development help,
    tips, and website critique.
    ASP, VB, .NET, SQL, CSS, HTML, Javascript, Flash, XML, SEO !

    Sirkent Guest

  4. #3

    Default Re: i want to animate the route of my trip on a map, how do you do it?

    "Sirkent" wrote:
    > "Nigel" wrote:
    > > hello i want to animate a line showing the route of my trip
    > > on a map of europe. would like to know the easiest and best
    > > way to do this. any thoughts. current map located at:
    > >
    > > [url]www.nigelineurope.com/story/story.html[/url]
    > >
    > > cheers, nigel
    >
    > The easiest way would be to draw the line and then to use a mask to show
    > the line as part of your animation.
    I discovered a second possibility. Remark: "clpDraw" is an empty clip in the
    upper left corner of the stage. Be sure to place it on a layer above the
    map. Otherwise, the path drawn won't be visible. An example:

    [url]http://birdy1976.com/2004/define-path-with-mouse-and-draw-line.html[/url]

    The code:

    // STEP 1
    // run this script and press the
    // mouse button to record your path
    var i = 0;
    var flagRecord = false;
    var flagPlay = false;
    var arrXPos = new Array();
    var arrYPos = new Array();
    //
    // STEP 2
    // copy and paste the mouse positions
    // from the output window below here.
    // an example how it might look like:
    // arrXPos[0] = 534;
    // arrYPos[0] = 46;
    // arrXPos[1] = 540;
    // arrYPos[1] = 50;
    // ...
    // delete all the values of the arrays
    // if you want to record a new path!
    //
    // STEP 3
    // there is no step three...
    //
    // - - - - -
    // do not touch the code below here
    // unless you know what you are doing
    // - - - - -
    // when mouse button is pressed record
    _root.onMouseDown = function() {
    flagRecord = true;
    };
    _root.onMouseUp = function() {
    flagRecord = false;
    };
    // check if a path has been defined
    if (arrXPos.length>0) {
    flagPlay = true;
    }
    // record or playback one frame at a time
    _root.onEnterFrame = function() {
    // print out the path of the mouse
    if (flagPlay && i+1<arrXPos.length) {
    with (_root.clpDraw) {
    lineStyle(2, 0x000000, 100);
    moveTo(arrXPos[i], arrYPos[i]);
    lineTo(arrXPos[i+1], arrYPos[i+1]);
    }
    i++;
    } else {
    // record the current position of the mouse
    if (flagRecord) {
    trace("arrXPos["+i+"] = "+Math.round(_xmouse)+";");
    trace("arrYPos["+i+"] = "+Math.round(_ymouse)+";");
    i++;
    }
    }
    };

    Best wishes, Martin ;) * [url]http://birdy1976.com/[/url] * ICQ# 237743398


    Vögeli Martin, vom Guest

  5. #4

    Default Re: i want to animate the route of my trip on a map, how do you do it?

    oh thats a cool solution. especially if you have a wacom pen or something
    similar.
    i already made the route just using the erase, create keyframe, reverse
    keyframes method.
    have a look.

    cheers
    nigel

    "Vögeli Martin, vom" <martinvoegeli@gmx.ch> wrote in message
    news:2m3vfaFiel9kU1@uni-berlin.de...
    > "Sirkent" wrote:
    > > "Nigel" wrote:
    > > > hello i want to animate a line showing the route of my trip
    > > > on a map of europe. would like to know the easiest and best
    > > > way to do this. any thoughts. current map located at:
    > > >
    > > > [url]www.nigelineurope.com/story/story.html[/url]
    > > >
    > > > cheers, nigel
    > >
    > > The easiest way would be to draw the line and then to use a mask to show
    > > the line as part of your animation.
    >
    > I discovered a second possibility. Remark: "clpDraw" is an empty clip in
    the
    > upper left corner of the stage. Be sure to place it on a layer above the
    > map. Otherwise, the path drawn won't be visible. An example:
    >
    > [url]http://birdy1976.com/2004/define-path-with-mouse-and-draw-line.html[/url]
    >
    > The code:
    >
    > // STEP 1
    > // run this script and press the
    > // mouse button to record your path
    > var i = 0;
    > var flagRecord = false;
    > var flagPlay = false;
    > var arrXPos = new Array();
    > var arrYPos = new Array();
    > //
    > // STEP 2
    > // copy and paste the mouse positions
    > // from the output window below here.
    > // an example how it might look like:
    > // arrXPos[0] = 534;
    > // arrYPos[0] = 46;
    > // arrXPos[1] = 540;
    > // arrYPos[1] = 50;
    > // ...
    > // delete all the values of the arrays
    > // if you want to record a new path!
    > //
    > // STEP 3
    > // there is no step three...
    > //
    > // - - - - -
    > // do not touch the code below here
    > // unless you know what you are doing
    > // - - - - -
    > // when mouse button is pressed record
    > _root.onMouseDown = function() {
    > flagRecord = true;
    > };
    > _root.onMouseUp = function() {
    > flagRecord = false;
    > };
    > // check if a path has been defined
    > if (arrXPos.length>0) {
    > flagPlay = true;
    > }
    > // record or playback one frame at a time
    > _root.onEnterFrame = function() {
    > // print out the path of the mouse
    > if (flagPlay && i+1<arrXPos.length) {
    > with (_root.clpDraw) {
    > lineStyle(2, 0x000000, 100);
    > moveTo(arrXPos[i], arrYPos[i]);
    > lineTo(arrXPos[i+1], arrYPos[i+1]);
    > }
    > i++;
    > } else {
    > // record the current position of the mouse
    > if (flagRecord) {
    > trace("arrXPos["+i+"] = "+Math.round(_xmouse)+";");
    > trace("arrYPos["+i+"] = "+Math.round(_ymouse)+";");
    > i++;
    > }
    > }
    > };
    >
    > Best wishes, Martin ;) * [url]http://birdy1976.com/[/url] * ICQ# 237743398
    >
    >

    Nigel Guest

  6. #5

    Default Re: i want to animate the route of my trip on a map, how do you do it?

    I'm glad you like it. Sorry for being too late. Anyway, it looks nice!

    Best wishes, Martin ;) * [url]http://birdy1976.com/[/url] * ICQ# 237743398

    "Nigel" wrote
    > oh thats a cool solution. especially if you have a wacom pen
    > or something similar. i already made the route just using the
    > erase, create keyframe, reverse keyframes method.
    > have a look. cheers, nigel
    >
    > "Vögeli Martin, vom" wrote:
    > > "Sirkent" wrote:
    > > > "Nigel" wrote:
    > > > > hello i want to animate a line showing the route of my trip
    > > > > on a map of europe. would like to know the easiest and best
    > > > > way to do this. any thoughts. current map located at:
    > > > >
    > > > > [url]www.nigelineurope.com/story/story.html[/url]
    > > > >
    > > > > cheers, nigel
    > > >
    > > > The easiest way would be to draw the line and then to use a
    > > > mask to show the line as part of your animation.
    > >
    > > I discovered a second possibility. Remark: "clpDraw" is an
    > > empty clip in the upper left corner of the stage. Be sure
    > > to place it on a layer above the map. Otherwise, the path
    > > drawn won't be visible. An example:
    > >
    > > [url]http://birdy1976.com/2004/define-path-with-mouse-and-draw-line.html[/url]
    > >
    > > The code:
    > >
    > > // STEP 1
    > > // run this script and press the
    > > // mouse button to record your path
    > > var i = 0;
    > > var flagRecord = false;
    > > var flagPlay = false;
    > > var arrXPos = new Array();
    > > var arrYPos = new Array();
    > > //
    > > // STEP 2
    > > // copy and paste the mouse positions
    > > // from the output window below here.
    > > // an example how it might look like:
    > > // arrXPos[0] = 534;
    > > // arrYPos[0] = 46;
    > > // arrXPos[1] = 540;
    > > // arrYPos[1] = 50;
    > > // ...
    > > // delete all the values of the arrays
    > > // if you want to record a new path!
    > > //
    > > // STEP 3
    > > // there is no step three...
    > > //
    > > // - - - - -
    > > // do not touch the code below here
    > > // unless you know what you are doing
    > > // - - - - -
    > > // when mouse button is pressed record
    > > _root.onMouseDown = function() {
    > > flagRecord = true;
    > > };
    > > _root.onMouseUp = function() {
    > > flagRecord = false;
    > > };
    > > // check if a path has been defined
    > > if (arrXPos.length>0) {
    > > flagPlay = true;
    > > }
    > > // record or playback one frame at a time
    > > _root.onEnterFrame = function() {
    > > // print out the path of the mouse
    > > if (flagPlay && i+1<arrXPos.length) {
    > > with (_root.clpDraw) {
    > > lineStyle(2, 0x000000, 100);
    > > moveTo(arrXPos[i], arrYPos[i]);
    > > lineTo(arrXPos[i+1], arrYPos[i+1]);
    > > }
    > > i++;
    > > } else {
    > > // record the current position of the mouse
    > > if (flagRecord) {
    > > trace("arrXPos["+i+"] = "+Math.round(_xmouse)+";");
    > > trace("arrYPos["+i+"] = "+Math.round(_ymouse)+";");
    > > i++;
    > > }
    > > }
    > > };
    > >
    > > Best wishes, Martin ;) * [url]http://birdy1976.com/[/url] * ICQ# 237743398

    Vögeli Martin, vom Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139