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




Actionscript On Buttons



I made an interface for my web site with flash. I came out with a first version to show my friends. That version worked great. I added a second scene to my "movie" and now one, and just one of all my buttons doesn't act as a button anymore (it doesn't change the cursor to a hand or play the frames it's suppose to on rollover).
My question is: Could the action scripting on the second scene be affecting the scripting on the first scene? or is the problem within flash and it has nothing to do with action scripting?
If you can answer my question or have the solution to my problem please respond.
Thank you for your time.



FlashKit > Flash Help > Flash ActionScript
Posted on: 06-12-2002, 02:38 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

ActionScript In Buttons To Reference Movie Clips Inside Buttons
I want to reference a movie clip inside a button, to use tell target on the button. Is there a way to use something like:

tellTarget (this.movieclipname) {
}

that way i can use multiple instances of one object, rather then having to make a different action for every single time i want to use it.

Help With Actionscript - Mcs And Buttons
I want an MC to be fixed on the same _y position, and I want to be able to rollover a button and the MC slide across to that button. It would be like rollover a button and attract MC to that button type of deal, but I'm not sure how to program it. Someone point me in the right direction??

Actionscript Within Buttons
Hi,

Here's what I'm trying to do...

I'm building a photoviewer with a sliding bar containing the thumbnails. When clicked, the thumbnails (which I've made into buttons) load the relevant picture (an external swv) into a blank movie clip.

I obvously want to make the transition from one picture to the next as smooth as possible, so I've built a "fade" scene into each individual pictures swv. So, when I click on a thumbnail, I want to gotoAndPlay the fade scene of the currently loaded swv, play the whole fade, and then load the next picture.

Here's my code so far...

on (press) {
_level1.instructions._visible = false;
_root.emptymc.gotoAndPlay("fade");
randomNum = Math.round(Math_random()*9999999999);

}
on (release) {
randomNum = Math.round(Math_random()*9999999999);
loadMovie ("photoviewer/individual_photos/12.swf?"+randomNum, "emptymc");
}

My problem is that the fade happens really quick, and so I want to ensure that the whole fade scene is played before the next movie loads. I also have a preloader scene on each of all of the individual picture swv's.

Hope this makes sense??


Thanks.

If Buttons Won't Do Actionscript, How Then Do I...
Hi,

I know buttons won't do an action script, but I want a simple button to click to go play the next scene. How do I embed an action in a button?

thanks so much
Deena

Help Mx Actionscript Buttons
I have an object falling from the sky to be caught in a basket. If #1 object is caught the score should increase +1
if #2 object is caught the score should decrease -1.
The score comes up in a dynamic text field named score. It will not score correctly or even all the time.
THis is the code on the basket:
onClipEvent (enterFrame)
{
var speed = 1;
var accel = 6;
var deaccel = .5;
var Maxspeed = 20;
var score = (apple.score +1)and(bomb.score -1);

}






onClipEvent (enterFrame)
{
if (Key.isDown(Key.LEFT))
{
this._x = this._x - 5;
}
else if (Key.isDown(Key.RIGHT))
{
this._x = this._x + 5;
speed *= 1.1;
}
else
{
speed = 1;
}
}

onClipEvent (enterFrame)
{
if (this.hitTest( _root.apple1))
{
_root.score = apple.score+ 1;
}
}

onClipEvent (enterFrame)
{
if (this.hitTest( _root.apple2))
{
_root.score = apple2.score+1;
}
}

onClipEvent (enterFrame)
{
if (this.hitTest( _root.bomb))
{
_root.score = bomb.score-1;
}
}




onClipEvent (enterFrame)
{
if (this.hitTest( _root.bomb2))
{
_root.score = bomb2.score-1;
}
}

//sound on bomb collision
onClipEvent(enterFrame)
{
if (this.hitTest( _root.bomb)){
basketSound = new Sound();
basketSound.attachSound("gasp.wav");
basketSound.start(3.1)
}
}

and this code is on objects #1 & #2

onClipEvent (load)
{
var speed = 5;

}

