[CS3] Button (on Release) Question
Hi folks,
I have a button that I want make launch an external file, eg,
Quote:
on (release) {
openfile ("/flash/movie1/test.pdf)
}
I know this isn't real code but I want something that does the above
Any ideas,
Thanks
FlashKit > Flash Help > Flash Newbies
Posted on: 11-27-2008, 01:25 PM
View Complete Forum Thread with Replies
Sponsored Links:
On Button Release..
I am using flashmx 2004. How do I go about playing 5 seperate movie clips at once upon button release?
My entire movie is contained to the first frame of many layers.. so goto and play wont work.
Thanks for any help.
View Replies !
View Related
Button - On Release
i'm trying to link a button to the next part of the movie... this used to work fine i don't see what's wrong...
onRelease = function (){
gotoAndPlay();
;
};
**Error** Scene=Scene 1, layer=Layer 4, frame=265:Line 2: Wrong number of parameters; gotoAndPlay requires between 1 and 2.
gotoAndPlay();
**Error** Scene=Scene 1, layer=Layer 4, frame=265:Line 1: Statement must appear within on handler
onRelease = function (){
Total ActionScript Errors: 2 Reported Errors: 2
that's the error message from output.
buttons used to automatically put in the on release variable, now when i try it just says gotoAndPlay() and creates error messages.
anyone know what's wrong?
View Replies !
View Related
Button Release
Hello,
I'm building a HTML site with flash movies in frames. I made a flash navigation with mc buttons. The mouse-over and mouse-out work fine.
Their up state is an alpha of 70% and the over state is a alpha of 100%
Now i want to leave the buttons white or alpha on 100% when the button is pressed (usability). And stay that way until another button is pressed. I read the post about the classes posted resently but i was wondering if there is an easyer way to do it in my navigation?
I put the navigation .fla file online at: www.spektakle.nl/Top2.fla
Thank's!
Gr. RiAnimator
View Replies !
View Related
Button Within MC On Release
I have a button within a movie clip which triggers actions. There are multiple instances of the MC on the stage. How do I set each MC button to have a different action onrelease (ie go to a different page). I know this can be done as I've used it before, but can I remember how I did it?! No!
monkey
View Replies !
View Related
Swapping A Button On Release?
Hi everyone!
Does anybody know how to replace one button for another on clicking the button?
I have a button called "Contact me", and on release of this button, it will target a movie clip which displays a bar at the bottom with selection icons such as email, phone number, etc.
I want this button changed to "Hide Me" on release, so that you have an option to close the whole display bar at the bottom.
How to exchange one button for another on release?
I would appreciate your advice.
Thanks!
View Replies !
View Related
Conditinal Button Release
I had posted earlier on getting a music button to react properly - I got tremendous help but there is a little more to the problem - I need a conditional button release. I've got something wrong though it doesn't seem to recognize the options.
on (release) {
if (_currentframe==2) {
_root.synth.gotoAndPlay(2) +_root.music.gotoAndPlay(2) + _root.sound.gotoAndStop(1);
}
if (_currentframe==3) {
_root.synth.gotoAndPlay(2) +_root.music.gotoAndPlay(600) + _root.sound.gotoAndStop(1);
}
if (_currentframe==3) {
_root.synth.gotoAndPlay(2) +_root.music.gotoAndPlay(600) + _root.sound.gotoAndStop(1);
}
}
View Replies !
View Related
On (release) Action With A Button
Hi,
I think this is a very easy question,
I've got 6 buttons, and when I press one of the buttons I want a movieclip to be displayed for as long as the movieclip length. It works fine when I edit the button and on "down" keyframe I place the movieclip. Only problem is I have to keep the button pressed.
so, i quess it has to be done using actionscript.
On (release) ........ but then? I want to place the movieclip on an exact position, and when the movieclip ends, it has to dissapear.
Thanx,
Laurens
View Replies !
View Related
On (release) Action With A Button
Hi,
I think this is a very easy question,
I've got 6 buttons, and when I press one of the buttons I want a movieclip to be displayed for as long as the movieclip length. It works fine when I edit the button and on "down" keyframe I place the movieclip. Only problem is I have to keep the button pressed.
so, i quess it has to be done using actionscript.
On (release) ........ but then? I want to place the movieclip on an exact position, and when the movieclip ends, it has to dissapear.
Thanx,
Laurens
View Replies !
View Related
Button (on Release) Or On Press...
Not very good with flash, and I want to be able to make a button. The button and its animation is already done. I just want so that when I click the button, it jumps to the next scene... Any simple ideas or tips please?
Thanks alot in advance!
View Replies !
View Related
Button Instance On (release)
my students and i are trying to insert a goto action on a button. our actionscript looks like this:
on (release) {
gotoAndPlay ("Scene 2", 2)
}
i personally have made this work in the past. now, though, i'm getting an error that says "Mouse events are permitted only for button instance on (release)".
we're using flash mx.
currently, all of us are getting this error. help!
View Replies !
View Related
Getting A Button's Instance Name In On(release)
Just wondering if anybody know if there is a way of getting the button's instance name that was clicked inside the button's on(release) function. Similar to UI button where the component is pass to the event handler function, so you know what UI button was clicked. I can convert the button to a movie clip and use this._name to get the instance name, but just want to know if there is a similar way to do it with a button.
View Replies !
View Related
Disable MC As Button After Release
Hi, I've got an inbetween problem here....I can get my MC to act as a button but I can't get it to do 2 very important things at once after the onRelease action. Here is the code I am using ATM:
Code:
about_hot.onRelease = function() {
_parent.screenflicker_mc.gotoAndPlay("flicker");
_parent.sub_hold.attachMovie("about_sub", "about_in", 30);
loadVariables("about1.txt", _parent.sub_hold.about_in.textbox);
};
about_hot.onRelease = function() {
if (selectedButton != 1) {
selectedButton = 1;
if (Number(test) == 1) {
test = 0;
} else {
test = 1;
trace("work");
}
}
};
What I am trying to achieve is when the user releases the button, an MC loads with a text field and show the content of that section, but at the same time the button will disable it's 'clickability' but retain it's rollOver and rollOut attributes. Each section of the above code works on it's own, but I cannot 'join' them together in one chunk, the button won't disable. Any help that someone can offer is much appreciated. I get the feeling someone is going to respond with a 'You cannot have 2 functions that are named the same doing different things...'
View Replies !
View Related
On Rollover & On Release On 1 Button
I have a list of buttons (used for nav) across the top of a page. I want it so if the user rolls over the top button a dropdown list will appear under that button. However the user will then need to click on their selection to view that page. this will include the main (rollover) button. So in other words when you rollover the main button a dropdown list will appear. However if you click on the main button you can go to the page for that button. Is there a way I can have a on rollover & a on release on the same button?
TIA
Bran
View Replies !
View Related
On Release Problem Of Button
I wanted to do an on release command to load a swf and then redirect
to an url. However the swf and url loads together, causing the swf
to load halfway and redirect to url.
What I did was
on (release) {
_root.loadMovie("StartEnd.swf");
_root.getURL("IntroductionPage.htm");
}
How do I make it that the swf loads finish and then the redirect of
url take place?
Thnx in advance...
View Replies !
View Related
Problem With Button On Release
Ok, I have this script on my button and it worked fine until I added a large movie clip to the scene.
on (release) {
stop();
gotoAndPlay("music", 1);
}
I want the button, on click, to take the user to scene "music". This all worked great until I added a large movie script into the scene.
Now when I click the button it forwards to the movie clip and not the next scene.
What gives?
Thanks
Ryan
View Replies !
View Related
Xml To Load On Button Release
have some AC loading xml and creating dynamic content in a scrolling movie clip.. no prob it works.
but i cant seem to get it to do the same thing when i initiate it from a button release.. will only work when the movie first loads.
i dont want it to load when the movie starts. just when someone clicks on a button. since i am going to have it end up loading 6-7 different xml files for differnt sections.
any suggestions please?
stop()
//function loadxmlfile(){
var web_xml = new XML;
web_xml.onLoad = startImages;
web_xml.load("downloads.xml");
web_xml.ignoreWhite = true;
//}
//startImages======================================= ==================
function startImages(success){
if (success == true){
rootNode = web_xml.firstChild;
nodes=rootNode.childNodes;
for (i=0; i<nodes.length; i++){
newClip = _root.downbox_mc.toploader_mc.list_mc.attachMovie( "contenttab","tab"+ i, i);
newClip._x = 5;
newClip._y = newClip._y + 15 + (i*35);
newClip.thumb_mc.loadMovie(nodes[i].attributes.jpegURL);
newClip.desc_txt.text = nodes[i].firstChild.firstChild;
newClip.maker_txt.text = nodes[i].firstChild.nextSibling.firstChild;
newClip.rating_mc.gotoAndStop(nodes[i].firstChild.nextSibling.nextSibling.nextSibling.fi rstChild);
trace(nodes[i].firstChild.nextSibling.nextSibling.nextSibling.fi rstChild);
//for (var i=0; i < nodes.length; ++i){
}
}
}
View Replies !
View Related
Button (rollover,out,release) And MC
Well,
I searched a bunch of forums out there but did not find anything
that helped me solve my problem.
So, If someone can help. Thanks a lot.
Button with 3 Actions:
1. Onrollover
2. Onrollout
3. Onrelease
The button should control a MC (or Picture)like this
1. On rollover, gotoAndStop (like a preview)
2. On rollout, "Hide" MC with gotoAndStop (Frame 1 is empty frame)
3. On release, let MC on stage until another button is selected
BUT!!
If the button is pressed and then moved away the rollout effect
takes place.
How to get rid of that? Here is my code.
If you have a better solution about handle my button.. Let me know.
CODE:
on(rollOver) {
with(AboutMeClip) {
gotoAndPlay(2);
_alpha = 70;
}
with(AboutMeTextClip) {
gotoAndPlay(2);
_alpha = 70;
}
with(AboutMeTopLine) {
gotoAndPlay(2);
}
with(AboutMe) {
_alpha = 30;
}
}
on (rollOut) {
with(AboutMeClip){gotoAndStop(1);}
_root.AboutMeTextClip.gotoAndStop(1);
_root.AboutMeTopLine.gotoAndStop(1);
with(AboutMe){_alpha = 100;}
}
on (release) {
with(AboutMeClip) {
gotoAndStop(10);
_alpha = 70;
}
with(AboutMeTextClip) {
gotoAndStop(15);
_alpha = 70;
}
with(AboutMe) {
_alpha = 30;
}
}
View Replies !
View Related
Replacing A Button By Another On Release
Hello,
I would like to replace a button by another once I've clicked on it, so the appearance and actions would change. I've searched the whole Flash Help file and the net, but I found nothing... I'm not even sure if it is feasible?
Here is the detail of what I'm trying to do:
There's a "speaker on" button that tells you the sound is on, but if you click on it the sound will be muted. So I want to change the "speaker on" button to a "speaker off" button once you've clicked on it. When clicked, the "speaker off" button would bring back the sound and go to frame X and play, and of course come back as the "speaker on" button on release. I could figure out the actions I need except for the replacement.
Any help would be greatly appreciated!
View Replies !
View Related
Mouse Button UP (release)
HI,
I need to control a timeline by mouse buttons, arrow keys, and movieclip buttons at sametime.
I have some dificulty to do a timeline control by mouse buttons.
Left mouse botton --> nextframe.
Right mouse button --> prevframe.
I made this code but is to fast.. any mouse slow click, jump 3 or 5 frames...
I try to make a timer , but donīt work...
the code:
var flag:Boolean=true;
stop();
this.onEnterFrame = function(){
if(flag){
if (Key.isDown(1)){
nextFrame();
}
if (Key.isDown(2)){
prevFrame();
}
}
}
any help thanks..!!!
View Replies !
View Related
Button Animation After Release
I am making a page looking like this right now: http://www.neat.no/Henrik/Bill/example.jpg
The house icon you are seeing appears when you move your cursor over the home button at the bottom of the page. After clicking it, I want it to play an animation and disappear, or at least just disappear so that the content can show without the icon obstructing the view. Any suggestions on how I can do this?
All help greatly appreciated!
View Replies !
View Related
Hiding Button After Release?
I'm using flash 8 pro and building a Jeopardy-type quiz game. This consists of a number of buttons which are linked to movie clips containing the questions &
a selection of answers.
The buttons should only be used once, but I can't figure out how to remove it from the root once clicked.
right now I'm using:
on (release) {
_root.A1_Button._visible=false;
gotoAndStop("Q1");
}
on the actual button,where frame Q1 contains the relevant clip. I've also used
on (release) {
_root.gotoAndStop("go1");
_root.A1_Button._visible=false;
}
in the buttons inside the clip which return to the root menu, but neither script will remove (or hide) the button instance from the root timeline.
Can anyone help with this ?
View Replies !
View Related
How Do I Set A Variable And It's Value On Release Button?
I'm clueless on what can i use to do that. I'm creating a standard flash + php mail form. 8 variables but i need to add one more, wit a mark button.
Here is what i thought:
I can create 2 buttons with 2 frames each (marked and not marked), on click i set the clicked to go to marked frame and the other to not-marked frame, and vice-versa. Till here i'm ok, the problem comes with "how do I set a variable and it's value on release button?"
Thanks in advance!
View Replies !
View Related
[CS3] Multiple On Release On One Button
I have prepared the buttons and sub buttons for my site on the slide down menubar. it has a on release function for sliding sub buttons. now i want to link the .htm pages to each button.
on (release) {
this.NewY = this.A.OrigY;
this.gotoAndStop(1);
this._parent.B.NewY = this._parent.B.OrigY+this._parent.Control.AH-this._parent.Control.ButtonH;
this._parent.B.gotoAndStop(1);
this._parent.C.NewY = this._parent.C.OrigY+this._parent.Control.AH-this._parent.Control.ButtonH;
this._parent.C.gotoAndStop(1);
this._parent.D.NewY = this._parent.D.OrigY+this._parent.Control.AH-this._parent.Control.ButtonH;
this._parent.D.gotoAndStop(1);
this._parent.E.NewY = this._parent.E.OrigY+this._parent.Control.AH-this._parent.Control.ButtonH;
this._parent.E.gotoAndStop(1);
this._parent.F.NewY = this._parent.F.OrigY+this._parent.Control.AH-this._parent.Control.ButtonH;
this._parent.F.gotoAndStop(1);
this._parent.G.NewY = this._parent.G.OrigY+this._parent.Control.AH-this._parent.Control.ButtonH;
this._parent.G.gotoAndStop(1);
this._parent.H.NewY = this._parent.H.OrigY+this._parent.Control.AH-this._parent.Control.ButtonH;
this._parent.H.gotoAndStop(1);
this._parent.I.NewY = this._parent.I.OrigY+this._parent.Control.AH-this._parent.Control.ButtonH;
this._parent.I.gotoAndStop(1);
this._parent.J.NewY = this._parent.J.OrigY+this._parent.Control.AH-this._parent.Control.ButtonH;
this._parent.J.gotoAndStop(1);
play();
}
after writing the on release command on this code which is like this -
on (release) {
getURL("art.htm");
this.NewY = this.A.OrigY;
this.gotoAndStop(1);
this._parent.B.NewY = this._parent.B.OrigY+this._parent.Control.AH-this._parent.Control.ButtonH;
(rest the same)
i get error. even on the sublinks i get error.
please help
View Replies !
View Related
Help With An Animation On Release Of A Button
Hey everyone,
I'm stuck in a situation where I am trying to get an animation to play after a button has been clicked on.
What I'm trying to do is... I have button of a star, when the user rolls over the star I have an animation where the star slowly spins, but if the user clicks on the star, I want the star to then spin fast and then suddenly go toward the screen and disappear. I have the animations done and converted into movieclips. But when the user clicks on the button the animation will only play all the way through if the user holds down the button. If they let go it stops. I just want it so if they click on it once it will then play without having to hold it down.
Any help or advice would be greatly appreciated.
Cheers,
JCuellar
View Replies !
View Related
Loader -> .swf W/ Button. On (release)?
Hi,
I tried a search using a few keywords, then I tried browsing through the tutorials. I apologize if this question has been asked and answered several times. I'm usually pretty good about finding answers on my own. I'm new to using Loader component instances, so that's my excuse.
I have a Loader instance on the Main Stage that loads an External .swf movie. The External movie has buttons that do spiffy things.
When the Main Stage plays, the External movie loads and I can RollOver (etc) those nested buttons.
Let's say I'd like to have these buttons perform some function on the Main Stage, like (in the MainStage) _root.GotoAndStop(x), or in another Loader instance's .swf movie, like AuxWindow.value=x. (This is an .swf of Thumbnail buttons)
How do I address these functions, values from the buttons in the External .swf?
I tried _root, _parent, super, (AuxWindow), etc., but the problem seems to be that this is a button being accessed through a Loader component. What am I missing? I can't put new buttons on the Main Stage either over or under the Loader; either (over) the loader doesn't register the spiffy RollOver things, or (under) I can't click the Main Stage buttons. I tried having the Main Stage access values from within the Loader instance, and failed. I'm actually hoping the answer isn't too obvious. (ow, my ego)
Any thoughts are appreciated. Thank you.
View Replies !
View Related
Scaling A MC On Button Release?
I have this code which scales the movie cam_mc as soon as the movie loads. I like this effect and it looks perfect, but I want it to happen when I press a button. I have been looking around and still don't understand how to change this code to make it work on a button. The Instance name of my button is back_btn. If anyone can explain how I would do this it would help a lot. Thanks
Code:
onClipEvent (load) {
targetScale = 150;
}
onClipEvent (enterFrame) {
if (this._xscale < 150) {
_root.cam_mc._xscale = _root.cam_mc._xscale + (150 - _root.cam_mc._xscale)/5
_root.cam_mc._yscale = _root.cam_mc._yscale + (150 - _root.cam_mc._yscale)/5
}
}
View Replies !
View Related
Timeline AS Vs. Button On (release)
Hi, How can I change this code:
mcGal1.onRelease = function(){
loadGallery("gal1");
}
function loadGallery(galName){
_root.xmlDataPath = galName + "/imageData.xml";
mcViewer.loadMovie("viewer.swf");
}
to be a button action instead of a timeline action?
I'm pretty new to this, just trying to figure it out. I'd also like to know how to go the other way ie:
on (release) {
gotoAndPlay(1);
}
How to translate to my_btn.onRelease.... etc. ????
THANKS!!!
View Replies !
View Related
Preloader For On Release Button
Hello and greetings to all fellow flash users,
I'm having a problem with preloading. Here is the situation, I have created an empty movie symbol (instance name empty_mc) in the (final.fla file). Inside that empty_mc is a dynamic text box and progress bar. This is all on frame one of the final.fla file. The first thumbnail button is a button symbol (instance name is cadybtn). I am trying to create a preloader that plays will the cadymovie loads into the empty movie symbol.
I've been working on this for 5 days straight and have tried 3 different ways of having a preloader run while the movie load when I click the button symbol.
I reeeeeeeeeeeeeeaaaaaaaaaaallly appreciate some/any help on this
The fla files are attached below
View Replies !
View Related
Can On (release) And On (rollOver) Be On The Same Button?
Does anyone know if this is possible?
Code:
on (rollOver) {
gotoAndStop("one");
}
on (rollOut) {
gotoAndStop(1);
}
on (release) {
adme._visible = true;
close._visible = true;
cda._visible = false;
crp._visible = false;
;
}
I can get one to work at a time, but not both on (release) and on (rollOver)/on (rollOut)
Thanks for anyone's help!
View Replies !
View Related
On Button Release Action
I am creating a menu animation in which when the select on a button menu item, a certain action takes place (for instance lets say a box of color expands down and stops. What I want to do, is if they then select on another button item from the menu, I want the box of color to return to its original location before the new selected box of color expands down (I hope my example makes sense.) Basically what I need to happen is for on release, the flash file needs to continue playing on the timeline until the color box returns and then goto and play at a new instance on the timeline. How would I go about doing that?
View Replies !
View Related
Attacing MC To Button (on Release)
hmm if someone could help me with this it would be much appreciated!
I have a photo gallery, when you click a thumbnail, the larger photo appears.
What i want to do is attach a white fade out movie clip to each thumbnail, so if the user clicks the thumbnail, it loads the white fade out clip (so the largeimages fades to white), THEN proceeds to frame __ where the next large image is.
aanyone?
thx!
View Replies !
View Related
StopDrag() After Button Release
hello all,
i have a map, [spacebar] + [mouseclick] = dragging the map around - also the word "dragging" appears/disappears so you know you've started/stopped. once a building is clicked a "wall" slides up covering the map and that building's info pops up. wonderful...
if i click a building w/o having dragged the map, then "map dragging" is correctly disabled..BUT..if i drag the map first and THEN click a building i can't get the 'map dragging' to disble (the "wall" is opaque so i can still see the map moving behind it). here is my AS,
Code:
var allowDrag:String = "yes"; //initially set to enable dragging
this.onEnterFrame = function(){ // drag map
if(allowDrag != "no"){ //also tried (allowDrag == "yes")
var mouseListener:Object = new Object(); //drag map
if(Key.isDown(Key.SPACE))
{
mouseListener.onMouseDown = function()
{
_root.map.startDrag();
_root.dragLight.play();
setProperty(_root.dragLight,_alpha, 100);
}
}
else // DON'T DRAG!!!
{
Mouse.removeListener(mouseListener);
stopDrag();
_root.dragLight.stop();
setProperty(_root.dragLight,_alpha, 0);
//allowDrag = "no"
}
Mouse.addListener(mouseListener);
} // end if allowDrag
// end drag map
my building buttons are supposed to set the var to "no" to disable the dragging:
Code:
for(var b=1;b<=47;b++){ // loops thru ALL buttons
_root.map["btn"+b].onRelease = function()
{
start_it();
nozoom = "no";
allowDrag = "no";// disable map dragging after bldng is clicked
}
}
i can't see how dragging before or after clicking a building would affect anything?!?! any ideas?
thanks!
View Replies !
View Related
Release On An Invisible Button Help
I've been over this problem now for too long!
help please!
on my timeline, frame 1 to 5, I have an invisble button that make a rollover and a roll out (both functions working really well!)
On frame 5, there is a stop button.
I want to put a release on the invisible button to go at frame 10 called "start".
I've tried so many thing and nothing would work out . . . I'm out of idea!
can somebody help me out?
View Replies !
View Related
Setting On(release) Of A Button From Another Button
http://www.pflug.com/paradoxdesigns/staff/mg/v3/
i just finished the web portion of the portfolio. but two of the sites have music on it. i want the current music to stop when those ones are opened up. right now i have the buttons on the side that say this(they are in a movie clip, thats why they all have _parent in em):
Code:
on(release){
_parent.preview.unloadMovie();
_parent.preview.loadMovie("images/portfolioV2Preview.jpg");
_global.picture = "portfolioV2";
_parent.loader.attachMovie("preloader","portfolioV2Loader","1");
_parent.view.enabled = true;
}
and then in the middle i have an invisible button where the view part of the jpg is. heres the code for that:
Code:
on(release){
getURL("images/" add _global.picture add "/index.html","_blank");
}
now if i wanted to stop the music whenever the button was pressed i'd eitehr use stopAllSounds(); in the invisible button or _root.music.unloadMovie(); but i only want it to stop music when a few of the projects are selected (the face2face one and portfolio v2).
so...is there a way i can somehow put code in some of the buttons on the side that will add a stopAllSounds(); or _root.musicUnloadMovie(); only if that specific button is pressed?
View Replies !
View Related
Code To Disable A Button After Release
I have some code on my website that allows users to drag a thumbnail onto a target and then expand to full size on release.
//The function growIt causes the clip to expand on release
function growIt(){
_xscale+=100;
_yscale+=100;
}
on (press) {
startDrag ("_root.movieclip");
}
on (release) {
stopDrag ();
_root.movieclip.growIt();
}
How can I disable the function after release so that when the user drags the expanded clip it doesn't keep growing?
View Replies !
View Related
Problem On Release Of Button And If/then Staements.
Hello,
I am trying to make a Game however at this moment that part is irrelevant. I make a box and give it a variable name of "class" and I have another box with the variabe "hp" (hit points)
Now I have it scripted so that if they enter "fighter" in "class" then the "hp" equals "10"
Likewise if they enter "cleric" in "class" then the "hp" equals "8" but when I go to test it.... the last script made results... in other words I may enter fighter and press the button to calculate the HP and altough 10 should result, once I release the button "8" shows up in the "hp" and the "class" is then replaced by "cleric". Here is my code:
on (release) {
if (class = "fighter") {
}
hp = "10";
if (class = "cleric") {
}
hp = "8";
}
View Replies !
View Related
Call Button Release Method
hello folks,
I have a movieClip with a button in it and I just realised that a button can have an instance name in MX [woohoo].
I am building a bit of script that is meant to make certain keys do what certain buttons do on (release). I thought it would be cool [and less work - seeing as I didn't properly centralise my code in the first place] to try to envoke the release method of that button in this sort of fashion:
_parent.mcName.butName.release();
ha - it didn't work! I don't mind centralising the code properly if I have to but it is reasonably centralised already and I just thought this would be an interesting way of doing it. Have looked at event methods too - is this what I need instead??
Just curious really - would speed things up if I knew too tho!
ta, Sam.
View Replies !
View Related
Help: Animation From A Button Release Action
I am relatively new to Flash and need some help on this.
I set up a menu with four buttons (it's on the right side of the site). I will be targeting dynamic text files from three of those buttons (the simple .txt files). But, first I want a simple animation to occur, namely a little box--where the text will ultimately be--fading or growing into the screen (off to the left).
Is there a tutorial I can look at? Or is there someone who can give me some hints? I am just learning all of this, especially Actionscript. Thanks.
View Replies !
View Related
Reset Variable On Button Release
Hello,
I'm kinda new to variables.
What I'm trying to do is: when a button is released, have the MC timeline that it's in now, goto and play close.
This way it has a nice tweening close effect instead of just dissapearing. Then just as it's closed, I have it telling another timeline to play another MC using the variable reset using the button.
AS in first frame is:
MovieClip = "_root.MAIN_training.entrance_training";
This AS is on a button in the same timeline:
on (release) {
gotoAndPlay("close");
}
on (release) {
MovieClip = "_root.MAIN_training.license";
}
Then at the last frame of that timeline I have this AS on a small MC.
onClipEvent (enterFrame) {
tellTarget ("_root.MAIN_training") {
gotoAndPlay(MovieClip);
}
}
Any help is greatly appreciated.
View Replies !
View Related
How Do I Move An Object On A Button Release?
I want to move an object from one point to another with friction on a button release. So far I have this:
onClipEvent (load) {
speed = 5;
movie_width = 600;
movie_height = 600;
}
onClipEvent (enterFrame) {
// calculate x and y so that
// the square is in the middle
target_x = 200;
target_y = 100;
// distance away from square
distance_x = target_x-this._x;
distance_y = target_y-this._y;
// move + friction
this._x += distance_x/speed;
this._y += distance_y/speed;
}
but i can't make a button execute it.
View Replies !
View Related
Custom Cursor Over Button On Release
Hi... if anyone can help me solve this problem, I'd appreciate the help.
I've set up a custom cursor to appear on a mouse event (release) that's assigned to a button.
What I'm unable to figure out is how to limit the custom cursor to display over the area of the button only and to revert to the normal cursor once the mouse is moved off the button.
thanks,
Mike the perpetual newbie
View Replies !
View Related
|