View Full Version : Flash 4 Convert to Flash 7
Cougar
02-07-2008, 10:38 PM
Alright, I need help converting this action script from Flash 4 to Flash 7.
on (rollOver) {
/:Direction = getProperty("", _name);
call("/Library/:Stop");
}
on (press, dragOver) {
/:Direction = getProperty("", _name);
call("/Library/:Move");
}
I can't seem to figure out what to turn the /'s into =/
Any help?
CyanBlue
02-08-2008, 01:23 PM
Howdy and Welcome... :)
That looked okay one time and now it looks real odd... :p
You could try this...
on (rollOver) {
_root.Direction = this._name;
// call("/Library/:Stop");
// You will need to create a function called Stop1() with the content of that stop frame and call it...
// I said Stop1() because Stop() looks similar to the reserved word stop()...
Stop1();
}
on (press) {
// I took out the 'dragOver' because I don't think such thing exists... I could be wrong...
_root.Direction = this._name;
// call("/Library/:Move");
// Same thing... Make a Move1() function and call it...
Move1();
}
Cougar
02-08-2008, 10:07 PM
Alright, that worked! Thanks... but not the end of it.
{
gotoAndStop(/:Direction);
}
if (/:Direction eq "South") {
Xstep = 0;
Ystep = 0-Speed;
} else if (/:Direction eq "SouthWest") {
Xstep = 0+Number(Speed);
Ystep = 0-Speed;
} else if (/:Direction eq "West") {
Xstep = 0+Number(Speed);
Ystep = 0;
} else if (/:Direction eq "NorthWest") {
Xstep = 0+Number(Speed);
Ystep = 0+Number(Speed);
} else if (/:Direction eq "North") {
Xstep = 0;
Ystep = 0+Number(Speed);
} else if (/:Direction eq "NorthEast") {
Xstep = 0-Speed;
Ystep = 0+Number(Speed);
} else if (/:Direction eq "East") {
Xstep = 0-Speed;
Ystep = 0;
} else if (/:Direction eq "SouthEast") {
Xstep = 0-Speed;
Ystep = 0-Speed;
}
setProperty("/map", _x, Number(getProperty("/map", _x))+Number(Xstep));
setProperty("/map", _y, Number(getProperty("/map", _y))+Number(Ystep));
That's the second part to my script. I looked at yours for awhile, and still can't seem how to turn that into Flash 7 Scripting.
Thanks again! :D:D
CyanBlue
02-11-2008, 01:01 PM
Try this...
/:Direction ---> _root.Direction
if (/:Direction eq "South") --> if (_root.Direction == "South")
getProperty("/map", _x) --> _root.map._x
_root.map._x = _root.map._x + Number(Xstep);
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.