Flash8 :: Creating A Movieclip On The Frame With A Click?
Sep 18, 2010
Say that i have a variable called explosion when this variable is set to yes i'd like it so that whenever you press the screen with the left mouseclick it "creates" a movieclip where you clicked that in the library is named bomb (or duplicate the movieclip from off screen if that is easier)
View 2 Replies
Similar Posts:
Sep 10, 2009
A movie clip called "Symbol_4" contains all of the navigation and frames of my movie.inside of Symbol_4 is a MC called "bottom scroller" which contains "imgbar" which contains "bar" which has a bunch of buttons in it.I want those buttons to link to different frames in the main "Symbol_4" MC.
I've tried putting code on a button like this
Quote:
on (release) {
tellTarget (this._parent._parent._parent) {
}
[code]....
There are no errors in any of this code, but nothing seems to work?!
View 2 Replies
Aug 10, 2010
How do you click a movieclip and then after clicking you will go to the next frame??
going to next frame i know is gotoAndPlay("frame name or number");
but do i have do name the movieclip with an instance?
View 1 Replies
Feb 18, 2009
I put a mcBtn in the end game frame, put this code in the frame:
mcBtn.buttonMode = true;
mcBtn.addEventListener(MouseEvent.CLICK, playGame);
function playGame(e:Event):void {
play:(1);
}
The object is to go to frame 1 when you press mcBtn. When I click it, Nothing.
View 2 Replies
Mar 16, 2007
I simply want to assign a variable to the current frame of the main timeline (not movieclip timeline) I already know about _currentframe and it doesn't help in this case.
View 4 Replies
Apr 27, 2009
This time I'm experimenting with visibility. All the tutorials online vary a lot. I'm trying to find something noob proof. I have actionscript 2 and 3. I'm not sure which one to use..I'm just trying to learn how to make a frame become visible and Play when I click on a movieclip.
View 5 Replies
Feb 5, 2010
In AS2 I need code for a button, on the main timeline, to go to a frame in a mc off the main time line. I have attached a picture of the time lines in case I have not articulated my needs well.
View 5 Replies
Dec 2, 2010
Ive had a search through quite a few forums and message boards but havent quite been able to pin down what I need to do. I'm working in flash cs5 and using AS3
I have a button (bttn1) which when clicked plays a movieclip (bounce), but I would like it to play from frame 1 then stop on a desired frame(say frame 10), so when a second button is clicked (bttn2) it plays from frame 10. Hopefully i've explained it ok...
View 4 Replies
Sep 16, 2009
I'm using Flash CS4 with AS3. I'm building a website for a friend the problem I have. When a user clicks on a button I want it to play a movie clip then stop at a specfic frame. I want all the buttons to play the same movieclip but go to a different frame.
The current actionscript I am using is located on frame 1 is:
home_btn.addEventListener(MouseEvent.CLICK, homebuttonClicked);
function homebuttonClicked(event:MouseEvent):void{
gotoAndStop(0)
}about_btn.addEventListener(MouseEvent.CLICK, aboutbuttonClicked);
function aboutbuttonClicked(event:MouseEvent):void {
gotoAndStop("aboutme")
[Code] .....
This allows me to navigate to the right frame but does not play for obvious reasons, if I use the gotoAndPlay function its carries on playing to the end of the movie.
View 2 Replies
Dec 2, 2010
I have a button (bttn1) which when clicked plays a movieclip (bounce), but I would like it to play from frame 1 then stop on a desired frame(say frame 10), so when a second button is clicked (bttn2) it plays from frame 10.
View 7 Replies
Apr 10, 2009
i have made a sniper style game an hav programme a moment where there is pause between each click (reload time) but how do i make it so that when the gun is reloading the left click is disabled, as it stands now while the gun is reloading the aim doesnt move but if u click on an enemy they still die as it stil sees it as clicking on it, how do i disable it for these 2 seconds while my gun reloads
View 1 Replies
Aug 25, 2009
EDIT: I already solved the healthbar problem. Now what I want to know is if there's a way to set a max number for my health. For example, when I click "heal", it goes way over the max HP which is 100. Is there a way to set the max number to 100?
View 3 Replies
Nov 21, 2009
My movie is very lengthy one.when i publishing i am getting error like this
View 2 Replies
Mar 28, 2010
I've got a flash animation attached which I added a layer to and follow the post at [URL] to try and make it go to a url when the layer is clicked.
You can see the animation at [URL] but when it is clicked on, instead of going to the site I specify [URL] it goes to [URL]
I'm nearly at the end of my tether here - have tried it in flash cs3 trial with a number of tutorials online,. and I also just bought Koolmoves, tried it as well but it does exactly the same this. I've set Flash 8 export and network access in publish options
View 3 Replies
Feb 27, 2010
So I have this database that's filled with data, but I would like to use Flash as an interface.
So I've got a couple questions, first of all, is it possible to create a text box that when the submit button is pressed, goes to another frame "results" that displays the results, each preferably a link to yet another slide "info" that displays the full entry info?
I already know all the PHP for this, just wondering how to integrate it with flash, and show the results and entries inside flash.
View 6 Replies
Aug 28, 2010
I would like to know how to make it so when you click a button, it goes to a different frame within a MOVIE CLIP. Kind of like gotoAndPlay but not a frame in the timeline. I would like it to move to a different frame in a movie clip.
View 1 Replies
Feb 19, 2010
I have two frames in a movieclip with a stop in the first. I want a script that makes is so that when you hold down the UP or DOWN arrowkey it jumps to frame 2 but if you drop the UP or DOWN key you go back to frame 1.
View 1 Replies
Jul 7, 2009
I am looking to move a movieclip (person) towards another movieclip(ball). I can do that fine but the ball is constantly moving and that gives me a lot of trouble.
View 6 Replies
Aug 18, 2011
i created a two layer in time line in one layer there is a movieclip called mc1. In the same layer in 15th frame i have another movie clip mc2. Inside the movieclip mc2 i created another movie clip at frame10 now if i clik the the mc1 on first frame The movie clip should goto and stop at tenth frame
View 4 Replies
Oct 6, 2009
I really just want to know how to trigger a function when my movie hits a certain frame.
I made a very simple flash show to try to illustrate my problem a little more clearly. I have a green and a gray button. Using the 'switch_buttons' command I turned the gray button invisible at the beginning. What I then want to happen is that on the 10th frame the green button will become invisible and the gray button will appear. But I haven't had any luck. It seems like I need to call a function to switch the buttons somehow.
View 3 Replies
Jan 7, 2007
I'm trying to use an if statement on a frame, but it doesn't seem to work do i need to put into some sort of function?
View 2 Replies
Apr 8, 2010
I have four movie clips (.f4v) in 4 frames in a movie with watch buttons.. This movie has them been imported into a main movie container that has next and previous buttons. However if i play a movie then hit next frame, the movie continues to play in the background. The code below shows one of the actionscripts for a movie clip and then the main actionscript in the main movie.[code]...
View 1 Replies
Feb 23, 2010
I have a character, And in its movieclip I`ve got 3 frames (first has an idle pose, second a walking pose and third a running pose), each with a movieclip with an action in it.Well, what I wanted is that when I am walking with this character, and press the SHIFT key he runs.And I`ve got the following code
if (Key.isDown(Key.LEFT))[code]....
But when I click the shift button, he shows the first frame static of the movie clip in frame 3 (running frame).
View 9 Replies
May 25, 2009
there is a button on 1st frame. there is a movie clip on frame 2. I named the movie clip as "ball_mc" I want to go to frame 2 when I click on button on 1st frame. I know that the code "gotoAndPlay(2);" on button will work. But for some reasons, i want to try another way.... i tried several codes:
1. this.ball_mc.gotoAndPlay();
2. _level.ball_mc.gotoAndPlay();
3. _global.ball_mc.gotoAndPlay();
4. _root.ball_mc.gotoandPlay();
However these codes dun work. Is there other way to resolve this besides this code "gotoAndPlay(2)"?
View 1 Replies
Oct 11, 2010
I have 5 different buttons for the navigation on my flash website.The first page is on frame one.When you click on any of the 5 buttons I want it to play frames 10 - 15 before moving to which ever frame the button 1-5 corresponds to. So:
Click on button 1 > plays frames 10 - 15 > Goes to frame 20
Click on button 2 > plays frames 10 - 15 > Goes to frame 30
Click on button 3 > plays frames 10 - 15 > Goes to frame 40 etc
How do I make this work?
View 3 Replies
May 25, 2011
I have a small flash site made up of a number of pages all on the one timeline.
The query is this. When i release a button i want the timeline to roll on for x frames (fading components out) before going to the frame that button links to (The beginning of the new page).
I have no idea what AS to use for this.
No matter where in the timeline you are, the button should fade out that area and then skip to a new one.
View 2 Replies
Nov 10, 2009
I'm creating a drop down menu and when I addEventListeners to check the clicks on the invisible buttons on frame 19 of the "menu" movieclip, it gives me an error. T really hate doing rollover with actionscripts. The download link for the fla can be found in below. Sorry for posting an external download link as the file is 7mb+! [URL]
View 2 Replies
May 14, 2009
Im using a onInterval at a very high speed or you could say, with a very short delay. In IE the onInterval is not going by the time frame i set and is running extremely slowly. In all the other browsers the onInterval is working fine and runs the code as fast as i require. I found a post on another forum but that person had no luck with this issue as well.[URL] Is there a alternative way to call functions at a fraction of a second?
View 1 Replies
Jun 11, 2009
I have little and easy flash Only problem is - after the last frame of flashmovie should open new file/location (this time index2.html) but before that it dows the first frame is shown for a moment again. [URL]
Flash is built easily:
1st frame with action "stop();"
2nd - 34th with action "play();"
35th - with action getURL("index2.html", "_self");
View 1 Replies
Sep 4, 2009
im creatung a sort of virtual tv in flash 8, and ive come across a problem-0 I'll try to put this as simply as possible- picture a black square on frames 1-5, and a white square on frames 6-10. I need to be able to push a button, and if its on frame 1, to go to from 6, and if its on frame 6-10, to go to frame 1 (and stop) If possible id like to put the script on the button (not the frame)
View 2 Replies