Ask a Question related to Macromedia Flash, Design and Development.
-
Nigel #1
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
-
Trip to the moon
<HTML> <HEAD> <META NAME="GENERATOR" Content="Microsoft DHTML Editing Control"> <TITLE></TITLE> </HEAD> <BODY> <P>Fill your ambition and goto... -
Trip to Disney
GET YOUR TRIP TRIPS TO DESNEY TRIPS TO HAWAII http://travelexpert2004.us http://travelexpert2004.biz http://gotraveling85.us -
GET YOUR FREE TRIP
TRIPS TO DESNEY TRIPS TO HAWAII ALL FREE http://travelexpert2004.us http://travelexpert2004.biz http://gotraveling85.us -
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... -
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.... -
Sirkent #2
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:
The easiest way would be to draw the line and then to use a mask to show> 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 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
-
Vögeli Martin, vom #3
Re: i want to animate the route of my trip on a map, how do you do it?
"Sirkent" wrote:
I discovered a second possibility. Remark: "clpDraw" is an empty clip in the> "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.
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
-
Nigel #4
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...the> "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> 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
-
Vögeli Martin, vom #5
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



Reply With Quote