onClipEvent (enterFrame)
{
this._y = this._y + speed;
_parent.ypos = this._y;

if (this._y >=180)
{
this._y = -40;
this._x = Math.random() * 550;
}

}


Do I have a bad code or is it mixed up?

Please help if you can?

Buttons Actionscript
Hi!

After trying all possible scenarios, I am unable to load a PDF or EXE file once the button has been clicked. I have tried using the actionscript function "getURL and FsCommand" but I am still unsuccessful to load the files. Any advice?

thanks,
kumsworld

Help Please. Actionscript, MC, Buttons...
I have, in my main movie, at frame 5, a MC.
In this MC I have two buttons at the beggining and a timeline of about 80 frames.
What I want to do (and I've tried), is to make one button play the entire timeline while the other would cause pauses (stop) in some keyframes along the timeline, restarting from that point with the press of another buttom.


Example: imagine I have a MC of a bouncing ball.

I want one button to play the all movie = the ball comes from top, hits the ground and goes up again.

And I want another button to play the movie until it almost reaches the ground (stops at frame 10);

then, when I press another button (a [>>] for example), it plays from there to the contact with the ground and stops (at frame 15);

then, again with [>>], it starts going up and stops at the middle of the climb (at frame 20);

again with [>>] the movie goes all the timeline way.

I've tried variables but I've failed (global and dynamic text variables). I've tried functions but I've failed (I guess they are still over the top for me).
All I want is not having to make two MC, one with pauses and the other without pauses.

Please help. And if the solution is something I've already tried, please show me how to do it so I can learn and figure out what I did wrong.

Thanks in advance.

Help Actionscript On Buttons
I am trying to navigate to a scene from a button within a MC that sits on the root.
I can't get it to work and it's the last bug in my movie....aaah!!!!
Help PLEASE!

Thanks!
Meredith

Actionscript Help On Buttons And MCs
Hey all,

So far, I have been able to make a button load a MC onto the scene once it has been pressed, and now I want to make it so that the MC will unload if any other button on the scene is pressed. Can someone help me on this? I'm kinda new at this. Thanks.

Buttons N' Actionscript
bit of a head drainer here if anyone want to help....

This is what i am trying to achieve.

On Rollover of the MC the map expands, and then on
Rollout, shrinks to it's original size again.
Whilst on Rollover the user can curser about the map and
Rollover other buttons that can bring up info or load
another MC in etc...

This is my problem.

The smaller buttons nested inside the main MC conflict
with the Rollover state of the main MC and cause the MC to shrink
again....

anyideas how i can get around this???
Any help's great.

Buttons And Actionscript
i have 20 btns that when clicked, load a pic.swf .(pic1.swf - pic20.swf)
I have another swf that set the back ground (bg.swf) for the pic.swf’s. (a low alpha square)

What I am tring to do is, when I click on a pic.swf the bg.swf will load and stay, so when I click on a diff’ pic.swf the bg.swf will look static.

Actionscript For Buttons
Hello all..

I am trying to figure out what the actionscript is that is being used for the buttons on this website www.elinorcarucci.com.

I know how to add different movies into the stage by using buttons that are linked to specific movies, but I want to know how to make single buttons scroll through different movies 1 at a time, using whatever the next and previous movies are in the dir.

If you can help I will buy ya a beer.

thx
patrick

Buttons... And Actionscript
First... I am making a RPG game and i need help trying to get the attack to damage the enemy. When i hit a button i want the health to deplete some. I have it set up so that the health bar is a movie clip and it decrease's within the movie clip. My idea was... if the button is down then the health bar movie clip goes to next frame, how will this work? Thanks in advance.
~Trent~

Actionscript With Buttons
Hi everyone,
first things first, iv'e attached a .fla for you all to have a look at cuz what im about to type will probably be rambled and make not alot of scence.

basically im trying to create a button out of type... that when you scroll over it a coloured band grows from behind it to highlight it, and when you mouse off it shrinks back in.

with my basic knowledge i have had a crack at this and it kinda works but is a bit jerky. Also if you mouse over and mouse off real quick it gets stuck.

i would be most gratefull if you lovely people could help me out
as im tearing (whats left) of my hair out.

thanks

Sam

Actionscript Buttons
Is there any ways I can make a rectangle (MovieClip) scroll to the left when mouseover and scroll back to the original position when mouseout???

It has to be in one frame. Anyone can help?

Buttons Using Actionscript
I followed a tutorial on creating buttons with movieclips. I followed the tutorial and it works fine, but he never taught how to link to where you want to go when button is actually click. this is what I have:

b1.onRollOver = over;
b1.onRollOut = out;
b1.buttText.buttonText.text = "Back to Main Menu";

This works good. What command do I use to say when user clicks goto "main" (label name)?

my movieclip button name is b1 so is it something like:

b1.onClick {
gotoandstop("main");
}

???

Need Some Hep With Buttons And Actionscript
Hey guys,

I'm almost done with this project..there are just a few problems.

This movie is a header of a website I'm making, and I am using Flash 8.

I've uploaded the .swfs on the website so you can get a sense of the problem easily.
http://www.tormentgaming.net/testpage/works.swf
http://www.tormentgaming.net/testpage/broken.swf

Here is a link of the movie with only the first of eight buttons coded in, and it works perfectly.
http://s38.yousendit.com/d.aspx?id=1...J3QLROZRM9HYRI


However, when I duplicate this code for the other buttons, a few problems occur. One....sometimes when you rollover a button, another buttonMC plays. Second, when you rollover a button and then rolloff onto another button...the MC of the button you originally rolled over doesn't play in reverse..it just stops. This is a problem with all the buttons.

Here is the code I am using that someone on this board written for me. This makes the first button work perfectly...but then when I duplicate it and change CLIP to CLIP2, 3, etc and myButton to myButton2, 3, etc...the 2 problems above happen.


Code:
startFrame = 0;
movieclip.prototype.back = function() {
this.onEnterFrame = function() {
this.prevFrame();
// DELETES THE ENTERFRAME IF THE CLIP IS AT FRAME 1
if (this._currentframe == 1 | startFrame == 1) {
delete this.onEnterFrame;
CLIP.play();
}
}
}
myButton.onRollOver = function() {
startFrame = 1;
CLIP.play();
}
myButton.onRollOut = function() {
startFrame = 0;
CLIP.back();
}


Here is the .fla with all the buttons coded in.
http://s38.yousendit.com/d.aspx?id=0...31OWM8V13J8N54

Can someone please take a look at this and guide me to the problem? It has to be something simple!

I'm so close!!!!

[F8] Buttons & ActionScript
I'm creating an interactive flash animation in which there are five buttons (numbered 1 - 5). The idea is that when each button is pressed a corresponding number of incense sticks appears to the left of them, so when 1 is pressed 1 stick of incense appears, when 2 is pressed 2 are supposed to appear, etc. These sticks can be dragged and dropped by whoever's viewing the animation at the feet of a statue/altar, and when each stick of incense is placed in an incense holder there an aura appears around the statue, and it grows bigger as more sticks of incense are placed there.

I have it set up so that when the first button is pressed it directs the animation to frame 31 (the first 30 frames show nothing happening and have stop actions placed on them) in which the first animated incense stick appears and then the aura appears after a delay (since I haven't figured out how to "trigger" it to appear when the incense stick is placed on the altar yet, I just leave a lapse of time for someone to place the stick in).

I'm trying to make the rest of the buttons work now, and so for button two I'm using the following code: on (release) {gotoAndPlay(209);

}

to try and get the animation to start at frame 209, where I've placed a second incense stick. The thing is that when I click on button 2 only the first stick appears and it loops back the original aura tween without a delay (since 208 is the last frame of the animation button 1 leads to), so I'm not sure if this method really works or if I'm just not doing it correctly. Is there some way I can rig this, like for instance by creating a seperate scene for the button to lead to, to make it work properly?

I also don't want for the first button's animation to lead into the second one's automatically, but I can't use stop actions at the end of the first button's animation because it stops the aura tween from looping itself, so that creates another problem.

But I'd also like to create some sort of "trigger", if it's possible, so that when someone places the incense stick in the holder the aura animation starts up from that rather than being on the main timeline with a delay, but I don't know how to accomplish that. I was thinking I could make an invisible button and use a rollover code or something.

This is only my second flash animation so it's all just kind of confusing for me, so I'm sorry if I couldn't communicate the problem efficiently. I'd like to upload the file here so that there's an example to view but it's too big (1.77 mb), so if someone would like for me to e-mail it to them let me know.

Any help would be much appreciated,
Thanks,
Art

[F8] Buttons & ActionScript
I'm creating an interactive flash animation in which there are five buttons (numbered 1 - 5). The idea is that when each button is pressed a corresponding number of incense sticks appears to the left of them, so when 1 is pressed 1 stick of incense appears, when 2 is pressed 2 are supposed to appear, etc. These sticks can be dragged and dropped by whoever's viewing the animation at the feet of a statue/altar, and when each stick of incense is placed in an incense holder there an aura appears around the statue, and it grows bigger as more sticks of incense are placed there.

I have it set up so that when the first button is pressed it directs the animation to frame 31 (the first 30 frames show nothing happening and have stop actions placed on them) in which the first animated incense stick appears and then the aura appears after a delay (since I haven't figured out how to "trigger" it to appear when the incense stick is placed on the altar yet, I just leave a lapse of time for someone to place the stick in).

I'm trying to make the rest of the buttons work now, and so for button two I'm using the following code: on (release) {gotoAndPlay(209);

}

to try and get the animation to start at frame 209, where I've placed a second incense stick. The thing is that when I click on button 2 only the first stick appears and it loops back the original aura tween without a delay (since 208 is the last frame of the animation button 1 leads to), so I'm not sure if this method really works or if I'm just not doing it correctly. Is there some way I can rig this, like for instance by creating a seperate scene for the button to lead to, to make it work properly?

I also don't want for the first button's animation to lead into the second one's automatically, but I can't use stop actions at the end of the first button's animation because it stops the aura tween from looping itself, so that creates another problem.

But I'd also like to create some sort of "trigger", if it's possible, so that when someone places the incense stick in the holder the aura animation starts up from that rather than being on the main timeline with a delay, but I don't know how to accomplish that. I was thinking I could make an invisible button and use a rollover code or something.

This is only my second flash animation so it's all just kind of confusing for me, so I'm sorry if I couldn't communicate the problem efficiently. I'd like to upload the file here so that there's an example to view but it's too big (1.77 mb), so if someone would like for me to e-mail it to them let me know.

Any help would be much appreciated,
Thanks,
Art

[F8] Buttons And Actionscript?
Hello,

I have a row of buttons I want to make go larger to smaller in a very smooth way when one rolls over them. There will be about seven to ten buttons in a row.

I can't seem to find any samples of this, however I have seen it done years ago.

I also want to use the same button but a different thumbnail graphics in each.

Any help would greatly be appreciated.

Thanks

Actionscript In Buttons
Hi everyone my name is Daniel,

I would like some help. I am using Flash 8 to build a website. I have built the whole site within one flash movie by building the different sections of the site (i.e. Bio, Photos etc) along different parts of the main timeline, with each section animated in and animated out.

My problem is I have the same set of buttons in a movie clip runnig through the whole flash movie. Because each section animates out I am having trouble in actionscript saying "on release play till this section animates out then play from the begining of the new section". I have written some actionscript but it doesnt seem to work. I am a novice at actionscript but if anyone can amend it, tell me where Im going wrong, or just think of a better way to do it I would be very greatful.

p.s. I have a layer where i have named the frames on the begining and ending of each section

This code is from the Bio button

on (release) {if (_root._currentframe == "BioEnd", "PhotosEnd", "MediaEnd") {_root.gotoAndPlay("BioStart")} else {_root.play()}}


Many Thanks
Daniel

Help With Buttons And Actionscript
Okey so im new too flash and i just came across what seemed like a really weird problem. I simply converted a symbol (say an ordinary square) to a button. I now want to apply actionscript to this new button so i select it and enter the action script window, well now this is where the problem is, on entering the action script window i get confronted with this message :

"Current selection cannot have actions applied to it."

What am i doing wrong? there must be a way to put action script on buttons

Help

Help With Buttons And Actionscript
Okey so im new too flash and i just came across what seemed like a really weird problem. I simply converted a symbol (say an ordinary square) to a button. I now want to apply actionscript to this new button so i select it and enter the action script window, well now this is where the problem is, on entering the action script window i get confronted with this message :

"Current selection cannot have actions applied to it."

What am i doing wrong? there must be a way to put action script on buttons

Help

[F8] Help With Buttons And Actionscript
Okey so im new too flash and i just came across what seemed like a really weird problem. I simply converted a symbol (say an ordinary square) to a button. I now want to apply actionscript to this new button so i select it and enter the action script window, well now this is where the problem is, on entering the action script window i get confronted with this message :

"Current selection cannot have actions applied to it."

What am i doing wrong? there must be a way to put action script on buttons

Help

Actionscript 2.0 Buttons?
Hey all,

Having a bit of trouble with actionscript 2.0 in Flash CS3 PRO.

On scene 1, layer 6, frame 1 I have stopped the animation. On frame 1, I have a button with a title, I want it so when i (press) it goes to frame 2. The problem is that when I test the scene, a syntax error comes up:

1087: Syntax error: extra characters found after end of program. on (press) {

I know its something simple, what am I missing. We are just learning it.

Thanks

-Calvin

Actionscript 3 And Buttons
Right, ok, where do I start?
I've been using Flash 8 for a while now, about a year, and I became alright with the very basics of Flash, with actionscript like 'on(release) gotoandplay(67)', that sort of stuff. It's always worked for me, until I came back to college this year to discover they'd installed CS3, and now buttons dont work in the same way!
They dont teach us advanced Flash here, so forgive my basic knowledge of Flash, but I've been on some sites telling me all this stuff about Actionscript 3, using terminology I dont understand quite yet...
If you wanna know, I'm making a website, in Dreamweaver, and I'm trying to encorporate Flash into my website. I've created a file where I have small thumbnails on my page, which, when clicked, should pop up, dim the screen behind and show the full image...like you see on some websites. (The only one I can think of right now off the top of my head is www.jkrowling.com, when you click something like a newsaper and the textbox comes up and dulls out the background of the previous page). I'm not totally dumb in Flash, I'd probably be able to get this done easier on Flash 8, or even MX but for some reason I always get the message...
"Mouse events are permitted for button instances only" and it's really frustrating how my symbols are buttons. I've tried everything I can think of, and most of the scripting I've found to copy from help sites, but nothing's working now...
Thanks for reading my novel and I'll really really appreciate any help, I need to sort this out before I throw the computer somewhere.

[CS3] Why Cant I Add Actionscript To Buttons?
"Current selection cannot have actions applied to it" is the warning I get when I try to add script to my button. I want to be able to add actionscript to my button, but I figure out how to.

How do I add actionscript to a button in CS3? It was so easy in Macromedia Flash, why isnt it as easy now? There must be a way to do it, however non-intuitive it may be.

Thanks for any help!

Actionscript 3.0 Buttons
I got no answer on the other thread so I'm posting here...


I just learned how to make a button with as3. There are two things I don't understand.

1) I am using these buttons to navigate within a html/PHP site not within a flash swf site. When I click on the button it opens a new webpage how do I 'target self' so that it doesn't open another page?

2) I tried using the same function for all buttons but that generates an error so I renamed the function for each button... should I do it that way?


Here is the code for my buttons:

whats_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
function mouseDownHandler(event:MouseEvent):void {
navigateToURL(new URLRequest("http://www.commercialpitch.com/detail.php"));
}

media_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler2);
function mouseDownHandler2(event:MouseEvent):void {
navigateToURL(new URLRequest("http://www.commercialpitch.com/media.php"));
}

sitemap_btn.addEventListener(MouseEvent.MOUSE_DOWN , mouseDownHandler3);
function mouseDownHandler3(event:MouseEvent):void {
navigateToURL(new URLRequest("http://www.commercialpitch.com/enter.php"));
}

corp_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler4);
function mouseDownHandler4(event:MouseEvent):void {
navigateToURL(new URLRequest("../corporatephp.php"));
}



