On(release) GotoAndPlay
Hi,I'm getting data from a database and I put this data in an array that looks like this:me, you, he, sheNow I want this data to be put in an dynamic text field like thismeyouhesheand they all have the option to click on it and do things like thisfor me: Code: on (release){gotoAndPlay (20);} for you: Code: on (release){gotoAndPlay (25);} for he: Code: on (release){gotoAndPlay (30);} for she: Code: on (release){gotoAndPlay (35);} thanks in advance
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 06-08-2004, 07:26 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
On Release GotoAndPlay
I got a movieClip which plays up to Frame 30 which can be dragged. Once the movieClip is released I want frames 31 to 35 to play. Does anyone know how this cane be done?
All I could think of was:
on (release) {
stopDrag();
_root.MyMovieClip.gotoAndPlay(31);
}
and there's a stop action on frame 35, but this doesn't work.
Help With On Release Gotoandplay
well this is my problem, i have a movie clip, and in this movie clip, i have another movie clip. So i have movie clip_1 and in movie clip_1 there is movie clip_2. I stopped movieclip_1 with a simple stop action and have a button on release go to and play frame 50, now, frame 50 is were the movieclip_2 is at. and there is also a stop action at frame 50. Now my problem is, when the play head is at frame 50, when i press the goto and play button again, why does it skip me to frame 51? instead or replaying a frame? how can i get it so that the button, WHEN at frame 50 will just replay frame 50?
On(release) GotoAndPlay
Hi,
I'm getting data from a database and I put this data in an array that looks like this:
me, you, he, she
Now I want this data to be put in an dynamic text field like this
me
you
he
she
and they all have the option to click on it and do things like this
for me:
Code:
on (release){
gotoAndPlay (20);
}
for you:
Code:
on (release){
gotoAndPlay (25);
}
for he:
Code:
on (release){
gotoAndPlay (30);
}
for she:
Code:
on (release){
gotoAndPlay (35);
}
thanks in advance
On (release) {mainPage.swf.gotoAndPlay(20);
Say I have two seprite swf files and when i click on the button thats on the first swf file it will take me to a cerion scene and cerion fram of the second swf file
thanks?
PLEASE HELP
AIM:herardo4
on (release) {
mainPage.swf.gotoAndPlay(20);
}
"isn't working"
Variable >> On(release) GotoAndPLay
Hi,
I'm getting data from a database and I put this data in an array that looks like this:
me, you, he, she
Now I want this data to be put in an dynamic text field like this
me
you
he
she
and they all have the option to click on it and do things like this
for me:
Code:
on (release){
gotoAndPlay (20);
}
for you:
Code:
on (release){
gotoAndPlay (25);
}
for he:
Code:
on (release){
gotoAndPlay (30);
}
for she:
Code:
on (release){
gotoAndPlay (35);
}
thanks in advance
[F8] On(release) And GotoAndPlay Questions
First question. A simple button code:
Code:
on(press) {
pressed = true;
}
on(release) {
pressed = false;
}
the problem is when user presses the button and releases while the mouse is not over the button the on(release) function doesn't execute. How do I trace this kind of action when the user releases when the mouse is not over the button?
Second question.I attached a fla as an example. There's a button(red) and a circle. When the button is pressed it executes (circle moves to the right):
Code:
on(release) {
tellTarget("circle") {
gotoAndPlay("2");
}
The first and last circles frame has stop(); code.
The problem: when I first press the button the circle movies correctlly, but on the second press the circle goes to the start position. When I press third time it movies correctlly, on fourth time again only goes to start position, and so on. So actually the "circle movie" is played only on every second time the button is pressed. I want it to play EVERY time the button is pressed.How do I fix it?
Thankyou in advance.
[CS3-AS2] On(release) GotoAndPlay Problem
Hi Everyone, this is my slider problem revisited.
Should be something simple I guess, but I cant seem to get it...
Any help greatly appreciated.
What I have so far for my slider is...
PHP Code:
on (press) {
startDrag(this, false, x, top, x + 240, top);
}
on (release, releaseOutside) {
stopDrag();
trace(_parent.slider.value);
if(_parent.slider.value == 240){ //240 is full to the right
_parent.gotoAndPlay("Scene 1", 42);
}
else{
_parent.gotoAndPlay("Scene 1", 51);
}
}
The value is traced fine though there is no gotoAndPlay action happening.
Any ideas folks?
Playing A MC On Release Before GotoAndPlay
First, I'd like to apologize to the experts for my complete ignorance of ActionScript. If you're someone who gets easily frustrated with the stupidity of n00bs, please don't read this. If I knew what terms to search for, I'd search for the answer instead of posting it.
I've begun a web design project for myself for added income and I'm doing my site in FlashMX2004. I know I have a lot to learn about ActionScript, but I need a nudge in the right direction. (I've got the creative aspect of this down, but the programming aspect will be the death of me.)
See if you can follow me on this. I have an initial "home" page with four buttons: "portfolio," "design," "about," "contact." These four different "pages" are all movie clips located within the same scene as my home page. I target Flash to the different movie clips using ActionScript with frame labels. Now, when a person clicks, say, "portfolio," the movie gotoAndPlays the "portfolio" labeled frame through and stops, and the actual portfolio button becomes animated and goes to the top of a page to become a header. This leaves the other three where they were.
Here is where I run into my logistical problem.
When a person navigates away from my "portfolio" movie clip, I'd like the portfolio button to fall back down to it's proper place with the other buttons, and THEN for the movie to gotoAndPlay whichever frame label the visitor clicked. Now, how in the hell should I do this? I can easily animate the button to fall back down, but how do I tell Flash to make it fall back down before gotoAndPlay???
You don't have to give a definitive answer here, but could you please point me in the right direction or give me a hint or two. I'm willing to learn it for myself but I don't even know where to start.
Thanks for your help.
-Ben
Need AS3.0 On Release Gotoandplay Frame
Hi all,
I am trying to get a simple button to work with actionscript 3.0.
Need AS3.0 "on release gotoandplay frame". This should be relatively easy but for some odd reason I can't put an action script directly on the button. This is the first time I have used Flash 9 CS3. Can anyone help? I have a deadline to meet. Or can someone send me an example?
Thanks,
Rick
Flash MX On Release/gotoAndplay Scene ?
this is a very simple task and i just can't seem to get it right.
i have made some buttons, and want them to go to other scene on release. some work and some don't, some needs only single click and some need double click after being published. what have i done wrong? here's how i did them:
1. add a keyframe on frame 1 a new layer,
2. drag the button to the workspace,
3. label the button
4. in action panel choose
on (release) {
buttoninstantname.onRelease = function() {
gotoAndPlay("scene", 1);
};
}
i am a total idiot to actionscript therefore still using normal mode for actionscripting.
some of the buttons just work fine, but some don't.
i also noticed that in button mode there are a lot of actionscripts being disable.
also, i've uploading the html on my server, but some people can view it and some don't, i tried it and only IE can view it. other people using macintosh totally cannot open it. is there anything within i'm missing?
thanks so much for your time with this amateur.
peace,
mulan
Format/on Release Gotoandplay {solved}
Working on my school project and not quite to the actionscript yet, thought i've messed around with MX.
Question 1: Is this the correct way to place your buttons in a scene to produce these results.http://www.jaybirdfolio.com/X5%20Instruction.php
Question 2: I'm trying to have that btn on release go to the next scene but it won't go. I'm a little confused on action script 3.0
Any tutorials on creating actions in 3.0, specificlly for btns would be great.
HELP Creating Play Intro Button, Should I Use On(release) GotoAndPlay (frame); ?
ok, i have three scenes one
called requirements for my requirements page which includes the buttons enter site and play intro.
next is my preloader scene which has my preloader
and finally the third scene is the movie called scene1
thus three scenes
#1 requirements
#2 loader
#3 scene1 << which is the movie
what action script should i put on the button..to cut to scene 2 to load and then play the movie.
[play intro button] << what action script do i add to this.
i have tried this on(release){gotoAndPlay,loader(1))};
help
On (release) { GotoAndPlay ("20");}
Thats the syntax im using on an mc in layer two. in layer one i have stop(); [in order to stop the tween i was already playing from looping]
on frame twenty there is a tween, just to move an object to another part of the canvas, but it doesn't do anything! i have some text on the frame i want to leave and no text on the frame i want to get to and it just sits there and stares me in the eyes with a look that says "duh, wha?" really bugging me! any ideas?
On Release Stop On Release Play. How?
Its like a stop and play button. Like, lets say a button or much more likely, a movieclip, in the shape of a pause button, is clicked, it stops on the frame. Once it is clicked, it looks like a play button, and when it is clicked again, it plays from that same frame, And it then looks like a pause buttons again. How?
GotoAndPlay This...then...gotoAndPlay That? (transition Animations For Menus)
Hi all,
Quick question. How do I make my nav buttons trigger an animation that removes the main menu graphics(in an animated way) then loads up the graphics for the relevent section thats been selected?
All I can do is have the buttons click straight to the frame label with the relevent pages on them. I need to have an 'ending animation' for the main page to see first before continuing on.
Thanks for any help.
GotoAndPlay Works, But Now This.gotoAndPlay?
I want to but my navigation in the library. Then when a certain button gets clicked, I want to go to a certain scene.
So I have the action
on (Release)
{
_root.gotoAndPlay ("Scene 3", 1);
}
for the button in the library. This does not work. If I put this in Scene 1 on the first frame, it also doesn't work. Putting
gotoAndPlay ("Scene 3", 1);
there works.
So my question is: How do I change between scenes from a library button?
[MX04] GotoAndPlay Then GotoAndPlay
Newbie here... how would you do this...
if (_currentframe=="concept_stop" or _currentframe=="develop_stop" or _currentframe=="gallery_stop") {
gotoAndPlay(_currentframe + 1) THEN gotoAndPlay("develop_start");
} else {
gotoAndPlay("develop_start");
Basically, I want it to play the frame after the current frame until it stops, then play the develop start frame... how would you do that?
On Release
may sound a little stupid but, can't get the onrelease command to be available to me on flash 5. it keeps saying:
"Clipboard Actions: Line 1: Mouse events are permitted only for button instances
on (release) {"
HELPPP!!!
On Release (if .. Else )
I'm trying to on release of a button check the _y position of a MC on the stage. I wish to reposition it from position 1 to 2 if it's at 1 else I wish to reposition it to position 1 if it's at position 2.
Hope that made some sense, I'm not sure if I have to put this into a function then called it on the button release? If so where do I put the function?
This is the code so far :
on (release)
{if (move == 300) ){
setProperty ("move", _y, "300");
}else {
setProperty ("move", _y, "100");
}
Key Release
Hi!
Does anybody know if the Flash4 can understand a "Key Release" situation... If really exist this command or we have to simulate it.
Im making a 'Racing Game' and I need to know when the player isn't accelerating.
Ex: <Up> Key pressed = Car Accelerate
<Up> Key released or
< > No Key Pressed = Car Slow down.
Thanks a lot!
=Carlos Moffatt=
http://www.vocevai.com.br
On The Release Of A Key......
i'm trying to make a game where a guy guys runs across the screen, but i have a problem. I can make the guy run, but i want him to be able to stop when you release the key. How can i use an effective way of making him stop when you let go of the key.
thanks......
On(release){........
on(release){
DoSomething(_parent);
}
Please any one tell me what does this script do,
As I have a menu made of duplicated button with the script new array=....,
but I couldn't make the buttons to go to different urls
I think this script which is found in the script of the button is responsible for making links to all the duplicated
buttons
Please help me ...
I need this Urgent
Where To Put On(release)?
Hello!
I have a movie, which contains and moves a button, both in the library (because I use ActionScript to put several instances of it on the stage).
Now I simply want to the button to go to an URL when the user presses it:
On(release)
{ getURL("/mypage.htm")
}
But where to put my On(release)? This works fine, when I put the button directly on the stage (and then selecting Right Mouse->Actions). But in the button itself it seems not to work, and it also seems not to work in the movie.
Any ideas?
Martin
On (release)
I have a flash movie that I have published as a .exe. I have a button and the action is on release geturl I want to add a gotoandplay with this also. Is this possible?
For example
on (release) {
getURL("www.url.com");
gotoandplay(2);
}
What am I missing?
Thanks in advance
No 'on Release'?
hey
im pretty new to MX (well flash in general) but MX is what ive got...got a button problem linking scenes, ive read other queries and tried them out on my machine, still no luck..
ive no 'on release' on mine, i have 'on release(button)' also i
dont have this '_root' people go on about' also ive tried putting frame labels at the start of each frame in the scenes, still no luck.. what's going on?
mx users in the house?
Release On
I'm obviously a beginner, will someone please tell me where to find the "on release" action script and the "mail to" script. Thanks!
On(release) A Better Way?
Had set up my AS for buttons (code below) so a default mc would playin main stage when mvie loads and when user has rolled out of buttons. However, I need it so user can click on button to view scrollable text or interact with another mc.
As you can see below, the script has it so when user rolls out of button (wheter they clicked or not) default movie plays.
What's a better way so mc's stop until user wants to go back?
------------------
on (rollOver) {
gotoAndPlay("1open");
_root.mainStage.gotoAndPlay("stop");
_root.SuperPlay.gotoAndPlay("SuperGo");
}
on (rollOut) {
gotoAndPlay("1close");
_root.mainStage.gotoAndPlay("begin");
_root.SuperPlay.gotoAndPlay("SuperStop");
}
on (release) {
_root.mainStage.gotoAndPlay("stop");
_root.SuperPlay.gotoAndPlay("SuperStop");
_root.SuperText.gotoAndPlay("SuperText");
}
------------------
Thanks
On (release)....
on (release) {
function....;}
handles a single mouse click. is there a similar process for a double mouse click?
i would think flash would implement easier actionscript for such a popular option rather then checking time (milliseconds) between clicks.
Key Release
Is there a simple way to detect when a key is release (and not using an on() event handler) ? I found a tutorial on how to do it in flash 5, but that's know good and also the example took like 3 seconds to detect the release! And also I searched on google, but the dang engine omits the word 'on'!! Argh!
Key Release?
Is there any form of keyrelease? Im trying to script a movie clip so when you press a key, it goes to one frame, but when you release the key, it goes to another frame. If there is no keyrelease, is there any other way to script this?
After On(release) {
alright I have some buttons and this rugged dotted line to the right of em, and when you roll over the buttons, the text gleams a bit and the area near that button is lit up a bit, and after you click the button, I want the text to change colors and the lil dots next to it to change colors until a different button is pressed, how do u do that?
On(release)
ive used a movie from flashkit as part of my navigation.
when i direct one of or any of the buttons to a url in this case a stream it works no problem.
when i direct the button to another scene it doesnt work.
what am i doing wrong
please and thankyou.
On (release) {
im trying out a password application done in flash. it has an external AS file and External text files.
if i place the text and AS files on my server and place the password application within a projector file which the client woudl have what method would i use to link from the projector to the text/AS files
this is the script attached to the enter button after you enter your details.
on (release) {
hitRoutine();
}
this script is in the main time line running from frame 1. this reads from the txt file so maybe adding a geturl or something to this would make the movie look to the server for the AS file
#include "script.as"
any help appreciated
Tap Go Release Go Somewhere Else
Since I ahven't found a way double tap. How do you make a movie clip end and got to another movie clip when you release a key. I'm pretty sure this has been answered many times. But I didn't understand the other ones.
On (release)?
I have my button to
Code:
on (click) {
// Trigger Data Source Behavior
// Macromedia 2003
this._parent.wsc.trigger();
}
So when i click it, it send me an email. But how do i add this code onto it without messing ither one up.
Code:
on (release) {
gotoAndPlay(frame10);
}
On (release) End MC
hi!
Another stupid question by me!
Is that possible to do:
on (release) play-to-end MC but skip (88) frame (example)
please help!
On Release
What is the code for when you release a button it goes to another website?
On Release Get URL
Hi,
Here is my script,
on (release) {
get URL ("home.html");
}
Here is my error,
**Error** Scene=Scene 1, layer=Buttons, frame=232:Line 1: Statement must appear within on handler
getURL("home.html");
please advise
dmd
On Release
I would like to upload a swf file to a flash movie using buttons to do so.
I know that I have to create an empty movie.
Can anyone tell me the script needed for the button to upload the file?
On Release
Hi,
When my page loads, an outline fades in.
When I click on button 2, I want the outline to resize smaller.
When I click back on button 1, I want the outline to resize back to the original size.
I want to tell the button that if the outline is on the "released" state already, don't go to the frame label "released", but if it's on the "out" state, THEN go to the "release" state.
Here is my code:
menu_one_mc.onRelease = function() {
stick("menu_one_mc");
myPicLoader.contentPath = "clients.swf"
outline_mc.gotoAndPlay("released");
};
menu_two_mc.onRelease = function() {
stick("menu_two_mc");
myPicLoader.contentPath = "contact.swf"
outline_mc.gotoAndPlay("out");
};
menu_three_mc.onRelease = function() {
stick("menu_three_mc");
myPicLoader.contentPath = "promos.swf"
outline_mc.gotoAndPlay("released");
};
[F8] Key Release
Is there such a similar stament to get something like this (not correct)
if(Key.isReleased(Key.RIGHT)){
.....
On Release Get URL
Hi all,
1.) I have the following exact code for a button in a keyframe on the timeline (not in the button itself and of course excluding the quotes)
"
on (release) {
getURL ("www.yoursite.com", "_blank");
}
"
and I get the following error when I try and preview in Flash CS3
1087: Syntax error: extra characters found after end of program.
2.) Also, I have another layer with a "stop" action taking place at the same time that this button occurrs, however, once I have the script in the keyframe for the button, it seems to override the stop action. So, basicly, IM looking to stop the movie and get this button to, once clicked, open a web address.
Thanks all!
On Key Release?
i have some code for making a man move, and when he crouches, he wont go back up when its released
PHP Code:
if (Key.isDown(Key.DOWN)) {
this.gotoAndStop("crouch");
crouching = true;
}
i cant use else, because that would nullify all the other if Key.isDown statements. does anyone know some code for making an if statement based on when the Down key is released?
Get URL And On Release Help
Okay tell me whats wrongwith this code:
brochurerightunder.onRelease() {
getURL("http://www.google.com, _self");
}
I have this on its own actions layer, but it gives me an error...whats the matter?
On Release -won't Release
On(release) won’t release
I’m new’ish to ActionScript, so there must be something basic I’m doing wrong. I’m working in Flash 8. I’m trying to create a dragable object. I put the image I want to drag in a button. Then I placed the button in a MovieClip. Then I place the move clip at the root level of the main stage. It worked fine for one object. Then I created 3 more objects following the same steps and copying the code. I can drag the additional MovieClips, but they won’t stay in place when I release the mouse. If I can manage to click something else, they will stay in place. (The original MovieClip I created still works fine.) I put a trace on the “on release” command. It reportsfine on the movie clip that works, but does not report at all on the other MovieClips.
Here is the script attached to every button in each MovieClip.
// ==========Begin button script =========
on (press) {
startDrag(this, true, 314.8, 343.5, 700, 343.5);
}
on (release) {
stopDrag();
}
// ===== END SCRIPT ======
// ======================
I’ve also tried…
// ==========Begin button script =========
on (press) {
startDrag(this, true, 314.8, 343.5, 700, 343.5);
}
on (release) {
this.stopDrag();
}
// ===== END SCRIPT ======
FYI the swf can be seen at
http://www.mrwaynesclass.com/test.swf
The .FLA files can be found at
http://www.mrwaynesclass.com/testfla.zip
Thanks in advance for any help
On(release)
At my job I make banners all day long.
My question is, what the heck is THIS used for...
they tell me to place this code on the button over the banner.
Code:
on(release)
{
getURL(/:clickTAG, "_blank");
}
and other times they tell me to use...
Code:
on(release)
{
getURL(clickTAG, "_blank");
}
what the HECK is that "/:" thing, and what is it used for? If it's published under AS 2.0 its an error, but if its under AS 1, how I requested to publish it, then it works.
I almost think that its just an error this company has been making a long time, and for whatever reason it has been working anyway....
i know quite a bit about actionscript, but this thing, i just do not understand... please help!
On Release
Hi. I am a student and also trying to get to grips with ActionScript but I've become stuck!
Ok the situation: the document I am making is like a portfolio or DVD menu.
I have 4 rollover buttons. I also have a movie clip which is not in the workspace but is in the library.
What I want to achieve is that when one of the buttons is clicked the movie will be called to the canvas and played. This is going to be my way of transferring from one page to another within the portfolio.
The code I have for the button is:
on (rollOver) {
_root.mouse_over_button2 = true;
}
on (rollOut) {
_root.mouse_over_button2 = fstartlse;
}
on (release){
}
I'm pretty sure the code I need goes in the on (release) brackets but I have tried numerous bits of code none of which seem to work.
Any help would be brilliant.
Thanks
|