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








How Can I Have..Movieclip Animation Acting As Button?


i'm having troubles with linking my movieclip as a button..


my movie is set to animate, onMouseOver it plays a little animation (the button flashes and moves)..

however when i add this code

kupite.onRelease = function() {getURL('http://www.kupiteonline.net');
}


then it stops animating onmouseover; however the link works...


id like to make it work, so the button continues to animate/act as movie, but also make the link work, how can i achieve this?

thanks




FlashKit > Flash Help > Flash MX
Posted on: 09-15-2008, 02:49 AM


View Complete Forum Thread with Replies

Sponsored Links:

Button Acting On Independent Movieclip
is there an actionscript code for a button to start or play a movieclip that it is not a part of?

View Replies !    View Related
Movieclip Acting As Button Not Quite Working
Hi all,
I'm trying to make a movieclip act as a button (I've done this before and it works for the most part) My problem this time is that the movieclip is simply a piece of text, and light text at that, so when I rollover or press the movieclip, the mouse has a hard time seeing where the movieclip is because it is thin type. When using buttons, you can have a hit state, but what do you do if you are using a movieclip? The movieclip is on a translucent background, so i can't fake giving it a background so it has something to hit on.
Any ideas?

View Replies !    View Related
Howto: Movie Clip Acting As A Button Plays Out Animation And Then Goes To Content
Ok I've got a problem. I would like to have flash movie and it plays to a stop on the main time line.
Then interface comes up. The interface is made of movie clips acting as buttons.
I would like to some how get it when you click on a button it jumps to frame in the main timeline playing an out animation for the homepage content. But here is the tricky part for me I would like to get it 2 play the content connted with the button after the out animation is played.
So to give a very short example:

Press the movie clip acting as a button > it then jumps to the frame of the start of the out animation > out animation plays > depeding on the button u pushed that content comes up. so if they click the resume button after the out animation on the home page the resume page comes up.

Sry I know question was very long winded and not well phrased but I do really need some help on how 2 do this

Thx take it EZ

View Replies !    View Related
AS3 Using A Movieclip As A Button With Animation
Hi There...

I am converting a AS2 site over to AS3 and and I am having an issue with one of the buttons(actually a movieclip) and its animation.

that short and sweet of it is as follows:
mouseover play frames 1-15, and on mouseout play frames 16-30

I know in AS3 it doesn't like to have any actionscript inside the movieclip, and therefore ignores the current stop();'s I have inside which prevent it from looping or going past frame 15 and 30 respectively.

I found the below code while doing some searches on this problem, yet I don't know how to control the movie clip with it. Currently the button(movieclip) just loops over and over again. (unless I do a myMc.stop(); of course)

ideally I would like the movieclip to play up to a certain point on mouseover, and then play to a certain point on mouseout.



Code:
import flash.display.MovieClip;
import flash.events.MouseEvent;

myMc.addEventListener(MouseEvent.ROLL_OVER, onRollOverHandler);
myMc.addEventListener(MouseEvent.ROLL_OUT, onRollOutHandler);
myMc.addEventListener(MouseEvent.CLICK, onClickHandler);
myMc.addEventListener(MouseEvent.MOUSE_DOWN, onPressHandler);
myMc.addEventListener(MouseEvent.MOUSE_UP, onReleaseHandler);
// if you want a hand cursor
myMc.buttonMode = true;
myMc.useHandCursor = true;
function onRollOverHandler(myEvent:MouseEvent) {
trace("s1");
myMc.gotoAndPlay("_over");
}
function onRollOutHandler(myEvent:MouseEvent) {
trace("Out");
myMc.gotoAndPlay("_out");
// myMc.stop();
}
function onClickHandler(myEvent:MouseEvent) {
trace("I waited for Press AND Release!!!");
}
function onPressHandler(myEvent:MouseEvent) {
trace("Press");
}
function onReleaseHandler(myEvent:MouseEvent) {
trace("Release");
}
here is a link to my current button just incase my description doesn't really explain properly.

http://www.lovehate.ca/forum_stuff/button.swf

View Replies !    View Related
Movieclip Acting Like Buttons
I have a question concerning movieclips. I created a few clips and made it so that on a rollOver they would fade in and as the mouse moved out it would fade out.