Here is the site I'm testing it on..
www.commercialpitch.com/indexTest.php


Thanks for you help!

[CS3] No Actionscript In Buttons?
I created a 'Flash File (Actionscript 3.0)' then created a symbol as type button. I then used the selection tool to select that button. I then went to 'Actions (f9)' and seen the message 'current selection cannot have actions applied to it'.

can I put in actionscript code into a symbol as type button when flash file i created is 3.0?

Can't Use Actionscript On Buttons?
For some reason I can't apply actions to my buttons.. any help would be greatly appreciated.



bit of background here to help put things in perspective. I opened up a blank fla Actionscript 3.0 file in Flash CS4, imported the art assets as you can see into the library, and tried making a button. In the button, I set up the Up and Down frames, and then when I tried to put some action script on there... Flash wouldn't let me.

If there's any more info needed to help solve this, let me know

[CS3] Buttons - Actionscript 2
Hey there!

I am having troubles translating my idea into visuals.

...so i created a bunch of buttons on a stage, each one once clicked zooms into a bigger image with text elaborating on it. the problem is every time i click on a button the other buttons show and overlap the zoomed image. how can i create them in a way that once clicked the other buttons won't show, or disturb the intended image? i tried putting them in one layer, distributing them... but i am running out of thought so your help would be great!

