Help Needed With Button/movie
Hi and help! I have a short movie clip of an animated logo. The logo rotates on its axis once then stops. Perfect. But now I want that same motion to repeat (spin once then stop) on mouse rollover.
How do I make that happen?
My first attempt was putting the action in the button. Nope. Then I tried putting the action directly onto the movie clip. Nope. Making an instance of the movie? Couldn't get it to work either. Where do I go from here?
Thanks in advance for any advice! Maxine
http://www.complete.ca/urlcanada/HTML/
FlashKit > Flash Help > Flash General Help
Posted on: 04-16-2004, 08:04 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Button/Movie Help Needed
I am trying to make a movie have an on release geturl action but everytime I try this the button will work but the movie doesn;t. I also tried making the movie clips have a get url action but then it loaded all of the urls on one click instead of each individually. Anyone know how to right the ship?
Thanks
Help Needed On Button Within Movie...
hello all
quick question..
does anyone know how to link a button within a movie symbol back onto the main timeline and to a scene and frame??
thanks in advance
Needed: Button/movie Clip Help
I just got Flash 5 and have been experimenting with buttons and movie clips. Just a few minutes ago, I inserted a movie clip into the over position of a button, and tested it out.
The problem is this: the movie clip won't stop looping.
I have tried setting the movie clip to single frame, once through, etc, but it just won't stop if I hold my mouse over the button in the webpage. What am I doing wrong?
Button Voodoo Needed To Control Movie
hello again,
i have a copuple of mc's on the main timeline. each mc consists of a simple tween-in (so it slides into view)
button 1:
on(release){
_root.play("mc1");
}
on release, mc 1 plays fine. BUT if i then press the button again, the whole flash movie plays from the start as opossed to just mc1)
what's the easiest way to fix this?
do i need to insert a stop on frame 1 of the mc, and a "start" label, then have my tween start from frame 2 and on reaching the end, snap back to frame 1 where i could show the thing complete?
or is there a better way? (btw: i don't know if the above will work for sure)
cheers
Button / Movie Control Hassle, Solution Needed
Hi folks,
I’m having big time trouble with something that should be simple and it’s
driving me nuts!
Please refer to attached file test2.fla)
Ok, I have a button (instance name: quizbutton) inside a movie (movie name: button movie).
The root timeline has two frames and on preview the timeline is to stop at frame 2 (which it does).
‘quizbutton’ is inside ‘button movie’ on frame 2 of the timeline, when I
click ‘quizbutton’ I want the root timeline to go to frame 1 of the timeline
and then I want the movie (instance name: movie) on frame one of 'movie' to stop at frame 2, which on preview SHOULD be indicated by a purple square with the numer ‘2’ on it
It should be simple but it just won’t work! It only works if I turn ‘button movie’ on the root timeline into a graphic (via the properties drop-down).
Trouble is, this can’t be a graphic because it’s part of a more complex file.
The ActionScript I’m using on ‘quizbutton’ is:
on (release) {
_root.gotoAndStop(1);
_root.movie.gotoAndStop(2);
}
Should be simple eh!!
If anyone can help be out here it would be very much appreciated, thanks very much in advance ! big, big thanks .… I’m in a desperate hurry with it
Email: kitachi@f2s.com if anyone can sort the file
AD
Coded Needed For Button Inside A Movie Clip
Hello.
I've just created a movie clip that has 2 frames. On the first frame I have a button that is supposed to take me to the second frame of the movie clip when pressed how do I accomplish this with code?
Help Needed With Loading A Movie (and Frame Number) Within A Movie
i would like to make a function (?) that checks a variable constantly throughout a movie.
the function would check a variable (mood) which is initialised at 50.
depending on what mood is (checked by using an if statement?), i would like to load a movie that is placed within my main stage, specifically a frame (labelled something like "Happy", "Sad", "Normal").
i have no idea where i would put the function, having sort of only just worked out how to initilise the value for "mood", no idea how to load a movie within a movie to a specific frame number, and no idea how to write that all in an if statement.
any light shed on this would be appreciated like you'd no believe (project is due in 48 hours).
thanks in advance.
Button Help Needed
Hi, I am a Flash newbie, please help!!! :-(
For my project, my user can add a picture (the picture is now in my Library) to the screen.
So I want to make a button, such that on(release), the item appears.
How can I achieve that?
Button Help Needed
Anyone know how the button inside a button idea is done like at ultrashock for the option to view or skip the intro?
(know or tutorial or where to look at an .fla?)
thanks!
Button Help Needed...
I have some buttons in my menu that work fine, like when you put your mouse over them, your arrow turns into the little hand , but I made another button and when you put you mouse over, the arrow turns into the I shape icon, like when you put your arrow over text, and there is text in the button... help!!
Button Help Needed
I have created a text field and a button with the hope of creating a email submit part on my page. What actions do i add to the button to get the information and send it to a email address?
Thanks for your time.
Button Help Needed
i need to make a button that when i go over it it grows in 50%
and when it ends growing it will have nrear it a drop down list
and when i go out of the button it will go back to its original size
how do i do that?
can any 1 put here a code example:"?
thanks in advance
peleg
Button Help Really Needed
I have a site all ready to go except for one thing...
I have 4 buttons as my navigation. This is the AS that I have for one that works great. Problem is, I can't get it to work for the other 3 buttons.
playMC.onRelease=function(){
if (isFaded == false) {
isFaded = true;
/*trace("This is the first click")*/
_root.person.gotoAndPlay("startFade");
loadMovie("print.swf", "screen_mc");
}
else {
loadMovie("web.swf" , "screen_mc");
/*trace("This is the second click");*/
}
};
Each MC is named accordingly. Please someone tell me what to do. I have just copied the code and pasted it below and changed the MC name, this doesn't work. Currently this is on the actions layer, I have tried adding it to each button and I get an error. I am running out of possible solutions. I would be forever in debt to whomever can figure this out for me!
HELP NEEDED, Button Help
I am quite new to flash, at the moment i have one layer and two buttons, but when i click on one button i want it to play an mp3. and later on another flash movie and maybe for the button to explode!
PLEASE HELP ME !!
Button Help Needed
Hello!!
I have 2 buttons inside a movieClip that control the movement of the movieClip (left and right respectively) I also have a 'back' Btn that tells the main timeline to go to a certain Scene.
What I am trying to work out is: If the user has pressed Btn1 then presses 'back' Btn, the mainline timeline goes to frameLabel1, but if the user presses Btn 2 then presses 'back' Btn, the main timeline goes to frameLabel2. And if the user presses neither Btn1 or 2 then presses 'back' Btn, the main timeline goes to frameLabel1 (!!!!!!!!!!!)
I presume I need to put a variable on the buttons, I am just not sure eactly how to go about it!
If anyone has any idea and can help then please do!!!!!!
Thanx in advance
Button Help Needed
Hello -
I have been trying to figure this out for days and just cannot figure out what is wrong with the script.
1) When any of the buttons (there is no music on the Home button) are clicked the music plays as it should.
2) BUT, when I click on the HOME button, the music on the other buttons does not stop (though sometimes it does if you click it twice).
I have tried adding stopAllSounds (); to the HOME button, as well as to the other buttons, but the sound continues on the HOME button. I have tried adding a stop etc. etc.
The Play button is set to loop only 3 times so you will see it stops after 3 loops but not when the Home button is clicked.
Here is the fla and html files:
http://www.ados.com/~vanover/2/test1.fla
http://www.ados.com/~vanover/2/test1.html
Any help would be greatly appreciated. I am still pretty new at this AS and I get stumped now and then. Many thanks for any help!!
Frieda
Help On Button Needed
Hi,
I have 2movie clips and mc1(frame 1) and mc2(frame 2). Inside mc2 i have got a button. i wanted the button upon click to go to mc1 and marker "circle". Can that be done?
I am a dummy with action script...
Could somebody help? Attach is a dummy file which might help to explain..
Thanks
AS Button Help Needed
This may have been asked, but when I searched I couldn't find what I was looking for. I probably just didn't search using the right words.
Basically I have some buttons. When you roll over a button it gets taller and changes color when you roll off it goes back to normal. I want to find a way to make it stay on the rollover state after I click on it. So basically, whatever page I'm on, that button will be up and not clickable, but all the other buttons will still work.
I got the animations to work, but I can't figure out how to make the button stay in "up" state when you're on that page. I hope that makes sense. I'm sure there's a tutorial around here for that, so if there is just pass it along. I probably just didn't use the right keywords when I searched the forums for it. Thanks.
Sam
Button HELP NEEDED
i have two buttons, a search button and another button that uses a popup javascript function. the search button works fine. but when i click another button on my page that uses a popup code the search button will no longer work for some reason.
i am opening the search box in a new window:
on (Release) {
getURL("http://www.searchfeed.com/rd/SearchResults.jsp", "_blank", "GET");
}
action script located in the first frame:
p = 17457;
trackID = "E1404504087";
this button works fine untill i click on another button that uses a javascript popup. then the search button will do nothing when i click on it.
could this code be effecting the "GET" command? or any other aspect of that search button?
button in imported text file in flash text box:
<A HREF="javaScript:popup('/games/populous.html')">Populous_The_Beginning</A>
popup code in web page:
<script language="JavaScript">
function popup(arg) {
newwin = window.open('', "newwin", "toolbar=no,location=no,directories=no,status=no,menubar=no,personalbar=no,scrollbars=yes,resizable=yes,width='100%',height='100%',left=150,top=20");
newwin.document.write('<html><body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0"><iframe src="' + arg + '" width="100%" height="100%"></iframe></body></html>')
newwin.document.title = "www.example.com";
newwin.document.close();
}
</script>
i don't understand why a completely seperate button would effect the search button, and only effect it after it has been clicked.
do you have any idea what could be the problem?
thanks.
Button To Go To Url Needed
I know that this is probably easy to do but I cannot find anywhere to show me how, can someone please show me how to create a button that would send a user to an url.
Thanks
Tim
Button Mx Help Desperately Needed
Hi I need serious help. I am loading external swf files that are in the same folder as the opening swf. On the buttons I have the code
on(release){
loadMovie("drops.swf","empty");
}
drops.swf is a small movie created in Mx. Opening also was created in MX. "empty" is the target movie clip area of the opening swf. What have I missed its due soon and I used this code in Flash 5 without any problems but now I can't get external swf files to load and play.
Please help me designitall
Help Needed With First Button Script
Hiya,
I'm trying to make a button that on release will gotoAndPlay the current frame number + 9 unless it is the last frame in which case it should goto frame 1.
As I haven't written a custom script before and have V little knowledge of programing I wounder if one of you guys can help.
This is what I have come up with:
on release();
gotoAndPlay (myframe);
{
if(this.frame==***last frame in scene**
Fn=1);
else(Fn=this.frame+9);
myframe=Fn:
}
i don't know if this.frame is the right syntax but, you can see what i am trying to get to.
As I'm at work I can't test this so any feed back would be brill.
Paulo
Component Button Help Needed
Hey everyone,
I was just wondering how to use component buttons in Flash MX. I've read the help and everything and I know you have to use the setClickHandler method to make the button work.
But where do I put the code? Do I assign the action to the button itself or do I put it in the frame of my movie. I'm confused as to where to put the script. Nothing seems to work when I run it.
Here's what I have in the Actions layer of my main movie:
Code:
button1.setClickHandler("onClick",button1);
This is what I have in the Actions layer of my button:
Code:
this.onClick = function(component) {
proClip.gotoAndPlay(2);
}
Am I doing this right cause my button isn't triggering the movie clip to play?
Button Code Needed
I loaded one movie into another and I cant get the buttons on the second movie to work.
As a stand alone the buttons work fine..
Any help?
Help Needed With A Navigation Button
Hi,
I have A movie clip with a button. This movie clip is placed within my larger movie (which has only one scene). The button is to advance the user to the next frame of the main movie where, However it doesn't work. I am using the below code's to on this button:
on (release, releaseoutside) {
stopAllSounds();
gotoAndStop("Scene 1", 4);
}
I have also tried:
on (release, releaseOutside) {
stopAllSounds();
gotoAndStop("Scene 1", "start");
}
And also this piece of code:
on (release, releaseOutside) {
stopAllSounds();
nextFrame();
}
None of these work
Can you please help me with this.
I think that using the first two code samples the button i looking/attempting to navigate to the specified location in its own timeline and not the timeline of the main movie.
Help!!
Zain
Email Button For CD Help Needed
Hi:
I have a CD that plays a Flash 5 .exe file. There are 7 sections to the presentation. Each section is made by a movie clip.
On section is a "Contact Us" section. I have an button in the section that is for email. When the user clicks on the button it is suppose to automatically pop open a new email message, but it doesn't work.
The actionscript I'm using is:
----------------------------------------------------------------
on (release) {
getURL ("mailto:client@website.com");
}
----------------------------------------------------------------
Does anyone know why it isn't working, or what code I should use to make it work?
Thanks in advance!
Dropdown Button Help Needed
Hi I am v.new to flash so bear with me.
I have created some dropdown style buttons using the invisable button method. Basicly when you rollover teh firts button I ahve an invisable button appear with the action to close when you rollover that (to rollover you must roll off the buttons)
This workls great, very happy. But when i bunch them together they start overalpping or something and it doesn't work 100& of the time.
I have them on different layers but that doesn't do the trick.
Any ideas? I guess I need to seperate them somehow but i can't alter the design - clients are strict on that.
Movie here: http://www.fuci.co.uk/clientarea/testarea/button.swf
Source Here:
http://www.fuci.co.uk/clientarea/testarea/buttons.fla
Button Scripting Help Needed
i have a button that plays a fadein/fadeout (enterFrame), yet i require it to also goto and stop on the last frame of the fadein (onMouseDown). script below. any ideas?
code:
onClipEvent (enterFrame) {
// if the mouse IS over the clip ...
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
// if the last frame of the tween hasn't been reached...
if (this._currentframe < this._totalframes) {
// keep playing the next frame to the last and stop...
this.nextFrame();
}
// if the mouse is NOT over the clip
} else {
// if we're past the first frame of the tween...
if (this._currentframe > 1) {
// play the previous frame until it reaches frame 1 and stop...
this.prevFrame();
}
}
Help Needed With Button And Slider.
Hi,
in the attached fla I have a couple of problems. I have the buttons set up with a movie clip in the up state so that it will play an animation when the mouse is removed, but that animation plays when the buttons first load. How do I make it only play when the mouse is removed? The other thing is on the sider. Right now it moves when your mouse is under the buttons, and not when it is on the very top of them. I would like to make it only move when the mouse is inside of the white border of each button. Will anyone help me with this? Any help will be appreciated very much!
Thanks, Matt
TEXT BUTTON Help Needed
My buttons only can be clicked on from the
exact pixils of the text but i want to have them work when the mouse is near them, any help would be appreciated.
Major Mc Button Help Needed
SORRY NOW ATTACHED
if someone can give me a kick in the
right direction i would really appreciate it.
see attached...
the timeline is a mc button timeline...after the
person rolls out of the button i want to jump
to frame 82 on the mc timeline any idea how
i do this ?
the mc is one.mc and there is another mc inside
(sta_one_mc) this, it is fading up during
‘over’ state and when you rollout it jumps to the
end (82) for a little fade.
thanks in advance
Button Script Help Needed
I am uploading a SWF slide show into an empty movie clip.
I have the following buttons: replay, play, pause, and stop.
What is the script I need to each button?
Thanks
Ecinle
Button Animation - HELP Needed
Hi people,
I have a problem with a button animation that I am working on. I have the button, and when you roll over it, it will play the animation. If you leave the pointer on the button the animation plays, stops, and then when you roll out it plays the roll out part of the animation.
However I cannot seem to get it to play the animation all the way through, and then go to the roll out anim automatically if you roll out before it finishes the first part.
If you do this it just stops, and then the animation gets out of sync if you roll back on to the button.
I have attached my file, and if you visit www.rbk.com and have a look at the buttons on the top left corner (titled asia, north america, europe) you will see the effect I am looking for.
If anyone can help it would be most appreciated.
Thanks
Steve
Sub Menu Button Help Needed
Hello
I need help making a sub menu thingy, lol
I've made a menu with some buttons that have rollover changes, but on one of the buttons i would like it to show a image (sub menu) that ive chosen under that button while the mouse is still over that button, and have buttons on that image (sub menu) that also have rollover changes.
How do i go about doing this???
is this possible???
thank you.
Help Needed Please - Button Sequence
Hi there,
Im a newbie and would like information on how to get buttons appear in sequence, ie
button one appear, button two, and so on it is for a menu I am doing, can someone please give me a quick lesson on how this is done.
Many thanks in advance,
Foxconn
[F8] Actionscript For Button Needed
i need the actionscript for a button so that when you click it a little box appears and slides across the screen becoming bigger, i also need the method to it if someone can help me i would relly appreciate it
[CS3] [AS2] Next And Previous Button Help Needed
hi fellow flashers. here's my dilemma a have a working script for a xml image gallery. it consists of thumbs and a larger image for each thumb. it also has a button for next and previous images. I have all of this working fine. my problem is the next and previous buttons, instead of going to the next image in the array according to what image it's currently showing, it starts from the beginning and cycles thru the array. How do script it so that when i click on for example thumb#4 and click on the next button it will display thumb#5 and then with each click continue the array from there. below is the script i have so far. tanx for any help.
Code:
//Create movieclip loader for the movieclips created above
mcl = new MovieClipLoader ();
//Create object for the moviecliploader
listener = new Object ();
//set variables and functions for the moviecliploader here. this sets the thumbnail's alpha to zero
listener.onLoadInit = function (target:MovieClip) {
if (target == thumbHolderMC) {
target.visible = 0;
}
};
//set preload for the moviecliploader using the listener object
listener.onLoadProgress = function (target:MovieClip, bytesLoaded, bytesTotal):Void {
percent = (bytesLoaded / bytesTotal) * 100;
};
//call the function to fade in the thumbs
listener.onLoadComplete = function (target:MovieClip) {
if (percent == 100) {
target.visible = 1;
}
};
//Center the larger image to the stage
onEnterFrame = function () {
img._x = Stage.width / 2 - img._width / 2;
};
//Add transistion tween
import mx.transitions.Tween;
import mx.transitions.easing.*;
//attach the listener to the moviecliploader
mcl.addListener (listener);
//Create xml
myXML = new XML ();
myXML.ignoreWhite = true;
//Create the function that loads the clickable thumbs, and the large image
function loadXML (success) {
if (success) {
pictures = this.firstChild.childNodes[0].childNodes;
numOfPics = pictures.length;
images = []
for (i = 0; i < numOfPics; i++) {
myThumbs = pictures[i].childNodes[0].childNodes[0].nodeValue;
item_mc = attachMovie ("thumbHolder", "tb" + i, i);
images.push(myThumbs)//creates array for next and previous buttons
mcl.loadClip (myThumbs,item_mc.tmb);
item_mc.myThumbs = myThumbs;
spacing = 50;
item_mc._x = spacing + i * ((item_mc._width) + spacing);
item_mc._xscale = item_mc._yscale = 25;
item_mc._alpha = 50;
item_mc.onRelease = function () {
mcl.loadClip (this.myThumbs,img);
new Tween (img, "_alpha", Strong.easeOut, 0, 100, 3, true);
};
item_mc.onRollOver = function () {
this._alpha = 100;
};
item_mc.onRollOut = function () {
this._alpha = 50;
};
}
} else {
trace ("FILE NOT LOADED");
}
}
myXML.onLoad = loadXML;
myXML.load ("mypix.xml");
///next and previous button functions
changePic = 0;
nextBtn.onRelease = function () {
if (changePic < images.length-1) {
changePic = changePic + 1;
} else {
changePic = 0;
}
mcl.loadClip (images[changePic],img);
new Tween (img, "_alpha", Strong.easeOut, 0, 100, 3, true);
};
prevBtn.onRelease = function () {
if (changePic >= 1) {
changePic = changePic - 1;
} else {
changePic = images.length - 1;
}
mcl.loadClip (images[changePic],img);
new Tween (img, "_alpha", Strong.easeOut, 0, 100, 3, true);
};
Scrollbar Button Help Needed...
Hello all,
I have created a scrolling text field using dynamic, html compatible text which is operated by buttons. Currently, the buttons are set to advance and reverse the text on press and release, moving the text 2 lines at a time. Here is the script:
FOR UP:
on (press, release, keyPress "<Up>") {
currentScroll = scrollableText.scroll;
if (Number(currentScroll)>1) {
scrollableText.scroll = currentScroll-1;
}
}
FOR DOWN:
on (press, release, keyPress "<Down>") {
currentScroll = scrollableText.scroll;
if (Number(currentScroll)<Number(scrollableText.maxsc roll)) {
scrollableText.scroll = Number(currentScroll)+1;
}
}
I would like for the user to be able to press and hold the buttons and have the text advance or reverse until the mouse is released. Is there an action script for this?
Thanks!
-Paul
[CS3] Very Basic Button Help Needed
I have a set of four buttons in a movie clip that I would like to link to particular frames on a different movie clip. I know with AS2 you could do this easily by setting up each page as a scene, but I was given a template of all of the pages in one movie clip and had to make my intro a separate scene. I can't seem to make the button instances go where I need them to. This is the error message I'm getting:
ArgumentError: Error #2109: Frame label resume not found in scene intro.
at flash.display::MovieClip/gotoAndStop()
at final_bones_fla::MainTimeline/buttonClick()
I'm sure its something simple as all programing is generally beyond me. Help, please, anyone??
AS Button Loop Help Needed
I've created a slide show for photos that has two buttons for navigation, a next and back button. I'm trying to use AS to loop the slide show, so when the user reaches the end and press the next button it will loop back to the beginning and vice versa. I got it to work in the forward direction and not in reverse. Can someone be kind enough to look at my code and see what I'm doing wrong. Thanks.
stop();
var curFrameNum:Number = 0;
var totalFrames:Number = 5;
prevNext.onPress = function () {
if (curFrameNum < Number(totalFrames) - 1) {
curFrameNum ++;
nextFrame();
} else {
curFrameNum == 5;
gotoAndStop("start");
}
};
prevBack.onPress = function() {
if (curFrameNum < Number(totalFrames) -1) {
curFrameNum --;
prevFrame();
} else {
curFrameNum == 0;
gotoAndStop("end");
}
};
Button Problems - Help Needed Please
Folks,
I'm in the middle of this project for work and I'm struggling. I'm new to Flash (as my previous posts will testify).
I have a problem in that I have 2 questions running within a framework. The first works OK but when I unload that one movie the buttons do not appear when I call the 2nd movie.
The first movie calls the MultiChoice clip from the library and the second movie is the TrueFalse movie clip. For some reason the submit and reset buttons will not appear in the TrueFalse clip.
This is driving me nuts and I have a deadline approaching.
If anybody can offer some advice I'd be most grateful.
If you click the top blue button on the first screen and go to the 3rd and 4th frames that's where the problem lies.
Any help appreciated.
Thanks in advance
101
Simple Button Help Needed
I want to make a simple round button that glows when you mouse over it and depresses when you click it.
Apparently to do this I need to use Filters to make the glow and bevels. But Filtersonly work on movie clips, buttons and text.
So I make a circle and convert it into a button symbol (Btn1). Then I make another button symbol (Btn2) and use the first button symbol (Btn 1) on the Up Over and Down frames of Btn 2. Assorted Filters are applied to Btn 1 on the Up Over and Down frames to get the effects I want.
I test the button (Btn2) using Enable Simple Buttons. It works perfectly - glows on mouse over and depresses on click. Then I try Test Movie -- and the button doesn't work!!!
Not does it work when exported as a SWF file!!!
I watched a tutorial video that came with my Flash Pro 8 Hands-On-Training (HOT) book and he used pretty much the same technique -- except he only tested his button with Enable Simple Buttons. I'll bet my house his didn't work with Test Movie either!
The stupid thing, is I was just able to achieve exactly what I wanted very quickly using LiveMotion 2!
What is wrong here? Why is it so impossible to create a glow button in Flash? Why has it been easy in Live Motion for years?
All help appreciated!
Thanks
craig
Button Script Needed
I'm fairly new to the Flash world and recently downloaded Flash 9 Prof to try. I am creating a CD with a Flash animated menu and several button options. Is there and ActionScript that will open an external file in its associated application (rather than in a browser w/ getURL).
Perhaps fscommand, but from what I have read, it may require an executable. I'd like to avoid adding more executables on the CD to confuse the user or having to put the files I want to open in a folder they won't recognize (like fscommand).
Too bad Adobe doesn't write an ActionScript function like "getfile" or something similar. Any suggestions?
Button Script Needed
Hi all
Ive posted this once but not sure where it went, so sorry for repeating.
Im in need of a bit of script that I can stick on a set of buttons so that when the user has click on one it remains in an over state so that the user knows which one they have clicked!
Hope this makes sense
kr
Jay
Button Script Needed
Hi there, sorry again if you already seen this post but im just getting to grips with all this.
I need help with a bit of button script makes a button remain at its over state when the user has clicked it, so that they know where they have been.
would appreciate the help
kr
Jay
Button Component - Help Needed
I'm trying to use a button component to simply go to the next frame.
the on click function is not working. Here is my code:
on (click) {
this.gotoAndPlay("4");
}
what am I doing wrong?
Reset Button Help Needed
Hi. I am learning Flash and I have made a photo puzzle using "drag and drop" actionscripting.
My puzzle has 20 pieces and 20 targets set up on a grid. Everything exists on separate layers but in one frame in the main timeline. The puzzle works and I also have a "hint" button that reveals the completed puzzle. What I am trying to figure out is how I can script a button that resets the puzzle and the photo hint back to their beginning state.
I tried to upload a smaller version of the puzzle for anyone who wants to see it, but it's too large to upload. I have included the actionscript for each puzzle piece and for the hint button below.
Any help would be appreciated. Thanks.
Action script on each puzzle piece (each puzzle piece is a movie clip):
on (press){
startDrag(this, true);
this.swapDepths(100);
}
on (release){
stopDrag();
if
(this._droptarget=="/target1"){
this._x = 353.7;
this._y = 53.1;
}else{
this._x = 218.3;
this._y = 302.1;
}
}
Action script on the hint button:
on (release){
hintMov.nextFrame();
}
//advances one frame in the hint movie clip
|