However, I did some tests, and if you move the mouse really quick over the flash window so that on one frame it hits the button but in the next it's off the flash window then it still registers that the mouse is over the button. It's really frustating. Is there a way to let the movie clip know when the mouse is outside the flash window or something. Maybe I'm creating it wrong. Please help.

I can't create just a simple button because of the fading out that needs to happen.

Here is the link: http://www.somacafe.com/demo

View Replies !    View Related
MovieClip Acting Strange
Hallo everybody,
In my site I have a page that contains 2 empty movieClips as Holders. When triggered 2 movieclips are imported in the main stage inside the empty ones. The strange problem is that on one of the holder the MCL imported it just 4 lines of text and their mesurements match exactly the holder but when imported it goes on far right like it pushes the holder towards the right. I hope I made myself clear ( not an English speaking person)
the code I use is :

pic3.onRelease = function () {
loader._visible = true
mcl.loadClip("beauty.swf", holder4);
mcl.loadClip("beauty-grande.swf", holder5); //this is the line incriminated
}

thank you so much

View Replies !    View Related
Button To Trigger Animation/MovieClip
Trying to set up a button in my scene to trigger an animation/movieclip that isn't visible at all unless the button is pressed.
I've done this with sound loops but need to do it with animation.
I'm sure it's very simple but need some direction in the "right way" to do this.
Thanks in advance.
jmitteco

View Replies !    View Related
My Button Isnt Acting Like A Button On Stage
I made a simple button and put it on the stage and when i go to preview the scene the hand cursor doesnt pop up in the traditional way like a button. It shows up but it doesnt give me my mouseovers or anything like that

its on its own layer and on the top of the stack anyone have any clue? Its so wierd

View Replies !    View Related
Movie Acting Like A Button
i have a movie clip that i want to play starting at a certain point when the mouse moves over it, then play to another point when the mouse moves out of it, how do i assign something like the onmouseover event to a movie clip

View Replies !    View Related
Button Acting Very Strangely
I have 4 scenes and on each scene is a row of 4 buttons with the following actions:

on (release) {
gotoAndPlay("scene 1", 1);
}

on (release) {
gotoAndPlay("scene 2", 1);
}

etc...

When you click on the buttons something very strange happens. If you click the 'scene 1' button once it goes to the first frame of scene 1, but if you click the 'scene 1' button a second time it goes to the first frame of 'scene 2'!

Does any one know what might be causing this?

View Replies !    View Related
Help With Button Acting Onto Another SWF File
Hello all!

Is this possible?

I have one file named menu.swf that contains buttons loaded in the browser. Inside the same browser I have under the first one another file named anim.swf that contains an animation.

My question is: When the user clicks a certain button in the first file (menu.swf) can it interract an action within the other file (anim.swf)?

Like when the user clicks the button in menu.swf the looped animation stops in anim.swf. Note that these are not loaded movies but 2 seperate movies inside the same browser thus within the same html page...

Thank you so mutch for your help!

View Replies !    View Related
AttachedMovie Is Acting Like 1 Big Button
My first post here...I was google'ing around to find an answer to my question and came across this site....what a find!

I have an .as file with a custom a class. When I call the function below, it does everything I expect it to do...and then some. The mc that is loading (attaching) acts like a button. The cursor turns into a hand and it also clickable. I do not currently have any links inside this mc...but eventually I will.



Code:
function loadContent() {
if (_level0.currentpage != null) {
_level0.currentpage.removeMovieClip();
}
//Load content movie clips
var clipName = this._name + "_content";
_level0.currentpage = _level0.attachMovie(clipName, clipName,
this.getNextHighestDepth(), {_x:401, _y:300});
}
What am I doing wrong...or what am I not doing at all?
Any help or guidance would be greatly appreciated. I am new Flash, but not programming. If any info is required I will be glad to do so.

Thanks in advance

John

View Replies !    View Related
Background Acting Like A Button
Hi,

I have created a website with Flash on a Mac. I use dreamweaver to place the flash into an html page. On the Mac the site works fine, but on a PC you have to double click the buttons for them to work. The background is acting like a button but it isn't. The home page doesn't even have a background. The address is: http://www.graceofspringhill.net so you can see what I am talking about.

Any help would be appreciated.

View Replies !    View Related
Movie Clip Acting As A Button
Can anyone explain how one would draw a movie clip to act as a button. Any suggestions would be greatly appreciated.
Pranas

View Replies !    View Related
Button Hyperlink Acting Strange:
Now bear with me, as I'm a Flash super-newbie.