Thanks!

Actionscript For Buttons.
Im making a flash site for my annimation class and i need some action script for my buttons.
i have tried to put something like this: about_btn.gotoAndPlay then i put the frame on the main timeline i want it to go to. frame 26

doesn't work.

also, if you do have script should i put it inside the button instance? it is a button not a movie clip or graphic, soooooo.....

PLEASE HELP!

thanks,

~jen~

Actionscript On Buttons
Hi,
I am trying to find the actionscript for this one.

Button number one (top left) comes up & stops (it doesn't at the moment but thats not the problem) if one of the other buttons is pressed, I need the next record to come up as the first has, but the first one has to go down at the same time so:

so, on release, if any of the other buttons are up, play the relevant movie clip sending it back down into place, whilst moving the current button up.

The swf is on: http://www.clarewebdesign.co.uk/clients/jaffa/site.html

Thanks very much

Hayley

Actionscript Buttons
Hello all.

My actionscript for this series of buttons doesn't seem to be working with the onPress event....


Quote:




for (var i = 1; i<25; i++) {
var thumbName = _root.thumbnails["t"+"b"+i];
thumbName.onRollOver = function() {
this.wRO._alpha = 50;
}
thumbName.onRollOut = function() {
this.wRO._alpha = 0;
}
thumbName.onPress = function() {
if (thumbName === tb1) {
loadMovie("images/" + "1.jpg", "loader");
} else {
if (thumbName === tb2) {
loadMovie("images/" + "2.jpg", "loader");
}
}
}
}

Actionscript In Buttons
Hi everyone my name is Daniel,

I would like some help. I am using Flash 8 to build a website. I have built the whole site within one flash movie by building the different sections of the site (i.e. Bio, Photos etc) along different parts of the main timeline, with each section animated in and animated out.

My problem is I have the same set of buttons in a movie clip runnig through the whole flash movie. Because each section animates out I am having trouble in actionscript saying "on release play till this section animates out then play from the begining of the new section". I have written some actionscript but it doesnt seem to work. I am a novice at actionscript but if anyone can amend it, tell me where Im going wrong, or just think of a better way to do it I would be very greatful.

p.s. I have a layer where i have named the frames on the begining and ending of each section

This code is from the Bio button

on (release) {if (_root._currentframe == "BioEnd", "PhotosEnd", "MediaEnd") {_root.gotoAndPlay("BioStart")} else {_root.play()}}


Many Thanks
Daniel

Two Buttons Actionscript 3.0
hi can anyone help.

i want to have 2 buttons. Actionscript 3.0

1st button that increments up and down from 0 - 99 (no greater than 99)with every click on button 1.

2nd button that is assigned a positive and a negative value. boolean true and false. so every mouse click on button 2 switches from true to false and back again to true, and so on. (you get the idea).

the action is when 2nd button is clicked (set at true) the 1st button increments up by 1 value, with each mouseclick. and when the 2nd button is clicked and set 2 false the 1st button increment down by 1 value with every mouse click.

ActionScript For Buttons
I have an envelope on my main timeline that is a sub menu... these buttons that come out of the envelope control where to go on the main time line.. i use _rootgotoAndPlay() for that and it works...

When I get to a page on the main timeline I have four buttons on it that will jump back and forth inside that movie... I tried _parent and _root and also plain old gotoAndPlay but nothing works... i didnt think it needed to be more involved but i dont know... help?

thanks a lot
marcuz

Actionscript For Nav Buttons
hi guys,

how can i set some actions to the buttons in my navigation so that when clicked, it plays an animation. when it gets to the end of this animation i want the movie to play another animation that leads into the next section of the site, depending on which button was clicked.

so basically if youre in a section of the site (say news), when you select another section to go to (eg. contact), an animation will play that gets rid of all the news stuff on the screen and then comes back in with the contact animation - as to not have a direct cut to the next scene.

i dont want to make eight or so animations that exit from the news section that have a different gotoAndPlay actions at the end of them. im just hoping there is some actionscript that i can put on each button to tell it what to do and where to go.

hope ive explained this ok!

thank you very much and i hope to hear from you.

all the best,

mark

Can't Use Actionscript On Buttons?
Thanks Mazoonist Looks like I'm going to have to head to the bookshop to pick up some new books on Actionscript, sounds like they changed a lot since I last used Flash...

ActionScript To Buttons Please
Now I have sent a lot of New Topics and asked for some help, but there seems no one who can help me with my problems...



It’s hard for some one new beginner in Flash to explain what I need help with, the things that I need help with is several right now….. I think at least…

If I try to take the issue again….:

On my page I thought to have some buttons for different movie clips. Let’s say that I want to have 3 different “links” like:

About me

About my daughter

About my Interests

OK so far….

When some one wants to read about my daughter, he clicks on the button… And it will go from left side to right and expand. Like:

About me

About my daughter --------------------------------------->about my daughter

About my Interests

And then if they click on something else the previous text goes back to its origin place..

There are a very good example at a Swedish mc Clubs sight, but they have some buttons, and when you click on them the symbols on those buttons enlarges and goes to right, that’s how I want it to work.. if you want to see so go to: http://www.strulmcc.se

They have text even in English..

Best regards Micke Seise..

If you have a lot of questions you can mail me at: ari@mickesei.se

Buttons And Actionscript
I have used buttons before in CS2 and selected them to add an actionscript but when I select a button in CS3 I get an message in the script box that says the "Current selection cannot have actions applied to it" I am adding a forward and back button to a photo gallery. Is there something I am doing wrong in CS3?

I Cant Seem To Use Actionscript 2.0 For Buttons In CS3
Why cant you use Actionscript 2 for buttons in CS3? I just need the basic script (Stop, play, go to Scene1,1 etc) Worked in 7 & 8. Sure you can select Actionscript 1 and 2 in the actions panel but nothing happens. 2nd question: Can I transfer library images and movies to Flash MX Pro?

Buttons In ActionScript 3 ?
hi...

I'm trying to make a sound controller in actionscript 3. I used to do this nicely in actionscript 2, but know it seems that nothing works as in "the old days"...
I created a button and tried to add actionscript to it but it doesn't let me :-(

How can i apply code to a button on flash CS3 to start and stop a specific sound?

ActionScript For Buttons
Hello everybody,
I am new to flash, and I really don't have much expirience with ActionScript in Flash.
Does anyone know what actionscript should I write for opening a new page in the same window?
For example, I have allready created my button, and made adjustements to all 4 states, but when I import it in Dreamweaver, I'll need some actionscript to put it to work, so when I click on the button in the Internet Exproler that button opens a new link(page) in the same window?
Thank you.
Dusan Cvetkovic
cvetkovic_dusan@yahoo.co.uk: cool;

Help With Buttons In Actionscript 2
Help!! I am creating a Flash movie with 5 scenes. I have buttons for each that I have added actionscript to, but they still do not work. I am not getting any error messages. I am using actionscript 2 and have gone step by step. here is what i have :
on (release) {
gotoAndStop("main", 1);

}

on (release) {
gotoAndStop("blackboard", 1);

etc for the rest of the buttons. Any help would save me much stress as I am trying to finish a project for school!!! thanks
ah

Actionscript For Nav Buttons
hi guys,

how can i set some actions to the buttons in my navigation so that when clicked, it plays an animation. when it gets to the end of this animation i want the movie to play another animation that leads into the next section of the site, depending on which button was clicked.

so basically if youre in a section of the site (say news), when you select another section to go to (eg. contact), an animation will play that gets rid of all the news stuff on the screen and then comes back in with the contact animation - as to not have a direct cut to the next scene.

i dont want to make eight or so animations that exit from the news section that have a different gotoAndPlay actions at the end of them. im just hoping there is some actionscript that i can put on each button to tell it what to do and where to go.

hope ive explained this ok!

thank you very much and i hope to hear from you.

all the best,

mark

Actionscript Buttons
Hi!,

Just a quick question to you all.

I've got a "main scene" on this I've got a button and on this button I've got the action:

on (rollOver) {
_root.gotoAndStop("box");
}
on (press) {
_root.gotoAndStop("aboutus");
}

"Box" relates to an animation to show what the button's about this shows when you roll over it. Then when you click it you go to the the scene "about us"

Because the action is on the button, and the button is in both scenes when you click the button to go to "about us" as soon as you do it goes straight back to the "main scene" where the frame "box" is due to the rollover action

Is there a way which allows me to add multiple actions to the same button over different scenes so they can act indivdually, I can't seem to do it.

I hope this makes sense I can make a simple variation and post it otherwise.

cheers
postatomic

Actionscript In Buttons
Hi everyone my name is Daniel,
I would like some help. I am using Flash 8 to build a website. I have built the whole site within one flash movie by building the different sections of the site (i.e. Bio, Photos etc) along different parts of the main timeline, with each section animated in and animated out.
My problem is I have the same set of buttons in a movie clip runnig through the whole flash movie. Because each section animates out I am having trouble in actionscript saying "on release play till this section animates out then play from the begining of the new section". I have written some actionscript but it doesnt seem to work. I am a novice at actionscript but if anyone can amend it, tell me where Im going wrong, or just think of a better way to do it I would be very greatful.
p.s. I have a layer where i have named the frames on the begining and ending of each section
This code is from the Bio button
on (release) {if (_root._currentframe == "BioEnd", "PhotosEnd", "MediaEnd") {_root.gotoAndPlay("BioStart")} else {_root.play()}}

Many Thanks
Daniel

Actionscript In Buttons
Hi everyone my name is Daniel,
I would like some help. I am using Flash 8 to build a website. I have built the whole site within one flash movie by building the different sections of the site (i.e. Bio, Photos etc) along different parts of the main timeline, with each section animated in and animated out.
My problem is I have the same set of buttons in a movie clip runnig through the whole flash movie. Because each section animates out I am having trouble in actionscript saying "on release play till this section animates out then play from the begining of the new section". I have written some actionscript but it doesnt seem to work. I am a novice at actionscript but if anyone can amend it, tell me where Im going wrong, or just think of a better way to do it I would be very greatful.
p.s. I have a layer where i have named the frames on the begining and ending of each section
This code is from the Bio button
on (release) {if (_root._currentframe == "BioEnd", "PhotosEnd", "MediaEnd") {_root.gotoAndPlay("BioStart")} else {_root.play()}}

Many Thanks
Daniel

Copyright © 2005-08 www.BigResource.com, All rights reserved