ActionScript 3.0 :: Get The Coding Or Action Script To Make?
Feb 5, 2010
I have a movie clip on Scene1 called "movieclip1." Inside "movieclip1" there is a label of "fadein," which underneath the label has the movie clip fadeing in. Then I have a label called "fadeout," which has the movie clip fading out. What I want to do is get the coding or action script to make it so when I click on "portfolios_btn" (on scene1) it runs what is under my label "fadein" inside the movie clip "movieclip1."
Then, when I roll off the movie clip I want it to go and play whats under the "fadeout" label. This "movieclip1" is a drop down menu that fades in when I click on the portfolios_btn and fades out when I roll off the movieclip.
View 2 Replies
Similar Posts:
Mar 23, 2011
im trying to make a gallery in flash for a project and the coding isnt right Array 1 will play but arary 2 wont
[Code]...
View 3 Replies
Jul 1, 2005
how to make some action happens after some time ?I mean... imagine I have a ball moving randomly through the stage.... I want that... the ball stays on it's place for some time... then move to somehwere else.... stay there a while.... en repeat.
View 1 Replies
Jan 31, 2010
Can someone tell me how to make 2 different objects/buttons do the same action?I am building a band flash site.I have a music player with basic controls/buttons: stop, play, pause and volume bar.I have a video section and few videos in it. (They are on youtube and I am using this lightbox script for flash to activate them so they play on top of the site / not going on youtube).I want to make that video thumbnail link automatically stop the music (or pause it) and also to open video: I've tried some stuff but I am not too good at coding.[code]
View 0 Replies
Jun 5, 2010
Situation is I got a Mc called "thumb" which I am duplicating like this bellow
[Code]....
Now I need to make make these thumbs clickable for different action. Like if I click on "this.thumb3" it will return "3"; This problem was solved at this forum before but when actionscript.org was attacked by some hacker that post was lost. All I can remember that I got a code like bellow
[Code]....
View 9 Replies
Jul 12, 2010
I've worked with Flash for about a year now and I'm trying to make a game where you can control an object with the arrow keys and if you touch a certain object (lets say a wall) you go to a frame where it says "You lose".making the actionscript for the object and the wall colliding.
View 1 Replies
Mar 12, 2003
I want to make a circular motion of any round or arbitrary shaped object by using action script. Should i use a for loop, and if i use it what will be the syntax of it?
View 3 Replies
Jun 1, 2006
how do you make a button use the gotoandplay action to go to another scene? Its scene 420 i need to get to
View 3 Replies
Nov 10, 2006
How do I make an MC or other object listen always for an action to occur. I know that sounds vague and I don't mean it to be. I'm wanting to dynamically load MCs into another base MC. The deal is the amount of child MCs is not defined. I want each MC to be "listening" for an action to occur in a base MC and in other child MCs. I tried using localConnection, but it doesn't do the above.
View 4 Replies
Jun 8, 2011
I want to trigger an action when changing value in Input Text any time with this code
PHP Code:
inTempSP.onChanged=function(){ if(vTempSP>100){trace("Temperatur over heat")}; if(vTempSP<100){trace("Temperatur OK")}; }
But i don't know that code is not working well.
Note:
inTempSP = Instant name of Input Text
vTempSP = Variable name of Input Text
View 1 Replies
May 31, 2010
I want to make a diagram with either flash CS4 or flex builder 3, don't know with one would be the best for the job.More about the task:I want to send in values external to the swf file.The swf-file takes the vaules and makes a diagram of it using x and y values.
View 1 Replies
Oct 16, 2009
I have a set of images of dogs and a doghouse.
1. Each dog has an email assigned to it for the person.
2. Clicking on a dog (or alternatively "dragging it"), puts it in the doghouse and moves the existing dog out to the now empty location.
3. Once moved in, ther should be a button presented to create an email to the person saying they have been placed in the doghouse (so..like..mailto??).
4. Maybe an image of the doghouse with them in it could attached to the email.
5. LATER: The state of the page could be kept so future visitors know that the person is in the Doghouse.
I have an old JavaScript page that kind of shows the functions:
FAMILY DOGHOUSE
Also, what I have done in FLASH (so far) is also shown at the bottom of the page.
1. Not sure how to make the action wait for the mouse click or drag!
2. Also, maybe a button, once the people decide who goes in the doghouse, to submit and fire the email??
When I chose this little project I thought it was easy, but I realize I have not a clue how to begin beyond making buttons and tweens.
View 0 Replies
Mar 24, 2011
I have a numeric stepper which allows the user to choose as many balls as they want, then they shud press the button and all of those balls should fall down. How can I do this???
View 1 Replies
Aug 10, 2004
I'm trying to get the code below to work, but no such luck:
Code:
var newsAry = new Array("news/040720.html");
for(i=1; i<=newsAry.length; i++) {
this["btn" + i].index = i;
this["btn" + i].onRelease = function() {
getURL("javascript:openNewWindow(" + newsAry[this.index - 1] + ",'newswin','height=400,width=450,toolbar=no,scrollbars=yes')");
}}
I'm trying to get the 'newsAry' Array to work in the javascript getURL action. When I use a regular html page in there the page works just fine.
View 2 Replies
Feb 1, 2010
im trying to make a game that requires you to have the spacebar and the right arrow key pressed to make the character move. However i just cant seem to link the 2 key presses together. when the keys are pressed individually it works and when theyre pressed together it works but i want the character to be inactive until both are down at the same time :/
i've tried everything that i can think of (which is kinda limited) i thought id cracked it with a 'while' statement but when i tested it flash would throw a fit and close heres the code that flash doesnt like, it looks (to me) like it should work but it clearly doesnt :P
PHP Code:
onClipEvent (load) {
_x = 0;
_y = 0;
}
[code]....
View 2 Replies
May 11, 2004
There is any way, any cody or anything that can make an action or function take place when a sound reaches a specific second?? For example I have a sound file, when it reaches the 15 second, I want the _root.play(); action to be executed
View 1 Replies
May 11, 2004
There is any way, any cody or anything that can make an action or function take place when a sound reaches a specific second??For exampleI have a sound file, when it reaches the 15 second, I want the _root.play(); action to be executed
View 1 Replies
Oct 26, 2011
How can i make a MovieClip object drag able by the mouse? If i have two MovieClip instances, is it possible to make a new shape/MovieClip objects in that looks like a line and which will connect then? I have functions checking if the 'nodes' movie clip instances collide with the 'line' movie clip instances, now these all are different functions and conditional, but is it possible to check if ALL of them are true?
View 2 Replies
Feb 1, 2010
what the actionscript would be to make a button be clicked and held down with the mouse a certain amount of seconds before executing an action???
View 8 Replies
Aug 5, 2008
I'm trying to achieve something that I'm sure it's not that complicated, but unfortunately I have not clue how to do it.I have created some text fields. And what I want to do, it's that when the user clicks onthem, in order to start writing, I want a specific movieclip to dissapear.This could be achievable if I knew how to make the textfield behave like a button; but I don't know what code I need for this, as onPress it's not working at all.
View 5 Replies
Oct 2, 2006
Code:
_root.navigationMC.onPress = function() {
startPreload("blue.swf");
}
If I wanted to change an action from a button click to a frame-based action, what do I use instead of onPress? The hints from the AS editor are all click-based.
View 1 Replies
May 8, 2009
I have a slideshow that is looped ... it contains 5 slides.I am using a gotoandPlay action to control the slide show.
on (release) {
this._parent.gotoAndPlay("98");
}
There is a fade transition between slides.When a button is released ... I want to gotoandPlay (frame 98) ... and then have it stop 10 frames later on (frame 108). Frame 98 includes the transition ... if I just gotoandStop on frame 108 ... I loose the transition.Is there any way to incorporate a stop action, after a gotoandPlay action on my button ... without naming instances etc.I.E.
on (release) {
this._parent.gotoAndPlay("98");
STOP ON FRAME 108 INTEGRATED HERE
}
Everything I have attempted is not working.
View 1 Replies
May 23, 2009
I just want to make a simple button action using actionscript 2 but I can't get it to work! I'm sorry for even asking but I've been at this for too long now for it to not work I'm using Adobe Flash CS4 and I do the following --
File -> New Flash File (ActionScript 2.0)
Insert -> New Symbol
Name - test
Type - button
Export for ActionScript
Identifier - test
And then draw it in using the keyframes and add the code to 'Actions - Button' for my button
Code:
on(release) {
trace("trace");
}
I click on the button and it animates but no action event in the trace?
View 3 Replies
Nov 4, 2010
How can I get an action to follow another action when a button is clicked? When a button is clicked, I want the timeline to go to a certain frame and play and when it's done playing, to go to another frame and play. I basically want two actions in one function.
[Code]...
View 1 Replies
May 2, 2003
i want to do this:
on (release) {
_root.nextMovie = "externalmovie.swf";
_root.cover.gotoAndPlay("close");
[code].....
View 1 Replies
Jan 27, 2011
I am using code from a tutorial that I downloaded to get an Home.swf to preload in my "index" page.the problem is that a part of the code reads
movie1_btn.onPress=function(){
startPreload ("Home.swf");
}
which means that I have to create a button to get the .swf file to load, how do I edit this code so that the action begins on it's own at that frame?
View 5 Replies
Nov 6, 2006
1. I make a simple movie (call it movieClip) first frame has stop(); action, second frame has label playMovie, last frame has action gotoAndPlay(2); (so that movie not stop anymore2. Now I place movieClip on stage3. Question... what is code to make movieClip play frame label playMovie?
I already try to put many different type action in frame one of stage
this.movieClip.gotoAndPlay("2"); //NOT WORK
this.movieClip.gotoAndPlay(2); //NOT WORK
[code].....
View 7 Replies
Apr 16, 2010
I have 6 MC on stage with a button on each. When clicked it plays the timeline in the MC. I want to make sure that none of the other MC are playing or 'open'. So I wrote code in each clip to close the others down, but it just seems a really lengthy way of doing it.
So I've been trying to figure it out with var/strings and some script like. btn1.onRelease play this... if there is another MC open then close it. someone point in the right direction. So I can learn... I've thought about this alot and I would use this way of coding alot. rather specifying and repeating the statement on each clip.
View 3 Replies
Jul 16, 2009
_root.object_1.sunny.gotoAndPlay("walk"); _root.object_1.sunny.gotoAndPlay("laugh");Hi, I code the following. But it jumps straight to the seconf mc "laugh". Is there nbo way of playing walk and on finishing playing laugh.
View 4 Replies
Jul 28, 2010
i need to take session on AS 2.0 coding standards.i am not sure what are the topic need to cover.
View 1 Replies