I've got a button whose hyperlink doesn't seem to cover the whole button. I can't really explain it, but I can show you:

http://portal.iowarecorders.org

The "Services" button is the one that is messed up. If you click on the right side of the word "Services" it actually takes you to "default.asp". I'm not sure what I messed up, but could someone please take a look at my .fla file and tell me what I did:

http://portal.iowarecorders.org/flash/banner.fla

Thanks,
Matt

View Replies !    View Related
Text Button Acting Strange
Hello:

This is my first attempt at flash and I ran into some problems when creating buttons from text. When you roll over the text it does not activate the buttons down or over state.

I made a rectangle over the text in the hit area but that does not seem to work on rolling over the text. It works around the text but not on it.

I then made the text static and gave it a variable name, because I did not know what else to do.

I am at a loss and figured I would ask the community.

Here are the links to get to the site and access the fla.

Link to flash intro


link to flash fla

Thanks for any help

View Replies !    View Related
Movie_mc.onRollOut Acting Like A Button?
So I've got a movie clip that contains a menu list that I want the user to scroll, select, and all that jazz. However, if they roll out of the mc, I want the movie clip to go away. The clip work absolute perfect until I add the following


Code:
chapMenu_mc.onRollOut = chapMenu_mc.end();
chapMenu_mc.end(), among other things, sets chapMenu_mc._visible = false.

The minute I add the above line, chapMenu_mc stops behaving like a movie clip and starts acting like a button. It switches the cursor to the click hand and won't let me interact with the list inside the mc.

What gives? and how do I get it to behave properly?

View Replies !    View Related
Movie Clip Button Acting Up
Hi everyone,

Having some trouble with a button (with the flashing grey box). It's looping through the animation, and I want the grey box to appear on mouse over. It's messing up the other animations as well. I'm getting error that the property can't be found even though the naming looks right to me.

This is probably a simple mistake, I'd be extremely grateful if someone could take a look at it. When I add AS, the animation above breaks too, without the AS, it plays correctly. (Arrow animation stops, bars continue motion)

Thanks!

-Andrew

View Replies !    View Related
Movie Clip Acting As A Button
I have a movie clip that stops all sounds and also stops the timeline. On.Release, it also goes to a frame on the movie clip that displays a play button. I don't know action script well enough to understand how to allow the user to click the same button (now that it is stopped on the play frame) to restart the sound and play the timeline. This is what I have:

pause.onRelease = function():Void {
if (pause._currentframe ==1) {
pause.gotoAndStop("on");
stop();
_root.pageSound.stop();
}else{
pause.gotoAndStop("off");
}
};


Look forward to help on this - once I can get it right - I'll use it over and over.

View Replies !    View Related
MOvie Clip Button Not Acting Like It Should...?
Hey guys,

Im hoping osmeone can help me here, im struggling to understand why something is happening in my flash movie...

I have movie clips as buttons, which work, they are just expanding buttons, but when you are right on the edge the movie clip seems to not be able to decide if the mouse is over it or not, it 'flickers' between the states of over and off...

Anyone with any info would be great,

I would post the .fla file, but i odnt know how on here...

OK, have linked it form the old site webspace

site.fla

Thanks,
Cokes

Admin: Sorry this is a reposting of my previous thread, because the title was ribbish in the old, if you can delete, please do, thanks

View Replies !    View Related
Button Misbehaving OnRollover Acting Crazy
I really don't know what and how this is happening..

I took one Imported Image, converted it to Symbol (Graphic). Another vector art i created. I combined these two to form one main Symbol (Button).
Now i applied an onRollover action with a script to do something on this button.

Very strangely, when the mouse goes over the Vector art area.. the script activates, but it doesn't do so when the mouse goes over the Bitmap Symbol area.. WHY!!!???

Thanks,
Rahul

View Replies !    View Related
Button With Context Specific Actions, Acting Up
Howdy.
I've got a button nested in a movie clip. The user can interact with the button through a set of "verbs" expressed as variables in the main timeline (specifically: inspect, talk, and look). When the button is clicked, the button script needs to refer to the verb variable on the main timeline, and depending on the value, attach a specific movie inside the movie clip the button sits in, not on the main timeline. (although it wouldn't attach a movie to the main timeline either when I tried that)

This is the code I've written on the button (I'm not the cleanest actionscript writer)

