Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Actions To Components Buttons


Someone can tell me how to give actions to a component button, the component is from Flash MX and its name is pill button. thanks




FlashKit > Flash Help > Flash MX
Posted on: 02-15-2003, 04:23 PM


View Complete Forum Thread with Replies

Sponsored Links:

Actions To Components Buttons
How can I given actions to buttons components??

View Replies !    View Related
Actions On The Main Page..do They Affect Actions On Movie Buttons?
ON the home page I've created, the buttons I used with the code in my previous thread ("two questions about HTML publishing and buttons"), I added an on rollover action to the actions layer of the main timeline (not the movie button timeline) so that on rollover, a picture would change according to the button that was rolled over. I did this for all three buttons. The rollover action works great, but now the links don't work in either the html OR the swf version. Would the added action disable the movie-clip button actions? Here's the added main timeline code, edited for space: photobtn_mc.onRollOver = function() {
gotoAndStop(2);
photobtn_mc.onRollOut = function() {
gotoAndStop(1); ( Again, help is greatly appreciated!)

View Replies !    View Related
Applying Actions To Components
I have a button, that is a component to add paypal compatibility, which is awesome, but I have 1 snag I need to iron out.
my entire site is self contained (700px by 700px), so there's no scrollbars and so when someone clicks the "buy now" button, and is redirected to the paypal page, there's no scrollbar there as well... what would be the easiest way around this? could I add an action to the component to make that pop-up in it's own resizable window? I guess the problem is that since the button's a component, I don't know the url to put in the getUrl action... any ideas??? thanks...

View Replies !    View Related
Adding Actions To Components
I have a button, that is a component to add paypal compatibility, which is awesome, but I have 1 snag I need to iron out.
my entire site is self contained (700px by 700px), so there's no scrollbars and so when someone clicks the "buy now" button, and is redirected to the paypal page, there's no scrollbar there as well... what would be the easiest way around this? could I add an action to the component to make that pop-up in it's own resizable window? I guess the problem is that since the button's a component, I don't know the url to put in the getUrl action... any ideas??? thanks...

View Replies !    View Related
Buttons Whos Actions Depend On States Of Other Buttons -HOW?
Hi,

I’ve made a 3D animation as a background to my homepage, and have imported it into Flash CS3 as a series of still TIFF images (one image on each frame).

Now I am looking to control this animation using a series of 9 buttons. At the moment each button does the following:

Button1: Play frames 01 – 20. Stop.
Button2: Play frames 21 – 30. Stop.
Button3: Play frames 31 – 40. Stop.
…etc.

However, I want to make each button’s action dependant on the states of the other buttons:

When the user presses any of the 8 buttons other than the one that is currently engaged, I want the animation relating to the button that is currently engaged to be played in reverse, and then the animation belonging to the button that has just been pressed to be played!

For example, if Button 1 has been pressed, then the user presses Button 2, I want frames 20 – 01 and then frames 21 – 30 to be played. Another example; Button 3 is engaged, user presses Button 1 – frames 40 – 31 should be played and then frames 01 – 20.

If anyone could help me with the ActionScript to perform this (ideally AS3 but AS2 is fine) then I would be extremely, extremely grateful.

Thanks in advance for any comments.
Ben.

View Replies !    View Related
Buttons Whos Actions Depend On States Of Other Buttons -HOW?
Hi,

I’ve made a 3D animation as a background to my homepage, and have imported it into Flash CS3 as a series of still TIFF images (one image on each frame).

Now I am looking to control this animation using a series of 9 buttons. At the moment each button does the following:

Button1: Play frames 01 – 20. Stop.
Button2: Play frames 21 – 30. Stop.
Button3: Play frames 31 – 40. Stop.
…etc.

However, I want to make each button’s action dependant on the states of the other buttons:

When the user presses any of the 8 buttons other than the one that is currently engaged, I want the animation relating to the button that is currently engaged to be played in reverse, and then the animation belonging to the button that has just been pressed to be played!

For example, if Button 1 has been pressed, then the user presses Button 2, I want frames 20 – 01 and then frames 21 – 30 to be played. Another example; Button 3 is engaged, user presses Button 1 – frames 40 – 31 should be played and then frames 01 – 20.

If anyone could help me with the ActionScript to perform this (ideally AS3 but AS2 is fine) then I would be extremely, extremely grateful.

Thanks in advance for any comments.
Ben.

View Replies !    View Related
Buttons Actions...
I have these buttons that make up my menu on my website. I also have scrolling text box. Is there a specific action I can use to make the buttons load the content into my text box.?

View Replies !    View Related
Actions For Buttons?
Hi
I'm trying to make an easy stop and go button for my movie clip. But I can't add actions when they are 'hit'. Can somebody help me, to explain how to do this.
THX
Sunny

View Replies !    View Related
Actions On Buttons
I've created a button. It has been used all over my movie. I have now decided to add an action to that button but dont want to have to add it to all its instances and dont want to create a button within a button with an action attached to it as that would mean swapping the button instances with the 'actioned buttoned' instances.

So basically what i want to do is create an action that is universally throughout the whole movie associated with the button. so a movie script [like you can do in lingo] that states that whenever button x is hit action x occurs.

anything? anyone?

thanx

Reem

View Replies !    View Related
......actions To Buttons?
ok, i know that what i am about to ask is funny to most of you...but i have almost no idea about flash, although i use some features to support Director8.5..

I want to create a button in flash and then place it into director(u know flash creates great graphics...).The prob is that i do not know much things about creating a button/ i have a book that explains about hit/over..etc states but i do not know how can i apply an action to it..

thanx all in advance

View Replies !    View Related
Buttons-actions
ok so i have a button in scene 1 an on release goto scene 2 what must i put in the keyframe of scene 2 to make it play i thought " ofcourse " play well that dont work.

Please help

View Replies !    View Related
How To Use Actions With Buttons?
I simply need a button to go to a different scene, frame 1 when I click it. What action to I use? Where do I put that action? Do I put it on my over frame? Do I put it on my down frame?

If I use the "onRelease" action, what should I put as my object? It's all very confusing to me but everyone seems to know how to do it. Can someone please clue me on on this, the most simplest of Flash actions?

View Replies !    View Related
Actions And Buttons
I have been trying to apply actions to a button. I put a simple button in one layer. In the second layer, I have a movie. (yes, i got this from a tutorial). In frame 1 of the button layer, i applied the following actions:

on(rollOver){
tellTarget("buttonover"){
gotoAndPlay(2);
}
}
on(release, rollOut){
tellTarget("buttonover"){
gotoAndPlay(3);
}
}

everything is laid out right, but in the output window i get the following error:
"Scene=Scene 1, Layer=button, Frame=1: Line 1: Mouse events are permitted only for button instances
on(rollOver){

Scene=Scene 1, Layer=button, Frame=1: Line 6: Mouse events are permitted only for button instances
on(release, rollOut){"

As far as I can tell, I am applying this to an instance of a button. I messed with trying to do this in Flash MX before finding this tutorial. I did the tutorial to a "T" in both MX and 5. Both gave the same error.

A Thousand Thank You's for your help.

View Replies !    View Related
Actions In Buttons
Hey all!
Is it impossible to put the action:

on (release) {
nextScene();
}

in a button that follows a guide inside a movieclip?

View Replies !    View Related
Buttons And Actions...
Im having some trouble with having a button open up a seperate window for a website...im not too sure on the actionscript so if anyone could help me out that would be greatly appreciated...thx

View Replies !    View Related
Actions For Buttons
So I'm guessing this has an easy answer but haven't been able to find it on my own.

I've created 4 buttons that are in a horizontal line. Which ever the user selects moves to the far left and the other 3 move to the right. I've set up all possible scenarios of going from one button to another to another. The problem is I can't figure out the proper actions to take from scene 1 to 2...stop at the end of 2...select a button that will take me to 3...stop at the end of three...select 4...etc.

I'd appreciate any help!

Thanks!

View Replies !    View Related
Actions To Buttons - HELP
Hi I downloaded the attached .fla icon menu and I'm trying to associate actions to the buttons. Like "about me" goes to about.html. The problem is I cant figure it out. Any help would be appreciated.

thanks in advance

View Replies !    View Related
Actions For Buttons And Mc's
Hi everyone

I have this small problem with writing actionscript for buttons (take the "home" button for example) . What i need to do is tell the button to play two movieclips at the same time when the button has been clicked. these movie clips arn't external swf files. they are just sittin there in my library but i cannot get them to play when they are meant to. The two m's are in another movie clip. it looks sorta like tiz mc_1>mc_2 & mc_3. so you see i have the two movie clips in the mc_1. (frame one i have the mc's for the home button, frame two i have the mc's for the music button ect) All i need is a code which would open the two home mc's and play them when home button had been clicked.



If this is a newbie question please let me know and i'll go post at newbies.

Any help would be much appreciated

View Replies !    View Related
Buttons Actions?
im a newbie in flash, so I was wondering how you would get a button to load a url in a new window after being clicked on.

So far I have tried the following code on the first frame of the button.


on(release) {
getURL(http://google.com, '_blank')
}

It says the above has two errors wrong with it. I'm sure many of you know already what they are.

I know how to make a button, just not how to make it do things. Any help would be appreciated. Just trying to learn Flash.

View Replies !    View Related
Buttons / Actions
Hello
Pretty new to Flash, but used to be able to work one of the older versions some time ago. I'm now working with Flash MX 2004, which seems very different to the version I know. The basic animation and timeline etc is the same, however I cannot get the buttons to work.

All I want to do is to press a button and have it link to another scene. The code I'm insering is :

on (press) {
gotoAndPlay( "cards" );
}

This sometimes works, and sometimes doesn't! Seems very temperamental! When I link the button to go to the next scene, I use this:

on (press) {
nextScene();
}

This works every time, but I need to have more than one scenes!
Please help!!
Thanks.

View Replies !    View Related
Buttons And Actions
Hello,

I'm trying to do a book layout site so, upon clicking a link, the page turns and you go to a different scene. I have 2 page transition movies as 1 page has a totally different bg.

My question is, how can I tell a button to play a movie clip (or scene) and then go to another scene? (I must be able to change the 2nd scene)

In other words, click, play the appropiate pge transition and then go to the appropiate scene?

Thanks for the help,
Polett.

View Replies !    View Related
Buttons Actions?
Hi, I want to resize a movie clip with ease and I place this code in the first frame:

h = 1020;
mc.onEnterFrame = function() {
mc._height += (h-mc._height)/3;
if (mc._height == h) {
delete mc.onEnterFrame;
}
};

And after I delete the onEnterFrame.

Then I want that a button that I have on the stage, when it's clicked, resizes again the mc.
What code should I write on the buttons actions to start again the function?

Thanks in advance

View Replies !    View Related
Can't Add Actions To My Buttons
Hello, this might be a stupid question to some of you but I can't seem to add any actions to my symbol buttons.

When I select my button, the actions window displays this message "Current selection cannot have actions applied to it".

I seem to only be able to add actions into frames, however, when I download movies from flashkit and buttons have actions I am able to copy them into my movies and edit the actions...grrrrrr, help, help, help, I don't to have to do that every time I want to add a button into my movies.

View Replies !    View Related
Add Buttons In Actions
Probably the most stupid question of this forum, but I created a menu with a few buttons (symbols). When I go to Actions I can't see this items under Scene 1. How do I get them their so I can put some code on every button.

THX

I'm using Flash CS3 Pro.

View Replies !    View Related
Actions To Buttons
Hi there,

I`ve got some simple text buttons animating in across the page. Once they are in place I want to be able to click on one and bring up a section of text on the same page.

I`ve turned the text into a movie clip and put it inside the down state of the button. This works when you click on the button but only if I keep the button pressed down.

How do I apply the action to the button to enable me to click it once and have the text remain visible until my next choice.

My ActionScript knowledge is very limited so I would appreciate a more detailed reply.

Thanks

Toner

View Replies !    View Related
Dynamic ACTIONS To Buttons?
I am playing with a open source file
which is a dynamic drop down menu

which can be seen at http://www.exile.com.au/ac3/

my question is how can i give these buttons actions?
to go to different HTML pages

can anyone help?

the code in the drop down menu movie is

onClipEvent (load) {
// -- set up names of main items here
// -- you can add as many new sections as you want (or your computer can handle)
mainSections = new Array("Home", "Activites", "Regional Activites", "Communications", "Research");
// -- one array for each main Section -
subSection0 = new Array("what do we do", "Structure", "Staff");
subSection1 = new Array("Financial Services", "Manufacturing", "Mining", "CRM", "Digital Asset", "Facilities");
subSection2 = new Array("Hunter", "Illawarra", "Western Sydney", "Central West", "Technology Diffusion");
subSection3 = new Array("Reports", "Presentations", "Press Realeases", "Newsletter", "Events");
subSection4 = new Array("Education", "Visualisation", "ComputationalFinance", "Research Areas", "CRC");
// --
// --
// -- build the main buttons
for (i=0; i<mainSections.length; i++) {
attachMovie("mainButton", "main"+i, i+100);
myButton = this["main"+i];
myButton.subs = this["subSection"+i];
myButton.button.value = mainSections[i];
myButton._x = myButton._width*i;
// -- build subsection buttons for each main button
for (x=0; x<myButton.subs.length; x++) {
myButton.attachMovie("subButton", "sub"+x, x);
mySub = myButton["sub"+x];
mySub.button.value = myButton.subs[x];
mySub.button.outYpos = myButton._height+(mySub._height*x);
}
}
// -- function that opens the subsection on rollover
function openSubs (target) {
for (i=0; i<this[target].subs.length; i++) {
subMenuCounter = 0;
this[target]["sub"+i].button.newY = this[target]["sub"+i].button.outYpos;
currentOpen = target;
}
}
// -- close subsections function
function closeSubs (target) {
for (i=0; i<this[target].subs.length; i++) {
this[target]["sub"+i].button.newY = this[target]["sub"+i].button.oYpos;
}
}
// - this is the fuction you would change to load content, or add more functionality to the buttons
function doSubSection (target, sub) {
_root.currentSelection = target+" "+sub;
closeSubs(currentOpen);
}
}
onClipEvent (enterFrame) {
// -- a timer that closes the menus after a certain amount of time
subMenuCounter++;
if (subMenuCounter>1000) {
closeSubs(currentOpen);
subMenuCounter = 0;
}
}
onClipEvent (mouseUp) {
// -- this closes the curently open submenu if the user clicks outside of the menu
if (!this.hitTest(_root._xmouse, _root._ymouse)) {
closeSubs(currentOpen);
}
}

View Replies !    View Related
Buttons With Multiple Actions
Hi There,

I'm creating a flash web site and am having a few problems. I have a main page with four buttons along the bottom. Also on the time line are four movieclips which are the other pages. When I click the first button, The first movieclip begins which slowly builds up parts of the page. It then has a stop action once the page has got to where I want it. After this stop action, the movieclip continues and dismantle's the page. I am trying to get it so that, once a movieclip has got to that stop action, when you press a different button it will finish the movieclip that is displayed(closing that page) and then run the first part of the other movieclip.

Any ideas how to do this?

Hope this makes sense (I'm having trouble explaining this)
I've spent ages creating all my pages and just can't figure this one out, so please, any help is greatly appreciated.

ps. I'm using Flash 4, and have little programming experience, so if you could reply in simple terms, that would be great.

Cheers

Ben

View Replies !    View Related
What Actions Do I Assign To My Buttons?
I was wondering, if im making a website entirely in flash
what actions do i put on my buttons????
for example, if i click on button "#1" it plays an animation and if i click button "#2" an animation plays closing button "#1"'s animation. (confusing isn't it??)

i would be most thankful for any replies i receive

View Replies !    View Related
Assigning Actions To Buttons?
I want to create an image that rotates across the screen and stops. and then have it rotate back into its orginal position. That part i have already completed. I want users to be able to start this movie with a button underneath the image and get it to the first stopping point. then be able to click on the button again or another button and get the image to go back to the orginal position. I am not sure what type of symbol the button should be and/or what type of scripting i need to do. I hope this question makes sense.

View Replies !    View Related
Actions To Buttons Greyed
I have been trying to assign an action to a button in flash 5 but the 'on mouse' event is constantly greyed. Even if I go into Expert mode I get an error in the script. (Mouse events are permitted only for button instances, on (release) {

View Replies !    View Related
Assigning Actions To Buttons
I have a problem. When I d/l a fla file from this site, and try to assign actions to buttons, it wont let me do it. When I double click on the "hit" portion of the button, it pops open the action window, but I can not select any actions to assign, all the options are faded, and non-selectable! Help!

View Replies !    View Related
Adding Actions To Buttons?
Hi again

Ok I got the buttons working all fine.
But now I want to add AS to them. Im using Flash Mx, and I blame the new interface for most of my problems LOL!

Ok heres the script im using.

------------------------------------------
on (rollOver) {
gotoAndStop(85);
}
on (rollOut) {
gotoAndStop(65);
}
-----------------------------------------------

Now that works all fine and what not. Problem Starts when I goto the next button add the same AS but i change the
85 to 86.
for some reason I am unaware of it changes the first buttons AS to that of the second buttons AS.

I hope that is easy enough to understand.
I need each button to gotoand stop at a different frame and its not working right

Thanks in advance

View Replies !    View Related
Adding Actions To Buttons. How?
Hi
How do I add actions to buttons?
WHen I edit a button theres 4 frames:
Up Down Over Hit
But when I want to added an action to hit It would say current selection cannot have actions applied to it.Any ideas?
Thanks
Metal Fusion

View Replies !    View Related
Assigning Actions To Buttons
Hi, I'm trying to assign simple actions to simple buttons in Flash 5. I create a button symbol and when I right click on the hit state in the button-edit mode, the actions are all greyed out. What am I doing wrong???
Please, please can anyone help?

View Replies !    View Related
Giving Buttons Actions..
is it possible to give a button more than one action after it's pressed?? So after pressing the button, it loads a movie clip and then plays another one after it's done.

View Replies !    View Related
Asap Buttons Actions - Help
I have created a menu using the infinite menu tutorial in flash 5, but none of the buttons properties work (well, they enlarge when scrolled over as they should, but the actions such as going to the requested scene doesnt work).

can anyone help?

View Replies !    View Related
Combined Actions On Buttons
Hello
I'm trying to design a flash interface which looks like a computer interface somehow.
The buttons are file icons with the files names underneath.
As the viewer loads the animation the file icons are all in a mess on the "desktop".
I want to apply the following actions to each file :
1 - As the viewer rolls over one of them a tooltip appears following the mouse and giving details about the content of the file.
2 - The viewer may also click and drag the files to move them.
3 - If he double clicks the files, a url is called.
4 - An other button should force all files to "snap to grid" to tidy the "desktop"

That may be quite a lot in one question but I guess it better if I explain the whole thing at once it'd be really great if someone could help me solve this.
Thanx a lot if you can help me out of this actionscript nightmare!
Best
KomaOne

View Replies !    View Related
Unable To Add Actions To Buttons
I am not sure if I turned something on or off by accident but for the last week I am unable to add any actions to my UP, OVER, DOWN or HIT frames in my buttons... Any ideas?


Thanks

View Replies !    View Related
Adding Actions To Buttons
I have 5 buttons with the action script

on (press, release) {
gotoAndPlay("scene3", 1);
}

the problem is that each of these buttons should go to a seperate movie in a seperate scene. This does not happen. When I test movie the intro and main menu appear, roll overs work, but nothing will happen when I click on a button. Is there something I am leaving out?

View Replies !    View Related
Assigning Actions To Buttons
i am a noob to flash even though i have been using it for a couple years now but i am stumped. i am trying to make a drop down menu box and when i attempt to assign an action to one of the buttons within the menu, it says i cannot add actions to the current selection. i have tried adding actions to the button within the editing window and in the scene but it always says i can add actions. any sugestions would be greatly appreaciated.

thanks

View Replies !    View Related
Preset Actions For Buttons
I have always been just a designer. I want to learn how to do actions for buttons, etc... I've been slowly translating the outdated tutorials for flash 4 and 5 up to my trial version of mx. the tutorial link below refers to preset button actions? I can't find them please help me anybody...!

http://www.flashkit.com/tutorials/In...a-17/more3.phphttp://www.flashkit.com/tutorials/In...a-17/more3.php

View Replies !    View Related
Applying Actions To Buttons.
This may seem a little infantile to some of the more veteran Flashers here but I need help making my buttons work. I do not know how to make my button on click goto and play a certain frame. I have tryed going to the button editor but it keeps telling me that the object I have selected cannot have actions applied to it. I am using Flash Mx 2004. Thank you for your help.

View Replies !    View Related
Actions On Buttons In Dragable MC
Hi

How do i add actions on buttons in a dragable MC ?

Im makeing a map and on that map i use a "ruler" (to measure distance on the map). Ive made it so the ruler can turn in different directions by clicking on 2 buttons. I can easily make it into a dragable MC, but when i do that the buttons wont turn the "ruler" ... when its not dragable the buttons work.
Hope someone can help me

W

View Replies !    View Related
Actions In Buttons In Flash Mx
I'm trying to insert an action in a button "Up" state
but the actions pane reads:

"Current selection cannot have actions applied to it"

I tried flash 5 and flash MX but both give me same message and I know it can be done, because I've seen it done before.
Does anyone know how it can be done?

View Replies !    View Related
How To Disable Buttons & Actions?
This is what I want to create:
When I press a button I want show a half-transparent
layer over the whole site and disable all buttons and
actions that are underneath that layer...
How do I do that?

Thanks

View Replies !    View Related
Buttons,actions And Frames
is there any action that i can aply to a button so that it plays only specifyc frames (useing no actions on the frames whatso ever, but only on the button), like gotoAndPlay (1to10,14to21) () or something like this?????????? if yes and u know pls tel me. thanks!!!!

View Replies !    View Related
Buttons - Multiple Actions
I am using MX
I have a drawing of a button (built as a button) and a light bulb (built as a MovieClip). What I want to happen is for the user to mouse over the button and the light to go on, then push the button and the light will go on, press the button again and the light goes off.

I have the mouse over down

on (rollOver) {
myMovie.gotoAndStop "On";
}

Just having a little trouble putting a combination of actions together.

View Replies !    View Related
Buttons With Multiple Actions
I'm new to actionscripting and am trying to get it so that the first time a button is pressed it attaches a movieclip to the stage, after that whenever it is clicked it takes you to the next frame of that movieclip: I can get it to attach the movieclip but I can't seem to get nextFrame to work at all.

This is my script:
code: on (press) {
_root.attachMovie("shirts", shirt, 1);
_root[shirt]._x=100;
_root[shirt]._y=-187;
}
on (release) {
shirt.nextFrame();
}

I know its probably a simple problem but its really got me stuck, so any help would be appreciated.

View Replies !    View Related
Why Cant I Give Actions To Buttons?
I feel stupid asking this because ive made buttons befor but for some reson I cant make them. Ok so I create the buttons, then I put a keyframe on the "down" part of the buttons timeline, I hit actions (so I can make it so when it clicks down it gose and plays a frame) but it says actions cannot be aplied to it. Why is it saying this? Ive done this b4! Im useing flash 8 and I also tried on flash MX and it dident work.

View Replies !    View Related
Assigning Actions To Buttons
I have my basic site layout done, I just need to apply actions to the buttons. When Clicked, I want a graphic to appear. I have already created a movie file of the graphic appearing, but how do I link the movie file to the button?

View Replies !    View Related
[F8] Copy Buttons Actions To Use Later
I've a button that has code placed on it dynamically, I dont know what they are.

Can I copy these to a function to use later and replace then with other actions?

for instance I was trying:


Code:
copyFun = function () {
next.onRelease();
};
copyFun();
//
next.onRelease = function() {
this._parent.blind.gotoAndPlay("transition");
};
then after the transtion is finished Ic all copyFun() to try and trigger the old actions

but this calls the onRelease straight away and then doesnt remember whats it has called cos I have replaced the actions. any help?

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved