G'Paris
ok Mr. Heavyweight. You posted on like 8-23 when I asked how to check the existance of a file. I can not understand whay you said. How can I check the existance of an HTML or FILE. You said before if(...) = True.
Can I put a URL in there? Or a local File? Please give me an example.. Thanxz!
-Paradoxz
FlashKit > Flash Help > Flash ActionScript
Posted on: 09-14-2001, 12:54 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
HitTest, Or Not. BTW, Your A God G'Paris.
// Three different scripts below.. 0 of 3 work.
// Where am I going wrong?
onClipEvent (enterFrame) {
with (_root.beetle) {
if (walls.hitTest){speed = 0};
}
}
// (Above Script)
// This is 'meant' to stop the "beetle" from moving.
// It keeps going at speed 7 though
onClipEvent (enterFrame) {
with (_root.beetle) {
if (this.hitTest){speed = 0};
}
}
// This stops it from moving even if it's not touching
// the wall. (Above AS)
//
// And This next one, stops the beetle from moving
// even if it is not touching the wall once again.
onClipEvent (enterFrame) {
with (_root.beetle) {
if (this.hitTest)speed = 0;
else if (this.hitTest ne True)speed = 7;
}
}
// Does anyone have any idea what is wrong in any
// of these scripts?
//
// Thank You all, 'Dox
G'paris / Guru
estudioworks.com has a menu that when you click a button it slides the menu to a new section (A sliding MC) does anyone have an example of this?
TY,
Note To G Paris
Hi G
Thanks fo rhelping us out yesterday, unfortunately still no cigar.
I just wanted to add that I have run a trace command and it is definitely going out of the clip into the main timeline and targeting itself.
Left the trace command in in a frame in the main timeline directly above the sleep clip.
Damn weird hey
thanks again
J
G Paris Tree Menu Help
can anyone tell me how to add links to this drop down menu. i have tried doing it by converting each link to a symbol then button then in actions choose on release get url. i have entered my url correctly yet when i test it then it doesnt work.
i am using flash mx
Paris Best Multimedia Design Agencies
Hi, I am looking for a job in multimedia design in Paris. I do not know the good agencies there, but it is important for me that they are well recognised in DESIGN as I have a web +cd-rom design experience from canada.
Does anyone know the good IT/Design firms in Paris?
If you know a good site that lists the agencies (not yellowpages.fr!!!)....
thanks for your help
Paris Best Multimedia Design Agencies
Hi, I am looking for a job in multimedia design in Paris. I do not know the good agencies there, but it is important for me that they are well recognised in DESIGN as I have a web +cd-rom design experience from canada.
Does anyone know the good IT/Design firms in Paris?
If you know a good site that lists the agencies (not yellowpages.fr!!!)....
thanks for your help
PARIS HILTON...needs Dynamic Text Help
Did I get your attention? Now that you are here you might as well read this. I am desprate and need help!
I have a project (attached)... I need to have sevral different buttons use the same dynamic text box to import text into from one .txt file. I am not sure how to program the variable for the box or buttons? Do I need to reset it?
Take a look at the enclosed file. How can I do this???
THANK YOU!!!
J
Notes for attached file:
The only country that works currently is S. America- Brazil.
All of the counrties need to use the same text box and txt file when rolled over.
Is this possible????
PARIS HILTON...needs Dynamic Text Help
Did I get your attention? Now that you are here you might as well read this. I am desprate and need help!
I have a project (attached)... I need to have sevral different buttons use the same dynamic text box to import text into from one .txt file. I am not sure how to program the variable for the box or buttons? Do I need to reset the variable? If so how?
Take a look at the enclosed file. How can I do this???
THANK YOU!!!
J
Notes for attached file:
The only country that works currently is S. America- Brazil.
All of the counrties need to use the same text box and txt file when rolled over.
Is this possible????
Real FlashKit Guru Needed. C'mon G'Paris
Does anyone know AS to put a .HitTest into this?
(The lower script is a MM Flash MX Sample Script)
To where the "Beetle" Stops if it hits a wall, or if your a real guru, to where the beetle goes around a wall (Wall meaning other MC)
TY - 'DOX
onClipEvent (load) {
// declare and set initial variables and properties
clickSpot_x = _x;
clickSpot_y = _y;
speed = 7;
clickMode = true;
turnMode = false;
}
onClipEvent (mouseDown) {
//
// set position of target spot when mouse is clicked
if (clickMode && _root._xmouse>125 && _root._xmouse<465) {
clickSpot_x = _root._xmouse;
clickSpot_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
// toggle button icon visibility
_root.curve._visible=turnMode;
_root.pointer._visible=!clickMode;
//
// deterimine whether target spot is the clicked spot or the mouse pointer
if (clickMode) {
gotoSpotX = clickSpot_x;
gotoSpotY = clickSpot_y;
} else{
gotoSpotX = _root._xmouse;
gotoSpotY = _root._ymouse;
}
//
// calculate angle of current position to target position
delta_x = _x-gotoSpotX;
delta_y = _y-gotoSpotY;
targetRotation = -Math.atan2(delta_x, delta_y)/(Math.PI/180);
//
// calculate the two methods of rotation
if (turnMode) {
if (_rotation<targetRotation) {
_rotation += 10;
}
if (_rotation>targetRotation) {
_rotation -= 10;
}
} else{
_rotation = targetRotation;
}
//
// move beetle toward the target and stop when it gets there
if (Math.sqrt((delta_x*delta_x)+(delta_y*delta_y))>sp eed) {
_y -= speed*Math.cos(_rotation*(Math.PI/180));
_x += speed*Math.sin(_rotation*(Math.PI/180));
}
//
// loop to opposite side of the masked area when the beetle travels off-screen
if (_y<0) {
_y = 232;
}
if (_y>232) {
_y = 0;
}
if (_x<125) {
_x = 465;
}
if (_x>465) {
_x = 125;
}
//
// maintain position and rotation of beetle shadow
with (_root.shadow) {
_x = this._x+3;
_y = this._y+3;
_rotation = this._rotation+90;
}
}
|