code: on (release) {
//check the root variable and let me know what it is
trace(_root.verb);
//if the selected verb is inspect, attach this movie
if (_root.verb=insp) {
attachMovie("hall_i_veallife", "box", 1);
//if the selected verb is talk, attach this movie
} else if (_root.verb=talk) {
attachMovie("talk_false", "box", 1);
//finally, if the verb is observe, attach this movie
} else if (_root.verb=look) {
attachMovie("hall_o_veallife", "box", 1);
}
}


(note: I know I haven't specified co-ordinates here for the attached movies, that's not the problem)

NOW, the trace action returns the correct values from the verb variable in the root timeline.
The movies to be attached are in working order, and I can get the button to attach the movie perfectly if I don't include the "if" statements (but it needs them to load different responses).

But I haven't got a clue why, when I press the button, the movies are not attached at all. Have I just totally overlooked something in the way it's written? What's wrong?

View Replies !    View Related
Button Script Acting Weird... I'm Stumped. HELP
Hello and thanks for your help in advance. I'm having a weird problem with what seems like a very simple issue to me. I have an action attached to a button:


Code:
on (rollOut) {
gotoAndStop (65);
}
on (release) {
gotoAndPlay ("C Viewer");
}
It's the "on (release)" part that isn't working... the rollout works fine. It just sends me back about 12 frames and not to the scene (or frame i tried that) indicated. I have also tried going to a different frame, creating a new button to try to go to the scene etc etc. It never behaves by sending me to the scene or frame I specify. I am really stumped. Please help. I can email or post the .fla if necessary.

View Replies !    View Related
Movie Clip Acting As Button Question.
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.nextFrame();
} else {
this.prevFrame();
}
}


I have this code on a movie clip which is acting as a button. I also want to have the ability to hit the movie clip and allow it to jump to a further frame in the original timeline. I did use this:

on (release) {gotoAndStop("frame6");

}

Under the coded above as this would make sense, but its just not working. Im pretty new to flash and would really like to get this function to work.

If you can let me know where im going wrong, that would be kind, thnak you.

View Replies !    View Related
Sprite With Textfield Inside Acting As A Button
Hi everybody,

i've an AS 2/1 programmer for as long as it has been around and recently i've been getting more and more work done in AS3. I absolutely love it, but there's still some small parts ruining the fun for me

This is just a small thing bugging me and i'm not finding a solution very quickly, here it is :

i have a sprite on stage , and within that sprite is a textfield. Now the sprite has buttonMode enabled and has listeners attached.
But the thing is that when i hover on the sprite, i see a nice handcursor, but when i hover on the textfield inside this sprite, the handcursor dissapears, but the listener is still fired when clicked here.

How can i fix it so that the entire sprite feels like a whole button?

Many thanks for reading


*Edit *
Also, it seems that the textfield and sprite fire off the same event to the same function, but the event target seems to differ depending on what you clicked, it seems illogic because i have no listener attached to the textfield, is there also a fix for this?

View Replies !    View Related
HitTest Working, But Acting Weird (MC As Button)
I was playing around last night trying to learn simple AS to make a movie clip act like a button. I wanted the button movie clip to reduce the alpha value of the other movie clip when you rollover the button and when you roll off the button the alpha of the movie clip goes back up. It works, but if you keep rolling over and out of the button movieclip sometimes the alpha gets stuck at a certain value for a bit, then does what its supposed to. Any ideas why? I'm using onEnterFrame () to do the hitTest constantly.

Thanks

Here's the SWF and FLA files for you to look through:

hitTest SWF
hitTest FLA

Here's the AS code I used in the frame to do this:


Code:
onEnterFrame = function() {
if ( background._alpha > 100 ) {
background._alpha = 100;
}
if ( background._alpha < 0 ) {
background._alpha = 0;
}
if (hitTest( _root._xmouse, _root._ymouse, true)) {
background._alpha -=25;
}
else if (hitTest( _root._xmouse, _root._ymouse, false)) {
background._alpha +=25;
}
}

View Replies !    View Related
Button In SWF Loaded Into Scrollpane Acting Strange
I finally figured out how to load the SWF into a scrollpane, which is so easy. ( you still have to figrure out placement )

Anyway I have buttons in the swf, and when clicked load an external swf.

Well, it loads the external swf, but unloads the scrollpane at the same time.
SO WIERD

Why would this happen? Is it suppose to happen? HELP PLEASE!!!

