How Apply Action On Button ?
How Apply Action On Button ?I m now using CS 3. but when i try to apply Action on button the Action Screen Give this message ""Current Selection can not have actions applied to it.How i apply Action 1.0 at CS3.I want to apply following Action on Button in CS 3.on (rollOver) {tellTarget ("1") {gotoAndPlay(2);}}on (rollOut) {tellTarget ("1") {gotoAndPlay(10);}}Regards
Adobe > ActionScript 1 and 2
Posted on: 11/28/2007 03:18:11 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Button : Flash MX : Not Allowed To Apply Action
Hello all, I've been teaching myself Flash for about a month and a half and I'm definitely making progress but I've suddenly hit a small roadblock, I'm having a problem with Flash MX, or possibly some option I mistakenly hit, either way I can't figure out what I did. When I create a button and open the actions panel to add the action, the panel says that the current selection can't have actions applied to it. I've made certain that the correct object is selected and it doesn't matter if I have a button with animation or just a simple button, that's why I thought perhaps I changed some option or something. Any ideas anybody? TIA!
How Do I Apply An Action To A Layer...?
Hi All,
How do i apply an action to an image in a layer?? I want to be able to make an image visible for a few seconds and then invisible, but on a random time...not just a loop on/off type thing.
I need the script that will enable an image that comes visible then invisible randomly.
So the image is turning on/off in different time intervals.
Is this asking way too much for someone only a week old in flash ?
Cheers lads,
dvdvault
Cannot Apply An Action Script
hi...
i was using flash 8 before and now im using flash CS3.
i have created a movie clip and i want to insert this code:
Code:
on (release) {
iColor=new Color(this);
iColor.setRGB(_root.fillColor);
delete iColor;
}
but when i click on the movie clip and go to Actions this what appears:
Current selections cannot have actions applied to it...
but in flash 8 i can put the code in the movie clip...
can someone please teach me how to do this in CS3..
thankx
Can You Apply A Fade-in Action To A SetMask?
Hello,
I have an external swf that is loaded into the main.swf. I'd like to mask it and apply a fade-in action to the mask.
I can get the mask to work, but I don't know how to fade it in? I've tried adding actions to the mask itself, but it did not work. I also tried tweening the mask on the timeline and this didn't work either.
Is it possible to apply any sort of action to the setmask? If so, how could I do this? I need to apply the action to the mask, not the myContainer mc.
Mask works! But what code could I use on the setmask to get it to alpha fade?
PHP Code:
init = function () {
this.myContainer = this.createEmptyMovieClip("cont", 1);
cont._x = 160;
cont._y = 30;
this.myContainer._alpha = 100;
this.myContainer.loadMovie("picture.swf");
this.preloadJpg();
};
preloadJpg = function() {
this.onEnterFrame = function() {
if (this.myContainer.getBytesLoaded()>100 && this.myContainer.getBytesLoaded()>=this.myContainer.getBytesTotal()) {
myContainer.setMask(mask);
}
};
};
this.init();
Apply Same Action To Multiple Frames?
I have many keyframes in the same layer that I want to apply the same frame action to ("stop"). Is there a shortcut to applying an action to all of them at once instead of one frame at a time?
Same question for symbols I have in each frame - each frame has a different symbol but I want each one to have the same action command (advance to next frame on keystroke)
Thanks!
Julie
Can't Apply Button Event To A Child Swf
Anyone know how to control a child swf button from a parent swf? I need to have all my code ONLY in the parent swf; so, how would I apply an onRelease, for instance?
Here's my code: (what I think should work, but doesn't)
All swfs are in same directory, no typos on names.
childMenu.swf has a button with instance name: "buttonName"
this.createEmptyMovieClip("childSwfMovie", 15);
loadMovie("childMenu.swf", "childSwfMovie");
childSwfMovie.buttonName.onRelease = function() {
trace("you've released the button");
}
Can't Apply Button Event To Child.swf
Anyone know how to control a child swf button from a parent swf? I need to have all my code ONLY in the parent swf; so, how would I apply an onRelease, for instance?
Here's my code: (what I think should work, but doesn't)
All swfs are in same directory, no typos on names.
childMenu.swf has a button with instance name: "buttonName"
this.createEmptyMovieClip("childSwfMovie", 15);
loadMovie("childMenu.swf", "childSwfMovie");
childSwfMovie.buttonName.onRelease = function() {
trace("you've released the button");
}
Thank you!
Apply Onrelease To Child Swf Button
Hi
How do I apply an onRelease from a parent swf to a button sitting in a child swf that's been loaded using loadMovie? I've attached a couple of simple example files (parent and child). What do I have to do to get this to work?
thanks
mark
FlashMXPro2004
Apply Multiple Functions To One Button Click
Hello All,
Still kind new to AS 2.0 but getting there. I have a simple webpage (http://emattie1.dccusa.com/wai/home.swf) that I want to apply multiple actions to the buttons on this web site. When the Products button is pressed, I have a box that will come out from the left side and land on the button pressed. Unfortunately, the button won't go to the page I want it to go to. If I take out the additional code that takes the user to the appropriate page, the box works correctly. If I take out the box code, the pages goes to the appropriate page.
Basically, the code looks like this:
Code:
_root.targetx=-10;
Home_btn.onRelease = function(){
_root.box.gotoAndPlay(2);
_root.targetx = _root.Home_btn._x;
}
Products_btn.onRelease = function(){
_root.box.gotoAndPlay(2);
_root.targetx = _root.Products_btn._x;
}
Support_btn.onRelease = function(){
_root.box.gotoAndPlay(2);
_root.targetx = _root.Support_btn._x;
}
Downloads_btn.onRelease = function(){
_root.box.gotoAndPlay(2);
_root.targetx = _root.Downloads_btn._x;
}
ContactUs_btn.onRelease = function(){
_root.box.gotoAndPlay(2);
_root.targetx = _root.ContactUs_btn._x;
}
//Home_btn.onRelease = function() {
//gotoAndStop(Home);
//}
//Products_btn.onRelease = function() {
//gotoAndStop(Products);
//}
//Support_btn.onRelease = function() {
//gotoAndStop(Support);
//}
//Downloads_btn.onRelease = function() {
//gotoAndStop(Downloads);
//}
//ContactUs_btn.onRelease = function (){
// gotoAndStop(ContactUs);
//};
stop();
What I would love to see is this:
Press the "Products" button
The box comes out from the left and lands on the "Products" button
The page pauses long enough for the box to land and then transitions to the "Products" page
That's it really. Sounds so simple, yet I can't seem to make it happen. Any help is absolutely appreciated!
Thanks,
Getnoldfast
How Can I Apply A TextFormat To A Dynamic Textfield Inside A Button ?
Hi,
I have a dynamic textfield inside a button.
I load text to the textfield using a variable, I assigned _root.valvar variable to the textfield, and I change the text shown in textfield by changing _root.valvar value. That is fine.
I want to apply a TextFormat to it, because although I centered the text in design time, it is not being centered at all.
But how can I reference the textfield to apply the textformat to it ?
This is what I have:
main movie clip
button_btn ( the button)
txt_on (a dynamic textfield inside the button, which is shown when mouse is on button)
txt_off (another dynamic textfield inside the button)
I tried _root.button_btn.txt_on but that path does not seem to be right. I tried to get the path in the Actions panel directly, but it stops at the button, it does not let me access items inside the button.
Any ideas??
Thanks !!!!
Frame Action To Call Tell Target (rather Than Button Action)?
I really need a frame to Tell Target a movie clip. For some reason, I can't get a Frame Action to work with Tell Target.
I have no problem applying the same Tell Target to a button, however. Am I missing something? Is Tell Target not meant for Frame Actions?
Adding Action To Button Stops Other Action.
Flash MX.....
I have two frames, there resides on the stage a button with the instance name "blabla".
First frame actionscript is.....
blabla._y = blabla._y + 1;
Second frame actionscript is........
gotoAndPlay(1);
The button slides down the screen when published, that is the desired effect.
Problem..... as soon as I add any actionscript to the button, even just two comment slashes "//", the movement stops.
I have a feeling that there is some really basic concept that is flying over my head at the moment.
Button Triigers Action Only If Other Action Has Been Performed.
I need to make a button call an action only if another specific action has already been performed.
Here's the scenario:
I've got four MC's, each set up as a button, placed on my main stage and given an instance name.
Each MC has a stop action in the first frame. When the button is clicked the MC will begin to play simply by using this code:
on (release) {play();
Once it's off the screen (or no longer behind a mask I should say), the MC stops at a frame labeled "down" with a simple stop action. A few frames later, I have a frame labeled "up" that when triggered, will cause the mc to start again and the button/graphic that is off the screen will come back on the stage.
This works fine using the code below:
on (release) {play();
_root.associates.gotoAndPlay("up");
_root.services.gotoAndPlay("up");
_root.portfolio.gotoAndPlay("up");
}
However, I dont want the button to trigger any of the gotoAndPlay actions UNLESS the specific button has already been clicked and is off the stage.
I guess the code I am looking for would be something like this:
if_root.associates =("down") then _root.associates.gotoAndPlay("up");
any ideas?
Thanks
Where Action Fits Into Button That Has Already Some Action?
i've got this code in one of the buttons, but i want the button to be link to the 2nd frame or scene, but do't know where should fit that peiece of code
onClipEvent (enterFrame) // this action already is in main timelin
{
_y = _root.menu4._y
}
something like go(release... should it be after, b4 or within the brackets?
thanks
Auto Run Button Action Frm One Button To Another
Okay here is my problem. I have presenation where i kept different buttons & when mouse over than the popup window comes, now i want that button to show popup message to run one by one.
Please help, because I want to make that movie automatic without any click.
Thanks,
Please help
HELP Please Button Action
I have 3 movies on the timeline in their own layer, but in same frame.
I want the 3 buttons I have to control each movie.
I want to be able to do the following;
when i click on button #2, mv1 disappears and goes to mv2.
while mv2 is playing, i click on button #1 and mv2 disappears and starts mv1.
How do I do this?
As I have it now, button2 -
on (release) {
tellTarget ("_root.mv2") {
play ();
}
}
However, mv1 does not disappear, and continues playing the movie.
Please help, Anyone!! Thanks.
GW
Button Action In MC
I put a button object in a MC. The button should drive the main timeline (i used the gotoandplay command). In the command i referenced the main timeline and a label, but it doesn't work. How can i do that, then?
Thanks to anyone who can help me.
Need An Action For A Button? Help, Please
I've been trying to set an action to one of my buttons but couldn`t have.
What I need is one button that once it's clicked, opens the download message window. I want the users to be able of saving zip files, flas, etc into their hard disks. If you know how to make this (using actionscript, or javascript) i`ll really apreciate it. Thanks in advance.
Please e-mail me to: leofranco@starmedia.com
Button Action
I created a button, on mouseover I want to have a flash banner start and then on hit I want some text to appear in a box. How can I set up my actions to acomplish this? Thank you for your help.
Can You Help Me With This Button Action?
I created a button, on mouseover I want to have a flash banner start and then on hit I want some text to appear in a box. How can I set up my actions to acomplish this? Thank you for your help.
Button Action Help
I have a button that I want to assign different GotoAndPlay actions depending on which frame the scene is in. For instance, at frame 45, on release the button will take you to frame 46. But, at frame 75 I would like the same button to take you to frame 55 rather than 46. Is this possible? If so, how do I do it? Thank you.
-freakout
Button Action
I have a poup window that shows a little slide show. At the end I want a button that has an action to close the slide show popup window.
Which action is that?
Thanks,
Button Action
I have a poup window that shows a little slide show. At the end I want a button that has an action to close the slide show popup window.
Which action is that?
Thanks,
2 Button Action
I'm trying to create a Juke Box where users need to click on two (2) buttons to make a selection...causing a song to play.
I can make this happen with a 1 button action, but how do I set it up so users have to click on "B" and "4" instead of just a single button?
Thanks for the help!
Button Action
Ok, here's a dumb but vexing question.
I want to make a simple button that will take the viewer back to scene 1 (of 2) at the end of my movie. I have a stop in a at the end of scene 2 in a key frame, and my button on a separate layer on the same timeline right below the one with the stop in the frame. When I try to activate the button action, "on mouse event", the field in the action tab where the scene is, is grayed out thus not allowing me to activate the action to take the view back to the biginning. What am I doing or not doing?
-Thanks.
mwkeil
Button Action......Please Help
I recently added and ecommerce function on to my webiste. right now i have a button that has a javascript function that opens a new window. However when you go through the garment pages it downloads really slow because of the other window which has the flash animation playing and so forth.
When i close that window ....going through the garment pages run smoothly......does anyone know of a script where i can open a new window and close that window so that the pages run smoothly.......thanks
Action In Button
Hi everybody ! I have a button in my flash movie and I need to unload and close this movie when the user clicks on that button. I really have no idea how to do it. Thanks a lot!!
BUTTON ACTION
hello...
I need someone to help me out before I go to a mental institution!!!
here´s the problem....
I have a scene that starts with a door opening... then a text appears (alpha 0%-100%)... and finally 7 buttons are also shown.
This 7 buttons, each one, must go to a specific scene, but before it goes to that scene, all of them must play the 5 last frames (that makes the text desappear (alpha again 100%-0%) and the door close).
And this repeats itself on the other scene, with the same buttons, but with another kinda text, that must desappear and the door closes before goes to another scene.
HELP ME OUT HERE...
thx!
[Edited by Coca-Cool on 02-21-2002 at 02:32 AM]
What Action Do I Put On Button...
Help! I am putting my portfolio together and want to make a "more info" button that will open a scrolling text box movie clip instance. Problem is, I can't figure out what action to put on my button. I've been searching around. It's not loadMovie cause it's not a swf, so what is it? Any help sure is appreciated.
Button Action
Is it possible to program a button to go to and play a sequence of frames: for example 2-5 without putting a
stop action on frame 5?
I could use movie clips but it would mean making 64 movie clips instead of 8 buttons that could be on their own layer.
(Hard to explain without seeing what I'm doing.)
Button Action ?
is it possable to have a set of buttons tied into different layers so that button 1 will cuase layer one to play and so on?
Button Action
I am making a flash movie that is like a tutorials it will run for about 4 minutes from begining to end. now there are some buttons in it that will open and give an a definition of something if the person needs something explained durring the flash movie. What I want is that when someone clicks on a button it will pause the movie, then the window with the text will open and then when they click close on the window it will go back to the flash movie exactly where it was when they clicked the button. kinda like put on pause, thats all. the window that will open up will just be a little box with words that will overlay a small part of the movie.
How can I do this, does any one know
to see what I am talking about here is the address to what Ive got so far my project
The yellow boxes are the buttons that I want to make with widows that will come up. as you will see I have only begun to work on the buttons. I got stuck.
YOur help will be most appricieated
Thomas
Button With More Than One Action
i'm making a cd-rom for a friend and i need to have the buttons do 2 things:
1) gotoandplay the rest of the current movie so it can fade out, and
2) load and external .swf for whatever page is linked to that button.
I can do each independently, but can't figure out how do do both. any help?
Button Action? Where?
Hi i just switched to Flash MX and for some unknown reason i cant find where to put the action/link in a button????
if i create a button (the usual 4 frames) in the frame 3 (mousse over)
i have made an animation... so the button change color..nice...
and on the Down frame i have put a sound...nice.. :-)
on the down frame i also wanted to put the action/link to make the button work. The thing is that Flash tells me in the action window that
"the current selection can not have actions applied to it" ???? WHY wasent that the way it was in the early version on Flash???
where do write the button action/link/url now????
please help ...so simple a thing iand i'm all lost hehehe :-)
Mirrorman
Help With Button Action
Hello, is there anyone who could take a look at an .fla and let me know what I am doing wrong? I tried to upload it and it said it is too big. The file size is 190kb. I have 3 buttons that move with actionscript just how I want them to, but I cant get them to work when I assign action to go to frame and play.
The buttons are in mc's , so if someone could take a look I would appreciate it?
Can I email it to someone????
Button Action
hi all,
im looking for a way to envoke an action, such as a gotoAndPlay, when any keyboard key is pressed.
Does anyone know the code for this as I cant find any!
Help With Button Action
Not sure how even to refer to this, so makes searching for a solution difficult.
What I have is a Button, that I have named "contact", the button contact is within a MC called "inner" on the main timeline
Now on a frame action on the maintimeline I have this action:
ActionScript:
inner.contact.onPress = function () {
trace("hello");
};
stop();
It's not working? It should according to any reference I can find, and I haven't the faintest idea why.
Thanks in advance for my mental health...
Button Action Help
I have one button out of several that all have the same actions applied "on release gotoAndStop()". Each sends the viewer to a particular frame with pictures. They all work except the one which seems to refuse to go to the frame designated. On that particular frame there is static text. The mystery seems to be short lived,indicating that perhaps with the quantity of pictures loading, I may just be trying to get the button to work too soon. The text is on the last frame of the movie.
Is this logical? Do the pictures load in sequence relative to the position in the entire site. There are no other moving parts so to speak, the entire web site is directed by the viewer clicking on buttons with the gotoAndStop actions, or next frame or previous frame or home actions.
All these buttons are taken from the common library of flash mx. Here is another question I have. Why are they all constructed to have multiple layers. Is that just a convenience for developers who might want to attach a series of actions or sound or whatever?
And I thought of a third question. Does anyone have in mind a good site to go get or buy some other styles of buttons?
Thanks
Button Action
I have a flash menu that has several sub-menus. The main menu buttons have labels (what, contact, etc.)
Now the default for the movie is to have the what label opened; so it shows like
What we Do:
Link 1
Link 2
Link 3
Contact Us:
Link 1
Link 2
the action for the main movie is such:
on (release) {
gotoAndStop("what");
}
What happens is that if someone selects Contact Us - Link 1, then the menu refreshes to its original state where the "what" label is opened and I want the "Contact label opened when a contact link is select.
The sublinks are regular action to open a page:
on (release) {
getURL("contact/link 1.html");
}
Any ideas?
Thanks for your help,
David
Button Action
I have forgotten how to make a button goto another scene completely.
I have been trying to insert a keyframe on the hit instance and it doesn't work. anyone please let me know quick, thanks...
Button Action
I have a button who has to load a movieclip on the first click and load another movie clip on the second. Does anynone know a script that can help me.
This is the script i have been working on but I don't work.
on (press) {
_root.movieload.gotoandplay(2);
}
on (releaseOutside) {
_root.movieload.papir.gotoandplay(72);
}
dp1979
Action Help For A Button
I'm trying to create a flash button that will close a pop up flash movie window then load a new html page on the original browser window.
Can this be done?
Thanks Hearse
Same Button Different Action.
heya folks.
i know this board is full of geniuses, so i would like to get as many opinions on the following topic, so if you have a particular method or some guidelines i would love to hear from you.
basically to cut down on file size and loading times etc. i figure you should reuse as many movieclips as possible.
Ok so for my menu system, im thinking of having 4 drop down menus, each with the same amount of options on each. and what ill do instead of make one drop down is to make one drop down and then reuse it for times. But what i cant seem to work out is how to approach the buttons problem. how to i give the same buttons within an mc different actions? obviously the first option on the first drop down will not have the same action as the first option on the second drop down.
How would you go about creating this menu? how would you make the same buttons in a menu have different actions?
i hope i made sense. i would value ur opinions.
bLIndchILd
Button Action
Hi,
I have three buttons in a flash 5 swf that I want to go to an url once clicked. The action works for my first button, but not the other two, though I'm using the same action code just with a different url. Any suggestions?
Down Action On A Button
Hi,
I'm creating a button with an MC aninmation for the down action, only problem is, you have to keep your finger on the button to see the animation... how can I make the MC animation play through with just a single click of the mouse?
Oh, just thought, I'm also trying to make it appear as if lines are growing out of the button but how do you tween a line? I can't put a key frame on two growth points as I can't motion tween something that's not a symbol and if I create a symbol I can't edit it unless I go in a level... shape tween doesn't seem to work either and I though about using a mask to reveal the line, but the line goes round a corner... I'm sure it's probably simple, but these tree are getting in the way of the wood...
Thanks
M
Button Action
Ok I built the site how do I click on a button and everything stays the same...except..one section of my site changes.
For Ex. your at the mains site you click on contacts...and it just morphs one part to show the cotants.
Thanks for your time.
JT
ATL
Button Action
I have some problems with the buttons on a site that I'm working on.
I got 3 buttons: Main, About us and Contact.
All the buttons works fine when I press them one time. The problem is when I press a button twice. The second time I press the button it jumps back to the previous pressed buttom.
Following actionscript is used on each button:
on (release) {
gotoAndPlay("frame name");
}
Hope u understand what I mean...
|