I want to make a button (text saying "back to menu") make it so that when you click it, it restarts the animation. I tried but it gives me this error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.at navysealstest_fla::MainTimeline/frame1() This is the code I used to get that error:
Code:
menu_mc.menu_btn.addEventListener(MouseEvent.CLICK, launchAnimationAgain);
function launchAnimationAgain(event:MouseEvent):void {
MovieClip(root).gotoAndPlay(1);
}
I have tried to Google this but all results are for resetting variables, fields and other code-related things. I am trying to find an answer via the animation part of Flash for this question: How can I restart my animation? (well, the file anyway.) I mean, pretty much like closing+opening the file again, you know.
Secondly, since I am new to ActionScript why isn't this code working? var has_pressed:Boolean; has_pressed = false; Button1.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler); function fl_MouseClickHandler(event:MouseEvent):void { has_pressed = true; } if(has_pressed == false) { stop(); }
The stop(); part of it works fine! But even when I click on Button1, it still stops the animation , or at least it isn't working. That code is supposed to basically stop the animation until the button is pressed. I guess there might be another way to do it, but it practically is a 'play' button.
I want to make a reset/restart button using "Enter" and it worked before.. but i realised that once you press it the background has moved so you cant see the menu screen..
can someone please help me or teach me how to make an animation where drawing is involved. its like this, im teaching preschoolers how to write letters and numbers. straight lines are easy to do but i could do the curve lines.
I like to know if you can animate and how,i like to know like for an example:Your done with fram 1,you make fram 2,you erase some stuff.And it shows like shadows of frame 1 so you can make it look good.Anything i can use for Flash CS4?
I don't know, whenever I try to make a sprite animation and I click on Trace Bitmap, it shows a loading bar, I wait and wait, and when about more then half is done loading, and a little is left, the screen freezes, and I cant even click cancel to stop the loading bar.
I'm building a web site for a client. He asked me to make an animation on the homepage to show at start a world image / a globe (just the company logo) that "expands", like if it opens (from behind) into a plain map (which is another image) of the world and then show a text over it. I know and develop in PHP / MYSQL / Photoshop / JQuery effects/plugin but sadly (are we sure ? :P ) I know nothing about flash and actionscript.
So I was wondering if you could guide me to what to do, where should I start?Consider I video edit since 2003ish so I'm not lost here, I was thinking making a video about it and the show it on the page but doesn't feel like a good solution considering that the last frame should be static and more importantly the file size!. Is at least possible to do it in Flash?
I have an advantage over this situation though: I learn fast, so speak up :) what should I do?
I want to create a car animation using ActionScript code. The car is supposed to move repetitively between two end points. Someone mentioned using flag or addeventlistener to me, but I still don't have any clues.
I am trying to make a animation of a mc that comes on the stage with a descreasing blurX property. I've created a class of this mc in the library called txt_1. Here is the code:
I do want make a Timer with "newTween();" method and I also know that i need to aply the "MOTION_CHANGE" to the blur array. I don't like those ready to use Tweeners, so that is not a option for me.I like to learn how things realy work.
I wanna make book animation in which pages of the book flip here's an example from some website - [URL] how to make it. or tell me if there's a tutorial.... If you know how to make it, can u also tell me how to make it so the user does NOT have to click to flip pages? [URL]
I have a movieclip that shows an animation onRollOver and an animation on RollOut but onRelease the animation enlarge itselfs but now when I'll roll out when the animation isn't open (so i didn't release) the animation plays the animation for the minimizing of the animation. Here's my code (I know its a bit amateuristic but I'm not a programmer )
The first question: How do you make a symbol a looping animation? Say I want to make a short loop which I can repurpose later.. something such as a falling raindrop or a moving mouth. A webseries I enjoyed when I was younger, Bonus Stage, used the same moving mouth animation most of the series.. I'd like to learn how to make that.
The second, and I'd like to take advantage of the tag on the link leading to this forum that reads "there is no such thing as a stupid question in here"... How do you change the size of the brush tool?
I haven't used Flash in quite a while and wanted to make an animation to display quite a few photos. As i'm out of practice, linking videos kind of skipped my mind and therefore my first file which has lots of images in has become quite heavy and slow to run.My problem is... Is there a quick and easy way i can directly switch one part of an animation with another, keeping all the tweens and actions that are on it? (EG I want to switch out images for the same images saved as smaller files)
Or, is there a way i can scale down the movie in size to make it run smoother? I am going to have quite a lot of photos in a series of linked videos, but as i forgot about it, my first video has too much content and is too big in file size. It can be quite big as it's only for use on my mac (not online) but i still need it smaller as it won't run smoothly.
I currently made a flash animation. the background is the only one that is animated and scrolls to the right. But my problem is why it lags? Is there any way to not make it lag? here's a link of the swf file you can view: http:[url]......I tried it on a high spec pc and it does not lag when it is in normal screen(640x480) but when I view it in full screen it lags. There are no scripts or anything in this file just animation.
I'm trying to make an animation and it seems like an impossible task. I'm not a beginner, and this is harder than it first seems to be.So this is what I need: to make a tween between a partial small circle to a big circle. What I mean is I want to use the Oval Primitive tool and on frame 1 I'll have a circle (radius 100px) with Start Angle: 0 and End Angle: 230 and on frame 50 I'll need the same 100px circle with Start Angle: 0 and End Angle: 300.
im tryin to develop a game, and i wanna make a flash and in that i wanna make my letter to have typwriter kinda animation. Like you know in RPG when NPC are talking the letter are going one by one.and also how do you make it so that when any button are pressed then its going to go to the next thing.
I'm learning flash animation and am wondering once I save the flash file to a dvd format, how does the end-user navigate when they put the dvd into their TV? Do I need to design and incorporate a menu for the end-user? If so, how does the TV remote control navigate through this menu that was created on a Mac computer?
Animation of the head that comes up with the crank on it is 15 frames long. The head stops at frame 15, and it begins to crank at frame 16. Do I make a keyframe at frame 16 of that still crank at its begininng position, double click it to get its own timeline, then import the other 7 images of the crank animation into this seperate timeline, animate its cycle, then go back to the main time line at frame 16 and it should play the cycle when the main timeline hits frame 16? What if I want the cycle to only crank once around and not loop? Then, what happens to this movie clip when frame 17, 18 20, 30 is playing? It takes say 2 seconds to play the crank animation so while the play head is going along after frame 16, and the crank is moving what is in its place on the main timeline after frame 16? Should I just put frames in for the length of the rest of the animation (brain and words coming out of the head)?
i need my animation to be 150dpi.i have no idea what it is now.how do i change it, do i have to specify it at the start or can i blow up my whole animation at the same time.
I am trying to make a 3-dot waiting animation using action script.
I want it to go until three dots "..." and than start over again until I manually stop it later in my program. I tried many stuff including arrays and surrendered.
Im changing the quality of a loaded clip with this._quality = "low" to make the animation run smoother, but it affects the parent clip as well, which I don't want it to do.
I`m trying to use this code to make my animation go backwards. The problem is that I need to stop it before reach the beggining of the timeline. The Stop code doesn`t work backwards.