thanks so much!!!!

View Replies !    View Related
HitTest Working, But Acting Weird (MC As Button)
I was playing around last night trying to learn simple AS to make a movie clip act like a button. I wanted the button movie clip to reduce the alpha value of the other movie clip when you rollover the button and when you roll off the button the alpha of the movie clip goes back up. It works, but if you keep rolling over and out of the button movieclip sometimes the alpha gets stuck at a certain value for a bit, then does what its supposed to. Any ideas why? I'm using onEnterFrame () to do the hitTest constantly.

Thanks

Here's the SWF and FLA files for you to look through:

hitTest SWF
hitTest FLA

Here's the AS code I used in the frame to do this:


Code:
onEnterFrame = function() {
if ( background._alpha > 100 ) {
background._alpha = 100;
}
if ( background._alpha < 0 ) {
background._alpha = 0;
}
if (hitTest( _root._xmouse, _root._ymouse, true)) {
background._alpha -=25;
}
else if (hitTest( _root._xmouse, _root._ymouse, false)) {
background._alpha +=25;
}
}

View Replies !    View Related
[F8] Dynamic Button Not Acting Like A Button
I am not familiar with ActionScript, though I am familiar with programming in general. I have been trying to use AS to create a scene that contains some buttons. I have a movieclip attached as the background, and some buttons that I want attached as well. I can get them all to appear fine using attachMovieClip. When I try to get the buttons to have onRelease functions, though, they suddenly lose their 'button'ness. That is, they no longer have the animation involved in the rollOver, the up, etc. Here is the ActionScript.

code:
var LN:Number = 3;
//layer number for keeping track of movieclips
//Initialize empty movieclips:
_root.createEmptyMovieClip("roomRight", LN);
LN++;
_root.createEmptyMovieClip("roomLeft", LN);
LN++;
_root.createEmptyMovieClip("doorLeft", LN);
LN++;
_root.createEmptyMovieClip("doorRight", LN);
LN++;
_root.createEmptyMovieClip("titleScreen", LN);
LN++;
_root.createEmptyMovieClip("navLeft", LN);
LN++;
_root.createEmptyMovieClip("navRight", LN);
LN++;
_root.createEmptyMovieClip("navDown", LN);
LN++;
titleScreen.attachMovie("titleScreen", "TS", LN);
titleScreen._xscale = 180;
titleScreen._yscale = 180;
titleScreen.onRelease = function() {
titleScreen.removeMovieClip();
runGame("left Engine");
};
createDoorLeft = function () {
doorLeft.attachMovie("doorLeft", "DL", LN);
doorLeft._visible = true;
doorLeft._x = 58;
doorLeft._y = 205.5;
};
createDoorRight = function () {
doorRight.attachMovie("doorRight", "DR", LN);
doorRight._visible = true;
doorRight._x = 532.7;
doorRight._y = 205.5;
};
createNavLeft = function () {
navLeft.attachMovie("navLeft", "NL", LN);
navLeft._visible = true;
navLeft._x = 0;
navLeft._y = 0;
};
createNavRight = function () {
navRight.attachMovie("navRight", "NR", LN);
navRight._visible = true;
navRight._x = 693;
navRight._y = 0;
};
createRoomLeft = function () {
roomLeft.attachMovie("roomLeft", "RL", LN);
roomLeft._visible = true;
createDoorLeft();
createNavRight();
};
createRoomRight = function () {
roomRight.attachMovie("roomRight", "RR", LN);
roomRight._visible = true;
createDoorRight();
createNavLeft();
};
killRoomLeft = function () {
roomLeft._visible = false;
doorLeft._visible = false;
navRight._visible = false;
dy_text.text = "Killed room left";
};
killRoomRight = function () {
roomRight._visible = false;
doorRight._visible = false;
navLeft._visible = false;
dy_text.text = "Killed room right";
};
runGame = function (room:String) {
switch (room) {
case "left Engine" :
dy_text.text = "You are in the "+room+" room.";
createRoomLeft();
navRight.onRelease = function() {
killRoomLeft();
runGame("right Engine");
}
break;
case "right Engine" :
dy_text.text = "You are in the "+room+" room.";
createRoomRight();

doorRight.onRelease = function() {
killRoomRight();
runGame("left First Class");
}
break;
case "left First Class" :
dy_text.text = "You are in the "+room+".";
createRoomLeft();
break;
}
};


