Search:
Type: Posts; User: dukeufan4
Search:
Search took 0.02 seconds; generated 51 minute(s) ago.
-
You could end the loop function with:
if(daytxt.text =="0" && hrtxt.text =="0" && mintxt.text =="0" && sectxt.text=="0"){
removeEventListener(Event.ENTER_FRAME,loop);
}
-
You could us an if() statement to prevent the car from going too far in either direction. Something like this:
if(mouseX>car_mc.width/2){
var dx:int = car_mc.x - mouseX;
car_mc.x-=...
-
Don't know if you are still having trouble with this, but if you are you can always use Math.abs(angle) to change any negative angle into a positive. Also, if you are trying to convert the angle from...
-
I am sure this is much easier than I am making it, but here goes. I basically have a form asking for dimensions of an item and I would like to highlight the dimension in an image that corresponds to...
-
No problem. Best of luck to you.
Also, please mark this thread as resolved via the thread tools above. Thanks.
-
You can put your movie inside your button.
-
And down1 is a Movie Clip, right?
-
Is your down1 movie clip directly inside your Navi movie clip or is it inside your btn1 button?
-
Did you run the debugger?
-
also, if it is inside your movie clip, you will have to do my_mc.down1.play(); like you did to the buttons.
-
Try changing gotoAndPlay("down1"); to down1.play();
-
you should have something somewhere that looks like this:
function main1Over(ev:MouseEvent):void{
//code
//code
}
I would add it right after the function declaration.
function...
-
Can you insert a trace statement in one of your ROLL_OVER functions? Something like trace("Rolled Over");. Just to make sure it is triggering the function.
-
Were you able to find out where the problem is using the Debugger?
-
Well, if you run the built in debugger, it should place an error next to the line that is causing the error. Best of luck to you.
-
I believe that your problem is that the buttons are inside a movie clip. Try this:
my_mc.btn1.addEventListener(MouseEvent.ROLL_OVER, main1Over);
// my_mc being the name of the navigation movie...
-
Is this a button that is provided from Flash (ie var btn1:Button = new Button();) or is this a button that you have created?
Also, is all of your code in one .fla/.swf or are you using external...
-
Can you post the actual Compiler Error Description and Source? That should help us help you.
-
That is in the code I posted. Notice that my ParseVdo function does not have an input variable. Since you defined xmlData above outside of any functions, it is accessible from anywhere in your swf....
-
This should work for you. I personally am not a fan of passing an xml into a function via a variable when it is already accessible, but that is just a personal preference. Your problem appears to...
-
Application.swf launches login.swf. login.swf then passes the username (if name and password are valid) to application.swf into the variable "user". In application.swf there is a maintenance button...
-
Ok, this is my first time creating a custom event and I have SEVERAL quesions about the big words that you just used. First of all, I have created tons of custom classes, but was completely unaware...
-
Well, I am glad it is not something easy that I forgot, but I am still a little stumped. If you could advise I would really appreciate it. To help you undestand exactly what I am doing here, I will...
-
This is probably an easy question, and I am sure I am just forgetting the answer, but this is driving me NUTS! I have a button that triggers a function that returns a string. How do I trace the...
-
Well, I got your first response this morning and modified my code for you. If you want a little shorter version, here it is. If you don't use it, doesn't really matter to me. I love working on the...
|
Click Here to Expand Forum to Full Width
|