Thanks for any suggestions/corrections/etc.

Moto

View Replies !    View Related
Help With Movie Clip Symbol Acting As A Button Pretty Please
Hello, and welcome to my post.

I am trying to use a movie clip symbol as a button and the code below allows me to do most of the functions apart from being able to take me to another frame in the scene and that is where i need help.

I am using the following code in a layer above the movie clip symbol:

this.button_mc.onRollOver = function() {
button_mc.gotoAndPlay("_over");
}

this.button_mc.onRollOut = function() {
button_mc.gotoAndPlay("_out");
}

I am using this for advanced animation when rolling over and out of the symbol.

Is there a code which can take me from this button to another frame in the scene. When i have tried i have only managed to go to another frame within the movie clip (as opposed to the scene).

Thanks for any help.

PS i am using Flash Pro 8

View Replies !    View Related
[CS3] Movie Clip Acting As Button Needs To Move The Play Head.
Ok so every one on the forum told me to make my buttons with movie clips. And I did it. But no I have another problem I've movie clips that are acting like buttons but they can't move the play head any where. How do you get a movieclip(acting like a button) to control timeline behavior.

Using AS Ver. 2 Thx for the help

View Replies !    View Related
[CS3] Movie Clip Acting As Button Needs To Move The Play Head.
Ok so every one on the forum told me to make my buttons with movie clips. And I did it. But no I have another problem I've movie clips that are acting like buttons but they can't move the play head any where. How do you get a movieclip (acting like a button) to control timeline behavior.

Using AS Ver. 2 Thx for the help

View Replies !    View Related
[CS3] Movie Clip Acting As Button Needs To Move The Play Head.
Ok so every one on the forum told me to make my buttons with movie clips. And I did it. But no I have another problem I've movie clips that are acting like buttons but they can't move the play head any where. How do you get a movieclip (acting like a button) to control timeline behavior.

Using AS Ver. 2 Thx for the help

View Replies !    View Related
Keyboard Back Button Acting As Browser Back Button
I'm having problems with a Flash MX Sign up form I'm implementing on my website.

The form has a series of frames which take the user through the sign up process, before clicking through to the online payment gateway. Each of these frames is anchored to allow the user to click the browser Back button to go back to the previous frame (rather than the previous movie).

However, the keyboard back button is now acting as a browser back button.... Any ideas why?

Any help with - or solutions to this probelm - would be greatly appreciated.

Thanks in advance for your time.

Regards

Rob

View Replies !    View Related
Keyboard Back Button Acting As Browser Back Button
I'm currently implementing a subscription sign up form in Flash MX. All of the frames of the sign up movie are anchored so that the user can click Back on his/her browser and go back to the previous frame of the movie.

However, when the user now tries to delete/amend info (eg, first name, username, etc) on the form using his/her keyboard Back button, it triggers the browser Back button.

Anyone out there experienced a similar sort of problem - ie, why the keyboard Back button is acting as the Browser Back button?

If anyone has any ideas/solutions, I'd appreciate any input.

Cheers

Rob

View Replies !    View Related
HELP Button Not Acting Like A Button.
I'm using Flash MX 2004 Pro. I have a play button in my flash file but it's not acting like a button. I have three other buttons in the file and they are working fine. I don't understand what is going on. I've attached my FLA file so maybe someone can help.

View Replies !    View Related
Button Not Acting Like Button
Have you ever had a button not work after the first click unless you move the mouse a little, or click a few times rapidly? This is also happening to me if I make the buttons movie clips.

This only happens after I've loaded a dynamic text field more than once.

The only thing that I've found to fix it is Selection.setFocus(myButton);. But that draws a yellow box around it. Not pretty.

Any advice?

Thanks,

Charlie

View Replies !    View Related
Button Not Acting Like A Button
I want to have a button that, when clicked, goes to the last frame (487). However, if I mouse over it when the movie is playing, the "button" just looks and acts like normal text. Here's my AS

on (release) {
gotoAndStop(487);
}

In the button, I created two layers, one for the text, and one to act as a larger area to trigger the action. Also, the button is in the very top layer, so there shouldn't be any interference from another layer.

Please help me figure this out.
Thanks

View Replies !    View Related
OnMouseOut{freeze Button Animation, Reverse Animation Back To..}
This is my question in an action script "perspective", since i dont wanna spend the time typing this question out in plain english..

How would i implement this effect into a button I made that contains a MovieClip as the over state? ::

onMouseOut{
stop button's Over animation on current showing/playing frame;
then reverse animation back to start
OR
fade out current showing/playing Over animation frame, back to the button's load state (not over)
};

View Replies !    View Related
[CS3] Create Animation That Runs From Button Click After Another Animation Has Run
Hi,

I am a newbie to flash & actionscript. I have, though, learnt the basics of flash animation, tweens & bits of actionscript and have created an animation movie consisting of sevral layers.
I have the movie stopping at the end and the graphics are all converted to buttons.
Now, from this end point, i want the user to click on one of the images (buttons) and then the flash movie to start a sub-animation.
BUT i don't know how to do this.
Do i need to create a new scene to do this or do i need to extend the layers and add the additional animation to the layers or do i need to add new layers to the same scene?
ALternatively, do i need to this in actionscript?

Please let me know what is the method of doing this in Flash. This seems like a simple thing which i've seen in flash movies before but i can't find any answers or tutorials on how to do this.
Please give me the steps involved in creating a second animation runnable from a click in the 1st animation.

To clarify further, my aim is to make the movie clip interactive using different motions 9or animations so that when an object in the 1st animation is clicked a different animation starts. So how can i achieve this?

Regards, shuja

View Replies !    View Related
Making An Animation Fade Into Another Animation When A Button Is Released?
okay, so I have for exmaple a red animated background for 'home' but when someone clicks 'media' for example, I want that red animated background to fade into a green animated background.

I tryed using external swfs, but I don't know how to make the outro animation of the first red swf fade into the intro animation of the second green swf, so it creates the effect of red into green, rather than red to black, than black to green.

any tutorials that could help me?

View Replies !    View Related
Button Animation That Ends Animation On Rollover
I design a button that glows on over. So the person rolls over the button and it glows other wise the button does nothing.

What I want is the button's glow animation to finish the animation after the person moves the mouse away. So once the mouse touches the button it starts the animation and if the person moves the mouse away the animation completes the time line(glow).

I designed a button with the glow as a separate animation/movie clip.

The animation is on the over state. But it does not play all the way threw the animation unless the person keeps the mouse over the button.

Please help me get this simple problem to work.

Sassycassie

View Replies !    View Related
Button Inherits Movieclip And Movieclip Button Properties
Hi,

I am working on a component to blur pictures and use it as buttons. I got it all working but found something I do not completely understand. May be somebody knows the answer. Since movieclips can also be used as buttons I started to define a new class (I show only fractions of the script):


PHP Code:



MovieClip.prototype.createBase=function(eqClip,eqClip_1,eqClip_2,tPress,tRover,tLoad){

and so on...

}
    if(tPress){
        tRover=false;
        tLoad=false;
        this.onPress=function(){
            //count will advance here.
            count++;
            //first we fade out the pic
            fadeOut();
        }
    }
    if(tRover){
        tPress=false;
        tLoad=false;
        this.onRollOver=function(){
            count++;
            fadeOut();
        }
    }
    if(tLoad){
        tRover=false;
        tLoad=false;
        this.onLoad=function(){
            count++;
            fadeOut();
        }
and so on..

Button.createBase(eqClip,eqClip_1,eqClip_2,tPress,tRover,tLoad);




Actually "button" is the name of a movieclip, which inherits the new properties. I can now put instances on stage and write something like:
button1.onRollOver=function(){
this.Button.onRollOver();
}
button1.onRelease=function(){
textField.text="This is button 1 in action.";
}
This will do all what is supposed to do.

But when I change the name of the Movieclip to "myBut", it only performs the blurring but I cannot use it as a button any more and onRelease does not work. In other words if we name a movieclip "Button" or "button" it will automatically inherit button properties. Is that the case? Anybody heard of that?

View Replies !    View Related
Animation Within A Movieclip
I am trying to make a menu with animated buttons:

Menu(movieclip)
-button1(movieclip)
+button1 frames
-button2(mc)
+button2 frames

I hope that makes sense...

button1 has the following actionscript attached:

on(rollOver){
gotoAndPlay("button1", 2)
}

so basically, when the user rolls the mouse over the button it playes an attached animation in the button. howver, it stays on frame 2 of button1. i think the problem has something to do with the menu not having enough frames, and i dont know what to do to fix that if such is the case. any help would be appreciated.

View Replies !    View Related
Control A Nested MovieClip From A Button Component Inside A Seperate MovieClip.
I am a beginner in using Flash and Action Scripting.

This is the Scenerio:

I want to control a movieclip that is inside of another movie clip.
I control it from a button component that is inside of a seperate movie clip.

test = button component instance name
test1 = function
test2 = Movieclip instance name
test3 = Movieclip instance name
testbutton = movieclip name where button component is located

I am able to control a movieclip on the main timeline with the following AS 3.0:

test.addEventListener (MouseEvent.CLICK, test1);
function test1(event:MouseEvent):void
{
event.target.root.test2.gotoAndPlay(2);
}

I want to control a movieclip inside MovieClip1.

I tried this:

test.addEventListener (MouseEvent.CLICK, test1);
function test1(event:MouseEvent):void
{
event.target.root.test2.test3.gotoAndPlay(2);
}

The movie loaded fine when I tested but got this error when I pressed the button:

TypeError: Error #1010: A term is undefined and has no properties.
at Untitled_fla::testbutton_26/test1().

Please help!!!!!!!!!

View Replies !    View Related
Loading A Movieclip On The Main Stage From A Button Within A Movieclip - Big Headache
Hi there,

i am trying to put together a portfolio site, which uses a 'floating' panel with buttons on it. In order for it to move around it has to be a movieclip. So all the buttons are stored within a single movieclip, which is giving me a headache because i want those buttons to load other movieclips from my library onto the main stage (as like a popup window within the flash)

Its all slightly confusing. i have tried using this code based within the movieclip where my button is based:

button_play.buttonMode = true;
button_play.addEventListener(MouseEvent.CLICK, OpenBox);
function OpenBox (e:MouseEvent):void{
this.addChild(new mc_box());
}


button play is within a movieclip called mcTweenMe2 (which is on the main timeline) and i want the movieclip to be loaded on the main timeline (not within in the movieclip where the button 'button_play' is based) mc_box is the movieclip i wish to load on the main timeline (in the centre) with the ability to close it also!

Bit of a headache, please help me someone i have run out of sites to look for answers!

PS: does anyone know why stop (); wont stop my timeline playing like it used to in AS2? beacause another option for making my site work is making this button target labeled frames in the main timeline, however stop (); don't seem to work now!

Thanks!

View Replies !    View Related
How To Stop MovieClip Animation
Hi,

Within my Library, I have created a movieClip called MovieA. Inside this movie I have placed several animated movies, call them subMovie1, subMovie2, etc.

Is there a way to stop the animation of all the subMovies within MovieA? I want to do this by a command like...

MovieA.stop();

(I cannot run a stop command for each individual SubMovie, because I may have multiple SubMovies per MovieX. And there are other reasons, too many for this post.)

Of course, MovieA.stop() doesn't work, hence my post.

Thanks.

View Replies !    View Related
Stop Movieclip Animation
Please tell me how to stop the particular Movieclip animation on a click of a button in flashMX.

View Replies !    View Related
MovieClip Unload With Animation?
Hy all,
I have a scene with 3 buttons with LoadMovie action on them - each SWF loads in an Empty MovieClip.
The thing that i have: when an external SWF loads, it appear with a smooth animation BUT when i click another button, the first SWF disappear instantly (ofcource) and the second one take's place.
I want all the SWF files to disappear with an animation exactly like the begining!
How can i do that?

Thanx in advance

View Replies !    View Related
[F8] Repeated MovieClip Animation
It seems so simple- and yet I can't figure out what to do...

I have a few animations that slowly move across the top of the screen. They are the first things I ever did in Flash, so I thought I'd go back to them and optimize them a bit.

There is a single graphic used in 2 different movieClips. The 2 movieClips do the exact same thing- move across the screen in the exact same place. The only reason there are multiple movie clips is I want them to start at seperate times. The second one starts when the first one is about 75% of the way across. Surely there is a better way to do this to reduce file size- by having instances of the same clip, but I don't know how to have one start as the other is 75% across continually.

I'm certain this is going to be cake but I can't figure it out!

View Replies !    View Related
[CS3] Is There A Way To Put A Timeline Animation Into A MovieClip?
Hi,

I have an animation that I have made on the timeline. It is two layers. Is there a way I can cut and paste into or create a new symbol out of that animation? (ot is that just for static objects?)

Thanks for your help!

-brian

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